text
stringlengths 3
1.05M
|
|---|
/*
* /MathJax-v2/jax/output/SVG/fonts/TeX/Main/Italic/LetterlikeSymbols.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Main-italic"],{8463:[695,13,540,42,562,"150 475Q147 475 118 466T82 457Q73 457 64 467T54 487Q54 490 55 492Q63 506 64 506Q67 512 118 526Q162 541 169 546Q173 559 175 575Q181 596 181 604Q181 613 166 617Q164 617 153 618T135 619Q119 619 114 621T109 630Q109 636 114 656T122 681Q125 685 202 688Q272 695 286 695Q304 695 304 684Q304 682 291 628L278 577L386 612Q466 635 476 635T492 627T499 607Q499 593 489 586Q485 583 373 546L262 512Q262 511 248 455T233 397T236 397T244 404Q295 441 357 441Q405 441 445 417T485 333Q485 284 449 178T412 58T426 44Q447 44 466 68Q485 87 500 130L509 152H531H543Q562 152 562 144Q562 128 546 93T494 23T415 -13Q385 -13 359 3T322 44Q318 52 318 77Q318 99 352 196T386 337Q386 386 346 386Q318 386 286 370Q267 361 245 338T211 292Q207 287 193 235T162 113T138 21Q128 7 122 4Q105 -12 83 -12Q66 -12 54 -2T42 26Q42 45 98 257L151 475H150"]});MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/Main/Italic/LetterlikeSymbols.js");
|
##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
# Copyright (c) 2013-2014, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of conditions and the following
# disclaimer.
#
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided with
# the distribution.
#
# * Neither the name of John Haddon nor the names of
# any other contributors to this software may be used to endorse or
# promote products derived from this software without specific prior
# written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
##########################################################################
import math
import imath
import IECore
import IECoreScene
import Gaffer
import GafferTest
import GafferDispatch
import GafferScene
import GafferSceneTest
class InstancerTest( GafferSceneTest.SceneTestCase ) :
def test( self ) :
sphere = IECoreScene.SpherePrimitive()
instanceInput = GafferSceneTest.CompoundObjectSource()
instanceInput["in"].setValue(
IECore.CompoundObject( {
"bound" : IECore.Box3fData( imath.Box3f( imath.V3f( -2 ), imath.V3f( 2 ) ) ),
"children" : {
"sphere" : {
"object" : sphere,
"bound" : IECore.Box3fData( sphere.bound() ),
"transform" : IECore.M44fData( imath.M44f().scale( imath.V3f( 2 ) ) ),
},
}
} )
)
seeds = IECoreScene.PointsPrimitive(
IECore.V3fVectorData(
[ imath.V3f( 1, 0, 0 ), imath.V3f( 1, 1, 0 ), imath.V3f( 0, 1, 0 ), imath.V3f( 0, 0, 0 ) ]
)
)
seedsInput = GafferSceneTest.CompoundObjectSource()
seedsInput["in"].setValue(
IECore.CompoundObject( {
"bound" : IECore.Box3fData( imath.Box3f( imath.V3f( 1, 0, 0 ), imath.V3f( 2, 1, 0 ) ) ),
"children" : {
"seeds" : {
"bound" : IECore.Box3fData( seeds.bound() ),
"transform" : IECore.M44fData( imath.M44f().translate( imath.V3f( 1, 0, 0 ) ) ),
"object" : seeds,
},
},
}, )
)
instancer = GafferScene.Instancer()
instancer["in"].setInput( seedsInput["out"] )
instancer["instances"].setInput( instanceInput["out"] )
instancer["parent"].setValue( "/seeds" )
instancer["name"].setValue( "instances" )
self.assertEqual( instancer["out"].object( "/" ), IECore.NullObject() )
self.assertEqual( instancer["out"].transform( "/" ), imath.M44f() )
self.assertEqual( instancer["out"].bound( "/" ), imath.Box3f( imath.V3f( -1, -2, -2 ), imath.V3f( 4, 3, 2 ) ) )
self.assertEqual( instancer["out"].childNames( "/" ), IECore.InternedStringVectorData( [ "seeds" ] ) )
self.assertEqual( instancer["out"].object( "/seeds" ), seeds )
self.assertEqual( instancer["out"].transform( "/seeds" ), imath.M44f().translate( imath.V3f( 1, 0, 0 ) ) )
self.assertEqual( instancer["out"].bound( "/seeds" ), imath.Box3f( imath.V3f( -2, -2, -2 ), imath.V3f( 3, 3, 2 ) ) )
self.assertEqual( instancer["out"].childNames( "/seeds" ), IECore.InternedStringVectorData( [ "instances" ] ) )
self.assertEqual( instancer["out"].object( "/seeds/instances" ), IECore.NullObject() )
self.assertEqual( instancer["out"].transform( "/seeds/instances" ), imath.M44f() )
self.assertEqual( instancer["out"].bound( "/seeds/instances" ), imath.Box3f( imath.V3f( -2, -2, -2 ), imath.V3f( 3, 3, 2 ) ) )
self.assertEqual( instancer["out"].childNames( "/seeds/instances" ), IECore.InternedStringVectorData( [ "sphere" ] ) )
self.assertEqual( instancer["out"].object( "/seeds/instances/sphere" ), IECore.NullObject() )
self.assertEqual( instancer["out"].transform( "/seeds/instances/sphere" ), imath.M44f() )
self.assertEqual( instancer["out"].bound( "/seeds/instances/sphere" ), imath.Box3f( imath.V3f( -2, -2, -2 ), imath.V3f( 3, 3, 2 ) ) )
self.assertEqual( instancer["out"].childNames( "/seeds/instances/sphere" ), IECore.InternedStringVectorData( [ "0", "1", "2", "3" ] ) )
for i in range( 0, 4 ) :
instancePath = "/seeds/instances/sphere/%d" % i
self.assertEqual( instancer["out"].object( instancePath ), sphere )
self.assertEqual(
instancer["out"].transform( instancePath ),
imath.M44f().scale( imath.V3f( 2 ) ) * imath.M44f().translate( seeds["P"].data[i] )
)
self.assertEqual( instancer["out"].bound( instancePath ), sphere.bound() )
self.assertEqual( instancer["out"].childNames( instancePath ), IECore.InternedStringVectorData() )
def testThreading( self ) :
sphere = IECoreScene.SpherePrimitive()
instanceInput = GafferSceneTest.CompoundObjectSource()
instanceInput["in"].setValue(
IECore.CompoundObject( {
"bound" : IECore.Box3fData( imath.Box3f( imath.V3f( -2 ), imath.V3f( 2 ) ) ),
"children" : {
"sphere" : {
"object" : sphere,
"bound" : IECore.Box3fData( sphere.bound() ),
"transform" : IECore.M44fData( imath.M44f().scale( imath.V3f( 2 ) ) ),
},
}
} )
)
seeds = IECoreScene.PointsPrimitive(
IECore.V3fVectorData(
[ imath.V3f( 1, 0, 0 ), imath.V3f( 1, 1, 0 ), imath.V3f( 0, 1, 0 ), imath.V3f( 0, 0, 0 ) ]
)
)
seedsInput = GafferSceneTest.CompoundObjectSource()
seedsInput["in"].setValue(
IECore.CompoundObject( {
"bound" : IECore.Box3fData( imath.Box3f( imath.V3f( 1, 0, 0 ), imath.V3f( 2, 1, 0 ) ) ),
"children" : {
"seeds" : {
"bound" : IECore.Box3fData( seeds.bound() ),
"transform" : IECore.M44fData( imath.M44f().translate( imath.V3f( 1, 0, 0 ) ) ),
"object" : seeds,
},
},
}, )
)
instancer = GafferScene.Instancer()
instancer["in"].setInput( seedsInput["out"] )
instancer["instances"].setInput( instanceInput["out"] )
instancer["parent"].setValue( "/seeds" )
instancer["name"].setValue( "instances" )
GafferSceneTest.traverseScene( instancer["out"] )
def testNamePlugDefaultValue( self ) :
n = GafferScene.Instancer()
self.assertEqual( n["name"].defaultValue(), "instances" )
self.assertEqual( n["name"].getValue(), "instances" )
def testAffects( self ) :
n = GafferScene.Instancer()
a = n.affects( n["name"] )
self.assertGreaterEqual( { x.relativeName( n ) for x in a }, { "out.childNames", "out.bound", "out.set" } )
def testParentBoundsWhenNoInstances( self ) :
sphere = GafferScene.Sphere()
sphere["type"].setValue( sphere.Type.Primitive ) # no points, so we can't instance onto it
instancer = GafferScene.Instancer()
instancer["in"].setInput( sphere["out"] )
instancer["parent"].setValue( "/sphere" )
instancer["instances"].setInput( sphere["out"] )
self.assertSceneValid( instancer["out"] )
self.assertEqual( instancer["out"].bound( "/sphere" ), sphere["out"].bound( "/sphere" ) )
def testEmptyName( self ) :
plane = GafferScene.Plane()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["parent"].setValue( "/plane" )
instancer["name"].setValue( "" )
self.assertScenesEqual( instancer["out"], plane["out"] )
def testEmptyParent( self ) :
plane = GafferScene.Plane()
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "" )
self.assertScenesEqual( instancer["out"], plane["out"] )
self.assertSceneHashesEqual( instancer["out"], plane["out"] )
def testSeedsAffectBound( self ) :
plane = GafferScene.Plane()
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/plane" )
h1 = instancer["out"].boundHash( "/plane/instances" )
b1 = instancer["out"].bound( "/plane/instances" )
plane["dimensions"].setValue( plane["dimensions"].getValue() * 2 )
h2 = instancer["out"].boundHash( "/plane/instances" )
b2 = instancer["out"].bound( "/plane/instances" )
self.assertNotEqual( h1, h2 )
self.assertNotEqual( b1, b2 )
def testBoundHashIsStable( self ) :
plane = GafferScene.Plane()
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/plane" )
h = instancer["out"].boundHash( "/plane/instances" )
for i in range( 0, 100 ) :
self.assertEqual( instancer["out"].boundHash( "/plane/instances" ), h )
def testObjectAffectsChildNames( self ) :
plane = GafferScene.Plane()
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/plane" )
cs = GafferTest.CapturingSlot( instancer.plugDirtiedSignal() )
plane["divisions"]["x"].setValue( 2 )
dirtiedPlugs = [ s[0] for s in cs ]
self.assertTrue( instancer["out"]["childNames"] in dirtiedPlugs )
self.assertTrue( instancer["out"]["bound"] in dirtiedPlugs )
self.assertTrue( instancer["out"]["transform"] in dirtiedPlugs )
def testPythonExpressionAndGIL( self ) :
script = Gaffer.ScriptNode()
script["plane"] = GafferScene.Plane()
script["plane"]["divisions"].setValue( imath.V2i( 20 ) )
script["sphere"] = GafferScene.Sphere()
script["expression"] = Gaffer.Expression()
script["expression"].setExpression( "parent['sphere']['radius'] = context.getFrame()" )
script["instancer"] = GafferScene.Instancer()
script["instancer"]["in"].setInput( script["plane"]["out"] )
script["instancer"]["instances"].setInput( script["sphere"]["out"] )
script["instancer"]["parent"].setValue( "/plane" )
# The Instancer spawns its own threads, so if we don't release the GIL
# when invoking it, and an upstream node enters Python, we'll end up
# with a deadlock. Test that isn't the case. We increment the frame
# between each test to ensure the expression result is not cached and
# we do truly enter python.
with Gaffer.Context() as c :
c.setFrame( 1 )
script["instancer"]["out"]["globals"].getValue()
c.setFrame( 101 )
script["instancer"]["out"]["globals"].hash()
c["scene:path"] = IECore.InternedStringVectorData( [ "plane" ] )
c.setFrame( 2 )
script["instancer"]["out"]["bound"].getValue()
c.setFrame( 3 )
script["instancer"]["out"]["transform"].getValue()
c.setFrame( 4 )
script["instancer"]["out"]["object"].getValue()
c.setFrame( 5 )
script["instancer"]["out"]["attributes"].getValue()
c.setFrame( 6 )
script["instancer"]["out"]["childNames"].getValue()
c.setFrame( 7 )
c.setFrame( 102 )
script["instancer"]["out"]["bound"].hash()
c.setFrame( 103 )
script["instancer"]["out"]["transform"].hash()
c.setFrame( 104 )
script["instancer"]["out"]["object"].hash()
c.setFrame( 105 )
script["instancer"]["out"]["attributes"].hash()
c.setFrame( 106 )
script["instancer"]["out"]["childNames"].hash()
c.setFrame( 107 )
# The same applies for the higher level helper functions on ScenePlug
c.setFrame( 200 )
script["instancer"]["out"].bound( "/plane" )
c.setFrame( 201 )
script["instancer"]["out"].transform( "/plane" )
c.setFrame( 202 )
script["instancer"]["out"].fullTransform( "/plane" )
c.setFrame( 203 )
script["instancer"]["out"].attributes( "/plane" )
c.setFrame( 204 )
script["instancer"]["out"].fullAttributes( "/plane" )
c.setFrame( 205 )
script["instancer"]["out"].object( "/plane" )
c.setFrame( 206 )
script["instancer"]["out"].childNames( "/plane" )
c.setFrame( 207 )
c.setFrame( 300 )
script["instancer"]["out"].boundHash( "/plane" )
c.setFrame( 301 )
script["instancer"]["out"].transformHash( "/plane" )
c.setFrame( 302 )
script["instancer"]["out"].fullTransformHash( "/plane" )
c.setFrame( 303 )
script["instancer"]["out"].attributesHash( "/plane" )
c.setFrame( 304 )
script["instancer"]["out"].fullAttributesHash( "/plane" )
c.setFrame( 305 )
script["instancer"]["out"].objectHash( "/plane" )
c.setFrame( 306 )
script["instancer"]["out"].childNamesHash( "/plane" )
c.setFrame( 307 )
def testDynamicPlugsAndGIL( self ) :
script = Gaffer.ScriptNode()
script["plane"] = GafferScene.Plane()
script["plane"]["divisions"].setValue( imath.V2i( 20 ) )
script["sphere"] = GafferScene.Sphere()
script["expression"] = Gaffer.Expression()
script["expression"].setExpression( "parent['sphere']['radius'] = context.getFrame()" )
script["instancer"] = GafferScene.Instancer()
script["instancer"]["in"].setInput( script["plane"]["out"] )
script["instancer"]["instances"].setInput( script["sphere"]["out"] )
script["instancer"]["parent"].setValue( "/plane" )
script["attributes"] = GafferScene.CustomAttributes()
script["attributes"]["in"].setInput( script["instancer"]["out"] )
script["outputs"] = GafferScene.Outputs()
script["outputs"]["in"].setInput( script["attributes"]["out"] )
# Simulate an InteractiveRender or Viewer traversal of the scene
# every time it is dirtied. If the GIL isn't released when dirtiness
# is signalled, we'll end up with a deadlock as the traversal enters
# python on another thread to evaluate the expression. We increment the frame
# between each test to ensure the expression result is not cached and
# we do truly enter python.
traverseConnection = Gaffer.ScopedConnection( GafferSceneTest.connectTraverseSceneToPlugDirtiedSignal( script["outputs"]["out"] ) )
with Gaffer.Context() as c :
c.setFrame( 1 )
script["attributes"]["attributes"].addChild( Gaffer.NameValuePlug( "test1", IECore.IntData( 10 ) ) )
c.setFrame( 2 )
script["attributes"]["attributes"].addChild( Gaffer.NameValuePlug( "test2", IECore.IntData( 20 ), True ) )
c.setFrame( 3 )
script["attributes"]["attributes"].addMembers(
IECore.CompoundData( {
"test3" : 30,
"test4" : 40,
} )
)
c.setFrame( 4 )
p = script["attributes"]["attributes"][0]
del script["attributes"]["attributes"][p.getName()]
c.setFrame( 5 )
script["attributes"]["attributes"].addChild( p )
c.setFrame( 6 )
script["attributes"]["attributes"].removeChild( p )
c.setFrame( 7 )
script["attributes"]["attributes"].setChild( p.getName(), p )
c.setFrame( 8 )
script["attributes"]["attributes"].removeChild( p )
c.setFrame( 9 )
script["attributes"]["attributes"][p.getName()] = p
c.setFrame( 10 )
script["outputs"].addOutput( "test", IECoreScene.Output( "beauty.exr", "exr", "rgba" ) )
def testLoadReferenceAndGIL( self ) :
script = Gaffer.ScriptNode()
script["plane"] = GafferScene.Plane()
script["plane"]["divisions"].setValue( imath.V2i( 20 ) )
script["sphere"] = GafferScene.Sphere()
script["expression"] = Gaffer.Expression()
script["expression"].setExpression( "parent['sphere']['radius'] = 0.1 + context.getFrame()" )
script["instancer"] = GafferScene.Instancer()
script["instancer"]["in"].setInput( script["plane"]["out"] )
script["instancer"]["instances"].setInput( script["sphere"]["out"] )
script["instancer"]["parent"].setValue( "/plane" )
script["box"] = Gaffer.Box()
script["box"]["in"] = GafferScene.ScenePlug( flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic )
script["box"]["out"] = GafferScene.ScenePlug( direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic )
script["box"]["out"].setInput( script["box"]["in"] )
script["box"].exportForReference( self.temporaryDirectory() + "/test.grf" )
script["reference"] = Gaffer.Reference()
script["reference"].load( self.temporaryDirectory() + "/test.grf" )
script["reference"]["in"].setInput( script["instancer"]["out"] )
script["attributes"] = GafferScene.CustomAttributes()
script["attributes"]["in"].setInput( script["reference"]["out"] )
traverseConnection = Gaffer.ScopedConnection( GafferSceneTest.connectTraverseSceneToPlugDirtiedSignal( script["attributes"]["out"] ) )
with Gaffer.Context() as c :
script["reference"].load( self.temporaryDirectory() + "/test.grf" )
def testContextChangedAndGIL( self ) :
script = Gaffer.ScriptNode()
script["plane"] = GafferScene.Plane()
script["plane"]["divisions"].setValue( imath.V2i( 20 ) )
script["sphere"] = GafferScene.Sphere()
script["expression"] = Gaffer.Expression()
script["expression"].setExpression( "parent['sphere']['radius'] = context.get( 'minRadius', 0.1 ) + context.getFrame()" )
script["instancer"] = GafferScene.Instancer()
script["instancer"]["in"].setInput( script["plane"]["out"] )
script["instancer"]["instances"].setInput( script["sphere"]["out"] )
script["instancer"]["parent"].setValue( "/plane" )
context = Gaffer.Context()
traverseConnection = Gaffer.ScopedConnection( GafferSceneTest.connectTraverseSceneToContextChangedSignal( script["instancer"]["out"], context ) )
with context :
context.setFrame( 10 )
context.setFramesPerSecond( 50 )
context.setTime( 1 )
context.set( "a", 1 )
context.set( "a", 2.0 )
context.set( "a", "a" )
context.set( "a", imath.V2i() )
context.set( "a", imath.V3i() )
context.set( "a", imath.V2f() )
context.set( "a", imath.V3f() )
context.set( "a", imath.Color3f() )
context.set( "a", IECore.BoolData( True ) )
context["b"] = 1
context["b"] = 2.0
context["b"] = "b"
context["b"] = imath.V2i()
context["b"] = imath.V3i()
context["b"] = imath.V2f()
context["b"] = imath.V3f()
context["b"] = imath.Color3f()
context["b"] = IECore.BoolData( True )
with Gaffer.BlockedConnection( traverseConnection ) :
# Must add it with the connection disabled, otherwise
# the addition causes a traversal, and then remove() gets
# all its results from the cache.
context["minRadius"] = 0.2
context.remove( "minRadius" )
with Gaffer.BlockedConnection( traverseConnection ) :
context["minRadius"] = 0.3
del context["minRadius"]
def testDispatchAndGIL( self ) :
script = Gaffer.ScriptNode()
script["plane"] = GafferScene.Plane()
script["plane"]["divisions"].setValue( imath.V2i( 20 ) )
script["sphere"] = GafferScene.Sphere()
script["expression"] = Gaffer.Expression()
script["expression"].setExpression( "parent['sphere']['radius'] = context.get( 'minRadius', 0.1 ) + context.getFrame()" )
script["instancer"] = GafferScene.Instancer()
script["instancer"]["in"].setInput( script["plane"]["out"] )
script["instancer"]["instances"].setInput( script["sphere"]["out"] )
script["instancer"]["parent"].setValue( "/plane" )
script["pythonCommand"] = GafferDispatch.PythonCommand()
script["pythonCommand"]["command"].setValue( "pass" )
traverseConnection = Gaffer.ScopedConnection( GafferSceneTest.connectTraverseSceneToPreDispatchSignal( script["instancer"]["out"] ) )
dispatcher = GafferDispatch.LocalDispatcher()
dispatcher["jobsDirectory"].setValue( self.temporaryDirectory() )
with Gaffer.Context() as c :
for i in range( 1, 10 ) :
c.setFrame( i )
dispatcher.dispatch( [ script["pythonCommand"] ] )
def testTransform( self ) :
point = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( 4, 0, 0 ) ] ) )
point["orientation"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.QuatfVectorData( [ imath.Quatf().setAxisAngle( imath.V3f( 0, 1, 0 ), math.pi / 2.0 ) ] )
)
point["scale"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.V3fVectorData( [ imath.V3f( 2, 3, 4 ) ] )
)
point["uniformScale"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.FloatVectorData( [ 10 ] )
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( point )
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/object" )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/0" ), imath.M44f().translate( imath.V3f( 4, 0, 0 ) ) )
instancer["orientation"].setValue( "orientation" )
self.assertTrue(
imath.V3f( 4, 0, -1 ).equalWithAbsError(
imath.V3f( 1, 0, 0 ) * instancer["out"].transform( "/object/instances/sphere/0" ),
0.00001
)
)
instancer["scale"].setValue( "scale" )
self.assertTrue(
imath.V3f( 4, 0, -2 ).equalWithAbsError(
imath.V3f( 1, 0, 0 ) * instancer["out"].transform( "/object/instances/sphere/0" ),
0.00001
)
)
instancer["scale"].setValue( "uniformScale" )
self.assertTrue(
imath.V3f( 4, 0, -10 ).equalWithAbsError(
imath.V3f( 1, 0, 0 ) * instancer["out"].transform( "/object/instances/sphere/0" ),
0.00001
)
)
def testIndices( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 4 ) ] ) )
points["index"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ 0, 1, 1, 0 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
cube = GafferScene.Cube()
instances = GafferScene.Parent()
instances["in"].setInput( sphere["out"] )
instances["child"].setInput( cube["out"] )
instances["parent"].setValue( "/" )
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( instances["out"] )
instancer["parent"].setValue( "/object" )
instancer["index"].setValue( "index" )
self.assertEqual( instancer["out"].childNames( "/object/instances" ), IECore.InternedStringVectorData( [ "sphere", "cube" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere" ), IECore.InternedStringVectorData( [ "0", "3" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube" ), IECore.InternedStringVectorData( [ "1", "2" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere/0" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere/3" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube/1" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube/2" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].object( "/object/instances" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/cube" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere/0" ), sphere["out"].object( "/sphere" ) )
self.assertEqual( instancer["out"].object( "/object/instances/sphere/3" ), sphere["out"].object( "/sphere" ) )
self.assertEqual( instancer["out"].object( "/object/instances/cube/1" ), cube["out"].object( "/cube" ) )
self.assertEqual( instancer["out"].object( "/object/instances/cube/2" ), cube["out"].object( "/cube" ) )
self.assertSceneValid( instancer["out"] )
def testSets( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 4 ) ] ) )
points["index"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ 0, 1, 1, 0 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
sphere["sets"].setValue( "sphereSet" )
cube = GafferScene.Cube()
cube["sets"].setValue( "cubeSet" )
cubeGroup = GafferScene.Group()
cubeGroup["name"].setValue( "cubeGroup" )
cubeGroup["in"][0].setInput( cube["out"] )
instances = GafferScene.Parent()
instances["in"].setInput( sphere["out"] )
instances["child"].setInput( cubeGroup["out"] )
instances["parent"].setValue( "/" )
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( instances["out"] )
instancer["parent"].setValue( "/object" )
instancer["index"].setValue( "index" )
self.assertEqual(
instancer["out"]["setNames"].getValue(),
IECore.InternedStringVectorData( [ "sphereSet", "cubeSet" ] )
)
self.assertEqual(
set( instancer["out"].set( "sphereSet" ).value.paths() ),
{
"/object/instances/sphere/0",
"/object/instances/sphere/3",
}
)
self.assertEqual(
set( instancer["out"].set( "cubeSet" ).value.paths() ),
{
"/object/instances/cubeGroup/1/cube",
"/object/instances/cubeGroup/2/cube",
}
)
def testIds( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 4 ) ] ) )
points["id"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ 10, 100, 111, 5 ] ),
)
points["index"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ 0, 1, 0, 1 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
cube = GafferScene.Cube()
instances = GafferScene.Parent()
instances["in"].setInput( sphere["out"] )
instances["child"].setInput( cube["out"] )
instances["parent"].setValue( "/" )
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( instances["out"] )
instancer["parent"].setValue( "/object" )
instancer["index"].setValue( "index" )
instancer["id"].setValue( "id" )
self.assertEqual( instancer["out"].childNames( "/object/instances" ), IECore.InternedStringVectorData( [ "sphere", "cube" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere" ), IECore.InternedStringVectorData( [ "10", "111" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube" ), IECore.InternedStringVectorData( [ "5", "100" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere/10" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere/111" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube/100" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube/5" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].object( "/object/instances" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/cube" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere/10" ), sphere["out"].object( "/sphere" ) )
self.assertEqual( instancer["out"].object( "/object/instances/sphere/111" ), sphere["out"].object( "/sphere" ) )
self.assertEqual( instancer["out"].object( "/object/instances/cube/100" ), cube["out"].object( "/cube" ) )
self.assertEqual( instancer["out"].object( "/object/instances/cube/5" ), cube["out"].object( "/cube" ) )
self.assertEqual( instancer["out"].transform( "/object/instances" ), imath.M44f() )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere" ), imath.M44f() )
self.assertEqual( instancer["out"].transform( "/object/instances/cube" ), imath.M44f() )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/10" ), imath.M44f() )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/111" ), imath.M44f().translate( imath.V3f( 2, 0, 0 ) ) )
self.assertEqual( instancer["out"].transform( "/object/instances/cube/100" ), imath.M44f().translate( imath.V3f( 1, 0, 0 ) ) )
self.assertEqual( instancer["out"].transform( "/object/instances/cube/5" ), imath.M44f().translate( imath.V3f( 3, 0, 0 ) ) )
self.assertSceneValid( instancer["out"] )
def testNegativeIdsAndIndices( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 2 ) ] ) )
points["id"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ -10, -5 ] ),
)
points["index"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ -1, -2 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
cube = GafferScene.Cube()
instances = GafferScene.Parent()
instances["in"].setInput( sphere["out"] )
instances["child"].setInput( cube["out"] )
instances["parent"].setValue( "/" )
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( instances["out"] )
instancer["parent"].setValue( "/object" )
instancer["index"].setValue( "index" )
instancer["id"].setValue( "id" )
self.assertEqual( instancer["out"].childNames( "/object/instances" ), IECore.InternedStringVectorData( [ "sphere", "cube" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere" ), IECore.InternedStringVectorData( [ "-5" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube" ), IECore.InternedStringVectorData( [ "-10" ] ) )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere/-5" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].childNames( "/object/instances/cube/-10" ), IECore.InternedStringVectorData() )
self.assertEqual( instancer["out"].object( "/object/instances" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/cube" ), IECore.NullObject.defaultNullObject() )
self.assertEqual( instancer["out"].object( "/object/instances/sphere/-5" ), sphere["out"].object( "/sphere" ) )
self.assertEqual( instancer["out"].object( "/object/instances/cube/-10" ), cube["out"].object( "/cube" ) )
self.assertSceneValid( instancer["out"] )
def testDuplicateIds( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 6 ) ] ) )
points["id"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.IntVectorData( [ 0, 0, 2, 2, 4, 4 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/object" )
instancer["id"].setValue( "id" )
self.assertSceneValid( instancer["out"] )
self.assertEqual( instancer["out"].childNames( "/object/instances/sphere" ), IECore.InternedStringVectorData( [ "0", "2", "4" ] ) )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/0" ), imath.M44f().translate( imath.V3f( 0, 0, 0 ) ) )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/2" ), imath.M44f().translate( imath.V3f( 2, 0, 0 ) ) )
self.assertEqual( instancer["out"].transform( "/object/instances/sphere/4" ), imath.M44f().translate( imath.V3f( 4, 0, 0 ) ) )
def testAttributes( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 2 ) ] ) )
points["testFloat"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.FloatVectorData( [ 0, 1 ] ),
)
points["testColor"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.Color3fVectorData( [ imath.Color3f( 1, 0, 0 ), imath.Color3f( 0, 1, 0 ) ] ),
)
points["testPoint"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.V3fVectorData(
[ imath.V3f( 0, 0, 0 ), imath.V3f( 1, 1, 1 ) ],
IECore.GeometricData.Interpretation.Point
),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/object" )
self.assertEqual(
instancer["out"].attributes( "/object/instances" ),
IECore.CompoundObject()
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere" ),
IECore.CompoundObject()
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/0" ),
IECore.CompoundObject()
)
instancer["attributes"].setValue( "testFloat testColor testPoint" )
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/0" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 0.0 ),
"testColor" : IECore.Color3fData( imath.Color3f( 1, 0, 0 ) ),
"testPoint" : IECore.V3fData(
imath.V3f( 0 ),
IECore.GeometricData.Interpretation.Point
)
} )
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/1" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 1.0 ),
"testColor" : IECore.Color3fData( imath.Color3f( 0, 1, 0 ) ),
"testPoint" : IECore.V3fData(
imath.V3f( 1 ),
IECore.GeometricData.Interpretation.Point
)
} )
)
def testEmptyAttributesHaveConstantHash( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 2 ) ] ) )
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/object" )
self.assertEqual(
instancer["out"].attributesHash( "/object/instances/sphere/0" ),
instancer["out"].attributesHash( "/object/instances/sphere/1" ),
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/0" ),
instancer["out"].attributes( "/object/instances/sphere/1" ),
)
def testEditAttributes( self ) :
points = IECoreScene.PointsPrimitive( IECore.V3fVectorData( [ imath.V3f( x, 0, 0 ) for x in range( 0, 2 ) ] ) )
points["testFloat"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.FloatVectorData( [ 0, 1 ] ),
)
objectToScene = GafferScene.ObjectToScene()
objectToScene["object"].setValue( points )
sphere = GafferScene.Sphere()
instancer = GafferScene.Instancer()
instancer["in"].setInput( objectToScene["out"] )
instancer["instances"].setInput( sphere["out"] )
instancer["parent"].setValue( "/object" )
instancer["attributes"].setValue( "test*" )
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/0" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 0.0 ),
} )
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/1" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 1.0 ),
} )
)
points["testFloat"] = IECoreScene.PrimitiveVariable(
IECoreScene.PrimitiveVariable.Interpolation.Vertex,
IECore.FloatVectorData( [ 1, 2 ] ),
)
objectToScene["object"].setValue( points )
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/0" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 1.0 ),
} )
)
self.assertEqual(
instancer["out"].attributes( "/object/instances/sphere/1" ),
IECore.CompoundObject( {
"testFloat" : IECore.FloatData( 2.0 ),
} )
)
def testUnconnectedInstanceInput( self ) :
plane = GafferScene.Plane()
plane["sets"].setValue( "A" )
plane["divisions"].setValue( imath.V2i( 1, 500 ) )
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["parent"].setValue( "/plane" )
self.assertEqual( instancer["out"].set( "A" ).value.paths(), [ "/plane" ] )
def testDirtyPropagation( self ) :
plane = GafferScene.Plane()
instancer = GafferScene.Instancer()
instancer["in"].setInput( plane["out"] )
instancer["instances"].setInput( plane["out"] )
cs = GafferTest.CapturingSlot( instancer.plugDirtiedSignal() )
instancer["parent"].setValue( "plane" )
self.assertIn( instancer["out"]["childNames"], { x[0] for x in cs } )
del cs[:]
filter = GafferScene.PathFilter()
instancer["filter"].setInput( filter["out"] )
self.assertIn( instancer["out"]["childNames"], { x[0] for x in cs } )
if __name__ == "__main__":
unittest.main()
|
import os
import time
import subprocess # nosec
import logging
from sqlalchemy import create_engine, text, inspect
from sqlalchemy.orm import Session
from sqlalchemy.exc import OperationalError
from weconnect.elements import vehicle
from weconnect.addressable import AddressableLeaf
from weconnect.elements.range_status import RangeStatus
from vwsfriend.agents.range_agent import RangeAgent
from vwsfriend.agents.battery_agent import BatteryAgent
from vwsfriend.agents.charge_agent import ChargeAgent
from vwsfriend.agents.state_agent import StateAgent
from vwsfriend.agents.climatization_agent import ClimatizationAgent
from vwsfriend.agents.refuel_agent import RefuelAgent
from vwsfriend.agents.trip_agent import TripAgent
from vwsfriend.agents.weconnect_error_agent import WeconnectErrorAgent
from vwsfriend.agents.abrp.abrp_agent import ABRPAgent
from vwsfriend.model.base import Base
from vwsfriend.model import Vehicle
from vwsfriend.model.migrations import run_database_migrations
LOG = logging.getLogger("VWsFriend")
class AgentConnector():
def __init__(self, weConnect, dbUrl, interval, withDB=False, withABRP=False, configDir='./'):
self.agents = {}
if withDB:
if os.path.isfile(configDir + '/provisioning/database.vwsfrienddbbackup'):
try:
with open(configDir + '/provisioning/database.vwsfrienddbbackup', mode='rb') as file:
LOG.info('Trying to restore database backup')
process = subprocess.run(['pg_restore', '--clean', '--if-exists', '--format', 'c', '--dbname', dbUrl], stdin=file, # nosec
stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False)
if process.returncode != 0:
LOG.error('pg_restore returned %d: %s', process.returncode, process.stderr.decode('ascii'))
else:
LOG.info('It looks like the backup could be successfully restored')
finally:
os.remove(configDir + '/provisioning/database.vwsfrienddbbackup')
engine = create_engine(dbUrl, pool_pre_ping=True)
self.session = Session(engine)
while True:
try:
self.session.query(text('1')).from_statement(text('SELECT 1')).all()
except OperationalError as err:
LOG.error('Could not establish a connection to database, will try again after 10 seconds: %s', err)
time.sleep(10)
continue
break
if not inspect(engine).has_table("vehicles"):
LOG.info('It looks like you have an empty database will create all tables')
Base.metadata.create_all(engine)
run_database_migrations(dsn=dbUrl, stampOnly=True)
else:
LOG.info('It looks like you have an existing database will check if an upgrade is necessary')
run_database_migrations(dsn=dbUrl)
LOG.info('Database upgrade done')
self.vehicles = self.session.query(Vehicle).all()
self.withDB = withDB
self.withABRP = withABRP
self.interval = interval
self.configDir = configDir
weConnect.addObserver(self.onEnable, AddressableLeaf.ObserverEvent.ENABLED, onUpdateComplete=True)
self.agents["none"] = []
if self.withDB:
self.agents["none"].append(WeconnectErrorAgent(self.session, weConnect))
def onEnable(self, element, flags):
if (flags & AddressableLeaf.ObserverEvent.ENABLED) and isinstance(element, vehicle.Vehicle):
if element.vin not in self.agents:
self.agents[element.vin.value] = []
if self.withDB:
foundVehicle = None
for dbVehicle in self.vehicles:
if dbVehicle.vin == element.vin.value:
LOG.info('Found matching vehicle for vin %s in database', element.vin.value)
foundVehicle = dbVehicle
break
if foundVehicle is None:
LOG.info('Found no matching vehicle for vin %s in database, will create a new one', element.vin.value)
foundVehicle = Vehicle(element.vin.value)
self.session.add(foundVehicle)
self.session.commit()
foundVehicle.connect(element)
self.agents[element.vin.value].append(RangeAgent(self.session, foundVehicle))
self.agents[element.vin.value].append(BatteryAgent(self.session, foundVehicle))
self.agents[element.vin.value].append(ChargeAgent(self.session, foundVehicle))
self.agents[element.vin.value].append(StateAgent(self.session, foundVehicle, updateInterval=self.interval))
self.agents[element.vin.value].append(ClimatizationAgent(self.session, foundVehicle))
self.agents[element.vin.value].append(RefuelAgent(self.session, foundVehicle))
self.agents[element.vin.value].append(TripAgent(self.session, foundVehicle, updateInterval=self.interval))
if foundVehicle.carType == RangeStatus.CarType.UNKNOWN:
LOG.warning('Vehicle %s has an unkown carType, thus some features won\'t be available until the correct carType could be detected',
foundVehicle.vin)
if self.withABRP:
self.agents[element.vin.value].append(ABRPAgent(weConnectVehicle=element, tokenfile=f'{self.configDir}/{element.vin.value}-ABRP.token'))
def commit(self):
for vehicleAgents in self.agents.values():
for agent in vehicleAgents:
agent.commit()
if self.withDB:
self.session.commit()
|
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
'''
JSON related utilities.
This module provides a few things:
1) A handy function for getting an object down to something that can be
JSON serialized. See to_primitive().
2) Wrappers around loads() and dumps(). The dumps() wrapper will
automatically use to_primitive() for you if needed.
3) This sets up anyjson to use the loads() and dumps() wrappers if anyjson
is available.
'''
import codecs
import datetime
import functools
import inspect
import itertools
import sys
if sys.version_info < (2, 7):
# On Python <= 2.6, json module is not C boosted, so try to use
# simplejson module if available
try:
import simplejson as json
except ImportError:
import json
else:
import json
import six
import six.moves.xmlrpc_client as xmlrpclib
from ceilometer.openstack.common import gettextutils
from ceilometer.openstack.common import importutils
from ceilometer.openstack.common import strutils
from ceilometer.openstack.common import timeutils
netaddr = importutils.try_import("netaddr")
_nasty_type_tests = [inspect.ismodule, inspect.isclass, inspect.ismethod,
inspect.isfunction, inspect.isgeneratorfunction,
inspect.isgenerator, inspect.istraceback, inspect.isframe,
inspect.iscode, inspect.isbuiltin, inspect.isroutine,
inspect.isabstract]
_simple_types = (six.string_types + six.integer_types
+ (type(None), bool, float))
def to_primitive(value, convert_instances=False, convert_datetime=True,
level=0, max_depth=3):
"""Convert a complex object into primitives.
Handy for JSON serialization. We can optionally handle instances,
but since this is a recursive function, we could have cyclical
data structures.
To handle cyclical data structures we could track the actual objects
visited in a set, but not all objects are hashable. Instead we just
track the depth of the object inspections and don't go too deep.
Therefore, convert_instances=True is lossy ... be aware.
"""
# handle obvious types first - order of basic types determined by running
# full tests on nova project, resulting in the following counts:
# 572754 <type 'NoneType'>
# 460353 <type 'int'>
# 379632 <type 'unicode'>
# 274610 <type 'str'>
# 199918 <type 'dict'>
# 114200 <type 'datetime.datetime'>
# 51817 <type 'bool'>
# 26164 <type 'list'>
# 6491 <type 'float'>
# 283 <type 'tuple'>
# 19 <type 'long'>
if isinstance(value, _simple_types):
return value
if isinstance(value, datetime.datetime):
if convert_datetime:
return timeutils.strtime(value)
else:
return value
# value of itertools.count doesn't get caught by nasty_type_tests
# and results in infinite loop when list(value) is called.
if type(value) == itertools.count:
return six.text_type(value)
# FIXME(vish): Workaround for LP bug 852095. Without this workaround,
# tests that raise an exception in a mocked method that
# has a @wrap_exception with a notifier will fail. If
# we up the dependency to 0.5.4 (when it is released) we
# can remove this workaround.
if getattr(value, '__module__', None) == 'mox':
return 'mock'
if level > max_depth:
return '?'
# The try block may not be necessary after the class check above,
# but just in case ...
try:
recursive = functools.partial(to_primitive,
convert_instances=convert_instances,
convert_datetime=convert_datetime,
level=level,
max_depth=max_depth)
if isinstance(value, dict):
return dict((k, recursive(v)) for k, v in six.iteritems(value))
elif isinstance(value, (list, tuple)):
return [recursive(lv) for lv in value]
# It's not clear why xmlrpclib created their own DateTime type, but
# for our purposes, make it a datetime type which is explicitly
# handled
if isinstance(value, xmlrpclib.DateTime):
value = datetime.datetime(*tuple(value.timetuple())[:6])
if convert_datetime and isinstance(value, datetime.datetime):
return timeutils.strtime(value)
elif isinstance(value, gettextutils.Message):
return value.data
elif hasattr(value, 'iteritems'):
return recursive(dict(value.iteritems()), level=level + 1)
elif hasattr(value, '__iter__'):
return recursive(list(value))
elif convert_instances and hasattr(value, '__dict__'):
# Likely an instance of something. Watch for cycles.
# Ignore class member vars.
return recursive(value.__dict__, level=level + 1)
elif netaddr and isinstance(value, netaddr.IPAddress):
return six.text_type(value)
else:
if any(test(value) for test in _nasty_type_tests):
return six.text_type(value)
return value
except TypeError:
# Class objects are tricky since they may define something like
# __iter__ defined but it isn't callable as list().
return six.text_type(value)
def dumps(value, default=to_primitive, **kwargs):
return json.dumps(value, default=default, **kwargs)
def dump(obj, fp, *args, **kwargs):
return json.dump(obj, fp, *args, **kwargs)
def loads(s, encoding='utf-8', **kwargs):
return json.loads(strutils.safe_decode(s, encoding), **kwargs)
def load(fp, encoding='utf-8', **kwargs):
return json.load(codecs.getreader(encoding)(fp), **kwargs)
try:
import anyjson
except ImportError:
pass
else:
anyjson._modules.append((__name__, 'dumps', TypeError,
'loads', ValueError, 'load'))
anyjson.force_implementation(__name__)
|
class Template extends nodefony.Service {
constructor(container, engine, options) {
super("TEMPLATE", container, container.get("notificationsCenter"));
this.settings = options;
this.engine = engine;
}
getEngine() {
return this.engine;
}
extendFunction() {
this.log("extendFunction You must redefine this function in engine templating");
}
extendFilter() {
this.log("extendFilter You must redefine this function in engine templating");
}
}
nodefony.Template = Template;
module.exports = Template;
|
import React, { lazy } from 'react'
import {
CBadge,
CButton,
CButtonGroup,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCol,
CProgress,
CRow,
CCallout
} from '@coreui/react'
import CIcon from '@coreui/icons-react'
import MainChartExample from '../charts/MainChartExample.js'
const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js'))
const WidgetsBrand = lazy(() => import('../widgets/WidgetsBrand.js'))
const Dashboard = () => {
return (
<>
<WidgetsDropdown />
<CCard>
<CCardBody>
<CRow>
<CCol sm="5">
<h4 id="traffic" className="card-title mb-0">Traffic</h4>
<div className="small text-muted">November 2017</div>
</CCol>
<CCol sm="7" className="d-none d-md-block">
<CButton color="primary" className="float-right">
<CIcon name="cil-cloud-download"/>
</CButton>
<CButtonGroup className="float-right mr-3">
{
['Day', 'Month', 'Year'].map(value => (
<CButton
color="outline-secondary"
key={value}
className="mx-0"
active={value === 'Month'}
>
{value}
</CButton>
))
}
</CButtonGroup>
</CCol>
</CRow>
<MainChartExample style={{height: '300px', marginTop: '40px'}}/>
</CCardBody>
<CCardFooter>
<CRow className="text-center">
<CCol md sm="12" className="mb-sm-2 mb-0">
<div className="text-muted">Visits</div>
<strong>29.703 Users (40%)</strong>
<CProgress
className="progress-xs mt-2"
precision={1}
color="success"
value={40}
/>
</CCol>
<CCol md sm="12" className="mb-sm-2 mb-0 d-md-down-none">
<div className="text-muted">Unique</div>
<strong>24.093 Users (20%)</strong>
<CProgress
className="progress-xs mt-2"
precision={1}
color="info"
value={40}
/>
</CCol>
<CCol md sm="12" className="mb-sm-2 mb-0">
<div className="text-muted">Pageviews</div>
<strong>78.706 Views (60%)</strong>
<CProgress
className="progress-xs mt-2"
precision={1}
color="warning"
value={40}
/>
</CCol>
<CCol md sm="12" className="mb-sm-2 mb-0">
<div className="text-muted">New Users</div>
<strong>22.123 Users (80%)</strong>
<CProgress
className="progress-xs mt-2"
precision={1}
color="danger"
value={40}
/>
</CCol>
<CCol md sm="12" className="mb-sm-2 mb-0 d-md-down-none">
<div className="text-muted">Bounce Rate</div>
<strong>Average Rate (40.15%)</strong>
<CProgress
className="progress-xs mt-2"
precision={1}
value={40}
/>
</CCol>
</CRow>
</CCardFooter>
</CCard>
<WidgetsBrand withCharts/>
<CRow>
<CCol>
<CCard>
<CCardHeader>
Traffic {' & '} Sales
</CCardHeader>
<CCardBody>
<CRow>
<CCol xs="12" md="6" xl="6">
<CRow>
<CCol sm="6">
<CCallout color="info">
<small className="text-muted">New Clients</small>
<br />
<strong className="h4">9,123</strong>
</CCallout>
</CCol>
<CCol sm="6">
<CCallout color="danger">
<small className="text-muted">Recurring Clients</small>
<br />
<strong className="h4">22,643</strong>
</CCallout>
</CCol>
</CRow>
<hr className="mt-0" />
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Monday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="34" />
<CProgress className="progress-xs" color="danger" value="78" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Tuesday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="56" />
<CProgress className="progress-xs" color="danger" value="94" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Wednesday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="12" />
<CProgress className="progress-xs" color="danger" value="67" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Thursday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="43" />
<CProgress className="progress-xs" color="danger" value="91" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Friday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="22" />
<CProgress className="progress-xs" color="danger" value="73" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Saturday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="53" />
<CProgress className="progress-xs" color="danger" value="82" />
</div>
</div>
<div className="progress-group mb-4">
<div className="progress-group-prepend">
<span className="progress-group-text">
Sunday
</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="info" value="9" />
<CProgress className="progress-xs" color="danger" value="69" />
</div>
</div>
<div className="legend text-center">
<small>
<sup className="px-1"><CBadge shape="pill" color="info"> </CBadge></sup>
New clients
<sup className="px-1"><CBadge shape="pill" color="danger"> </CBadge></sup>
Recurring clients
</small>
</div>
</CCol>
<CCol xs="12" md="6" xl="6">
<CRow>
<CCol sm="6">
<CCallout color="warning">
<small className="text-muted">Pageviews</small>
<br />
<strong className="h4">78,623</strong>
</CCallout>
</CCol>
<CCol sm="6">
<CCallout color="success">
<small className="text-muted">Organic</small>
<br />
<strong className="h4">49,123</strong>
</CCallout>
</CCol>
</CRow>
<hr className="mt-0" />
<div className="progress-group mb-4">
<div className="progress-group-header">
<CIcon className="progress-group-icon" name="cil-user" />
<span className="title">Male</span>
<span className="ml-auto font-weight-bold">43%</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="warning" value="43" />
</div>
</div>
<div className="progress-group mb-5">
<div className="progress-group-header">
<CIcon className="progress-group-icon" name="cil-user-female" />
<span className="title">Female</span>
<span className="ml-auto font-weight-bold">37%</span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="warning" value="37" />
</div>
</div>
<div className="progress-group">
<div className="progress-group-header">
<CIcon className="progress-group-icon" name="cil-globe-alt" />
<span className="title">Organic Search</span>
<span className="ml-auto font-weight-bold">191,235 <span className="text-muted small">(56%)</span></span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="success" value="56" />
</div>
</div>
<div className="progress-group">
<div className="progress-group-header">
<CIcon name="cib-facebook" className="progress-group-icon" />
<span className="title">Facebook</span>
<span className="ml-auto font-weight-bold">51,223 <span className="text-muted small">(15%)</span></span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="success" value="15" />
</div>
</div>
<div className="progress-group">
<div className="progress-group-header">
<CIcon name="cib-twitter" className="progress-group-icon" />
<span className="title">Twitter</span>
<span className="ml-auto font-weight-bold">37,564 <span className="text-muted small">(11%)</span></span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="success" value="11" />
</div>
</div>
<div className="progress-group">
<div className="progress-group-header">
<CIcon name="cib-linkedin" className="progress-group-icon" />
<span className="title">LinkedIn</span>
<span className="ml-auto font-weight-bold">27,319 <span className="text-muted small">(8%)</span></span>
</div>
<div className="progress-group-bars">
<CProgress className="progress-xs" color="success" value="8" />
</div>
</div>
<div className="divider text-center">
<CButton color="link" size="sm" className="text-muted">
<CIcon name="cil-options" />
</CButton>
</div>
</CCol>
</CRow>
<br />
<table className="table table-hover table-outline mb-0 d-none d-sm-table">
<thead className="thead-light">
<tr>
<th className="text-center"><CIcon name="cil-people" /></th>
<th>User</th>
<th className="text-center">Country</th>
<th>Usage</th>
<th className="text-center">Payment Method</th>
<th>Activity</th>
</tr>
</thead>
<tbody>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/1.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-success"></span>
</div>
</td>
<td>
<div>Yiorgos Avraamu</div>
<div className="small text-muted">
<span>New</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-us" title="us" id="us" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>50%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="success" value="50" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-cc-mastercard" />
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>10 sec ago</strong>
</td>
</tr>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/2.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-danger"></span>
</div>
</td>
<td>
<div>Avram Tarasios</div>
<div className="small text-muted">
<span>Recurring</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-br" title="br" id="br" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>10%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="info" value="10" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-cc-visa" />
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>5 minutes ago</strong>
</td>
</tr>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/3.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-warning"></span>
</div>
</td>
<td>
<div>Quintin Ed</div>
<div className="small text-muted">
<span>New</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-in" title="in" id="in" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>74%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="warning" value="74" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-stripe" />
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>1 hour ago</strong>
</td>
</tr>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/4.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-secondary"></span>
</div>
</td>
<td>
<div>Enéas Kwadwo</div>
<div className="small text-muted">
<span>New</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-fr" title="fr" id="fr" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>98%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="danger" value="98" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-paypal" />
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>Last month</strong>
</td>
</tr>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/5.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-success"></span>
</div>
</td>
<td>
<div>Agapetus Tadeáš</div>
<div className="small text-muted">
<span>New</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-es" title="es" id="es" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>22%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="info" value="22" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-google-pay"/>
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>Last week</strong>
</td>
</tr>
<tr>
<td className="text-center">
<div className="c-avatar">
<img src={'avatars/6.jpg'} className="c-avatar-img" alt="admin@bootstrapmaster.com" />
<span className="c-avatar-status bg-danger"></span>
</div>
</td>
<td>
<div>Friderik Dávid</div>
<div className="small text-muted">
<span>New</span> | Registered: Jan 1, 2015
</div>
</td>
<td className="text-center">
<CIcon height={25} name="cif-pl" title="pl" id="pl" />
</td>
<td>
<div className="clearfix">
<div className="float-left">
<strong>43%</strong>
</div>
<div className="float-right">
<small className="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
</div>
</div>
<CProgress className="progress-xs" color="success" value="43" />
</td>
<td className="text-center">
<CIcon height={25} name="cib-cc-amex" />
</td>
<td>
<div className="small text-muted">Last login</div>
<strong>Yesterday</strong>
</td>
</tr>
</tbody>
</table>
</CCardBody>
</CCard>
</CCol>
</CRow>
</>
)
}
export default Dashboard
|
from discord.ext.commands import AutoShardedBot
from mobiglas.context import Context
class MobiGlasBot(AutoShardedBot):
"""Custom Discord Bot class for MobiGlasBot"""
async def process_commands(self, message):
"""Processes commands that are registed with the bot and it's groups.
Without this being run in the main `on_message` event, commands will
not be processed.
"""
if message.author.bot:
return
ctx = await self.get_context(message, cls=Context)
if not ctx.command:
return
await self.invoke(ctx)
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
#用于进行http请求,以及MD5加密,生成签名的工具类
import http.client
import urllib
import json
import hashlib
import time
def buildMySign(params,secretKey):
sign = ''
for key in sorted(params.keys()):
sign += key + '=' + str(params[key]) +'&'
data = sign+'secret_key='+secretKey
return hashlib.md5(data.encode("utf8")).hexdigest().upper()
def httpGet(url,resource,params=''):
# headers={'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36'}
conn = http.client.HTTPSConnection(url, timeout=10)
# conn.request("GET",resource + '?' + params,headers=headers)
conn.request("GET", resource + '?' + params)
response = conn.getresponse()
data = response.read().decode('utf-8')
return json.loads(data)
def httpPost(url,resource,params):
headers = {
"Content-type" : "application/x-www-form-urlencoded",
}
conn = http.client.HTTPSConnection(url, timeout=10)
temp_params = urllib.parse.urlencode(params)
conn.request("POST", resource, temp_params, headers)
response = conn.getresponse()
data = response.read().decode('utf-8')
params.clear()
conn.close()
return data
|
/*
* Example from compiler.rst.
*/
/*===
321
123
===*/
var foo = 123;
var myfunc;
function f(x) {
eval(x);
return function () { print(foo); }
}
// declare 'foo' in f(), returned closure sees this 'foo' instead
// of the global one
myfunc = f('var foo = 321');
myfunc(); // prints 321, not 123
// don't declare 'foo' in f(), returned closure sees the global 'foo'
// instead of the global one
myfunc = f('var quux = 432');
myfunc(); // prints 123
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File name : get_forkcms_paths.py
# Author : Podalirius (@podalirius_)
# Date created : 22 Nov 2021
import json
import os
import sys
import requests
import argparse
from bs4 import BeautifulSoup
def parseArgs():
parser = argparse.ArgumentParser(description="Description message")
parser.add_argument("-v", "--verbose", default=None, action="store_true", help='Verbose mode (default: False)')
parser.add_argument("-f", "--force", default=None, action="store_true", help='Force updating existing wordlists. (default: False)')
parser.add_argument("-n", "--no-commit", default=False, action="store_true", help='Disable automatic commit (default: False)')
return parser.parse_args()
def get_releases_from_github(username, repo, per_page=100):
# https://docs.github.com/en/rest/reference/repos#releases
print("[+] Loading %s/%s versions ... " % (username, repo))
versions, page_number, running = {}, 1, True
while running:
r = requests.get(
"https://api.github.com/repos/%s/%s/releases?per_page=%d&page=%d" % (username, repo, per_page, page_number),
headers={"Accept": "application/vnd.github.v3+json"}
)
if type(r.json()) == dict:
if "message" in r.json().keys():
print(r.json()['message'])
running = False
else:
for release in r.json():
if release['tag_name'].startswith('v'):
release['tag_name'] = release['tag_name'][1:]
versions[release['tag_name']] = release['zipball_url']
if len(r.json()) < per_page:
running = False
page_number += 1
print('[>] Loaded %d %s/%s versions.' % (len(versions.keys()), username, repo))
return versions
def save_wordlist(result, version, filename):
list_of_files = [l.strip() for l in result.split()]
f = open('./versions/%s/%s' % (version, filename), "w")
for remotefile in list_of_files:
if remotefile not in ['.', './', '..', '../']:
if remotefile.startswith('./'):
remotefile = remotefile[1:]
f.write(remotefile + "\n")
f.close()
if __name__ == '__main__':
options = parseArgs()
os.chdir(os.path.dirname(__file__))
versions = get_releases_from_github("forkcms", "forkcms")
for version in versions.keys():
str_version = version
generate = False
if not os.path.exists('./versions/%s/' % (str_version)):
os.makedirs('./versions/%s/' % (str_version), exist_ok=True)
generate = True
elif options.force:
generate = True
elif options.verbose:
print('[>] Ignoring forkcms version %s (local wordlists exists)' % str_version)
if generate:
print('[>] Extracting wordlists for forkcms version %s' % str_version)
dl_url = versions[version]
if options.verbose:
print(" [>] Create dir ...")
os.system('rm -rf /tmp/paths_forkcms_extract/; mkdir -p /tmp/paths_forkcms_extract/')
else:
os.popen('rm -rf /tmp/paths_forkcms_extract/; mkdir -p /tmp/paths_forkcms_extract/').read()
if options.verbose:
print(" [>] Getting file ...")
print('wget -q --show-progress "%s" -O /tmp/paths_forkcms_extract/forkcms.zip' % dl_url)
os.system('wget -q --show-progress "%s" -O /tmp/paths_forkcms_extract/forkcms.zip' % dl_url)
else:
os.popen('wget -q "%s" -O /tmp/paths_forkcms_extract/forkcms.zip' % dl_url).read()
if options.verbose:
print(" [>] Unzipping archive ...")
os.system('cd /tmp/paths_forkcms_extract/; unzip forkcms.zip 1>/dev/null')
else:
os.popen('cd /tmp/paths_forkcms_extract/; unzip forkcms.zip 1>/dev/null').read()
if options.verbose:
print(" [>] Getting wordlist ...")
save_wordlist(os.popen('cd /tmp/paths_forkcms_extract/*/; find .').read(), version, filename="forkcms.txt")
save_wordlist(os.popen('cd /tmp/paths_forkcms_extract/*/; find . -type f').read(), version, filename="forkcms_files.txt")
save_wordlist(os.popen('cd /tmp/paths_forkcms_extract/*/; find . -type d').read(), version, filename="forkcms_dirs.txt")
if not options.no_commit:
if os.path.exists("./versions/"):
if options.verbose:
print(" [>] Committing results ...")
os.system('git add ./versions/%s/*; git commit -m "Added wordlists for forkcms version %s";' % (version, version))
else:
os.popen('git add ./versions/%s/*; git commit -m "Added wordlists for forkcms version %s";' % (version, version)).read()
if os.path.exists("./versions/"):
if options.verbose:
print(" [>] Creating common wordlists ...")
os.system('find ./versions/ -type f -name "forkcms.txt" -exec cat {} \\; | sort -u > forkcms.txt')
os.system('find ./versions/ -type f -name "forkcms_files.txt" -exec cat {} \\; | sort -u > forkcms_files.txt')
os.system('find ./versions/ -type f -name "forkcms_dirs.txt" -exec cat {} \\; | sort -u > forkcms_dirs.txt')
if not options.no_commit:
if options.verbose:
print(" [>] Committing results ...")
os.system('git add *.txt; git commit -m "Added general wordlists for forkcms";')
else:
os.popen('git add *.txt; git commit -m "Added general wordlists for forkcms";').read()
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Icon = require('../Icon-e8f71a9c.js');
require('@carbon/icon-helpers');
require('prop-types');
var React = _interopDefault(require('react'));
var _ref2 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M7 12H4a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 014 4H7V6H4v4H7zM9 10H15V12H9zM17 10H23V12H17zM28 12H25V10h3V6H25V4h3a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 12zM17 4H23V6H17zM9 4H15V6H9zM28 28H4a2.0023 2.0023 0 01-2-2V22a2.0023 2.0023 0 012-2H28a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0128 28zM4 22v4H28V22zM2 15H30V17H2z"
});
var NameSpace32 = /*#__PURE__*/React.forwardRef(function NameSpace32(_ref, ref) {
var children = _ref.children,
rest = Icon._objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon.Icon, Icon._extends({
width: 32,
height: 32,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _ref2, children);
});
module.exports = NameSpace32;
|
#!/usr/bin/env python2
from scapy.all import *
import argparse, sys, re
# I think these days, HSTS run tings (https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). I find that request-attempts to Google using http versus https fail; seems to force HTTPS.
# Script still written for ceremonious reasons.
def Google(pkt):
if pkt.haslayer(Raw):
pload = pkt.getlayer(Raw).load
if 'GET' in pload:
if 'google' in pload.lower():
rexp = re.findall(r'(?i)\&q=(.*?)\&', pload)
if rexp:
temp = rexp[0].split('&')[0]
temp = temp.replace('q=', '').replace('+', ' ').replace("%20", ' ')
print("[+] Found term: %s" % temp)
def getargs():
ap = argparse.ArgumentParser(description="Sniff Google search terms")
ap.add_argument("-i", '--iface', type=str, default=None, help="interface to sniff on")
args, l = ap.parse_known_args()
if args.iface == None:
ap.print_help()
sys.exit()
else:
return args
def main():
try:
sniff(prn=Google, iface=(getargs()).iface, filter="tcp port 80")
except KeyboardInterrupt:
sys.exit()
if __name__=="__main__":
main()
|
export * from '@styled-icons/material/InsertDriveFile';
|
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 29 2017 23:22:24).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSURL.h>
@interface NSURL (EncodeUrl)
+ (id)safeUrlWithString:(id)arg1;
@end
|
import React from 'react'
import { animated, useTransition } from 'react-spring'
import MenuButton from './MenuButton'
import Menu from './Menu'
import useIsMobile from '../../hooks/useIsMobile'
const SideMenu = ({ indexlinks, menuOpen, toggleMenu, closeMenu }) => {
const isMobile = useIsMobile()
const menuTranstion = useTransition(menuOpen, null, {
from: { transform: 'translate3d(-100%,0,0)', opacity: 0.5 },
enter: { transform: 'translate3d(0, 0, 0)', opacity: 1 },
leave: { transform: 'translate3d(-100%,0,0)', opacity: 0.5 },
})
return (
<>
<MenuButton toggleMenu={toggleMenu} menuOpen={menuOpen} />
{isMobile ? (
menuTranstion.map(
({ item, key, props }) =>
item && (
<animated.nav
key={key}
style={{
zIndex: 11,
position: 'fixed',
top: 0,
left: 0,
height: '100vh',
...props,
}}
>
<Menu indexlinks={indexlinks} closeMenu={closeMenu} />
</animated.nav>
)
)
) : (
<Menu indexlinks={indexlinks} />
)}
</>
)
}
export default SideMenu
|
"""Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
"""
import logging
import urllib.parse
from typing import Any, Dict, List, Optional, Tuple
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
from pip._vendor.requests.models import Request, Response
from pip._vendor.requests.utils import get_netrc_auth
from pip._internal.utils.misc import (
ask,
ask_input,
ask_password,
remove_auth_from_url,
split_auth_netloc_from_url,
)
from pip._internal.vcs.versioncontrol import AuthInfo
logger = logging.getLogger(__name__)
Credentials = Tuple[str, str, str]
try:
import keyring
except ImportError:
keyring = None
except Exception as exc:
logger.warning(
"Keyring is skipped due to an exception: %s", str(exc),
)
keyring = None
def get_keyring_auth(url, username):
# type: (Optional[str], Optional[str]) -> Optional[AuthInfo]
"""Return the tuple auth for a given url from keyring."""
global keyring
if not url or not keyring:
return None
try:
try:
get_credential = keyring.get_credential
except AttributeError:
pass
else:
logger.debug("Getting credentials from keyring for %s", url)
cred = get_credential(url, username)
if cred is not None:
return cred.username, cred.password
return None
if username:
logger.debug("Getting password from keyring for %s", url)
password = keyring.get_password(url, username)
if password:
return username, password
except Exception as exc:
logger.warning(
"Keyring is skipped due to an exception: %s", str(exc),
)
keyring = None
return None
class MultiDomainBasicAuth(AuthBase):
def __init__(self, prompting=True, index_urls=None):
# type: (bool, Optional[List[str]]) -> None
self.prompting = prompting
self.index_urls = index_urls
self.passwords = {} # type: Dict[str, AuthInfo]
# When the user is prompted to enter credentials and keyring is
# available, we will offer to save them. If the user accepts,
# this value is set to the credentials they entered. After the
# request authenticates, the caller should call
# ``save_credentials`` to save these.
self._credentials_to_save = None # type: Optional[Credentials]
def _get_index_url(self, url):
# type: (str) -> Optional[str]
"""Return the original index URL matching the requested URL.
Cached or dynamically generated credentials may work against
the original index URL rather than just the netloc.
The provided url should have had its username and password
removed already. If the original index url had credentials then
they will be included in the return value.
Returns None if no matching index was found, or if --no-index
was specified by the user.
"""
if not url or not self.index_urls:
return None
for u in self.index_urls:
prefix = remove_auth_from_url(u).rstrip("/") + "/"
if url.startswith(prefix):
return u
return None
def _get_new_credentials(self, original_url, allow_netrc=True,
allow_keyring=False):
# type: (str, bool, bool) -> AuthInfo
"""Find and return credentials for the specified URL."""
# Split the credentials and netloc from the url.
url, netloc, url_user_password = split_auth_netloc_from_url(
original_url,
)
# Start with the credentials embedded in the url
username, password = url_user_password
if username is not None and password is not None:
logger.debug("Found credentials in url for %s", netloc)
return url_user_password
# Find a matching index url for this request
index_url = self._get_index_url(url)
if index_url:
# Split the credentials from the url.
index_info = split_auth_netloc_from_url(index_url)
if index_info:
index_url, _, index_url_user_password = index_info
logger.debug("Found index url %s", index_url)
# If an index URL was found, try its embedded credentials
if index_url and index_url_user_password[0] is not None:
username, password = index_url_user_password
if username is not None and password is not None:
logger.debug("Found credentials in index url for %s", netloc)
return index_url_user_password
# Get creds from netrc if we still don't have them
if allow_netrc:
netrc_auth = get_netrc_auth(original_url)
if netrc_auth:
logger.debug("Found credentials in netrc for %s", netloc)
return netrc_auth
# If we don't have a password and keyring is available, use it.
if allow_keyring:
# The index url is more specific than the netloc, so try it first
kr_auth = (
get_keyring_auth(index_url, username) or
get_keyring_auth(netloc, username)
)
if kr_auth:
logger.debug("Found credentials in keyring for %s", netloc)
return kr_auth
return username, password
def _get_url_and_credentials(self, original_url):
# type: (str) -> Tuple[str, Optional[str], Optional[str]]
"""Return the credentials to use for the provided URL.
If allowed, netrc and keyring may be used to obtain the
correct credentials.
Returns (url_without_credentials, username, password). Note
that even if the original URL contains credentials, this
function may return a different username and password.
"""
url, netloc, _ = split_auth_netloc_from_url(original_url)
# Use any stored credentials that we have for this netloc
username, password = self.passwords.get(netloc, (None, None))
if username is None and password is None:
# No stored credentials. Acquire new credentials without prompting
# the user. (e.g. from netrc, keyring, or the URL itself)
username, password = self._get_new_credentials(original_url)
if username is not None or password is not None:
# Convert the username and password if they're None, so that
# this netloc will show up as "cached" in the conditional above.
# Further, HTTPBasicAuth doesn't accept None, so it makes sense to
# cache the value that is going to be used.
username = username or ""
password = password or ""
# Store any acquired credentials.
self.passwords[netloc] = (username, password)
assert (
# Credentials were found
(username is not None and password is not None) or
# Credentials were not found
(username is None and password is None)
), f"Could not load credentials from url: {original_url}"
return url, username, password
def __call__(self, req):
# type: (Request) -> Request
# Get credentials for this request
url, username, password = self._get_url_and_credentials(req.url)
# Set the url of the request to the url without any credentials
req.url = url
if username is not None and password is not None:
# Send the basic auth with this request
req = HTTPBasicAuth(username, password)(req)
# Attach a hook to handle 401 responses
req.register_hook("response", self.handle_401)
return req
# Factored out to allow for easy patching in tests
def _prompt_for_password(self, netloc):
# type: (str) -> Tuple[Optional[str], Optional[str], bool]
username = ask_input(f"User for {netloc}: ")
if not username:
return None, None, False
auth = get_keyring_auth(netloc, username)
if auth and auth[0] is not None and auth[1] is not None:
return auth[0], auth[1], False
password = ask_password("Password: ")
return username, password, True
# Factored out to allow for easy patching in tests
def _should_save_password_to_keyring(self):
# type: () -> bool
if not keyring:
return False
return ask("Save credentials to keyring [y/N]: ", ["y", "n"]) == "y"
def handle_401(self, resp, **kwargs):
# type: (Response, **Any) -> Response
# We only care about 401 responses, anything else we want to just
# pass through the actual response
if resp.status_code != 401:
return resp
# We are not able to prompt the user so simply return the response
if not self.prompting:
return resp
parsed = urllib.parse.urlparse(resp.url)
# Query the keyring for credentials:
username, password = self._get_new_credentials(resp.url,
allow_netrc=False,
allow_keyring=True)
# Prompt the user for a new username and password
save = False
if not username and not password:
username, password, save = self._prompt_for_password(parsed.netloc)
# Store the new username and password to use for future requests
self._credentials_to_save = None
if username is not None and password is not None:
self.passwords[parsed.netloc] = (username, password)
# Prompt to save the password to keyring
if save and self._should_save_password_to_keyring():
self._credentials_to_save = (parsed.netloc, username, password)
# Consume content and release the original connection to allow our new
# request to reuse the same one.
resp.content
resp.raw.release_conn()
# Add our new username and password to the request
req = HTTPBasicAuth(username or "", password or "")(resp.request)
req.register_hook("response", self.warn_on_401)
# On successful request, save the credentials that were used to
# keyring. (Note that if the user responded "no" above, this member
# is not set and nothing will be saved.)
if self._credentials_to_save:
req.register_hook("response", self.save_credentials)
# Send our new request
new_resp = resp.connection.send(req, **kwargs)
new_resp.history.append(resp)
return new_resp
def warn_on_401(self, resp, **kwargs):
# type: (Response, **Any) -> None
"""Response callback to warn about incorrect credentials."""
if resp.status_code == 401:
logger.warning(
'401 Error, Credentials not correct for %s', resp.request.url,
)
def save_credentials(self, resp, **kwargs):
# type: (Response, **Any) -> None
"""Response callback to save credentials on success."""
assert keyring is not None, "should never reach here without keyring"
if not keyring:
return
creds = self._credentials_to_save
self._credentials_to_save = None
if creds and resp.status_code < 400:
try:
logger.info('Saving credentials to keyring')
keyring.set_password(*creds)
except Exception:
logger.exception('Failed to save credentials')
|
# -------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# -------------------------------------------------------------
# Autogenerated By : src/main/python/generator/generator.py
# Autogenerated From : scripts/builtin/dmv.dml
from typing import Dict, Iterable
from systemds.operator import OperationNode, Matrix, Frame, List, MultiReturn, Scalar
from systemds.script_building.dag import OutputType
from systemds.utils.consts import VALID_INPUT_TYPES
def dmv(X: Frame,
**kwargs: Dict[str, VALID_INPUT_TYPES]):
"""
The dmv-function is used to find disguised missing values utilising syntactical pattern recognition.
:param X: Input Frame
:param threshold: Threshold value in interval [0, 1] for dominant pattern per column (e.g., 0.8 means
that 80% of the entries per column must adhere this pattern to be dominant)
:param replace: The string disguised missing values are replaced with
:return: Frame X including detected disguised missing values
"""
params_dict = {'X': X}
params_dict.update(kwargs)
return Matrix(X.sds_context,
'dmv',
named_input_nodes=params_dict)
|
import React,{useState, useEffect} from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';
import TableHead from '@material-ui/core/TableHead';
import TablePagination from '@material-ui/core/TablePagination';
import TableRow from '@material-ui/core/TableRow';
import TableSortLabel from '@material-ui/core/TableSortLabel';
import Paper from '@material-ui/core/Paper';
import Checkbox from '@material-ui/core/Checkbox';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Switch from '@material-ui/core/Switch'
function descendingComparator(a, b, orderBy) {
if (b[orderBy] < a[orderBy]) {
return -1;
}
if (b[orderBy] > a[orderBy]) {
return 1;
}
return 0;
}
function getComparator(order, orderBy) {
return order === 'desc'
? (a, b) => descendingComparator(a, b, orderBy)
: (a, b) => -descendingComparator(a, b, orderBy);
}
function stableSort(array, comparator) {
const stabilizedThis = array.map((el, index) => [el, index]);
stabilizedThis.sort((a, b) => {
const order = comparator(a[0], b[0]);
if (order !== 0) return order;
return a[1] - b[1];
});
return stabilizedThis.map((el) => el[0]);
}
const headCells = [
{ id: 'location', numeric: false, disablePadding: false, label: 'location' },
{ id: 'state_name', numeric: false, disablePadding: false, label: 'state_name' },
{ id: 'county_name', numeric: false, disablePadding: false, label: 'county_name' },
{ id: 'city_name', numeric: false, disablePadding: false, label: 'city_name' },
{ id: 'local_site_name', numeric: false, disablePadding: false, label: 'local_site_name' },
{ id: 'address', numeric: false, disablePadding: false, label: 'address' },
{ id: 'cbsa_name', numeric: false, disablePadding: false, label: 'cbsa_name' },
{ id: 'latitude', numeric: false, disablePadding: false, label: 'latitude' },
{ id: 'longitude', numeric: false, disablePadding: false, label: 'longitude' },
{ id: 'datum', numeric: false, disablePadding: false, label: 'datum' },
];
function EnhancedTableHead(props) {
const { classes, onSelectAllClick, order, orderBy, numSelected, rowCount, onRequestSort } = props;
const createSortHandler = (property) => (event) => {
onRequestSort(event, property);
};
return (
<TableHead>
<TableRow>
<TableCell padding="checkbox">
<Checkbox
indeterminate={numSelected > 0 && numSelected < rowCount}
checked={rowCount > 0 && numSelected === rowCount}
onChange={onSelectAllClick}
inputProps={{ 'aria-label': 'select all desserts' }}
/>
</TableCell>
{headCells.map((headCell) => (
<TableCell
key={headCell.id}
align={headCell.numeric ? 'right' : 'left'}
padding={headCell.disablePadding ? 'none' : 'default'}
sortDirection={orderBy === headCell.id ? order : false}
>
<TableSortLabel
active={orderBy === headCell.id}
direction={orderBy === headCell.id ? order : 'asc'}
onClick={createSortHandler(headCell.id)}
>
{headCell.label}
{orderBy === headCell.id ? (
<span className={classes.visuallyHidden}>
{order === 'desc' ? 'sorted descending' : 'sorted ascending'}
</span>
) : null}
</TableSortLabel>
</TableCell>
))}
</TableRow>
</TableHead>
);
}
EnhancedTableHead.propTypes = {
classes: PropTypes.object.isRequired,
numSelected: PropTypes.number.isRequired,
onRequestSort: PropTypes.func.isRequired,
onSelectAllClick: PropTypes.func.isRequired,
order: PropTypes.oneOf(['asc', 'desc']).isRequired,
orderBy: PropTypes.string.isRequired,
rowCount: PropTypes.number.isRequired,
};
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
},
paper: {
width: '100%',
marginBottom: theme.spacing(2),
},
table: {
minWidth: 750,
},
visuallyHidden: {
border: 0,
clip: 'rect(0 0 0 0)',
height: 1,
margin: -1,
overflow: 'hidden',
padding: 0,
position: 'absolute',
top: 20,
width: 1,
},
}));
export default function EnhancedTable() {
const classes = useStyles();
const [order, setOrder] = React.useState('asc');
const [orderBy, setOrderBy] = React.useState('calories');
const [selected, setSelected] = React.useState([]);
const [page, setPage] = React.useState(0);
const [dense, setDense] = React.useState(false);
const [rowsPerPage, setRowsPerPage] = React.useState(10);
const [error, setError] = useState(null);
const [isLoaded, setIsLoaded] = useState(false);
const [rows, setItems] = useState([]);
// Note: the empty deps array [] means
// this useEffect will run once
// similar to componentDidMount()
useEffect(() => {
fetch("http://localhost:8080/demo/location")
.then(res => res.json())
.then(
(result) => {
setIsLoaded(true);
setItems(result);
},
// Note: it's important to handle errors here
// instead of a catch() block so that we don't swallow
// exceptions from actual bugs in components.
(error) => {
setIsLoaded(true);
setError(error);
}
)
}, [])
const handleRequestSort = (event, property) => {
const isAsc = orderBy === property && order === 'asc';
setOrder(isAsc ? 'desc' : 'asc');
setOrderBy(property);
};
const handleSelectAllClick = (event) => {
if (event.target.checked) {
const newSelecteds = rows.map((n) => n.name);
setSelected(newSelecteds);
return;
}
setSelected([]);
};
const handleClick = (event, name) => {
const selectedIndex = selected.indexOf(name);
let newSelected = [];
if (selectedIndex === -1) {
newSelected = newSelected.concat(selected, name);
} else if (selectedIndex === 0) {
newSelected = newSelected.concat(selected.slice(1));
} else if (selectedIndex === selected.length - 1) {
newSelected = newSelected.concat(selected.slice(0, -1));
} else if (selectedIndex > 0) {
newSelected = newSelected.concat(
selected.slice(0, selectedIndex),
selected.slice(selectedIndex + 1),
);
}
setSelected(newSelected);
};
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(parseInt(event.target.value, 10));
setPage(0);
};
const handleChangeDense = (event) => {
setDense(event.target.checked);
};
const isSelected = (name) => selected.indexOf(name) !== -1;
const emptyRows = rowsPerPage - Math.min(rowsPerPage, rows.length - page * rowsPerPage);
return (
<div className={classes.root}>
<Paper className={classes.paper}>
<TableContainer>
<Table
className={classes.table}
aria-labelledby="tableTitle"
size={dense ? 'small' : 'medium'}
aria-label="enhanced table"
>
<EnhancedTableHead
classes={classes}
numSelected={selected.length}
order={order}
orderBy={orderBy}
onSelectAllClick={handleSelectAllClick}
onRequestSort={handleRequestSort}
rowCount={rows.length}
/>
<TableBody>
{stableSort(rows, getComparator(order, orderBy))
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
.map((row, index) => {
const isItemSelected = isSelected(row.name);
const labelId = `enhanced-table-checkbox-${index}`;
return (
<TableRow
hover
onClick={(event) => handleClick(event, row.name)}
role="checkbox"
aria-checked={isItemSelected}
tabIndex={-1}
key={row.name}
selected={isItemSelected}
>
<TableCell padding="checkbox">
<Checkbox
checked={isItemSelected}
inputProps={{ 'aria-labelledby': labelId }}
/>
</TableCell>
<TableCell component="th" id={labelId} scope="row" padding="default">
{row.location}
</TableCell>
<TableCell>{row.state_name}</TableCell>
<TableCell>{row.county_name}</TableCell>
<TableCell>{row.city_name}</TableCell>
<TableCell>{row.local_site_name}</TableCell>
<TableCell>{row.address}</TableCell>
<TableCell>{row.cbsa_name}</TableCell>
<TableCell>{row.latitude}</TableCell>
<TableCell>{row.longitude}</TableCell>
<TableCell>{row.datum}</TableCell>
</TableRow>
);
})}
{emptyRows > 0 && (
<TableRow style={{ height: (dense ? 33 : 53) * emptyRows }}>
<TableCell colSpan={6} />
</TableRow>
)}
</TableBody>
</Table>
</TableContainer>
<TablePagination
rowsPerPageOptions={[10, 15, 20]}
component="div"
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
/>
</Paper>
<FormControlLabel
control={<Switch checked={dense} onChange={handleChangeDense} />}
label="Dense padding"
/>
</div>
);
}
|
var searchData=
[
['dispatch',['dispatch',['../classracecontrol_1_1netcom_1_1Dispatcher.html#a1972a5b40129984301084ff41eab5824',1,'racecontrol::netcom::Dispatcher']]]
];
|
'''Classes to help define tag and coordinate families.'''
from __future__ import print_function, absolute_import, division
try:
from builtins import range as iter_range
except ImportError:
from __builtin__ import xrange as iter_range
from collections import defaultdict
from collections import Counter
from copy import deepcopy
from functools import partial
from sortedcontainers import SortedSet
from connor.consam.alignments import PairedAlignment
from connor.utils import peak_memory
class TagFamily(object):
'''Holds alignments that share same coordinate and UMI (allowing fuzzy UMI matches)'''
umi_sequence = 0
def __init__(self,
umt,
alignments,
inexact_match_count,
consensus_threshold,
family_filter=lambda _: None):
self.umi_sequence = TagFamily.umi_sequence
TagFamily.umi_sequence += 1
self._umt = umt
(self.distinct_cigar_count,
majority_cigar) = TagFamily._get_dominant_cigar_stats(alignments)
self.align_pairs = alignments
self._mark_minority_cigar(majority_cigar)
self.inexact_match_count = inexact_match_count
self.consensus_threshold = consensus_threshold
self.consensus = self._build_consensus(umt, self.align_pairs)
self.included_pair_count = sum([1 for p in self.align_pairs if not p.filter_value])
self.filter_value = family_filter(self)
def umt(self, format_string=None):
if format_string:
return format_string.format(left=self._umt[0], right=self._umt[1])
else:
return self._umt
@staticmethod
def _get_cigarstring_tuple(paired_alignment):
return (paired_alignment.left.cigarstring,
paired_alignment.right.cigarstring)
def _mark_minority_cigar(self, majority_cigar):
for pair in self.align_pairs:
if TagFamily._get_cigarstring_tuple(pair) != majority_cigar:
pair.left.filter_value = "minority CIGAR"
pair.right.filter_value = "minority CIGAR"
def _generate_consensus_sequence(self, alignment_pairs):
def consensus_sequence(alignments):
consensus_seq = self._simple_consensus_sequence(alignments)
if not consensus_seq:
consensus_seq = self._complex_consensus_sequence(alignments)
return consensus_seq
left_alignments = []
right_alignments = []
for align_pair in alignment_pairs:
left_alignments.append(align_pair.left)
right_alignments.append(align_pair.right)
left_consensus_seq = consensus_sequence(left_alignments)
right_consensus_seq = consensus_sequence(right_alignments)
return (left_consensus_seq, right_consensus_seq)
def _simple_consensus_sequence(self, alignments):
seq_counter = Counter([a.query_sequence for a in alignments])
consensus_seq = None
if len(seq_counter) == 1:
consensus_seq = next(iter(alignments)).query_sequence
elif len(seq_counter) == 2:
majority_seq, majority_count = seq_counter.most_common(1)[0]
total = len(alignments)
if majority_count / total > self.consensus_threshold:
consensus_seq = majority_seq
return consensus_seq
def _complex_consensus_sequence(self, alignments):
consensus = []
for i in iter_range(0, len(alignments[0].query_sequence)):
counter = Counter([s.query_sequence[i:i+1] for s in alignments])
base = counter.most_common(1)[0][0]
freq = counter[base] / sum(counter.values())
if freq >= self.consensus_threshold:
consensus.append(base)
else:
consensus.append("N")
return "".join(consensus)
@staticmethod
def _select_template_alignment_pair(alignment_pairs):
top_alignment_pair = None
best_template = (0, None)
for alignment_pair in alignment_pairs:
query_name = alignment_pair.left.query_name
qual_sum = alignment_pair.left.mapping_quality + \
alignment_pair.right.mapping_quality
if (-qual_sum, query_name) < best_template:
best_template = (-qual_sum, query_name)
top_alignment_pair = alignment_pair
return top_alignment_pair
@staticmethod
def _get_dominant_cigar_stats(alignments):
counter = Counter([TagFamily._get_cigarstring_tuple(s) for s in alignments])
number_distict_cigars = len(counter)
top_two_cigar_count = counter.most_common(2)
dominant_cigar = top_two_cigar_count[0][0]
dominant_cigar_count = top_two_cigar_count[0][1]
if number_distict_cigars > 1 and dominant_cigar_count == top_two_cigar_count[1][1]:
dominant_cigar = sorted(counter.most_common(),
key=lambda x: (-x[1], x[0]))[0][0]
return number_distict_cigars, dominant_cigar
def is_consensus_template(self, connor_align):
return self.consensus.left.query_name == connor_align.query_name
def _build_consensus(self, umt, align_pairs):
included_pairs = [p for p in align_pairs if not p.filter_value]
template_pair = TagFamily._select_template_alignment_pair(included_pairs)
left_align = deepcopy(template_pair.left, {})
right_align = deepcopy(template_pair.right, {})
(left_sequence,
right_sequence) = self._generate_consensus_sequence(included_pairs)
left_align.query_sequence = left_sequence
right_align.query_sequence = right_sequence
left_align.query_qualities = \
template_pair.left.query_qualities
right_align.query_qualities = \
template_pair.right.query_qualities
consensus_pair = PairedAlignment(left_align,
right_align,
tag_length=len(umt[0]))
consensus_pair.replace_umt(umt)
return consensus_pair
class CoordinateFamilyHolder(object):
'''Encapsulates how stream of paired aligns are iteratively released as
sets of pairs which share the same coordinate (coordinate families)'''
def __init__(self):
self._coordinate_family = defaultdict(partial(defaultdict, list))
self._right_coords_in_progress = defaultdict(SortedSet)
self.pending_pair_count = 0
self.pending_pair_peak_count = 0
def _add(self, pair):
def _start(align):
return (align.reference_name, align.reference_start)
self._right_coords_in_progress[pair.right.reference_name].add(pair.right.reference_start)
right_coord = self._coordinate_family[_start(pair.right)]
right_coord[_start(pair.left)].append(pair)
self.pending_pair_count += 1
self.pending_pair_peak_count = max(self.pending_pair_count,
self.pending_pair_peak_count)
def _completed_families(self, reference_name, rightmost_boundary):
'''returns one or more families whose end < rightmost boundary'''
in_progress = self._right_coords_in_progress[reference_name]
while len(in_progress):
right_coord = in_progress[0]
if right_coord < rightmost_boundary:
in_progress.pop(0)
left_families = self._coordinate_family.pop((reference_name, right_coord), {})
for family in sorted(left_families.values(),
key=lambda x:x[0].left.reference_start):
family.sort(key=lambda x: x.query_name)
self.pending_pair_count -= len(family)
yield family
else:
break
def _remaining_families(self):
for left_families in self._coordinate_family.values():
for family in left_families.values():
self.pending_pair_count -= len(family)
yield family
left_families.clear()
self._coordinate_family.clear()
#TODO: cgates: reduce complexity
def build_coordinate_families(self, paired_aligns):
'''Given a stream of paired aligns, return a list of pairs that share
same coordinates (coordinate family). Flushes families in progress
when any of:
a) incoming right start > family end
b) incoming chrom != current chrom
c) incoming align stream is exhausted'''
rightmost_start = None
current_chrom = None
def _new_coordinate(pair):
return pair.right.reference_start != rightmost_start
def _new_chrom(pair):
return current_chrom != pair.right.reference_name
for pair in paired_aligns:
if rightmost_start is None:
rightmost_start = pair.right.reference_start
current_chrom = pair.right.reference_name
if _new_chrom(pair):
self._right_coords_in_progress[current_chrom].clear()
rightmost_start = None
current_chrom = None
for family in self._remaining_families():
yield family
elif _new_coordinate(pair):
right = pair.right
for family in self._completed_families(right.reference_name,
right.reference_start):
yield family
self._add(pair)
for family in self._remaining_families():
yield family
def build_usage_logger(self, log):
'''Return a method that logs progress/mem usage.'''
def _log_usage():
log.debug("{}mb peak memory", peak_memory())
log.debug("{} pending alignment pairs; {} peak pairs",
self.pending_pair_count,
self.pending_pair_peak_count)
return _log_usage
|
Q_TRAINED = {
(('4', '2', '1', '2', '1', '1', '2', '2'), 2):64.5822857908,
(('2', '4', '2', '-1', '2', '2', '-1', '-1'), 1):15.688,
(('1', '-1', '-1', '1', '-1', '-1', '4', '-1'), 2):239.669910452,
(('1', '2', '0', '2', '4', '1', '1', '1'), 2):249.820586988,
(('4', '0', '4', '1', '4', '4', '1', '0'), 1):0,
(('1', '4', '4', '0', '0', '4', '4', '0'), 1):32.4451759568,
(('1', '2', '4', '-1', '1', '0', '-1', '-1'), 2):269.581427797,
(('2', '2', '0', '2', '0', '4', '1', '2'), 1):207.849972088,
(('2', '2', '4', '2', '1', '1', '2', '0'), 1):183.314621248,
(('4', '-1', '0', '0', '1', '-1', '4', '-1'), 0):0,
(('0', '1', '4', '1', '0', '4', '0', '0'), 1):-8.76068619932,
(('1', '2', '4', '2', '4', '4', '0', '2'), 0):10,
(('1', '0', '0', '1', '0', '1', '1', '0'), 1):112.264954655,
(('0', '0', '1', '1', '0', '1', '0', '1'), 2):165.650198526,
(('0', '2', '0', '2', '1', '0', '4', '4'), 1):10,
(('0', '4', '1', '4', '0', '0', '4', '0'), 3):50,
(('1', '2', '0', '2', '1', '4', '1', '1'), 0):45.2861628423,
(('0', '0', '1', '0', '0', '1', '0', '1'), 1):0,
(('1', '1', '1', '1', '4', '0', '0', '1'), 0):126.765860554,
(('1', '0', '0', '0', '1', '0', '0', '0'), 2):257.072151635,
(('1', '4', '1', '1', '1', '0', '0', '0'), 3):118.268163179,
(('2', '2', '1', '2', '2', '4', '0', '0'), 1):251.892973249,
(('1', '2', '1', '2', '0', '1', '0', '4'), 1):37.1243160788,
(('4', '1', '1', '0', '4', '1', '1', '1'), 1):-10,
(('0', '2', '1', '2', '1', '4', '0', '1'), 0):57.4580885153,
(('1', '0', '1', '1', '1', '0', '0', '1'), 3):209.489394256,
(('0', '-1', '1', '4', '1', '-1', '4', '-1'), 3):134.695797902,
(('0', '-1', '0', '0', '0', '-1', '0', '-1'), 3):237.837730426,
(('-1', '2', '4', '2', '-1', '1', '-1', '1'), 0):265.294514121,
(('1', '1', '1', '1', '1', '1', '1', '1'), 2):174.303619382,
(('2', '2', '1', '4', '2', '1', '0', '4'), 1):-629.399348436,
(('0', '0', '1', '4', '0', '4', '0', '0'), 1):-10,
(('1', '2', '4', '2', '0', '0', '0', '0'), 1):135.092097592,
(('1', '2', '2', '2', '1', '4', '0', '0'), 0):129.414310193,
(('0', '1', '1', '1', '0', '1', '0', '1'), 1):205.74806041,
(('0', '1', '1', '4', '0', '0', '0', '0'), 1):71.9870797539,
(('0', '0', '0', '4', '0', '1', '0', '0'), 0):10,
(('1', '2', '4', '2', '1', '4', '0', '2'), 0):-166.373433825,
(('4', '1', '1', '1', '0', '0', '1', '1'), 0):-10,
(('1', '1', '0', '0', '1', '1', '0', '1'), 1):100.482293846,
(('0', '2', '1', '2', '1', '1', '4', '2'), 2):123.337150838,
(('1', '4', '-1', '4', '-1', '-1', '1', '0'), 3):-10,
(('4', '0', '0', '4', '0', '0', '4', '0'), 2):32.1804434517,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '1'), 1):65.2041451526,
(('1', '4', '1', '1', '1', '1', '1', '4'), 3):65.2274256576,
(('1', '2', '0', '2', '0', '0', '1', '0'), 0):256.482524113,
(('2', '2', '0', '-1', '1', '2', '-1', '-1'), 1):379.647727532,
(('1', '0', '0', '-1', '1', '1', '-1', '-1'), 0):24.8896057067,
(('0', '1', '0', '1', '1', '0', '0', '0'), 1):196.231784334,
(('1', '1', '0', '1', '0', '0', '1', '0'), 0):212.978310217,
(('4', '2', '4', '2', '0', '4', '4', '2'), 0):128.576416141,
(('0', '-1', '1', '2', '1', '-1', '4', '-1'), 2):202.764497991,
(('-1', '1', '0', '4', '-1', '1', '-1', '1'), 0):111.823196306,
(('4', '0', '4', '-1', '0', '0', '-1', '-1'), 2):50,
(('1', '2', '2', '2', '1', '2', '4', '1'), 3):13.98016,
(('1', '1', '1', '1', '0', '0', '0', '0'), 0):198.677190107,
(('4', '0', '0', '-1', '0', '0', '-1', '-1'), 0):235.533941338,
(('0', '2', '4', '2', '1', '1', '1', '1'), 2):52.2790462791,
(('1', '1', '1', '0', '0', '1', '0', '0'), 3):234.338384669,
(('1', '2', '0', '2', '0', '1', '0', '1'), 3):76.1851020889,
(('1', '-1', '-1', '2', '-1', '-1', '0', '-1'), 0):283.969139234,
(('0', '1', '4', '1', '1', '1', '0', '1'), 0):71.9925449237,
(('2', '2', '4', '2', '0', '1', '2', '2'), 1):221.8678602,
(('0', '1', '-1', '0', '-1', '-1', '0', '4'), 0):262.577709013,
(('1', '2', '1', '2', '0', '4', '1', '0'), 0):74.776933546,
(('0', '2', '1', '4', '0', '1', '0', '2'), 0):162.857098925,
(('1', '0', '4', '-1', '1', '0', '-1', '-1'), 2):258.759779242,
(('0', '2', '-1', '2', '-1', '-1', '0', '4'), 1):111.211636459,
(('4', '2', '2', '2', '2', '2', '0', '2'), 3):100.792243765,
(('1', '4', '1', '1', '1', '0', '1', '1'), 1):141.08295284,
(('1', '2', '0', '2', '4', '1', '0', '0'), 0):59.3864262615,
(('0', '-1', '2', '2', '0', '-1', '4', '-1'), 0):51.9816204304,
(('1', '0', '0', '0', '0', '0', '0', '0'), 2):220.676145095,
(('0', '4', '4', '-1', '0', '0', '-1', '-1'), 2):0,
(('4', '2', '1', '4', '0', '4', '4', '4'), 0):10,
(('2', '2', '2', '2', '4', '1', '0', '1'), 1):0,
(('0', '2', '0', '4', '0', '0', '4', '4'), 2):20,
(('0', '0', '-1', '1', '-1', '-1', '4', '0'), 1):144.520759379,
(('1', '0', '1', '4', '1', '0', '0', '4'), 3):10,
(('0', '4', '1', '2', '0', '1', '0', '4'), 3):115.174959246,
(('0', '2', '4', '2', '0', '1', '2', '1'), 2):174.996621129,
(('-1', '1', '1', '0', '-1', '1', '-1', '1'), 0):263.340435081,
(('0', '4', '0', '2', '0', '0', '0', '2'), 0):10,
(('1', '1', '4', '0', '0', '1', '1', '0'), 3):-10,
(('2', '-1', '0', '4', '0', '-1', '0', '-1'), 1):150.001139513,
(('0', '0', '1', '1', '0', '4', '1', '0'), 1):26.1375258001,
(('2', '2', '4', '2', '0', '4', '2', '1'), 3):0,
(('0', '2', '1', '-1', '1', '1', '-1', '-1'), 3):319.312678762,
(('1', '1', '1', '0', '1', '0', '0', '0'), 2):234.013654963,
(('0', '1', '4', '1', '4', '0', '0', '1'), 2):183.136712905,
(('4', '-1', '-1', '4', '-1', '-1', '4', '-1'), 2):114.322568621,
(('4', '1', '1', '-1', '1', '1', '-1', '-1'), 0):224.192666548,
(('2', '4', '1', '2', '2', '1', '0', '0'), 1):364.581163053,
(('1', '4', '0', '0', '0', '0', '0', '4'), 3):10,
(('1', '1', '0', '0', '1', '0', '0', '4'), 3):-10,
(('0', '4', '0', '1', '0', '4', '0', '0'), 1):24.6041533386,
(('2', '4', '1', '2', '2', '0', '2', '0'), 1):10,
(('0', '0', '0', '4', '0', '0', '0', '0'), 0):187.673955834,
(('-1', '0', '0', '1', '-1', '0', '-1', '4'), 0):150.999372309,
(('0', '1', '1', '1', '1', '0', '1', '1'), 0):157.195725467,
(('0', '2', '4', '-1', '1', '2', '-1', '-1'), 3):10,
(('0', '2', '0', '4', '0', '1', '1', '0'), 0):10,
(('0', '1', '0', '4', '0', '0', '0', '4'), 3):178.763830738,
(('2', '2', '1', '2', '1', '2', '0', '0'), 1):449.784560237,
(('2', '2', '2', '2', '2', '2', '0', '0'), 1):396.055772777,
(('1', '1', '0', '-1', '0', '1', '-1', '-1'), 2):236.765036733,
(('1', '1', '0', '1', '1', '1', '4', '1'), 0):10,
(('4', '-1', '2', '2', '2', '-1', '4', '-1'), 0):71.0566264733,
(('-1', '2', '0', '2', '-1', '1', '-1', '0'), 3):262.486642427,
(('0', '0', '1', '-1', '0', '1', '-1', '-1'), 3):270.192908605,
(('4', '0', '0', '1', '4', '0', '4', '0'), 0):10,
(('4', '2', '1', '2', '0', '2', '0', '0'), 0):204.125992596,
(('1', '2', '4', '2', '0', '1', '0', '0'), 0):60.4744157195,
(('4', '2', '4', '2', '0', '4', '2', '4'), 1):10,
(('0', '2', '4', '2', '4', '1', '0', '0'), 3):124.519573343,
(('0', '2', '2', '4', '0', '0', '1', '0'), 0):60,
(('1', '2', '2', '2', '4', '2', '1', '2'), 2):760,
(('4', '0', '1', '-1', '1', '1', '-1', '-1'), 2):177.897133379,
(('1', '0', '0', '4', '1', '0', '4', '4'), 3):81.2876186385,
(('4', '2', '4', '2', '4', '4', '4', '0'), 1):56.7527437713,
(('1', '1', '0', '0', '0', '0', '0', '4'), 3):52.9669439733,
(('0', '4', '1', '-1', '1', '0', '-1', '-1'), 1):182.860251926,
(('2', '-1', '1', '2', '4', '-1', '2', '-1'), 0):11.44,
(('-1', '2', '2', '2', '-1', '4', '-1', '0'), 0):49.583539421,
(('1', '2', '1', '2', '0', '0', '0', '1'), 2):130.452732414,
(('0', '2', '1', '4', '1', '1', '0', '0'), 0):205.242640024,
(('0', '4', '0', '0', '0', '4', '0', '0'), 2):76.2222439815,
(('0', '0', '0', '1', '0', '0', '4', '1'), 0):66.9758371823,
(('2', '2', '2', '2', '2', '1', '2', '2'), 2):537.178390564,
(('2', '2', '2', '2', '2', '1', '2', '4'), 3):163.519552487,
(('1', '2', '0', '2', '0', '0', '1', '1'), 1):237.707838808,
(('4', '1', '0', '1', '4', '0', '4', '1'), 0):101.563694637,
(('0', '0', '0', '-1', '0', '4', '-1', '-1'), 1):60.2768649237,
(('2', '4', '0', '2', '2', '0', '1', '1'), 2):10,
(('2', '2', '0', '2', '0', '4', '1', '4'), 1):161.668430928,
(('0', '1', '4', '1', '4', '4', '1', '1'), 0):0,
(('1', '0', '1', '4', '0', '0', '0', '0'), 0):76.5588686239,
(('0', '1', '-1', '0', '-1', '-1', '1', '0'), 0):262.530754347,
(('1', '1', '0', '0', '0', '1', '0', '0'), 0):218.622426275,
(('1', '4', '1', '0', '1', '0', '1', '0'), 1):177.638737769,
(('2', '2', '1', '2', '1', '1', '2', '2'), 0):403.645062677,
(('2', '2', '2', '2', '1', '0', '0', '1'), 1):10,
(('0', '2', '0', '2', '1', '1', '0', '0'), 0):307.27508363,
(('4', '0', '1', '0', '1', '1', '0', '0'), 0):169.219896256,
(('1', '2', '2', '4', '2', '1', '1', '0'), 3):10,
(('1', '2', '2', '2', '2', '2', '2', '2'), 0):559.910475028,
(('4', '0', '0', '0', '0', '0', '4', '0'), 0):-95.5842208453,
(('1', '1', '4', '1', '4', '0', '1', '0'), 1):-10,
(('1', '2', '2', '4', '1', '2', '1', '4'), 3):154.842106384,
(('4', '0', '1', '1', '0', '0', '4', '0'), 0):13.3134210022,
(('1', '0', '0', '0', '1', '1', '0', '0'), 3):102.301055161,
(('0', '2', '4', '-1', '0', '2', '-1', '-1'), 0):164.504945435,
(('1', '1', '0', '0', '0', '1', '1', '0'), 0):198.172205921,
(('4', '2', '0', '2', '2', '1', '0', '1'), 1):87.7250614797,
(('0', '-1', '0', '1', '4', '-1', '0', '-1'), 3):0,
(('1', '2', '2', '2', '0', '2', '0', '1'), 3):302.997682326,
(('4', '0', '0', '1', '4', '0', '4', '0'), 2):40.8488153784,
(('0', '2', '0', '2', '0', '0', '1', '1'), 0):228.772476202,
(('1', '-1', '1', '0', '1', '-1', '4', '-1'), 2):167.188013606,
(('1', '0', '1', '4', '1', '0', '1', '0'), 2):237.075489515,
(('1', '2', '1', '2', '0', '1', '4', '1'), 0):10,
(('0', '1', '0', '1', '1', '1', '1', '0'), 0):10,
(('0', '1', '0', '0', '4', '0', '0', '0'), 0):170.575713634,
(('0', '2', '2', '2', '0', '0', '4', '1'), 3):247.484957161,
(('1', '4', '0', '-1', '0', '0', '-1', '-1'), 2):253.899912748,
(('1', '0', '0', '0', '1', '0', '1', '4'), 1):10,
(('4', '1', '0', '1', '4', '0', '4', '0'), 1):17.5814202369,
(('2', '4', '2', '2', '0', '0', '1', '0'), 3):10,
(('2', '2', '2', '2', '2', '2', '0', '1'), 2):379.407014258,
(('2', '2', '0', '2', '0', '0', '2', '0'), 0):350.897759211,
(('2', '2', '-1', '2', '-1', '-1', '0', '1'), 2):318.325131096,
(('0', '0', '0', '1', '0', '0', '4', '0'), 2):151.316938825,
(('0', '2', '4', '-1', '1', '4', '-1', '-1'), 3):116.488623741,
(('2', '2', '0', '2', '2', '1', '0', '2'), 1):303.262168827,
(('0', '4', '1', '2', '1', '1', '0', '2'), 2):10,
(('1', '1', '0', '1', '0', '4', '0', '0'), 3):0,
(('1', '0', '0', '1', '0', '0', '4', '1'), 3):39.8846222582,
(('4', '0', '1', '1', '4', '0', '4', '0'), 3):50,
(('0', '1', '1', '1', '1', '1', '0', '4'), 3):103.226474972,
(('4', '2', '4', '2', '4', '2', '4', '1'), 0):10,
(('1', '1', '1', '0', '4', '1', '0', '1'), 3):49.8219735075,
(('2', '2', '1', '2', '1', '4', '1', '0'), 1):142.459989503,
(('2', '2', '1', '2', '2', '1', '2', '4'), 2):219.36446577,
(('1', '2', '0', '2', '0', '4', '1', '2'), 0):228.299347325,
(('2', '2', '1', '2', '2', '4', '2', '0'), 0):10,
(('1', '2', '1', '2', '1', '4', '1', '0'), 0):149.278406188,
(('2', '2', '1', '2', '4', '1', '0', '2'), 2):250,
(('1', '-1', '2', '2', '1', '-1', '2', '-1'), 0):10,
(('4', '2', '2', '4', '0', '0', '4', '1'), 3):10,
(('0', '0', '0', '0', '1', '0', '0', '0'), 2):268.322670731,
(('0', '4', '0', '1', '1', '0', '0', '0'), 0):40.0304093331,
(('0', '2', '4', '2', '0', '2', '0', '0'), 3):208.75942763,
(('0', '1', '4', '0', '4', '4', '0', '0'), 3):16.2112282894,
(('1', '1', '4', '0', '1', '4', '0', '0'), 0):33.6967296742,
(('1', '-1', '0', '2', '2', '-1', '0', '-1'), 0):344.309945245,
(('2', '2', '2', '2', '1', '0', '1', '2'), 1):80.7074473083,
(('-1', '2', '2', '2', '-1', '4', '-1', '2'), 0):10,
(('1', '2', '1', '2', '0', '0', '2', '2'), 0):161.746251007,
(('-1', '1', '4', '0', '-1', '0', '-1', '0'), 0):210.21881998,
(('2', '-1', '0', '2', '0', '-1', '2', '-1'), 1):301.370442976,
(('0', '4', '2', '4', '0', '4', '4', '0'), 3):50,
(('4', '1', '1', '0', '4', '0', '1', '0'), 3):10,
(('1', '0', '1', '1', '1', '1', '0', '4'), 1):62.7727806584,
(('4', '2', '4', '2', '4', '4', '0', '1'), 2):89.0250454561,
(('1', '2', '-1', '2', '-1', '-1', '4', '4'), 2):34.8551877336,
(('2', '2', '0', '2', '1', '2', '2', '2'), 0):317.447405767,
(('-1', '4', '4', '2', '-1', '4', '-1', '0'), 1):29.2728906169,
(('1', '2', '2', '-1', '0', '0', '-1', '-1'), 3):296.125618042,
(('0', '-1', '4', '2', '4', '-1', '1', '-1'), 0):122.303170121,
(('4', '2', '1', '2', '4', '0', '4', '0'), 2):10,
(('0', '-1', '4', '1', '1', '-1', '1', '-1'), 2):0,
(('0', '4', '1', '0', '1', '1', '0', '4'), 3):87.1036120045,
(('1', '1', '4', '1', '4', '0', '0', '1'), 3):0,
(('-1', '0', '1', '-1', '-1', '4', '-1', '-1'), 3):138.393889983,
(('4', '2', '4', '2', '4', '4', '4', '2'), 0):135.869113695,
(('4', '2', '0', '2', '0', '1', '4', '0'), 0):147.386774769,
(('1', '-1', '-1', '4', '-1', '-1', '4', '-1'), 3):225.10364887,
(('1', '2', '0', '2', '0', '0', '4', '0'), 2):191.354782938,
(('0', '2', '4', '2', '4', '0', '1', '2'), 3):10,
(('2', '4', '2', '2', '0', '4', '0', '0'), 3):40,
(('0', '2', '1', '2', '2', '2', '4', '0'), 0):12.8512,
(('1', '2', '-1', '4', '-1', '-1', '0', '0'), 0):90.5288707959,
(('0', '-1', '4', '0', '1', '-1', '0', '-1'), 3):13.4331503453,
(('0', '0', '0', '0', '1', '1', '0', '0'), 2):57.4261108191,
(('1', '2', '0', '2', '1', '2', '1', '2'), 2):418.792288065,
(('2', '2', '-1', '4', '-1', '-1', '2', '0'), 1):275.658659699,
(('0', '2', '-1', '2', '-1', '-1', '4', '0'), 0):254.14705606,
(('0', '1', '0', '-1', '1', '1', '-1', '-1'), 2):227.705563941,
(('0', '1', '1', '1', '0', '1', '4', '1'), 1):152.728764467,
(('0', '0', '1', '0', '1', '0', '0', '0'), 0):257.592473268,
(('1', '2', '0', '2', '1', '0', '0', '4'), 2):78.7589403973,
(('2', '2', '2', '2', '0', '2', '2', '2'), 3):468.96317971,
(('1', '0', '0', '1', '0', '1', '0', '1'), 2):-10,
(('1', '2', '0', '2', '0', '4', '1', '0'), 0):135.659385297,
(('1', '1', '1', '-1', '1', '1', '-1', '-1'), 2):225.55401391,
(('1', '1', '0', '4', '0', '0', '0', '0'), 1):97.5294033709,
(('2', '2', '1', '2', '2', '2', '2', '0'), 2):235.006067266,
(('2', '2', '2', '-1', '0', '2', '-1', '-1'), 1):350.574356126,
(('1', '-1', '1', '-1', '4', '-1', '-1', '-1'), 0):203.44854438,
(('4', '2', '4', '-1', '4', '4', '-1', '-1'), 1):20,
(('0', '1', '1', '0', '0', '1', '0', '0'), 1):244.580238898,
(('1', '1', '-1', '0', '-1', '-1', '0', '4'), 1):95.6851995914,
(('1', '0', '1', '0', '0', '0', '1', '0'), 2):233.65556901,
(('0', '2', '1', '-1', '1', '0', '-1', '-1'), 3):357.087950936,
(('0', '-1', '0', '0', '1', '-1', '1', '-1'), 2):10,
(('-1', '1', '4', '1', '-1', '1', '-1', '1'), 1):189.199027117,
(('2', '2', '-1', '2', '-1', '-1', '1', '1'), 2):361.132615591,
(('2', '2', '2', '2', '1', '2', '0', '0'), 0):261.716614816,
(('0', '2', '0', '2', '1', '2', '4', '4'), 0):101.025718369,
(('0', '0', '1', '-1', '4', '0', '-1', '-1'), 0):144.538753346,
(('0', '2', '4', '2', '0', '0', '1', '2'), 2):193.431264875,
(('1', '2', '0', '2', '0', '4', '2', '0'), 0):151.277097934,
(('-1', '2', '2', '2', '-1', '2', '-1', '1'), 2):386.488522576,
(('1', '0', '1', '1', '1', '1', '0', '1'), 1):222.243190728,
(('1', '2', '1', '2', '1', '4', '1', '1'), 3):76.6196354272,
(('1', '1', '4', '1', '0', '0', '0', '0'), 0):78.1388437639,
(('0', '2', '-1', '2', '-1', '-1', '2', '1'), 3):543.012051547,
(('1', '0', '4', '0', '4', '0', '0', '0'), 0):58.7919984631,
(('4', '2', '1', '2', '4', '1', '0', '1'), 1):47.591828113,
(('1', '1', '0', '1', '1', '0', '0', '0'), 2):222.575769316,
(('1', '2', '4', '-1', '1', '2', '-1', '-1'), 3):-10,
(('1', '0', '0', '4', '4', '0', '4', '4'), 3):0,
(('-1', '0', '0', '1', '-1', '0', '-1', '1'), 0):243.097561876,
(('0', '0', '0', '4', '1', '0', '4', '4'), 3):10,
(('4', '-1', '1', '2', '0', '-1', '4', '-1'), 3):63.8051456441,
(('0', '4', '-1', '2', '-1', '-1', '1', '2'), 2):10,
(('0', '2', '1', '4', '0', '1', '0', '0'), 0):204.479741641,
(('4', '2', '-1', '2', '-1', '-1', '0', '0'), 3):272.302930135,
(('2', '2', '0', '4', '2', '4', '0', '4'), 1):10,
(('4', '0', '1', '0', '1', '0', '1', '0'), 0):10,
(('0', '1', '4', '-1', '0', '1', '-1', '-1'), 3):235.995391837,
(('-1', '2', '2', '2', '-1', '0', '-1', '1'), 0):282.905889102,
(('1', '-1', '-1', '4', '-1', '-1', '0', '-1'), 2):200.9428608,
(('2', '2', '4', '2', '0', '0', '2', '0'), 1):316.142349932,
(('0', '4', '0', '0', '0', '0', '0', '0'), 1):197.631212756,
(('1', '0', '4', '0', '0', '4', '1', '0'), 2):9.8,
(('1', '-1', '0', '2', '4', '-1', '2', '-1'), 0):-62.654965955,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '2'), 2):207.89828707,
(('4', '1', '4', '-1', '0', '0', '-1', '-1'), 0):50,
(('2', '2', '2', '-1', '4', '2', '-1', '-1'), 0):-1000,
(('4', '2', '0', '2', '4', '0', '0', '0'), 2):159.535828678,
(('0', '1', '1', '4', '0', '1', '0', '0'), 0):217.682431508,
(('0', '2', '0', '4', '0', '0', '4', '0'), 2):65.0716726621,
(('-1', '2', '2', '-1', '-1', '0', '-1', '-1'), 1):296.359769908,
(('0', '0', '1', '0', '0', '1', '1', '0'), 3):54.7639021368,
(('1', '2', '2', '4', '2', '1', '1', '4'), 3):10,
(('4', '0', '0', '0', '1', '0', '1', '0'), 1):10,
(('0', '2', '2', '2', '0', '4', '0', '1'), 3):233.771459157,
(('0', '1', '1', '-1', '0', '0', '-1', '-1'), 2):227.774783165,
(('0', '1', '1', '-1', '1', '0', '-1', '-1'), 1):264.559373906,
(('2', '2', '0', '4', '1', '0', '2', '0'), 1):132.888461233,
(('2', '2', '2', '2', '2', '2', '0', '2'), 3):554.217170417,
(('1', '0', '0', '-1', '0', '0', '-1', '-1'), 2):251.082364478,
(('1', '2', '4', '2', '1', '0', '1', '0'), 3):252.427754544,
(('-1', '2', '0', '2', '-1', '1', '-1', '2'), 1):355.692986024,
(('2', '2', '0', '2', '1', '0', '4', '0'), 2):54.9037541118,
(('0', '-1', '4', '4', '0', '-1', '1', '-1'), 0):10,
(('0', '2', '0', '4', '0', '0', '4', '1'), 2):10,
(('0', '2', '4', '2', '0', '1', '1', '0'), 0):10,
(('2', '2', '2', '2', '2', '2', '4', '2'), 0):10.0,
(('1', '-1', '4', '0', '4', '-1', '0', '-1'), 1):69.4015981787,
(('0', '2', '0', '-1', '0', '4', '-1', '-1'), 0):249.634020829,
(('1', '1', '0', '1', '4', '0', '0', '1'), 1):7.8,
(('2', '2', '2', '2', '0', '2', '2', '1'), 3):486.165924245,
(('4', '2', '0', '2', '0', '0', '4', '0'), 2):147.943665569,
(('0', '0', '4', '-1', '4', '0', '-1', '-1'), 1):0,
(('2', '2', '1', '4', '1', '0', '2', '4'), 1):38.9108502309,
(('0', '0', '-1', '1', '-1', '-1', '0', '4'), 1):198.475685931,
(('0', '4', '1', '0', '0', '1', '0', '4'), 2):31.9936052775,
(('1', '1', '1', '4', '1', '0', '0', '4'), 0):46.6834210906,
(('4', '-1', '1', '0', '1', '-1', '4', '-1'), 2):102.634809285,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '4'), 2):183.005386757,
(('0', '-1', '0', '1', '0', '-1', '0', '-1'), 1):229.297687091,
(('1', '1', '-1', '0', '-1', '-1', '4', '0'), 3):204.200760594,
(('-1', '1', '0', '1', '-1', '1', '-1', '4'), 0):0,
(('2', '2', '0', '2', '2', '0', '4', '4'), 2):53.7875572785,
(('2', '2', '0', '2', '1', '2', '2', '1'), 1):10,
(('2', '-1', '1', '2', '0', '-1', '2', '-1'), 2):363.351835656,
(('1', '0', '4', '-1', '4', '0', '-1', '-1'), 2):219.854797017,
(('0', '1', '-1', '0', '-1', '-1', '0', '1'), 2):243.726071542,
(('2', '2', '1', '2', '0', '0', '4', '4'), 1):93.8411414757,
(('1', '1', '4', '-1', '4', '0', '-1', '-1'), 3):42.9551491196,
(('1', '2', '4', '2', '1', '4', '0', '1'), 2):10,
(('2', '2', '2', '2', '1', '1', '1', '2'), 3):10,
(('-1', '0', '4', '-1', '-1', '4', '-1', '-1'), 1):53.2227122552,
(('-1', '4', '1', '1', '-1', '0', '-1', '1'), 2):32.3514935282,
(('4', '2', '-1', '2', '-1', '-1', '1', '0'), 3):275.547474943,
(('1', '1', '0', '0', '0', '0', '4', '1'), 1):-20,
(('0', '2', '2', '2', '0', '2', '0', '4'), 3):226.227622995,
(('1', '-1', '0', '0', '0', '-1', '0', '-1'), 3):241.440246705,
(('1', '1', '4', '0', '0', '1', '0', '0'), 1):10,
(('1', '4', '-1', '2', '-1', '-1', '1', '4'), 3):209.24913612,
(('1', '2', '2', '4', '0', '1', '4', '1'), 3):40,
(('0', '0', '0', '1', '1', '0', '0', '0'), 1):233.770324351,
(('1', '1', '0', '1', '0', '4', '1', '4'), 3):-10,
(('1', '4', '1', '0', '1', '1', '1', '4'), 3):10,
(('0', '1', '4', '1', '0', '1', '0', '0'), 0):123.253435466,
(('0', '2', '1', '2', '4', '0', '1', '2'), 0):595.8,
(('1', '1', '1', '1', '0', '0', '4', '1'), 0):46.4282762672,
(('0', '0', '0', '1', '0', '4', '1', '0'), 0):31.5741541186,
(('4', '2', '2', '2', '1', '2', '4', '4'), 3):10,
(('0', '2', '1', '-1', '4', '2', '-1', '-1'), 2):278.369703723,
(('0', '-1', '1', '2', '1', '-1', '0', '-1'), 3):286.102390726,
(('1', '4', '-1', '1', '-1', '-1', '0', '1'), 2):101.43219254,
(('-1', '1', '1', '0', '-1', '0', '-1', '4'), 2):0,
(('0', '1', '1', '4', '0', '1', '4', '4'), 3):114.716985998,
(('1', '-1', '0', '1', '1', '-1', '1', '-1'), 1):275.277594675,
(('-1', '4', '1', '1', '-1', '1', '-1', '0'), 2):167.479109378,
(('4', '1', '-1', '1', '-1', '-1', '4', '1'), 0):208.483751792,
(('0', '0', '1', '4', '0', '0', '0', '0'), 2):143.367742731,
(('2', '2', '2', '-1', '1', '0', '-1', '-1'), 2):231.12603558,
(('1', '4', '1', '2', '1', '1', '1', '2'), 2):10.0,
(('0', '2', '-1', '2', '-1', '-1', '2', '0'), 0):373.476535316,
(('-1', '2', '0', '2', '-1', '0', '-1', '1'), 1):278.283844195,
(('-1', '2', '1', '2', '-1', '4', '-1', '2'), 2):252.496592657,
(('2', '-1', '0', '-1', '4', '-1', '-1', '-1'), 2):176.337160418,
(('1', '1', '0', '0', '0', '0', '4', '0'), 2):-10,
(('1', '2', '1', '2', '1', '4', '2', '0'), 0):10,
(('4', '-1', '1', '2', '4', '-1', '4', '-1'), 2):99.4461601202,
(('-1', '4', '1', '-1', '-1', '1', '-1', '-1'), 0):226.670849764,
(('1', '1', '1', '1', '4', '1', '1', '1'), 2):149.113881516,
(('-1', '0', '1', '1', '-1', '4', '-1', '0'), 0):40.2373087341,
(('0', '4', '1', '-1', '0', '4', '-1', '-1'), 0):60.6246611707,
(('1', '4', '1', '1', '1', '1', '0', '1'), 2):-10,
(('2', '2', '1', '2', '2', '1', '4', '4'), 1):67.7202997581,
(('2', '2', '2', '2', '4', '2', '2', '2'), 2):11.8,
(('0', '1', '0', '1', '4', '0', '1', '1'), 3):0.0,
(('0', '1', '4', '-1', '4', '4', '-1', '-1'), 1):54.7117682073,
(('0', '4', '1', '-1', '0', '0', '-1', '-1'), 3):-23.5141057023,
(('1', '2', '2', '2', '1', '1', '0', '1'), 0):51.0025967546,
(('0', '2', '0', '2', '1', '1', '4', '2'), 0):85.0124352847,
(('0', '2', '1', '-1', '2', '0', '-1', '-1'), 0):451.891949388,
(('2', '2', '2', '-1', '2', '2', '-1', '-1'), 0):229.484453595,
(('0', '2', '1', '2', '0', '4', '0', '0'), 0):241.723904891,
(('1', '2', '0', '4', '1', '0', '1', '0'), 1):232.955025063,
(('0', '1', '0', '1', '0', '1', '0', '4'), 3):0,
(('4', '-1', '0', '0', '0', '-1', '0', '-1'), 2):112.005800525,
(('1', '2', '2', '4', '2', '0', '4', '0'), 3):99.0279649119,
(('1', '4', '1', '0', '1', '1', '0', '4'), 3):76.0750657009,
(('1', '4', '0', '2', '0', '0', '0', '4'), 2):-137.740786519,
(('4', '1', '1', '0', '0', '1', '4', '0'), 0):147.325280288,
(('2', '2', '1', '-1', '1', '1', '-1', '-1'), 0):360.601449284,
(('4', '1', '1', '1', '1', '1', '4', '0'), 0):45.6033760326,
(('1', '2', '0', '4', '1', '0', '0', '1'), 1):10,
(('4', '-1', '4', '1', '0', '-1', '0', '-1'), 2):-10,
(('1', '4', '0', '-1', '0', '4', '-1', '-1'), 3):74.0532680262,
(('2', '2', '2', '2', '2', '0', '2', '4'), 2):0,
(('-1', '2', '1', '-1', '-1', '1', '-1', '-1'), 2):380.285626029,
(('1', '0', '0', '0', '0', '0', '1', '1'), 1):132.568736575,
(('-1', '4', '1', '2', '-1', '1', '-1', '1'), 1):17.3257542685,
(('1', '2', '1', '2', '1', '0', '0', '1'), 2):206.717090178,
(('0', '2', '2', '4', '0', '0', '0', '2'), 0):1020,
(('2', '2', '2', '2', '1', '0', '2', '0'), 0):131.091835656,
(('2', '2', '2', '2', '2', '1', '0', '1'), 2):267.843208607,
(('1', '0', '1', '0', '4', '0', '1', '0'), 1):180.675370796,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '4'), 3):16.0087906213,
(('2', '2', '0', '2', '1', '1', '2', '1'), 1):278.049634759,
(('4', '0', '4', '1', '4', '0', '4', '0'), 0):0,
(('4', '1', '1', '0', '0', '0', '0', '0'), 1):98.5902923345,
(('0', '1', '0', '0', '4', '1', '0', '1'), 3):10,
(('0', '1', '1', '1', '1', '1', '1', '4'), 1):0,
(('1', '2', '1', '2', '1', '1', '2', '4'), 2):80.9994739503,
(('2', '2', '1', '4', '1', '1', '4', '4'), 1):22.1006606124,
(('4', '0', '1', '4', '1', '1', '0', '0'), 2):-10,
(('1', '2', '2', '2', '4', '0', '1', '2'), 3):333.859874734,
(('0', '1', '-1', '1', '-1', '-1', '0', '0'), 3):264.138679251,
(('4', '1', '1', '1', '0', '1', '4', '1'), 2):82.3980140102,
(('0', '1', '0', '4', '0', '0', '4', '4'), 3):101.331420949,
(('0', '0', '1', '1', '4', '0', '0', '1'), 2):10,
(('2', '-1', '0', '-1', '0', '-1', '-1', '-1'), 1):293.28645343,
(('0', '2', '0', '2', '0', '2', '1', '1'), 2):152.526358928,
(('1', '1', '4', '1', '1', '0', '0', '0'), 2):50,
(('0', '0', '4', '1', '0', '4', '0', '0'), 2):151.652180419,
(('2', '2', '0', '2', '0', '4', '4', '0'), 1):10,
(('1', '2', '0', '4', '1', '0', '0', '0'), 3):10,
(('4', '2', '2', '2', '4', '0', '2', '2'), 2):10,
(('1', '2', '4', '2', '0', '4', '1', '4'), 3):20,
(('0', '0', '1', '0', '0', '1', '0', '4'), 1):-10,
(('1', '1', '4', '1', '0', '1', '1', '0'), 2):-2.0,
(('1', '2', '0', '2', '0', '1', '4', '1'), 1):10,
(('2', '2', '0', '2', '1', '0', '0', '2'), 2):188.782134298,
(('0', '2', '-1', '4', '-1', '-1', '4', '1'), 3):158.912973395,
(('0', '4', '-1', '2', '-1', '-1', '0', '0'), 1):10,
(('0', '-1', '2', '2', '2', '-1', '1', '-1'), 3):418.623579353,
(('2', '2', '0', '-1', '4', '2', '-1', '-1'), 1):10,
(('4', '1', '0', '1', '4', '0', '0', '1'), 2):108.148275625,
(('-1', '1', '1', '-1', '-1', '0', '-1', '-1'), 0):243.418632838,
(('-1', '0', '0', '4', '-1', '0', '-1', '4'), 2):31.3356979879,
(('1', '1', '1', '4', '1', '1', '1', '1'), 1):152.281008177,
(('4', '2', '1', '4', '4', '1', '4', '4'), 0):50,
(('-1', '2', '0', '2', '-1', '0', '-1', '0'), 2):255.301128008,
(('1', '0', '0', '0', '4', '0', '0', '0'), 2):-15.7166573517,
(('2', '2', '4', '2', '0', '4', '0', '1'), 2):70.2015619485,
(('1', '0', '-1', '1', '-1', '-1', '1', '0'), 2):274.166622178,
(('0', '2', '2', '2', '0', '2', '4', '4'), 0):10,
(('0', '1', '0', '1', '4', '0', '1', '0'), 0):51.7582501539,
(('4', '2', '2', '2', '0', '0', '1', '0'), 3):147.752064442,
(('0', '1', '1', '-1', '1', '4', '-1', '-1'), 0):194.307794402,
(('4', '1', '-1', '1', '-1', '-1', '0', '1'), 0):236.302477537,
(('1', '2', '4', '2', '4', '0', '0', '2'), 2):77.7779902392,
(('2', '2', '0', '-1', '0', '0', '-1', '-1'), 0):301.660122275,
(('2', '2', '0', '-1', '1', '0', '-1', '-1'), 2):352.047816723,
(('0', '0', '1', '4', '1', '0', '4', '0'), 3):35.8424977525,
(('1', '2', '0', '2', '0', '0', '0', '0'), 2):251.588487327,
(('0', '1', '0', '1', '1', '0', '0', '1'), 1):208.144506868,
(('0', '1', '0', '0', '0', '1', '4', '0'), 3):10,
(('0', '4', '0', '2', '1', '1', '0', '1'), 1):10,
(('1', '4', '-1', '2', '-1', '-1', '1', '1'), 3):10,
(('1', '4', '1', '-1', '1', '0', '-1', '-1'), 2):280.587034843,
(('-1', '1', '1', '0', '-1', '0', '-1', '0'), 2):243.511974085,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '4'), 1):197.537462947,
(('0', '2', '0', '2', '4', '0', '4', '0'), 0):10,
(('2', '2', '2', '2', '0', '1', '4', '4'), 1):10,
(('2', '-1', '2', '2', '1', '-1', '2', '-1'), 3):362.787766205,
(('-1', '1', '4', '1', '-1', '0', '-1', '1'), 0):239.267073107,
(('0', '1', '1', '0', '1', '0', '0', '1'), 0):219.320261696,
(('2', '2', '4', '2', '0', '0', '2', '2'), 0):68.4251856001,
(('4', '1', '4', '0', '4', '4', '0', '0'), 2):0,
(('1', '1', '1', '0', '4', '0', '1', '0'), 2):36.4848285793,
(('2', '2', '0', '2', '2', '4', '4', '0'), 1):21.4343738938,
(('-1', '0', '1', '0', '-1', '1', '-1', '1'), 3):110.942268906,
(('0', '-1', '-1', '2', '-1', '-1', '4', '-1'), 2):257.355951189,
(('0', '2', '1', '2', '0', '0', '0', '1'), 3):228.537740621,
(('1', '4', '0', '1', '0', '4', '1', '0'), 0):8.2161471456,
(('1', '4', '0', '2', '4', '0', '1', '0'), 2):10,
(('1', '4', '2', '-1', '1', '4', '-1', '-1'), 3):138.880932912,
(('1', '1', '-1', '1', '-1', '-1', '0', '0'), 1):237.324733366,
(('1', '0', '-1', '4', '-1', '-1', '0', '4'), 0):-10,
(('2', '4', '4', '4', '0', '4', '0', '4'), 1):50,
(('0', '4', '1', '0', '1', '1', '0', '0'), 1):201.067317378,
(('0', '-1', '4', '2', '4', '-1', '2', '-1'), 0):10,
(('1', '2', '1', '2', '2', '2', '0', '0'), 0):125.221182969,
(('0', '2', '4', '2', '1', '4', '0', '2'), 2):10.0,
(('-1', '1', '0', '4', '-1', '0', '-1', '1'), 1):127.906837026,
(('4', '2', '4', '2', '4', '4', '0', '0'), 2):6.0,
(('1', '2', '4', '2', '1', '1', '0', '0'), 3):125.146377529,
(('0', '1', '1', '0', '1', '1', '0', '0'), 3):237.678426193,
(('0', '4', '2', '2', '1', '2', '0', '4'), 3):81.0794134632,
(('2', '2', '2', '2', '2', '1', '0', '2'), 2):351.499234367,
(('1', '1', '1', '1', '1', '0', '4', '0'), 1):31.2870859153,
(('1', '2', '0', '2', '1', '0', '1', '0'), 2):298.448489713,
(('0', '2', '0', '2', '2', '0', '0', '0'), 2):158.095567752,
(('1', '1', '4', '0', '1', '1', '1', '0'), 0):-8.2,
(('0', '-1', '-1', '0', '-1', '-1', '0', '-1'), 0):65.5451155047,
(('4', '2', '1', '2', '1', '0', '4', '0'), 1):33.7283036168,
(('0', '2', '2', '2', '2', '2', '4', '0'), 3):179.586167105,
(('0', '1', '0', '0', '1', '0', '1', '1'), 2):16.3872053891,
(('0', '1', '4', '1', '0', '4', '0', '1'), 0):59.387792209,
(('2', '2', '1', '2', '1', '4', '2', '0'), 1):309.727243887,
(('1', '2', '1', '4', '0', '0', '0', '0'), 1):10,
(('0', '-1', '4', '-1', '4', '-1', '-1', '-1'), 1):33.829120644,
(('2', '4', '2', '2', '2', '4', '2', '1'), 3):320,
(('0', '2', '0', '2', '0', '1', '1', '0'), 2):249.992967664,
(('1', '4', '0', '1', '0', '4', '1', '4'), 0):-10,
(('0', '-1', '0', '2', '4', '-1', '4', '-1'), 1):0,
(('1', '1', '1', '4', '1', '0', '4', '0'), 2):-0.477952642421,
(('2', '2', '0', '2', '4', '1', '1', '1'), 1):31.6,
(('1', '1', '0', '0', '1', '4', '0', '0'), 1):9.78583932653,
(('1', '1', '0', '1', '0', '0', '4', '1'), 3):107.752046526,
(('1', '2', '2', '2', '1', '0', '2', '2'), 2):328.970653294,
(('4', '2', '0', '-1', '1', '0', '-1', '-1'), 0):172.928611471,
(('0', '1', '0', '4', '0', '0', '1', '0'), 1):80.6290537253,
(('0', '2', '0', '-1', '0', '2', '-1', '-1'), 0):303.697179628,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '0'), 3):68.7156811113,
(('0', '2', '1', '2', '1', '1', '4', '0'), 0):189.111568579,
(('1', '1', '0', '0', '0', '0', '0', '1'), 0):210.596628395,
(('0', '-1', '1', '4', '0', '-1', '0', '-1'), 0):169.683051734,
(('0', '1', '0', '0', '4', '1', '0', '0'), 0):41.6201788784,
(('2', '2', '1', '2', '1', '4', '0', '4'), 1):131.136392868,
(('1', '2', '1', '2', '0', '2', '1', '0'), 0):233.882157642,
(('0', '1', '0', '0', '0', '1', '1', '1'), 1):38.4384908192,
(('0', '2', '2', '4', '0', '1', '1', '1'), 3):20,
(('1', '2', '2', '2', '1', '2', '4', '2'), 2):240,
(('2', '2', '4', '-1', '4', '0', '-1', '-1'), 0):-10,
(('0', '1', '1', '0', '4', '1', '0', '0'), 0):219.484009782,
(('1', '1', '-1', '0', '-1', '-1', '4', '1'), 3):206.789939506,
(('0', '1', '4', '0', '0', '4', '0', '1'), 1):121.817234968,
(('0', '0', '1', '0', '1', '0', '4', '0'), 3):56.7973457929,
(('-1', '4', '0', '-1', '-1', '0', '-1', '-1'), 3):209.474778649,
(('1', '-1', '4', '1', '1', '-1', '1', '-1'), 2):219.594747698,
(('1', '0', '1', '4', '0', '1', '0', '4'), 3):0,
(('0', '1', '0', '-1', '1', '0', '-1', '-1'), 2):274.061908908,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '4'), 1):9.8,
(('0', '2', '4', '2', '2', '0', '1', '0'), 3):84.3447406354,
(('0', '2', '2', '4', '0', '2', '0', '0'), 3):249.073539863,
(('2', '2', '2', '2', '0', '4', '0', '0'), 2):10,
(('2', '2', '2', '2', '0', '1', '4', '0'), 1):10,
(('1', '-1', '-1', '1', '-1', '-1', '4', '-1'), 3):211.444933529,
(('2', '2', '4', '-1', '1', '1', '-1', '-1'), 2):122.392942589,
(('1', '2', '4', '-1', '1', '0', '-1', '-1'), 3):317.721310831,
(('0', '2', '2', '2', '1', '2', '1', '0'), 3):333.324307971,
(('1', '2', '0', '2', '4', '1', '1', '0'), 2):85.7875205335,
(('0', '2', '2', '2', '0', '4', '0', '0'), 3):264.185869335,
(('1', '0', '0', '1', '0', '1', '1', '0'), 0):108.558460826,
(('1', '1', '1', '1', '0', '4', '0', '1'), 1):13.3519510126,
(('0', '4', '4', '-1', '0', '0', '-1', '-1'), 3):0,
(('1', '1', '1', '1', '4', '0', '0', '1'), 1):46.8179237466,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '1'), 1):244.222981346,
(('1', '4', '1', '1', '1', '0', '0', '0'), 2):94.3826137753,
(('1', '1', '1', '1', '0', '0', '0', '1'), 0):196.103822392,
(('0', '2', '1', '2', '1', '4', '2', '1'), 2):94.8377153,
(('0', '2', '1', '2', '1', '4', '0', '1'), 1):10,
(('1', '0', '1', '1', '1', '0', '0', '1'), 0):184.995314765,
(('0', '-1', '0', '0', '0', '-1', '0', '-1'), 0):237.226441042,
(('-1', '2', '4', '2', '-1', '1', '-1', '1'), 1):254.882822928,
(('0', '1', '-1', '4', '-1', '-1', '4', '4'), 3):137.859097143,
(('0', '1', '0', '4', '0', '1', '1', '0'), 3):10,
(('1', '2', '4', '2', '0', '0', '0', '0'), 2):213.400928872,
(('1', '2', '-1', '4', '-1', '-1', '0', '1'), 3):60,
(('1', '2', '2', '2', '2', '0', '2', '0'), 2):379.749780547,
(('4', '-1', '4', '-1', '1', '-1', '-1', '-1'), 2):30,
(('1', '4', '1', '2', '1', '0', '2', '2'), 2):10,
(('0', '4', '2', '2', '1', '1', '1', '1'), 3):10,
(('0', '0', '0', '4', '0', '1', '0', '0'), 1):10,
(('1', '0', '1', '-1', '4', '0', '-1', '-1'), 0):227.82702886,
(('0', '0', '4', '1', '4', '4', '1', '0'), 0):-1000,
(('1', '0', '1', '0', '4', '1', '0', '0'), 3):93.9213855592,
(('2', '2', '1', '2', '2', '0', '2', '2'), 2):807.210233447,
(('1', '4', '-1', '4', '-1', '-1', '1', '0'), 0):50,
(('1', '4', '1', '1', '1', '1', '1', '4'), 2):-0.909609260496,
(('4', '2', '1', '2', '1', '0', '4', '1'), 0):10,
(('1', '-1', '2', '4', '1', '-1', '1', '-1'), 3):260.209107375,
(('2', '2', '0', '-1', '1', '2', '-1', '-1'), 0):280.069144968,
(('1', '0', '0', '-1', '1', '1', '-1', '-1'), 3):176.009289263,
(('2', '2', '1', '4', '0', '1', '4', '4'), 1):21.8,
(('4', '2', '0', '4', '4', '0', '4', '4'), 2):10,
(('0', '1', '0', '1', '1', '0', '0', '0'), 2):221.881833664,
(('0', '-1', '1', '2', '1', '-1', '4', '-1'), 3):116.741211063,
(('4', '0', '0', '-1', '0', '0', '-1', '-1'), 1):277.54404643,
(('1', '1', '1', '0', '0', '1', '0', '0'), 2):225.066196018,
(('1', '2', '4', '2', '1', '0', '1', '1'), 1):173.129651999,
(('1', '1', '1', '1', '4', '1', '1', '1'), 3):131.105998778,
(('4', '2', '4', '2', '4', '4', '0', '4'), 1):10,
(('4', '2', '4', '2', '4', '4', '1', '1'), 2):50,
(('1', '2', '0', '2', '2', '0', '0', '2'), 2):627.570562307,
(('-1', '1', '0', '4', '-1', '1', '-1', '1'), 3):171.555073525,
(('0', '0', '1', '0', '1', '1', '0', '1'), 3):10,
(('1', '0', '4', '-1', '1', '0', '-1', '-1'), 3):305.451528444,
(('0', '2', '-1', '2', '-1', '-1', '0', '4'), 2):325.910032874,
(('4', '2', '2', '2', '2', '2', '0', '2'), 2):10,
(('0', '2', '0', '2', '4', '2', '0', '1'), 0):140.700952486,
(('1', '4', '1', '1', '1', '0', '1', '1'), 0):91.01416208,
(('2', '2', '1', '2', '2', '0', '0', '2'), 2):290.120575973,
(('2', '2', '1', '2', '1', '1', '0', '2'), 2):227.858228396,
(('0', '2', '2', '2', '2', '0', '2', '4'), 3):10,
(('1', '0', '0', '0', '0', '0', '0', '0'), 3):209.889862481,
(('2', '2', '2', '2', '1', '1', '1', '4'), 1):140.891884448,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '0'), 0):157.393614466,
(('2', '4', '1', '2', '2', '1', '1', '0'), 1):63.7967230529,
(('2', '2', '2', '2', '0', '2', '0', '4'), 3):10,
(('-1', '4', '0', '1', '-1', '4', '-1', '1'), 0):-10,
(('-1', '2', '1', '-1', '-1', '4', '-1', '-1'), 3):220.297367138,
(('-1', '1', '1', '0', '-1', '1', '-1', '1'), 1):246.019436844,
(('0', '0', '1', '4', '1', '1', '0', '4'), 0):0,
(('0', '1', '0', '1', '0', '0', '1', '1'), 1):211.111557038,
(('1', '1', '4', '0', '0', '1', '1', '0'), 2):40.09557367,
(('0', '0', '4', '-1', '4', '4', '-1', '-1'), 0):0,
(('2', '4', '1', '2', '1', '0', '0', '0'), 2):97.7685945013,
(('2', '2', '4', '2', '0', '4', '2', '1'), 0):10,
(('0', '2', '1', '-1', '1', '1', '-1', '-1'), 2):352.578545776,
(('0', '2', '1', '2', '0', '0', '1', '1'), 3):101.466559851,
(('4', '-1', '-1', '4', '-1', '-1', '4', '-1'), 3):116.355387971,
(('1', '-1', '2', '-1', '2', '-1', '-1', '-1'), 3):354.293669261,
(('4', '1', '1', '-1', '1', '1', '-1', '-1'), 1):162.440529026,
(('4', '0', '1', '0', '4', '0', '0', '0'), 1):-755.269639587,
(('2', '2', '0', '2', '0', '4', '1', '0'), 1):206.810121098,
(('0', '2', '-1', '4', '-1', '-1', '1', '4'), 0):83.8926733927,
(('-1', '0', '0', '1', '-1', '0', '-1', '4'), 3):113.631610762,
(('0', '-1', '4', '-1', '0', '-1', '-1', '-1'), 2):247.780406831,
(('4', '2', '1', '2', '1', '2', '4', '0'), 0):333.304575294,
(('0', '2', '0', '2', '4', '2', '0', '0'), 0):241.742627355,
(('0', '1', '0', '4', '0', '0', '0', '4'), 0):60.1095305827,
(('1', '4', '1', '2', '1', '0', '2', '0'), 2):10,
(('4', '1', '4', '1', '4', '4', '0', '1'), 3):0,
(('1', '2', '4', '2', '4', '1', '0', '2'), 0):59.7769148041,
(('2', '2', '0', '4', '0', '0', '1', '0'), 1):196.978382846,
(('1', '0', '4', '0', '0', '4', '0', '0'), 0):-2.0,
(('1', '4', '-1', '2', '-1', '-1', '1', '1'), 2):295.345937227,
(('1', '1', '0', '-1', '0', '1', '-1', '-1'), 1):241.680004384,
(('2', '2', '4', '2', '4', '1', '2', '0'), 1):467.100405768,
(('-1', '2', '0', '4', '-1', '2', '-1', '4'), 0):10,
(('4', '-1', '2', '2', '2', '-1', '4', '-1'), 1):10,
(('-1', '2', '0', '2', '-1', '1', '-1', '0'), 2):267.760734512,
(('2', '2', '1', '2', '2', '0', '0', '1'), 1):240.571834051,
(('1', '2', '1', '2', '1', '2', '4', '0'), 2):70,
(('0', '1', '0', '1', '1', '1', '1', '1'), 2):84.6766368293,
(('-1', '0', '1', '0', '-1', '4', '-1', '0'), 1):65.4718114917,
(('1', '-1', '2', '2', '0', '-1', '4', '-1'), 0):35.8116386832,
(('0', '2', '1', '2', '1', '1', '1', '0'), 3):256.873510044,
(('2', '2', '1', '2', '0', '0', '0', '2'), 2):326.598310172,
(('4', '2', '1', '2', '0', '1', '1', '0'), 0):139.91270182,
(('0', '2', '2', '4', '1', '0', '0', '1'), 3):10,
(('2', '4', '4', '-1', '4', '4', '-1', '-1'), 1):10,
(('1', '0', '1', '0', '0', '4', '1', '0'), 0):10,
(('0', '4', '1', '-1', '1', '0', '-1', '-1'), 2):239.47447636,
(('0', '2', '1', '4', '1', '1', '0', '0'), 1):10,
(('0', '4', '0', '0', '4', '4', '0', '0'), 1):10,
(('0', '1', '4', '-1', '4', '0', '-1', '-1'), 1):-786.323011428,
(('0', '2', '2', '2', '4', '1', '0', '2'), 2):10,
(('0', '0', '0', '1', '0', '0', '4', '1'), 3):152.778274991,
(('2', '2', '2', '2', '2', '1', '2', '2'), 3):503.076098492,
(('4', '2', '2', '2', '2', '1', '4', '0'), 3):10.0,
(('1', '1', '0', '1', '1', '1', '1', '0'), 1):123.211047597,
(('1', '2', '0', '2', '0', '0', '1', '1'), 2):220.538857446,
(('0', '4', '1', '2', '0', '1', '0', '2'), 2):59.0,
(('4', '2', '0', '2', '0', '2', '0', '0'), 2):10,
(('1', '1', '4', '1', '4', '1', '1', '1'), 0):81.0559357594,
(('2', '4', '0', '2', '2', '0', '1', '1'), 1):74.9138952441,
(('0', '0', '1', '0', '0', '4', '0', '0'), 2):130.63088793,
(('0', '-1', '0', '0', '4', '-1', '0', '-1'), 0):46.3180693722,
(('0', '1', '-1', '0', '-1', '-1', '1', '0'), 1):245.45536367,
(('1', '1', '0', '0', '0', '1', '0', '0'), 1):200.874612949,
(('0', '1', '0', '0', '0', '1', '4', '0'), 1):0,
(('1', '4', '1', '0', '1', '0', '1', '0'), 0):169.417255999,
(('2', '2', '1', '2', '1', '1', '2', '2'), 1):439.457940797,
(('1', '4', '1', '1', '1', '4', '1', '1'), 1):50.7802841521,
(('4', '-1', '1', '0', '4', '-1', '4', '-1'), 3):10,
(('4', '-1', '2', '4', '4', '-1', '4', '-1'), 0):10,
(('4', '0', '1', '0', '1', '1', '0', '0'), 1):193.656725557,
(('0', '2', '0', '2', '1', '2', '1', '1'), 0):176.063147075,
(('0', '0', '0', '0', '0', '4', '1', '0'), 0):0,
(('4', '1', '0', '0', '4', '1', '4', '0'), 0):13.9375226812,
(('4', '0', '0', '0', '0', '0', '4', '0'), 3):88.9733780209,
(('1', '1', '4', '1', '4', '0', '1', '0'), 0):144.596827714,
(('1', '4', '4', '1', '4', '4', '1', '1'), 2):48.2203608596,
(('1', '2', '2', '2', '2', '2', '1', '0'), 2):204.678253999,
(('2', '2', '4', '2', '0', '4', '0', '0'), 1):231.630195484,
(('2', '4', '-1', '2', '-1', '-1', '0', '4'), 1):164.982042459,
(('1', '2', '0', '2', '0', '2', '0', '2'), 2):494.110240719,
(('4', '2', '2', '-1', '1', '1', '-1', '-1'), 3):277.040083296,
(('0', '1', '4', '1', '1', '0', '0', '1'), 1):-10,
(('0', '4', '0', '1', '0', '1', '0', '1'), 2):94.8100818737,
(('1', '2', '0', '2', '4', '0', '0', '1'), 0):91.0154947419,
(('4', '0', '1', '4', '0', '0', '4', '0'), 3):-10,
(('0', '-1', '0', '1', '4', '-1', '0', '-1'), 2):163.760508191,
(('1', '0', '0', '1', '1', '0', '4', '1'), 0):64.0892980486,
(('2', '-1', '2', '4', '2', '-1', '0', '-1'), 1):10,
(('0', '2', '0', '2', '1', '1', '1', '0'), 0):37.3486788124,
(('-1', '4', '1', '2', '-1', '1', '-1', '0'), 3):231.40800529,
(('1', '4', '4', '1', '0', '4', '1', '4'), 2):10.0,
(('0', '2', '0', '2', '0', '0', '1', '1'), 3):143.920185485,
(('0', '1', '0', '1', '1', '1', '1', '1'), 3):80.8288153573,
(('2', '4', '-1', '2', '-1', '-1', '2', '1'), 1):469.623889428,
(('0', '0', '0', '1', '1', '0', '0', '4'), 0):0,
(('0', '2', '4', '-1', '4', '1', '-1', '-1'), 0):246.590270765,
(('0', '1', '0', '0', '4', '0', '0', '0'), 1):122.627373753,
(('4', '0', '1', '1', '1', '1', '0', '1'), 2):10,
(('1', '4', '0', '-1', '0', '0', '-1', '-1'), 1):205.475541061,
(('4', '2', '-1', '2', '-1', '-1', '4', '0'), 1):253.61646225,
(('2', '2', '2', '2', '2', '2', '0', '1'), 3):359.945579197,
(('1', '-1', '2', '2', '2', '-1', '0', '-1'), 3):338.049208673,
(('0', '2', '0', '2', '0', '2', '2', '0'), 2):155.036124382,
(('0', '0', '0', '1', '0', '0', '4', '0'), 3):82.3782529858,
(('2', '2', '1', '4', '0', '0', '2', '0'), 1):55.4186003045,
(('0', '2', '4', '-1', '1', '4', '-1', '-1'), 2):229.425475453,
(('2', '2', '0', '2', '2', '1', '0', '2'), 2):156.514893879,
(('4', '2', '1', '2', '1', '0', '4', '2'), 2):10,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '4'), 1):213.443488617,
(('4', '0', '1', '1', '4', '0', '4', '0'), 2):59.2419539271,
(('0', '2', '0', '-1', '1', '2', '-1', '-1'), 0):347.7433124,
(('4', '0', '1', '0', '0', '0', '4', '0'), 2):40.5907479601,
(('2', '2', '2', '2', '1', '4', '1', '0'), 1):10.0,
(('1', '1', '1', '1', '0', '0', '4', '0'), 0):0,
(('1', '1', '1', '1', '0', '0', '0', '0'), 3):201.812776421,
(('2', '2', '1', '2', '2', '1', '2', '4'), 1):304.272454886,
(('2', '2', '1', '2', '2', '4', '2', '0'), 1):272.542803706,
(('1', '2', '1', '2', '1', '4', '1', '0'), 3):141.79492943,
(('1', '2', '0', '-1', '0', '4', '-1', '-1'), 2):213.041211708,
(('0', '4', '0', '2', '1', '0', '0', '4'), 2):10,
(('0', '0', '0', '0', '1', '0', '0', '0'), 3):262.234395467,
(('2', '2', '2', '2', '4', '2', '2', '0'), 1):10,
(('0', '1', '4', '0', '4', '4', '0', '0'), 0):83.2693680304,
(('-1', '1', '0', '4', '-1', '0', '-1', '0'), 2):0,
(('1', '1', '1', '4', '1', '0', '0', '0'), 0):91.6339718871,
(('4', '2', '1', '2', '0', '1', '1', '0'), 3):10,
(('4', '4', '0', '4', '0', '0', '4', '4'), 3):0,
(('2', '2', '2', '2', '1', '0', '1', '2'), 0):10,
(('0', '4', '4', '1', '4', '4', '0', '0'), 0):0,
(('-1', '1', '4', '0', '-1', '0', '-1', '0'), 3):127.166527177,
(('2', '4', '4', '2', '1', '4', '1', '0'), 1):20,
(('2', '-1', '0', '2', '0', '-1', '2', '-1'), 2):293.661395607,
(('2', '4', '0', '2', '0', '0', '0', '0'), 2):10.0,
(('0', '2', '0', '2', '1', '1', '4', '1'), 0):10,
(('4', '1', '1', '0', '4', '0', '1', '0'), 0):-10,
(('2', '2', '1', '2', '2', '1', '0', '4'), 2):66.6621486955,
(('1', '1', '0', '1', '0', '4', '0', '1'), 3):28.7783376268,
(('0', '2', '0', '2', '0', '0', '1', '2'), 0):280.980275675,
(('2', '2', '0', '2', '1', '2', '2', '2'), 1):422.365918458,
(('0', '2', '2', '2', '0', '2', '4', '2'), 0):148.452642863,
(('1', '2', '2', '-1', '0', '0', '-1', '-1'), 2):348.498049137,
(('1', '2', '4', '2', '0', '0', '0', '2'), 2):50,
(('4', '2', '1', '2', '4', '0', '4', '0'), 3):32.1289488782,
(('0', '1', '1', '1', '1', '1', '1', '1'), 0):205.472886504,
(('-1', '0', '1', '-1', '-1', '4', '-1', '-1'), 2):160.122057723,
(('1', '1', '1', '1', '1', '1', '4', '0'), 1):95.2136744596,
(('1', '1', '4', '-1', '0', '4', '-1', '-1'), 3):131.607727098,
(('1', '2', '0', '2', '0', '0', '4', '0'), 3):72.0450681748,
(('2', '2', '0', '-1', '2', '0', '-1', '-1'), 2):328.682773831,
(('4', '2', '2', '2', '0', '2', '1', '1'), 3):347.893590367,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '1'), 1):401.324104675,
(('0', '-1', '4', '0', '1', '-1', '0', '-1'), 2):63.977605693,
(('2', '2', '0', '2', '1', '1', '0', '0'), 2):199.345735348,
(('0', '2', '2', '2', '0', '2', '1', '2'), 0):373.261909021,
(('1', '1', '4', '0', '1', '4', '0', '0'), 3):10,
(('2', '2', '0', '2', '2', '4', '0', '1'), 1):286.792852611,
(('4', '2', '2', '2', '0', '4', '0', '2'), 3):10,
(('0', '2', '-1', '2', '-1', '-1', '4', '0'), 1):138.721731204,
(('0', '1', '0', '-1', '1', '1', '-1', '-1'), 1):220.882347783,
(('2', '2', '2', '4', '0', '1', '0', '4'), 1):63.4987236921,
(('2', '-1', '1', '2', '0', '-1', '4', '-1'), 1):68.4108106346,
(('2', '2', '2', '2', '0', '2', '2', '2'), 2):311.728808028,
(('1', '0', '0', '1', '0', '1', '0', '1'), 1):10,
(('0', '2', '1', '2', '0', '2', '0', '0'), 0):355.813730488,
(('0', '2', '4', '2', '4', '1', '1', '1'), 2):96.6184049369,
(('1', '1', '0', '4', '0', '0', '0', '0'), 0):104.931067519,
(('4', '0', '1', '0', '1', '1', '1', '0'), 2):-10,
(('4', '2', '2', '2', '4', '2', '0', '2'), 3):210.106297287,
(('1', '-1', '1', '-1', '4', '-1', '-1', '-1'), 1):214.587458968,
(('4', '2', '4', '-1', '4', '4', '-1', '-1'), 2):101.856154006,
(('2', '2', '4', '2', '0', '2', '0', '0'), 1):10,
(('0', '2', '1', '-1', '1', '0', '-1', '-1'), 0):327.46954931,
(('0', '2', '2', '2', '0', '0', '0', '1'), 0):76.0818046363,
(('2', '2', '-1', '2', '-1', '-1', '1', '1'), 3):308.007478807,
(('2', '2', '2', '2', '1', '2', '2', '0'), 1):329.524907549,
(('0', '0', '1', '-1', '4', '0', '-1', '-1'), 3):207.486400322,
(('0', '2', '4', '2', '0', '0', '1', '2'), 3):174.140857394,
(('0', '1', '1', '0', '0', '0', '0', '0'), 1):232.140937711,
(('1', '2', '4', '2', '0', '0', '2', '2'), 2):50.0455950057,
(('2', '2', '1', '2', '1', '4', '2', '1'), 1):281.26720545,
(('1', '2', '4', '2', '0', '4', '1', '4'), 2):10.0,
(('0', '2', '1', '2', '2', '1', '2', '2'), 2):829.05821861,
(('1', '2', '1', '2', '1', '4', '1', '1'), 0):54.2533838778,
(('4', '1', '4', '0', '1', '0', '0', '0'), 0):50,
(('2', '2', '2', '4', '2', '0', '2', '4'), 3):68.6598158469,
(('2', '2', '2', '2', '1', '2', '1', '2'), 1):153.131045921,
(('1', '0', '4', '0', '4', '0', '0', '0'), 1):114.81214275,
(('1', '1', '0', '0', '0', '0', '0', '0'), 3):222.341791021,
(('0', '-1', '1', '4', '0', '-1', '4', '-1'), 0):113.741839567,
(('4', '-1', '1', '2', '0', '-1', '4', '-1'), 2):10,
(('2', '4', '4', '2', '0', '4', '2', '4'), 1):179.335138373,
(('2', '2', '2', '-1', '1', '4', '-1', '-1'), 3):185.057234102,
(('1', '1', '0', '4', '1', '1', '0', '1'), 1):-10,
(('0', '2', '1', '2', '2', '0', '0', '0'), 0):10,
(('1', '4', '4', '-1', '0', '4', '-1', '-1'), 2):65.9808077236,
(('2', '-1', '0', '4', '2', '-1', '4', '-1'), 1):104.662925646,
(('0', '1', '4', '-1', '0', '1', '-1', '-1'), 0):261.543706087,
(('1', '1', '4', '1', '4', '1', '1', '1'), 2):118.255071283,
(('0', '0', '-1', '4', '-1', '-1', '0', '1'), 1):131.004295589,
(('0', '4', '0', '0', '0', '0', '0', '0'), 0):189.739819209,
(('1', '0', '-1', '4', '-1', '-1', '0', '1'), 2):63.7559758651,
(('4', '2', '0', '2', '1', '0', '0', '2'), 2):92.7848607692,
(('0', '0', '1', '1', '1', '1', '4', '0'), 1):8.82260674046,
(('2', '2', '2', '-1', '4', '2', '-1', '-1'), 1):310.319064426,
(('0', '1', '0', '0', '0', '1', '4', '1'), 0):30.8768979454,
(('0', '0', '1', '0', '0', '1', '1', '0'), 0):10,
(('2', '2', '0', '2', '2', '2', '1', '0'), 0):10.0,
(('0', '1', '1', '-1', '0', '0', '-1', '-1'), 3):262.948510165,
(('0', '1', '1', '-1', '1', '0', '-1', '-1'), 0):260.511419873,
(('2', '4', '2', '2', '0', '0', '0', '4'), 3):40,
(('2', '2', '2', '2', '2', '2', '0', '2'), 2):406.735420268,
(('1', '0', '0', '-1', '0', '0', '-1', '-1'), 1):273.68882267,
(('0', '2', '2', '2', '0', '1', '1', '0'), 3):289.988791516,
(('1', '4', '1', '4', '1', '1', '4', '4'), 3):105.737941531,
(('-1', '2', '0', '2', '-1', '1', '-1', '2'), 0):349.219618555,
(('0', '0', '0', '4', '0', '0', '0', '1'), 2):122.976843367,
(('0', '2', '2', '2', '2', '2', '4', '2'), 0):224.480873146,
(('0', '2', '1', '2', '0', '4', '0', '1'), 2):130.596645988,
(('-1', '4', '0', '-1', '-1', '1', '-1', '-1'), 1):60.3339906473,
(('0', '2', '2', '2', '2', '0', '1', '1'), 0):425.207136884,
(('1', '-1', '4', '0', '4', '-1', '0', '-1'), 0):171.702300203,
(('1', '1', '0', '0', '1', '1', '1', '0'), 3):50.2784473448,
(('1', '1', '0', '1', '4', '0', '0', '1'), 0):62.1688768716,
(('2', '2', '2', '2', '0', '2', '2', '1'), 0):473.290595438,
(('0', '1', '1', '4', '1', '1', '0', '0'), 3):193.153911694,
(('1', '2', '2', '2', '2', '0', '0', '4'), 3):222.893725537,
(('0', '0', '-1', '1', '-1', '-1', '0', '4'), 0):96.5293839378,
(('1', '1', '1', '4', '1', '0', '0', '4'), 3):35.4547030993,
(('4', '-1', '1', '0', '1', '-1', '4', '-1'), 3):153.30680505,
(('0', '-1', '0', '1', '0', '-1', '0', '-1'), 0):232.895363507,
(('1', '1', '-1', '0', '-1', '-1', '4', '0'), 0):215.462486804,
(('-1', '1', '0', '1', '-1', '1', '-1', '4'), 3):57.3870095846,
(('1', '2', '2', '2', '0', '4', '0', '1'), 2):60,
(('1', '2', '4', '2', '0', '0', '1', '1'), 0):164.591210068,
(('2', '-1', '1', '2', '0', '-1', '2', '-1'), 1):364.645703837,
(('1', '0', '4', '-1', '4', '0', '-1', '-1'), 1):144.467449465,
(('0', '1', '-1', '0', '-1', '-1', '0', '1'), 3):235.037294405,
(('1', '0', '4', '1', '1', '0', '1', '1'), 0):143.681572343,
(('0', '2', '2', '2', '0', '2', '1', '0'), 2):10,
(('0', '2', '4', '2', '4', '0', '2', '0'), 0):10,
(('1', '0', '-1', '4', '-1', '-1', '4', '4'), 1):130.106146612,
(('0', '2', '0', '2', '0', '4', '0', '0'), 0):194.895767215,
(('0', '-1', '4', '-1', '4', '-1', '-1', '-1'), 2):188.804401288,
(('4', '2', '-1', '2', '-1', '-1', '1', '0'), 2):275.308241666,
(('1', '1', '4', '0', '1', '1', '0', '0'), 2):-200.0,
(('0', '2', '4', '2', '1', '0', '1', '2'), 2):10,
(('1', '1', '0', '0', '0', '4', '1', '0'), 2):0,
(('1', '-1', '0', '0', '0', '-1', '0', '-1'), 2):243.671420646,
(('1', '1', '4', '0', '0', '1', '0', '0'), 2):39.5059984121,
(('1', '4', '0', '0', '0', '0', '1', '4'), 2):39.5137592678,
(('0', '0', '0', '1', '1', '0', '0', '0'), 0):227.925706528,
(('-1', '0', '0', '1', '-1', '4', '-1', '1'), 2):103.104418595,
(('0', '1', '4', '1', '0', '1', '0', '0'), 1):191.871238131,
(('0', '2', '2', '2', '0', '2', '0', '1'), 2):74.2356422251,
(('1', '1', '1', '1', '0', '0', '4', '1'), 1):20.5291727168,
(('4', '0', '1', '1', '4', '0', '0', '0'), 3):0,
(('0', '0', '1', '0', '1', '1', '0', '0'), 0):248.739454495,
(('0', '4', '0', '2', '0', '0', '0', '1'), 2):218.050694328,
(('4', '2', '1', '2', '0', '0', '1', '1'), 2):0,
(('0', '2', '0', '4', '0', '1', '4', '4'), 0):15.3924066569,
(('0', '1', '1', '4', '0', '1', '4', '4'), 0):10,
(('1', '1', '0', '0', '0', '1', '1', '1'), 0):172.996643181,
(('2', '-1', '0', '2', '2', '-1', '2', '-1'), 2):330.22606727,
(('0', '1', '4', '1', '0', '1', '0', '1'), 1):207.504137762,
(('0', '0', '1', '4', '0', '0', '0', '0'), 3):154.610406489,
(('2', '4', '4', '2', '4', '4', '2', '4'), 2):10,
(('1', '0', '-1', '1', '-1', '-1', '4', '1'), 0):91.6231897204,
(('2', '2', '2', '2', '1', '0', '1', '0'), 2):10,
(('-1', '2', '0', '2', '-1', '0', '-1', '1'), 0):251.346226232,
(('-1', '2', '1', '2', '-1', '4', '-1', '2'), 1):10,
(('1', '2', '4', '2', '4', '4', '1', '1'), 0):10,
(('4', '-1', '1', '2', '4', '-1', '4', '-1'), 1):40,
(('1', '0', '1', '1', '1', '0', '1', '4'), 1):172.550924609,
(('1', '-1', '1', '2', '4', '-1', '1', '-1'), 0):117.694663657,
(('-1', '0', '1', '1', '-1', '4', '-1', '0'), 1):140.025477687,
(('0', '4', '1', '-1', '0', '4', '-1', '-1'), 3):69.3657633505,
(('2', '2', '2', '2', '4', '2', '2', '2'), 1):10,
(('0', '1', '0', '1', '4', '0', '1', '1'), 2):130.164367274,
(('0', '1', '4', '-1', '4', '4', '-1', '-1'), 0):153.054639146,
(('0', '4', '1', '-1', '0', '0', '-1', '-1'), 2):157.131298905,
(('2', '2', '2', '-1', '2', '2', '-1', '-1'), 1):484.324408543,
(('0', '2', '1', '2', '0', '4', '0', '0'), 1):41.4920752242,
(('4', '2', '1', '2', '4', '2', '1', '1'), 0):10,
(('2', '2', '0', '2', '2', '0', '1', '4'), 2):10,
(('0', '1', '0', '0', '4', '0', '1', '1'), 3):0.0,
(('2', '2', '4', '2', '1', '4', '4', '0'), 1):10,
(('2', '2', '1', '2', '0', '0', '2', '1'), 1):236.21404996,
(('4', '-1', '0', '0', '0', '-1', '0', '-1'), 3):132.258021165,
(('4', '2', '2', '-1', '2', '2', '-1', '-1'), 0):198.902014522,
(('1', '4', '1', '0', '1', '1', '0', '4'), 2):91.9627652216,
(('-1', '2', '1', '2', '-1', '0', '-1', '0'), 1):235.61947863,
(('0', '4', '1', '1', '0', '4', '1', '1'), 2):-10,
(('0', '2', '0', '2', '0', '2', '1', '4'), 0):10,
(('4', '1', '0', '0', '4', '1', '4', '1'), 0):0,
(('2', '4', '0', '2', '0', '1', '0', '0'), 1):2.0,
(('1', '4', '0', '-1', '0', '4', '-1', '-1'), 2):108.445128041,
(('4', '-1', '0', '1', '4', '-1', '1', '-1'), 3):10,
(('-1', '2', '1', '-1', '-1', '1', '-1', '-1'), 3):330.450659246,
(('1', '0', '0', '4', '0', '0', '0', '1'), 1):10,
(('-1', '4', '1', '2', '-1', '1', '-1', '1'), 0):0,
(('0', '1', '0', '1', '0', '1', '4', '0'), 3):0,
(('1', '2', '4', '2', '4', '4', '1', '4'), 2):10,
(('2', '2', '2', '2', '2', '1', '0', '1'), 1):303.157196456,
(('2', '2', '1', '2', '2', '2', '4', '0'), 1):10,
(('2', '2', '0', '2', '1', '1', '2', '1'), 2):112.400492089,
(('4', '2', '0', '2', '0', '0', '2', '4'), 0):10,
(('0', '1', '1', '1', '0', '4', '0', '4'), 0):44.1418185781,
(('4', '1', '1', '0', '0', '0', '0', '0'), 0):112.01788603,
(('0', '2', '2', '2', '1', '2', '0', '0'), 2):341.072314919,
(('-1', '1', '0', '0', '-1', '4', '-1', '0'), 1):3.0,
(('1', '2', '0', '-1', '2', '2', '-1', '-1'), 0):691.775939292,
(('-1', '1', '0', '0', '-1', '1', '-1', '4'), 3):0,
(('4', '1', '1', '1', '4', '1', '1', '0'), 2):-10,
(('4', '2', '4', '2', '4', '0', '1', '1'), 0):10,
(('1', '1', '1', '4', '1', '1', '1', '1'), 2):137.328744531,
(('2', '4', '1', '2', '0', '4', '0', '4'), 1):26.0,
(('4', '-1', '1', '1', '4', '-1', '4', '-1'), 0):0.0,
(('4', '1', '1', '1', '0', '1', '4', '1'), 3):80.0216991042,
(('0', '1', '0', '4', '0', '0', '4', '4'), 0):128.218963683,
(('2', '2', '1', '2', '1', '1', '2', '0'), 0):247.66953861,
(('2', '-1', '0', '-1', '0', '-1', '-1', '-1'), 2):273.160982327,
(('-1', '4', '1', '0', '-1', '0', '-1', '4'), 2):84.051818823,
(('0', '4', '2', '2', '0', '1', '0', '0'), 3):238.483930928,
(('1', '1', '0', '0', '1', '0', '4', '0'), 2):-80,
(('2', '4', '1', '2', '2', '4', '0', '0'), 1):88.2767920848,
(('0', '2', '4', '-1', '0', '0', '-1', '-1'), 2):205.730235732,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '1'), 0):178.099417527,
(('4', '0', '1', '1', '4', '0', '4', '1'), 0):49.9731631097,
(('0', '-1', '2', '2', '2', '-1', '1', '-1'), 2):321.007506933,
(('4', '2', '0', '2', '4', '0', '1', '2'), 2):240.372101336,
(('4', '1', '0', '1', '4', '0', '0', '1'), 3):51.8353148228,
(('-1', '1', '1', '-1', '-1', '0', '-1', '-1'), 1):247.336995808,
(('2', '2', '2', '2', '0', '4', '0', '0'), 1):192.547370016,
(('4', '2', '0', '2', '4', '0', '0', '1'), 2):142.160525061,
(('0', '0', '1', '4', '1', '0', '1', '0'), 1):0,
(('0', '4', '0', '1', '0', '4', '1', '1'), 3):10,
(('-1', '2', '0', '2', '-1', '0', '-1', '0'), 3):215.060751028,
(('1', '1', '0', '0', '0', '4', '0', '1'), 2):0,
(('0', '2', '0', '4', '0', '2', '0', '2'), 0):320.584915227,
(('0', '2', '2', '2', '4', '2', '4', '0'), 3):45.5604721527,
(('-1', '2', '1', '2', '-1', '1', '-1', '4'), 2):126.418574424,
(('1', '-1', '-1', '2', '-1', '-1', '2', '-1'), 0):401.606041321,
(('1', '2', '2', '2', '2', '0', '1', '4'), 3):300.16276101,
(('0', '2', '2', '2', '0', '2', '4', '4'), 3):332.155863153,
(('1', '2', '1', '2', '1', '2', '2', '2'), 2):542.4296278,
(('2', '2', '2', '2', '0', '0', '2', '4'), 3):329.561435315,
(('0', '0', '-1', '4', '-1', '-1', '0', '4'), 3):72.1188508775,
(('0', '4', '1', '0', '0', '4', '0', '1'), 0):10,
(('4', '1', '0', '0', '1', '1', '0', '0'), 0):44.3370717008,
(('2', '2', '0', '-1', '0', '0', '-1', '-1'), 1):313.344212486,
(('-1', '4', '1', '2', '-1', '4', '-1', '2'), 2):-100,
(('1', '2', '2', '4', '2', '0', '0', '4'), 3):127.404650354,
(('1', '2', '0', '2', '0', '0', '0', '0'), 3):225.487141522,
(('0', '1', '1', '1', '4', '0', '1', '1'), 2):-10,
(('0', '0', '0', '4', '0', '0', '1', '4'), 3):80.4627893778,
(('-1', '1', '1', '0', '-1', '0', '-1', '0'), 3):233.10944983,
(('1', '2', '2', '2', '1', '0', '1', '2'), 2):315.849478191,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '4'), 0):226.39576714,
(('2', '-1', '2', '2', '1', '-1', '2', '-1'), 2):55.3523539506,
(('-1', '1', '4', '1', '-1', '0', '-1', '1'), 3):214.735616738,
(('4', '1', '4', '0', '4', '4', '0', '0'), 3):0,
(('4', '-1', '-1', '1', '-1', '-1', '0', '-1'), 3):232.438873352,
(('1', '1', '1', '0', '4', '0', '1', '0'), 1):10,
(('4', '0', '0', '1', '4', '0', '1', '1'), 0):7.8,
(('-1', '0', '1', '0', '-1', '1', '-1', '1'), 2):115.621238312,
(('0', '-1', '-1', '2', '-1', '-1', '4', '-1'), 3):219.024668282,
(('0', '2', '1', '2', '0', '0', '0', '1'), 2):240.353091587,
(('1', '4', '1', '4', '1', '0', '0', '4'), 1):2.0,
(('1', '4', '0', '1', '0', '4', '1', '0'), 1):144.877585419,
(('1', '1', '1', '1', '4', '0', '1', '1'), 3):92.2710481423,
(('1', '1', '-1', '1', '-1', '-1', '0', '0'), 0):224.647678117,
(('1', '0', '-1', '4', '-1', '-1', '0', '4'), 3):204.154616722,
(('0', '4', '1', '0', '1', '1', '0', '0'), 2):183.570965676,
(('1', '0', '1', '1', '0', '0', '0', '1'), 3):195.402397952,
(('1', '2', '0', '2', '1', '1', '2', '0'), 0):10,
(('-1', '4', '2', '2', '-1', '2', '-1', '0'), 1):270,
(('1', '2', '4', '2', '1', '1', '0', '0'), 0):155.824821711,
(('1', '4', '0', '4', '1', '4', '1', '4'), 3):-210,
(('1', '2', '1', '2', '1', '2', '4', '0'), 0):281.850255677,
(('0', '1', '1', '0', '1', '1', '0', '0'), 2):224.840037043,
(('0', '4', '2', '2', '1', '2', '0', '4'), 0):10,
(('2', '2', '2', '2', '2', '1', '0', '2'), 3):427.722591322,
(('4', '0', '-1', '0', '-1', '-1', '4', '0'), 0):184.731238356,
(('1', '2', '0', '2', '1', '0', '1', '0'), 3):242.682265173,
(('1', '4', '1', '0', '1', '0', '1', '4'), 1):15.1852207788,
(('1', '2', '1', '2', '0', '4', '0', '0'), 0):10,
(('1', '2', '4', '-1', '0', '4', '-1', '-1'), 3):-1000,
(('4', '2', '1', '2', '1', '0', '4', '0'), 0):254.905278387,
(('2', '2', '0', '-1', '2', '4', '-1', '-1'), 1):308.919219697,
(('2', '4', '4', '2', '0', '4', '2', '0'), 1):142.18491463,
(('1', '1', '1', '1', '0', '4', '1', '1'), 1):125.61336653,
(('-1', '0', '1', '4', '-1', '0', '-1', '0'), 0):3.09206016107,
(('0', '1', '4', '1', '0', '4', '0', '1'), 1):187.460822498,
(('0', '2', '4', '2', '1', '0', '1', '0'), 2):43.6473776133,
(('0', '-1', '0', '4', '0', '-1', '1', '-1'), 2):0,
(('0', '2', '1', '-1', '0', '2', '-1', '-1'), 0):400.880799712,
(('0', '2', '2', '4', '1', '2', '0', '0'), 3):101.903569002,
(('1', '4', '1', '0', '0', '0', '0', '4'), 2):0,
(('1', '4', '0', '1', '0', '4', '1', '4'), 1):125.221325281,
(('1', '2', '1', '2', '4', '0', '1', '1'), 1):10,
(('1', '2', '1', '2', '1', '1', '2', '2'), 0):457.532077268,
(('1', '1', '1', '0', '4', '1', '1', '0'), 2):0,
(('4', '-1', '-1', '0', '-1', '-1', '1', '-1'), 3):198.605409284,
(('1', '1', '4', '1', '1', '1', '1', '0'), 3):-10,
(('4', '2', '0', '-1', '1', '0', '-1', '-1'), 3):61.9564516059,
(('4', '2', '1', '2', '4', '0', '4', '2'), 0):58.3968891698,
(('0', '1', '0', '4', '0', '0', '1', '0'), 0):92.4974534254,
(('-1', '1', '1', '0', '-1', '0', '-1', '1'), 3):216.861895375,
(('0', '2', '2', '2', '2', '4', '0', '1'), 3):138.349144303,
(('1', '2', '0', '-1', '4', '2', '-1', '-1'), 0):414.712009839,
(('1', '4', '0', '1', '1', '0', '0', '0'), 2):91.9984932414,
(('1', '1', '0', '0', '0', '0', '0', '1'), 1):203.459605645,
(('0', '-1', '1', '4', '0', '-1', '0', '-1'), 3):210.083933778,
(('0', '1', '4', '0', '4', '0', '0', '0'), 3):34.954864416,
(('0', '2', '4', '2', '4', '0', '0', '0'), 0):224.187115288,
(('4', '2', '2', '2', '1', '1', '0', '1'), 3):200.413277493,
(('-1', '1', '1', '0', '-1', '4', '-1', '0'), 2):179.095933375,
(('2', '2', '0', '2', '2', '2', '0', '0'), 0):386.685930023,
(('0', '1', '1', '0', '4', '1', '0', '0'), 1):222.6907474,
(('0', '1', '4', '0', '0', '4', '0', '1'), 0):121.052406109,
(('0', '0', '1', '0', '1', '0', '4', '0'), 2):0,
(('2', '2', '0', '2', '2', '1', '0', '1'), 2):252.386538158,
(('1', '-1', '4', '1', '1', '-1', '1', '-1'), 3):226.749169904,
(('1', '2', '0', '4', '0', '1', '0', '4'), 3):10,
(('1', '1', '4', '4', '1', '0', '4', '0'), 0):10,
(('0', '1', '0', '1', '1', '1', '0', '0'), 0):89.820383374,
(('0', '1', '0', '-1', '1', '0', '-1', '-1'), 3):259.229660248,
(('4', '2', '2', '2', '4', '0', '0', '2'), 3):40.7453995096,
(('0', '-1', '0', '2', '1', '-1', '1', '-1'), 2):267.687984826,
(('4', '2', '1', '4', '4', '2', '4', '4'), 0):10,
(('0', '4', '4', '2', '0', '4', '0', '2'), 2):36.9536873537,
(('1', '2', '-1', '4', '-1', '-1', '0', '1'), 0):140.806249921,
(('1', '-1', '-1', '1', '-1', '-1', '4', '-1'), 0):256.382368946,
(('1', '2', '0', '2', '4', '1', '1', '1'), 0):61.1465256826,
(('2', '-1', '0', '2', '1', '-1', '1', '-1'), 0):119.307248939,
(('1', '2', '0', '4', '0', '0', '1', '0'), 3):10,
(('2', '2', '-1', '4', '-1', '-1', '0', '1'), 1):180.775545871,
(('2', '2', '4', '-1', '0', '1', '-1', '-1'), 1):253.944556927,
(('0', '2', '0', '2', '1', '0', '4', '0'), 2):50.0675749662,
(('1', '2', '0', '2', '1', '4', '1', '1'), 2):131.761038628,
(('1', '1', '1', '1', '4', '0', '0', '1'), 2):6.7417810195,
(('4', '1', '4', '0', '4', '1', '4', '1'), 0):0,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '1'), 0):265.258036866,
(('1', '0', '0', '1', '0', '4', '1', '0'), 0):96.1670370122,
(('2', '2', '0', '2', '0', '4', '0', '1'), 1):237.939298639,
(('1', '-1', '2', '2', '2', '-1', '0', '-1'), 0):405.949554523,
(('1', '2', '0', '2', '4', '4', '1', '0'), 2):9.8,
(('0', '2', '1', '2', '1', '4', '0', '1'), 2):11.8,
(('1', '0', '1', '1', '1', '0', '0', '1'), 1):204.836778598,
(('0', '-1', '2', '2', '0', '-1', '1', '-1'), 0):249.596751146,
(('4', '0', '0', '1', '1', '0', '1', '0'), 3):70.4026436441,
(('0', '-1', '0', '0', '0', '-1', '0', '-1'), 1):234.616640135,
(('0', '4', '2', '2', '2', '0', '0', '0'), 3):174.005383811,
(('1', '0', '0', '0', '4', '0', '0', '0'), 3):85.2884067982,
(('0', '1', '1', '4', '1', '0', '0', '4'), 0):0,
(('4', '2', '1', '2', '4', '0', '1', '1'), 2):10,
(('1', '2', '4', '2', '0', '0', '0', '0'), 3):140.410181309,
(('1', '2', '2', '4', '0', '2', '4', '4'), 3):10,
(('4', '2', '0', '-1', '4', '0', '-1', '-1'), 0):282.568409687,
(('4', '0', '4', '1', '4', '1', '1', '1'), 2):-10,
(('1', '0', '-1', '1', '-1', '-1', '1', '1'), 2):300.336838401,
(('4', '2', '2', '2', '0', '0', '2', '2'), 1):10,
(('1', '0', '1', '-1', '4', '0', '-1', '-1'), 1):269.694025596,
(('4', '0', '0', '0', '0', '1', '0', '0'), 2):0,
(('0', '2', '2', '2', '0', '4', '1', '2'), 3):10,
(('0', '1', '1', '1', '0', '0', '0', '4'), 2):27.3905207386,
(('0', '2', '1', '2', '1', '1', '4', '2'), 0):250.854643363,
(('1', '4', '1', '2', '0', '1', '1', '0'), 2):-50,
(('0', '0', '-1', '4', '-1', '-1', '1', '0'), 3):211.735297063,
(('4', '2', '0', '2', '4', '4', '0', '2'), 2):30.0,
(('-1', '2', '0', '-1', '-1', '2', '-1', '-1'), 2):305.340647914,
(('1', '2', '0', '2', '0', '2', '2', '2'), 0):446.438617938,
(('1', '2', '2', '2', '1', '2', '0', '0'), 0):369.591812464,
(('1', '4', '2', '-1', '1', '0', '-1', '-1'), 3):174.977665822,
(('1', '2', '0', '2', '0', '2', '1', '4'), 0):10,
(('1', '0', '0', '-1', '1', '1', '-1', '-1'), 2):107.074830184,
(('0', '1', '1', '1', '0', '4', '1', '1'), 0):39.2731174281,
(('1', '2', '2', '2', '2', '2', '1', '4'), 0):61.8270787761,
(('0', '2', '4', '2', '0', '0', '2', '0'), 2):321.15651672,
(('0', '1', '0', '1', '1', '0', '0', '0'), 3):154.981973382,
(('1', '-1', '1', '2', '0', '-1', '0', '-1'), 2):194.929318141,
(('-1', '2', '1', '2', '-1', '1', '-1', '2'), 2):323.501507487,
(('0', '-1', '1', '2', '1', '-1', '4', '-1'), 0):186.697397185,
(('1', '0', '0', '4', '1', '0', '1', '4'), 2):0,
(('1', '1', '4', '0', '1', '1', '0', '1'), 1):10,
(('0', '1', '1', '1', '0', '0', '4', '1'), 3):131.28550413,
(('0', '2', '0', '2', '1', '4', '0', '0'), 0):10,
(('1', '1', '1', '0', '0', '1', '0', '0'), 1):243.952951267,
(('2', '2', '0', '2', '0', '4', '2', '1'), 1):269.266933169,
(('1', '1', '4', '1', '0', '1', '0', '1'), 0):20.3674670624,
(('0', '4', '4', '2', '4', '4', '2', '2'), 2):10,
(('1', '2', '0', '2', '2', '2', '2', '2'), 2):74.1055964732,
(('2', '2', '0', '-1', '1', '1', '-1', '-1'), 0):138.554099708,
(('0', '2', '2', '4', '0', '2', '4', '1'), 3):223.250408476,
(('4', '-1', '1', '2', '0', '-1', '1', '-1'), 0):10,
(('1', '2', '1', '2', '0', '4', '1', '0'), 2):10,
(('1', '-1', '2', '4', '1', '-1', '4', '-1'), 3):159.258061005,
(('4', '1', '4', '1', '4', '4', '4', '1'), 2):-20,
(('1', '0', '4', '-1', '1', '0', '-1', '-1'), 0):255.230986931,
(('0', '2', '-1', '2', '-1', '-1', '0', '4'), 3):207.290783119,
(('4', '4', '2', '2', '0', '2', '0', '4'), 3):50,
(('4', '2', '-1', '2', '-1', '-1', '2', '0'), 3):90,
(('1', '4', '1', '1', '1', '0', '1', '1'), 3):176.334298243,
(('2', '4', '1', '2', '2', '0', '0', '4'), 1):13.24,
(('0', '-1', '1', '4', '0', '-1', '1', '-1'), 3):0,
(('2', '2', '0', '2', '1', '0', '1', '1'), 2):281.358466572,
(('1', '1', '0', '1', '4', '0', '1', '1'), 0):198.137796372,
(('4', '2', '1', '2', '0', '0', '2', '0'), 2):-1000,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '0'), 1):218.494135358,
(('0', '2', '1', '2', '1', '1', '1', '1'), 1):45.5716705885,
(('0', '2', '0', '4', '0', '0', '4', '4'), 0):117.811161736,
(('0', '2', '0', '2', '4', '1', '0', '0'), 0):217.521956963,
(('2', '2', '2', '2', '0', '2', '0', '4'), 2):10,
(('0', '2', '1', '2', '0', '4', '2', '4'), 2):10,
(('0', '4', '1', '0', '0', '0', '0', '1'), 3):56.1220715604,
(('-1', '2', '1', '-1', '-1', '4', '-1', '-1'), 2):-137.662542185,
(('4', '2', '2', '2', '2', '2', '4', '0'), 1):10,
(('0', '2', '4', '2', '0', '1', '2', '1'), 0):10,
(('1', '2', '1', '4', '1', '1', '4', '0'), 1):10,
(('0', '2', '4', '2', '0', '1', '0', '1'), 2):232.177519866,
(('0', '1', '0', '1', '0', '0', '1', '1'), 0):227.918323018,
(('1', '2', '4', '2', '4', '4', '0', '0'), 1):92.776689598,
(('1', '1', '4', '0', '0', '1', '1', '0'), 1):10,
(('0', '-1', '1', '2', '0', '-1', '2', '-1'), 0):313.690077564,
(('2', '4', '1', '2', '1', '0', '0', '0'), 1):218.010478061,
(('2', '2', '4', '2', '0', '4', '2', '1'), 1):278.175136733,
(('4', '1', '1', '0', '1', '1', '4', '1'), 0):66.0405004916,
(('0', '2', '1', '2', '0', '0', '1', '1'), 0):219.815353112,
(('1', '-1', '2', '-1', '2', '-1', '-1', '-1'), 2):359.377745667,
(('4', '1', '1', '-1', '1', '1', '-1', '-1'), 2):242.98263934,
(('2', '2', '2', '2', '4', '4', '0', '0'), 1):10,
(('1', '1', '1', '1', '0', '0', '4', '0'), 1):0,
(('0', '0', '1', '4', '0', '1', '0', '4'), 3):21.5886383558,
(('0', '2', '-1', '4', '-1', '-1', '1', '4'), 3):40,
(('0', '2', '1', '2', '0', '1', '1', '0'), 2):197.411243424,
(('1', '4', '0', '0', '0', '4', '0', '0'), 3):0,
(('2', '4', '4', '2', '0', '4', '1', '0'), 1):10,
(('0', '4', '1', '-1', '1', '1', '-1', '-1'), 3):246.657541993,
(('-1', '0', '0', '1', '-1', '0', '-1', '4'), 2):210.054366704,
(('2', '2', '0', '-1', '0', '4', '-1', '-1'), 2):217.26642638,
(('0', '4', '4', '0', '0', '4', '0', '0'), 0):-10,
(('2', '2', '2', '2', '1', '1', '4', '0'), 3):34.908904888,
(('0', '-1', '4', '-1', '0', '-1', '-1', '-1'), 3):257.469831727,
(('0', '4', '1', '-1', '1', '4', '-1', '-1'), 3):63.4342617657,
(('0', '1', '0', '4', '0', '1', '1', '4'), 0):10,
(('0', '1', '0', '4', '0', '0', '0', '4'), 1):162.63494486,
(('1', '2', '2', '4', '0', '2', '4', '0'), 3):10,
(('1', '0', '4', '0', '0', '4', '0', '0'), 1):50.6087280289,
(('2', '2', '2', '2', '2', '2', '0', '0'), 3):363.608105939,
(('1', '1', '0', '-1', '0', '1', '-1', '-1'), 0):244.429347184,
(('4', '-1', '2', '2', '2', '-1', '4', '-1'), 2):10,
(('1', '1', '1', '0', '1', '1', '0', '1'), 1):256.467987806,
(('1', '2', '2', '4', '1', '2', '4', '0'), 0):10,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '4'), 2):85.0585357165,
(('0', '-1', '0', '2', '1', '-1', '1', '-1'), 1):181.205360319,
(('4', '1', '4', '1', '1', '0', '0', '1'), 1):10,
(('-1', '0', '1', '0', '-1', '4', '-1', '0'), 0):123.261614449,
(('0', '2', '1', '2', '1', '1', '1', '0'), 2):228.641741133,
(('0', '-1', '2', '4', '4', '-1', '4', '-1'), 3):35.8429191559,
(('0', '2', '2', '2', '1', '2', '4', '2'), 0):10.0,
(('4', '0', '1', '-1', '1', '1', '-1', '-1'), 0):207.467003859,
(('2', '4', '4', '-1', '4', '4', '-1', '-1'), 2):10,
(('0', '-1', '-1', '2', '-1', '-1', '2', '-1'), 0):321.004681565,
(('1', '0', '1', '0', '0', '4', '1', '0'), 1):28.5458022824,
(('1', '1', '0', '0', '0', '0', '0', '4'), 1):41.4419748315,
(('0', '2', '4', '2', '1', '1', '2', '0'), 2):10.0,
(('1', '1', '0', '0', '0', '4', '0', '1'), 0):10,
(('0', '2', '0', '4', '0', '2', '4', '4'), 0):79.4891078236,
(('0', '2', '2', '4', '2', '2', '0', '0'), 0):10,
(('0', '1', '4', '-1', '4', '0', '-1', '-1'), 0):124.703408324,
(('-1', '4', '0', '2', '-1', '4', '-1', '1'), 1):87.5573040103,
(('1', '2', '1', '-1', '0', '2', '-1', '-1'), 0):325.752665632,
(('0', '0', '0', '1', '0', '0', '4', '1'), 2):166.870466457,
(('0', '2', '1', '2', '4', '4', '2', '2'), 2):10,
(('0', '1', '-1', '4', '-1', '-1', '1', '1'), 1):116.686736477,
(('2', '2', '2', '2', '2', '1', '2', '4'), 1):168.733203336,
(('4', '-1', '-1', '1', '-1', '-1', '1', '-1'), 0):232.398809738,
(('1', '1', '0', '1', '1', '1', '1', '0'), 0):140.926682134,
(('1', '2', '0', '2', '0', '0', '1', '1'), 3):144.699157183,
(('1', '4', '1', '1', '0', '1', '1', '4'), 0):-10,
(('1', '1', '1', '1', '0', '1', '0', '4'), 3):3.88292709927,
(('1', '0', '1', '0', '0', '0', '4', '0'), 3):88.2572393211,
(('2', '4', '4', '2', '4', '4', '2', '0'), 1):27.9445910059,
(('0', '0', '1', '0', '0', '4', '0', '0'), 3):169.000423193,
(('2', '2', '1', '2', '1', '1', '4', '4'), 1):96.150026283,
(('4', '-1', '0', '0', '0', '-1', '1', '-1'), 3):90.8568802479,
(('0', '1', '-1', '0', '-1', '-1', '1', '0'), 2):88.8191446676,
(('2', '2', '1', '2', '0', '1', '2', '0'), 1):347.920879341,
(('1', '1', '0', '0', '0', '1', '0', '0'), 2):211.681628899,
(('2', '2', '0', '2', '2', '4', '2', '4'), 1):70.6484080928,
(('1', '-1', '0', '0', '1', '-1', '4', '-1'), 2):0,
(('0', '1', '0', '0', '0', '1', '4', '0'), 0):58.8023448512,
(('1', '4', '1', '0', '1', '0', '1', '0'), 3):200.374879956,
(('1', '4', '1', '1', '1', '4', '1', '1'), 0):18.7762243364,
(('4', '0', '1', '0', '1', '1', '0', '0'), 2):180.629394955,
(('-1', '2', '4', '-1', '-1', '2', '-1', '-1'), 3):112.216986622,
(('4', '0', '0', '0', '0', '0', '4', '0'), 2):41.9840800248,
(('0', '2', '0', '-1', '2', '2', '-1', '-1'), 0):357.386648307,
(('1', '2', '2', '2', '2', '0', '1', '4'), 0):-583.37423906,
(('-1', '4', '0', '2', '-1', '4', '-1', '2'), 0):10,
(('1', '0', '0', '4', '1', '0', '0', '4'), 0):1.8,
(('1', '0', '0', '0', '1', '1', '0', '0'), 1):59.6990799552,
(('4', '0', '1', '4', '0', '0', '4', '0'), 0):50,
(('0', '-1', '0', '0', '0', '-1', '4', '-1'), 2):128.49065885,
(('0', '-1', '0', '2', '4', '-1', '0', '-1'), 0):213.417778022,
(('-1', '4', '2', '2', '-1', '2', '-1', '0'), 3):232.399847937,
(('1', '2', '-1', '2', '-1', '-1', '1', '2'), 0):430.313714951,
(('1', '2', '2', '2', '0', '1', '0', '1'), 3):239.786497917,
(('-1', '2', '2', '2', '-1', '4', '-1', '4'), 3):28.2259636256,
(('0', '4', '1', '0', '0', '0', '0', '0'), 2):82.8034231313,
(('1', '4', '0', '-1', '0', '0', '-1', '-1'), 0):116.554254105,
(('0', '2', '2', '4', '1', '1', '1', '0'), 3):10,
(('1', '1', '1', '1', '4', '1', '0', '1'), 1):74.0818659506,
(('2', '2', '2', '2', '2', '2', '0', '1'), 0):90.6122186681,
(('1', '-1', '2', '2', '2', '-1', '0', '-1'), 2):333.774630638,
(('0', '0', '0', '1', '0', '0', '4', '0'), 0):240.421776239,
(('-1', '4', '1', '0', '-1', '4', '-1', '1'), 2):-10,
(('4', '2', '0', '2', '4', '4', '0', '2'), 0):10,
(('0', '-1', '0', '1', '0', '-1', '1', '-1'), 2):238.945656948,
(('1', '1', '1', '4', '1', '0', '1', '1'), 0):53.7636945286,
(('0', '0', '0', '-1', '0', '4', '-1', '-1'), 0):106.289443249,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '4'), 0):182.490927838,
(('2', '2', '4', '2', '4', '4', '2', '0'), 2):48.5862344276,
(('4', '-1', '1', '2', '0', '-1', '1', '-1'), 3):35.2302508496,
(('4', '0', '1', '0', '0', '0', '4', '0'), 3):130.998261781,
(('4', '2', '0', '2', '1', '0', '0', '0'), 1):244.186045383,
(('0', '2', '0', '-1', '4', '2', '-1', '-1'), 2):154.797590653,
(('0', '4', '4', '0', '0', '4', '0', '0'), 2):-10,
(('4', '2', '1', '2', '1', '1', '4', '0'), 0):218.258860889,
(('4', '1', '-1', '4', '-1', '-1', '4', '0'), 2):-10,
(('2', '2', '1', '2', '2', '4', '2', '0'), 2):249.28678132,
(('1', '2', '1', '2', '1', '4', '1', '0'), 2):210.980221355,
(('0', '2', '2', '2', '2', '0', '4', '2'), 2):1060,
(('2', '-1', '1', '2', '1', '-1', '1', '-1'), 2):294.906388095,
(('1', '-1', '2', '2', '1', '-1', '2', '-1'), 2):420.39694229,
(('0', '1', '4', '0', '4', '4', '0', '0'), 1):56.2968906549,
(('0', '1', '1', '1', '0', '4', '0', '4'), 3):0,
(('0', '4', '1', '0', '1', '1', '0', '1'), 3):10,
(('1', '2', '2', '2', '4', '1', '0', '0'), 3):147.432012068,
(('2', '2', '0', '2', '1', '0', '2', '4'), 1):256.419396648,
(('2', '-1', '2', '2', '0', '-1', '4', '-1'), 3):186.83003891,
(('1', '2', '0', '2', '2', '2', '1', '0'), 0):376.39366324,
(('1', '2', '2', '2', '1', '2', '2', '2'), 3):450.911331226,
(('-1', '1', '4', '0', '-1', '0', '-1', '0'), 2):91.9425259529,
(('2', '2', '0', '2', '1', '1', '4', '0'), 1):74.6673842907,
(('1', '1', '4', '1', '1', '0', '4', '1'), 2):10,
(('-1', '0', '1', '4', '-1', '1', '-1', '4'), 1):55.0189133272,
(('2', '4', '4', '2', '1', '4', '2', '4'), 2):80,
(('4', '2', '4', '2', '4', '4', '0', '1'), 0):-1000,
(('2', '-1', '2', '-1', '1', '-1', '-1', '-1'), 3):368.87370462,
(('-1', '0', '4', '1', '-1', '4', '-1', '0'), 1):-606.778187872,
(('1', '2', '1', '2', '4', '1', '1', '0'), 2):28.7334389274,
(('2', '2', '0', '2', '1', '2', '2', '2'), 2):184.237408681,
(('4', '2', '1', '2', '4', '0', '4', '0'), 0):114.223727819,
(('1', '0', '1', '0', '1', '0', '4', '4'), 1):10,
(('0', '1', '0', '1', '0', '1', '1', '1'), 2):223.943688063,
(('0', '1', '1', '1', '1', '1', '1', '1'), 1):178.297833624,
(('2', '2', '-1', '2', '-1', '-1', '1', '0'), 1):339.656594608,
(('1', '1', '1', '1', '1', '1', '4', '0'), 0):104.093756727,
(('0', '2', '0', '2', '1', '1', '2', '0'), 2):302.789159476,
(('4', '2', '2', '2', '2', '2', '0', '0'), 1):10,
(('1', '1', '0', '1', '0', '1', '0', '4'), 1):10,
(('2', '4', '2', '2', '0', '4', '0', '0'), 1):10,
(('1', '2', '1', '2', '0', '4', '0', '0'), 3):75.8048548243,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '1'), 0):314.447768703,
(('0', '-1', '4', '0', '1', '-1', '0', '-1'), 1):72.9703396551,
(('1', '1', '-1', '1', '-1', '-1', '0', '1'), 3):220.715520704,
(('1', '2', '0', '2', '1', '2', '1', '2'), 0):284.871260553,
(('1', '1', '-1', '1', '-1', '-1', '4', '0'), 1):153.611398637,
(('0', '2', '-1', '2', '-1', '-1', '4', '0'), 2):275.914319038,
(('0', '1', '0', '-1', '1', '1', '-1', '-1'), 0):287.685753867,
(('1', '1', '1', '0', '4', '1', '0', '0'), 3):10,
(('4', '2', '0', '2', '4', '2', '4', '2'), 1):10,
(('1', '0', '-1', '4', '-1', '-1', '1', '1'), 3):42.6039559301,
(('1', '0', '0', '1', '0', '1', '0', '1'), 0):0,
(('2', '2', '1', '2', '2', '2', '2', '0'), 0):486.128198818,
(('4', '2', '2', '2', '4', '2', '0', '2'), 2):280,
(('1', '-1', '1', '-1', '4', '-1', '-1', '-1'), 2):220.18308516,
(('4', '2', '4', '-1', '4', '4', '-1', '-1'), 3):10,
(('1', '4', '2', '2', '0', '0', '1', '0'), 3):139.124331191,
(('0', '2', '1', '-1', '1', '0', '-1', '-1'), 1):308.791539497,
(('4', '-1', '0', '1', '0', '-1', '4', '-1'), 1):14.1458628831,
(('1', '2', '2', '2', '4', '2', '1', '2'), 0):367.081803826,
(('2', '2', '-1', '2', '-1', '-1', '1', '1'), 0):344.754844889,
(('-1', '0', '0', '1', '-1', '1', '-1', '1'), 1):61.2629801793,
(('0', '0', '1', '-1', '4', '0', '-1', '-1'), 2):62.2623225555,
(('0', '1', '1', '0', '0', '0', '0', '0'), 0):226.066216438,
(('0', '4', '1', '1', '1', '0', '0', '1'), 1):-70,
(('1', '0', '1', '1', '1', '1', '0', '1'), 3):171.507517736,
(('0', '2', '0', '2', '1', '1', '4', '1'), 3):10,
(('2', '2', '2', '2', '0', '1', '0', '2'), 2):77.7823106254,
(('0', '0', '0', '1', '4', '0', '1', '0'), 1):54.568066913,
(('1', '2', '1', '2', '0', '2', '1', '2'), 2):198.243335331,
(('2', '2', '2', '2', '1', '2', '1', '2'), 0):202.388982465,
(('1', '0', '4', '0', '4', '0', '0', '0'), 2):48.3976748607,
(('4', '2', '1', '2', '1', '1', '1', '1'), 0):57.1916265511,
(('1', '1', '0', '0', '0', '0', '0', '0'), 2):214.380064971,
(('4', '2', '0', '2', '2', '0', '4', '0'), 1):80.4638748603,
(('4', '-1', '2', '2', '1', '-1', '1', '-1'), 3):254.126369281,
(('0', '2', '2', '4', '0', '2', '1', '1'), 3):10,
(('4', '4', '4', '0', '4', '4', '4', '0'), 2):-10,
(('2', '2', '0', '2', '0', '1', '1', '2'), 1):160.367823718,
(('4', '0', '1', '0', '0', '1', '4', '0'), 3):18.0036679096,
(('0', '4', '0', '2', '0', '1', '1', '4'), 2):10,
(('0', '2', '0', '2', '1', '1', '2', '2'), 2):240.21742004,
(('4', '-1', '1', '2', '0', '-1', '4', '-1'), 1):10,
(('-1', '1', '0', '4', '-1', '0', '-1', '4'), 1):60.193646664,
(('2', '-1', '1', '2', '2', '-1', '2', '-1'), 1):203.505394224,
(('1', '2', '4', '2', '4', '0', '0', '0'), 1):128.425212754,
(('1', '4', '4', '-1', '0', '4', '-1', '-1'), 1):50.7081984046,
(('2', '2', '4', '-1', '0', '1', '-1', '-1'), 2):125.803841127,
(('0', '2', '2', '4', '1', '0', '4', '4'), 3):51.6369000433,
(('0', '1', '4', '-1', '0', '1', '-1', '-1'), 1):229.480957991,
(('4', '2', '0', '2', '0', '2', '0', '1'), 0):233.858176006,
(('1', '1', '4', '1', '4', '1', '1', '1'), 1):38.0536855172,
(('0', '4', '0', '0', '0', '0', '0', '0'), 3):192.983317507,
(('1', '2', '2', '2', '0', '2', '1', '1'), 3):395.738935979,
(('4', '1', '1', '1', '4', '0', '1', '1'), 2):0,
(('0', '0', '1', '1', '1', '1', '4', '0'), 0):0,
(('2', '2', '0', '-1', '2', '2', '-1', '-1'), 2):426.855312756,
(('0', '2', '0', '4', '0', '0', '4', '0'), 0):243.218586486,
(('-1', '2', '1', '4', '-1', '1', '-1', '0'), 0):60.5844130876,
(('1', '2', '2', '2', '0', '2', '4', '2'), 3):71.0091023959,
(('0', '0', '1', '0', '0', '1', '1', '0'), 1):81.7572508665,
(('0', '2', '0', '2', '0', '0', '0', '1'), 2):238.335811795,
(('0', '1', '1', '0', '4', '0', '0', '0'), 1):29.9911361045,
(('0', '1', '1', '-1', '0', '0', '-1', '-1'), 0):245.86527147,
(('2', '2', '2', '4', '2', '1', '0', '1'), 3):10,
(('2', '2', '2', '2', '2', '2', '0', '2'), 1):511.656120707,
(('1', '0', '0', '-1', '0', '0', '-1', '-1'), 0):210.706339014,
(('0', '1', '1', '4', '0', '1', '0', '4'), 2):29.9073855591,
(('0', '0', '0', '4', '0', '0', '0', '1'), 3):34.0132245598,
(('0', '2', '2', '2', '2', '2', '4', '2'), 3):10,
(('1', '4', '1', '2', '1', '4', '1', '1'), 1):10,
(('-1', '2', '2', '2', '-1', '0', '-1', '2'), 2):-11.1483280723,
(('-1', '4', '0', '-1', '-1', '1', '-1', '-1'), 0):128.248604776,
(('2', '2', '1', '2', '2', '1', '4', '1'), 1):172.943199622,
(('1', '1', '1', '1', '0', '4', '0', '0'), 3):4.46334406926,
(('0', '2', '2', '2', '2', '0', '1', '1'), 3):462.542272454,
(('0', '2', '0', '-1', '0', '4', '-1', '-1'), 2):259.522424384,
(('1', '1', '1', '0', '1', '0', '1', '1'), 2):146.493167429,
(('2', '2', '2', '2', '0', '2', '2', '1'), 1):416.911666793,
(('0', '1', '1', '4', '1', '1', '0', '0'), 2):140.411814335,
(('1', '1', '1', '4', '1', '0', '0', '4'), 2):0,
(('2', '-1', '2', '2', '1', '-1', '0', '-1'), 1):334.177956567,
(('0', '-1', '0', '1', '0', '-1', '0', '-1'), 3):244.645946823,
(('1', '1', '-1', '0', '-1', '-1', '4', '0'), 1):196.898896209,
(('0', '2', '-1', '2', '-1', '-1', '4', '2'), 2):362.08311366,
(('4', '-1', '0', '2', '0', '-1', '2', '-1'), 1):59.4298980663,
(('4', '-1', '4', '-1', '0', '-1', '-1', '-1'), 2):1.18569761307,
(('0', '4', '0', '1', '0', '1', '0', '1'), 3):-10,
(('1', '0', '0', '4', '1', '0', '4', '4'), 2):10,
(('2', '-1', '1', '2', '0', '-1', '2', '-1'), 0):346.400277702,
(('0', '-1', '0', '2', '0', '-1', '2', '-1'), 2):274.559260799,
(('2', '2', '4', '2', '4', '4', '2', '2'), 0):-471.726615901,
(('1', '2', '2', '2', '2', '0', '0', '0'), 3):299.207582418,
(('1', '4', '4', '0', '1', '4', '1', '4'), 2):50,
(('2', '2', '1', '2', '2', '4', '1', '0'), 1):10,
(('1', '2', '1', '2', '0', '4', '0', '1'), 0):10,
(('1', '2', '2', '2', '4', '0', '1', '1'), 3):153.397605732,
(('0', '2', '0', '2', '0', '4', '0', '0'), 3):-562.308145527,
(('2', '2', '2', '2', '1', '1', '1', '2'), 1):75.5746948252,
(('1', '4', '2', '2', '1', '2', '1', '1'), 3):67.5561119504,
(('0', '-1', '4', '-1', '4', '-1', '-1', '-1'), 3):130.395737071,
(('4', '2', '-1', '2', '-1', '-1', '1', '0'), 1):281.884095288,
(('1', '-1', '0', '0', '0', '-1', '0', '-1'), 1):260.335462869,
(('0', '4', '2', '-1', '0', '0', '-1', '-1'), 3):387.771782628,
(('1', '4', '0', '0', '0', '0', '1', '4'), 1):77.6279646361,
(('-1', '0', '0', '1', '-1', '4', '-1', '1'), 3):100.77938315,
(('1', '4', '1', '0', '1', '1', '1', '4'), 1):94.5754202165,
(('0', '2', '2', '2', '0', '2', '0', '1'), 3):291.985608923,
(('1', '1', '1', '1', '0', '0', '4', '1'), 2):-10,
(('0', '0', '1', '0', '1', '1', '0', '0'), 1):252.467124076,
(('4', '2', '2', '4', '4', '1', '4', '0'), 3):10,
(('0', '0', '1', '4', '0', '0', '0', '4'), 1):30.3404432548,
(('0', '-1', '0', '0', '0', '-1', '1', '-1'), 1):237.710448761,
(('4', '0', '-1', '1', '-1', '-1', '0', '1'), 0):96.2520703817,
(('2', '2', '2', '2', '2', '4', '1', '0'), 1):10,
(('0', '1', '1', '4', '0', '1', '4', '4'), 1):11.432,
(('0', '2', '1', '2', '4', '0', '2', '0'), 2):39.5311089985,
(('1', '-1', '0', '4', '0', '-1', '4', '-1'), 3):57.6230682379,
(('1', '4', '-1', '4', '-1', '-1', '0', '4'), 1):3.8,
(('0', '1', '4', '1', '0', '1', '0', '1'), 0):235.788924544,
(('0', '0', '1', '4', '0', '0', '0', '0'), 0):168.527100428,
(('1', '4', '4', '0', '0', '4', '1', '4'), 3):0,
(('0', '1', '1', '1', '0', '0', '0', '4'), 1):61.5551650798,
(('1', '2', '0', '2', '0', '1', '1', '0'), 0):221.510483276,
(('-1', '2', '0', '2', '-1', '0', '-1', '1'), 3):268.288005779,
(('-1', '2', '1', '2', '-1', '4', '-1', '2'), 0):98.4363053384,
(('1', '2', '4', '2', '4', '4', '1', '1'), 1):10,
(('1', '2', '1', '2', '1', '4', '2', '0'), 2):306.641173105,
(('4', '-1', '1', '2', '4', '-1', '4', '-1'), 0):142.442517253,
(('4', '2', '4', '-1', '0', '2', '-1', '-1'), 0):109.640047635,
(('0', '4', '1', '-1', '0', '4', '-1', '-1'), 2):105.996903442,
(('2', '2', '2', '2', '4', '2', '2', '2'), 0):30.0472955492,
(('1', '1', '0', '4', '1', '0', '1', '4'), 1):75.4295949243,
(('1', '1', '4', '1', '0', '0', '0', '0'), 2):69.3699499627,
(('4', '2', '2', '2', '1', '2', '4', '0'), 0):146.429121785,
(('1', '2', '1', '4', '1', '1', '0', '0'), 0):10,
(('2', '2', '4', '2', '2', '4', '2', '2'), 1):10,
(('0', '4', '1', '-1', '4', '1', '-1', '-1'), 0):10,
(('1', '2', '4', '2', '4', '4', '2', '2'), 2):46.6199392633,
(('2', '2', '2', '-1', '2', '2', '-1', '-1'), 2):465.207666374,
(('1', '4', '4', '-1', '1', '0', '-1', '-1'), 2):0,
(('1', '1', '4', '-1', '4', '4', '-1', '-1'), 1):183.571396522,
(('-1', '4', '0', '0', '-1', '0', '-1', '1'), 1):10,
(('0', '2', '2', '2', '0', '2', '4', '1'), 3):272.868821759,
(('4', '-1', '0', '0', '0', '-1', '0', '-1'), 0):136.570652619,
(('1', '0', '4', '0', '0', '4', '0', '0'), 2):19.6876770047,
(('-1', '2', '1', '2', '-1', '0', '-1', '0'), 0):241.611231676,
(('1', '4', '0', '2', '0', '0', '0', '4'), 0):30,
(('0', '2', '2', '-1', '1', '4', '-1', '-1'), 3):331.891498236,
(('4', '1', '1', '1', '1', '1', '4', '0'), 2):58.1396876984,
(('-1', '0', '1', '0', '-1', '0', '-1', '4'), 3):10,
(('1', '4', '0', '-1', '0', '4', '-1', '-1'), 1):90.5393861598,
(('1', '0', '0', '1', '0', '0', '1', '4'), 0):207.507526226,
(('1', '0', '0', '0', '0', '0', '1', '1'), 3):120.889754859,
(('1', '0', '0', '0', '0', '1', '0', '0'), 3):95.8264047703,
(('0', '1', '0', '1', '0', '1', '4', '0'), 0):30.8345759399,
(('1', '0', '4', '0', '1', '1', '1', '0'), 1):10,
(('2', '4', '0', '2', '0', '4', '0', '1'), 1):10,
(('0', '4', '0', '0', '0', '0', '0', '4'), 1):142.705432586,
(('1', '0', '-1', '1', '-1', '-1', '0', '4'), 3):10,
(('4', '1', '1', '0', '0', '0', '0', '0'), 3):172.083735197,
(('0', '2', '2', '2', '1', '2', '0', '0'), 3):293.34904122,
(('-1', '1', '0', '0', '-1', '4', '-1', '0'), 0):104.521799745,
(('1', '2', '2', '2', '1', '2', '1', '0'), 2):383.68290515,
(('2', '4', '-1', '2', '-1', '-1', '2', '0'), 2):89.0207458895,
(('1', '1', '1', '4', '0', '1', '1', '1'), 1):19.6948659114,
(('2', '4', '4', '2', '0', '4', '0', '0'), 1):10,
(('1', '1', '1', '4', '1', '1', '1', '1'), 3):135.240358286,
(('1', '2', '4', '2', '1', '2', '1', '1'), 3):10,
(('1', '0', '-1', '4', '-1', '-1', '1', '1'), 1):137.081456163,
(('4', '1', '1', '1', '0', '1', '4', '1'), 0):109.744816543,
(('0', '1', '0', '4', '0', '0', '4', '4'), 1):76.8047090291,
(('0', '4', '2', '2', '0', '0', '1', '1'), 3):62.0830252507,
(('2', '2', '1', '2', '1', '1', '2', '0'), 1):330.868666034,
(('4', '1', '4', '1', '0', '0', '4', '1'), 0):50,
(('4', '2', '0', '-1', '2', '0', '-1', '-1'), 1):274.339875353,
(('0', '2', '4', '2', '0', '4', '2', '0'), 2):233.175045104,
(('0', '4', '1', '2', '0', '0', '0', '2'), 2):10,
(('1', '2', '0', '4', '1', '0', '0', '0'), 1):145.335620692,
(('0', '4', '0', '0', '0', '0', '1', '0'), 1):10,
(('1', '1', '0', '0', '1', '0', '4', '0'), 3):0,
(('1', '2', '4', '2', '0', '4', '1', '4'), 1):10,
(('0', '2', '4', '-1', '0', '0', '-1', '-1'), 3):276.379555382,
(('2', '2', '0', '4', '0', '0', '4', '0'), 1):27.5966622813,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '1'), 3):143.363134922,
(('1', '0', '0', '4', '0', '0', '1', '4'), 3):141.609108495,
(('4', '2', '2', '2', '2', '0', '4', '2'), 2):10,
(('2', '2', '4', '2', '4', '4', '0', '1'), 3):103.880396528,
(('1', '2', '4', '2', '1', '0', '1', '2'), 0):311.108673183,
(('4', '1', '0', '1', '4', '0', '0', '1'), 0):39.3239433444,
(('2', '2', '2', '2', '0', '4', '0', '0'), 0):10,
(('1', '0', '1', '0', '0', '4', '1', '1'), 1):10,
(('4', '2', '0', '2', '1', '0', '2', '2'), 0):10,
(('2', '4', '0', '2', '1', '0', '2', '0'), 1):79.3654140432,
(('-1', '2', '0', '2', '-1', '0', '-1', '0'), 0):288.683293126,
(('0', '2', '1', '2', '0', '2', '1', '2'), 2):10,
(('0', '-1', '0', '4', '0', '-1', '2', '-1'), 2):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '4'), 3):208.134206265,
(('1', '-1', '-1', '2', '-1', '-1', '2', '-1'), 3):403.808906432,
(('1', '0', '1', '0', '1', '1', '1', '0'), 2):225.52385995,
(('2', '2', '-1', '2', '-1', '-1', '2', '4'), 1):289.186983247,
(('2', '2', '0', '2', '2', '4', '2', '2'), 0):62.8965975555,
(('1', '0', '1', '1', '0', '1', '0', '1'), 0):45.4150759504,
(('0', '0', '1', '4', '1', '0', '4', '0'), 1):50,
(('0', '1', '1', '0', '0', '1', '0', '4'), 2):179.543825221,
(('0', '1', '1', '1', '4', '0', '1', '1'), 3):0,
(('1', '4', '1', '1', '0', '1', '1', '1'), 2):-10,
(('4', '0', '0', '1', '0', '0', '1', '0'), 1):218.809757034,
(('4', '2', '0', '2', '4', '0', '1', '1'), 2):188.387530876,
(('4', '2', '0', '2', '1', '2', '4', '2'), 0):10,
(('-1', '1', '1', '0', '-1', '0', '-1', '0'), 0):241.920914829,
(('0', '0', '1', '-1', '4', '1', '-1', '-1'), 2):57.54887182,
(('1', '2', '2', '2', '1', '0', '1', '2'), 3):351.586291364,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '4'), 3):193.993340258,
(('2', '-1', '2', '2', '1', '-1', '2', '-1'), 1):407.53511832,
(('-1', '1', '4', '1', '-1', '0', '-1', '1'), 2):202.037800088,
(('1', '2', '0', '2', '1', '4', '1', '2'), 0):49.7548450707,
(('4', '1', '4', '0', '4', '4', '0', '0'), 0):10,
(('4', '-1', '-1', '1', '-1', '-1', '0', '-1'), 2):246.452628337,
(('1', '1', '1', '0', '4', '0', '1', '0'), 0):68.3904057517,
(('0', '1', '0', '4', '0', '0', '4', '0'), 2):49.7417660339,
(('1', '2', '0', '2', '2', '0', '2', '4'), 2):10,
(('0', '-1', '-1', '2', '-1', '-1', '4', '-1'), 0):291.790054739,
(('1', '2', '0', '2', '1', '4', '1', '4'), 1):47.1342018686,
(('4', '2', '0', '2', '1', '0', '4', '0'), 0):91.875587199,
(('2', '2', '1', '2', '1', '4', '1', '1'), 1):112.137282307,
(('0', '2', '2', '-1', '2', '1', '-1', '-1'), 3):410.199002402,
(('1', '4', '0', '1', '0', '4', '1', '0'), 2):52.1396514555,
(('1', '1', '1', '1', '4', '0', '1', '1'), 2):86.1255188062,
(('1', '1', '-1', '1', '-1', '-1', '0', '0'), 3):238.416823169,
(('0', '4', '1', '1', '0', '4', '0', '1'), 1):-10,
(('1', '0', '1', '1', '1', '1', '1', '1'), 2):210.764807377,
(('1', '2', '2', '2', '4', '2', '0', '0'), 3):10.0,
(('0', '4', '1', '0', '1', '1', '0', '0'), 3):223.179387865,
(('1', '1', '1', '1', '0', '1', '4', '1'), 3):78.6730445194,
(('1', '1', '1', '1', '1', '0', '4', '1'), 1):0,
(('0', '2', '4', '2', '1', '4', '0', '2'), 0):100.176240708,
(('4', '2', '0', '-1', '0', '1', '-1', '-1'), 3):123.04911075,
(('1', '2', '4', '2', '1', '1', '0', '0'), 1):54.1986558502,
(('1', '1', '4', '0', '4', '0', '0', '0'), 0):44.4183328758,
(('4', '1', '1', '1', '4', '1', '4', '1'), 2):63.7753523477,
(('0', '1', '1', '0', '1', '1', '0', '0'), 1):244.645304152,
(('2', '2', '2', '2', '2', '1', '0', '2'), 0):237.820906114,
(('1', '2', '0', '2', '1', '0', '1', '4'), 2):260.785654645,
(('1', '2', '0', '2', '1', '0', '1', '0'), 0):285.260657505,
(('1', '0', '1', '1', '0', '1', '4', '0'), 3):0,
(('1', '1', '1', '4', '4', '0', '0', '4'), 0):10,
(('2', '2', '0', '-1', '2', '4', '-1', '-1'), 2):152.280749908,
(('0', '1', '0', '0', '1', '0', '1', '1'), 0):0,
(('4', '0', '4', '1', '4', '1', '1', '0'), 2):-10,
(('2', '2', '0', '4', '0', '0', '0', '1'), 1):10,
(('2', '2', '2', '2', '0', '2', '2', '0'), 1):485.071995884,
(('2', '4', '1', '2', '2', '2', '2', '4'), 2):290,
(('4', '-1', '4', '0', '4', '-1', '0', '-1'), 0):0,
(('0', '0', '1', '1', '0', '1', '0', '1'), 0):120.863053824,
(('1', '2', '2', '2', '1', '1', '1', '0'), 0):319.192210677,
(('0', '2', '2', '4', '1', '2', '0', '0'), 0):68.9076534194,
(('0', '2', '-1', '2', '-1', '-1', '1', '1'), 0):268.149814931,
(('1', '4', '0', '2', '1', '4', '0', '0'), 1):56.6660051503,
(('1', '2', '2', '2', '1', '0', '0', '2'), 0):130.348969612,
(('0', '2', '0', '2', '4', '1', '4', '2'), 2):10,
(('0', '2', '0', '2', '4', '2', '1', '1'), 0):18.5250466307,
(('4', '2', '0', '-1', '0', '0', '-1', '-1'), 3):73.9746405159,
(('1', '2', '1', '2', '4', '0', '1', '1'), 0):13.8,
(('1', '1', '0', '1', '0', '0', '4', '1'), 1):148.493506949,
(('1', '2', '2', '2', '1', '0', '2', '2'), 0):-10,
(('1', '4', '1', '0', '1', '4', '0', '4'), 2):0,
(('4', '-1', '-1', '0', '-1', '-1', '1', '-1'), 2):224.632961532,
(('4', '2', '0', '-1', '1', '0', '-1', '-1'), 2):259.453646468,
(('0', '2', '2', '2', '0', '0', '4', '0'), 3):245.489157636,
(('4', '2', '2', '2', '1', '1', '1', '0'), 3):30.5362022814,
(('0', '1', '0', '4', '0', '0', '1', '0'), 3):84.7100845375,
(('2', '2', '2', '4', '2', '2', '2', '4'), 1):10,
(('1', '2', '0', '4', '0', '0', '1', '0'), 1):208.8429194,
(('1', '4', '0', '1', '1', '0', '0', '0'), 3):-173.036855205,
(('2', '2', '4', '2', '2', '0', '0', '0'), 3):10,
(('1', '4', '4', '1', '1', '4', '1', '1'), 1):-422.2,
(('0', '1', '4', '0', '4', '0', '0', '0'), 0):78.8155046104,
(('0', '2', '4', '2', '4', '0', '0', '0'), 3):145.925493327,
(('4', '0', '0', '-1', '0', '1', '-1', '-1'), 1):76.4318223129,
(('1', '2', '2', '2', '1', '2', '4', '2'), 0):153.316051774,
(('-1', '2', '1', '2', '-1', '1', '-1', '2'), 0):420.411102757,
(('-1', '1', '1', '0', '-1', '4', '-1', '0'), 3):103.6039846,
(('4', '2', '0', '2', '0', '2', '1', '2'), 0):305.188015292,
(('4', '0', '-1', '4', '-1', '-1', '4', '0'), 3):93.9637444341,
(('4', '1', '1', '1', '0', '0', '4', '1'), 0):117.60064155,
(('1', '1', '4', '1', '1', '0', '0', '1'), 0):0,
(('0', '0', '1', '0', '1', '0', '4', '0'), 1):10,
(('1', '-1', '4', '1', '1', '-1', '1', '-1'), 0):225.801449519,
(('2', '2', '-1', '4', '-1', '-1', '0', '1'), 3):520,
(('4', '0', '-1', '0', '-1', '-1', '0', '0'), 0):248.783670988,
(('0', '4', '1', '-1', '1', '4', '-1', '-1'), 1):75.3484301587,
(('2', '4', '1', '2', '1', '1', '1', '0'), 1):125.683075325,
(('0', '4', '2', '2', '2', '2', '0', '0'), 3):62.0142469658,
(('0', '1', '1', '0', '1', '1', '0', '1'), 1):240.224922482,
(('0', '0', '0', '4', '0', '0', '4', '4'), 1):57.5506593389,
(('1', '2', '2', '2', '2', '0', '2', '1'), 0):290,
(('4', '2', '1', '4', '1', '2', '4', '0'), 0):10,
(('2', '4', '1', '2', '1', '0', '2', '0'), 1):145.127203349,
(('1', '2', '-1', '4', '-1', '-1', '0', '1'), 1):133.946212497,
(('1', '-1', '-1', '1', '-1', '-1', '4', '-1'), 1):233.684493474,
(('1', '2', '1', '2', '0', '2', '1', '2'), 0):300.270404527,
(('2', '-1', '0', '2', '1', '-1', '1', '-1'), 1):305.436979476,
(('-1', '0', '0', '1', '-1', '0', '-1', '0'), 2):261.964334358,
(('4', '0', '4', '1', '4', '4', '1', '0'), 2):50,
(('-1', '4', '0', '2', '-1', '4', '-1', '2'), 2):171.435000073,
(('0', '2', '0', '2', '4', '0', '1', '1'), 0):212.16161471,
(('1', '1', '1', '0', '4', '4', '0', '0'), 2):-10,
(('1', '1', '1', '1', '4', '1', '0', '1'), 3):83.2996581611,
(('0', '2', '-1', '2', '-1', '-1', '2', '2'), 0):477.532784043,
(('0', '2', '1', '2', '0', '1', '0', '4'), 0):184.178792039,
(('0', '4', '4', '-1', '0', '0', '-1', '-1'), 1):50,
(('1', '1', '1', '1', '4', '0', '0', '1'), 3):24.4373038459,
(('4', '2', '0', '2', '0', '1', '1', '0'), 1):10,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '1'), 3):252.318412087,
(('4', '1', '1', '1', '1', '1', '1', '1'), 0):97.3619439717,
(('1', '4', '0', '2', '0', '0', '1', '2'), 2):130.255850299,
(('1', '1', '1', '1', '0', '0', '0', '1'), 2):199.322105472,
(('0', '2', '1', '2', '1', '4', '0', '1'), 3):81.9766609535,
(('1', '4', '0', '1', '1', '0', '0', '1'), 1):0,
(('0', '-1', '2', '2', '0', '-1', '1', '-1'), 3):344.171738992,
(('2', '2', '4', '2', '2', '0', '2', '1'), 1):115.578845268,
(('0', '1', '-1', '4', '-1', '-1', '4', '4'), 1):93.5662345117,
(('0', '2', '4', '2', '4', '0', '0', '1'), 2):177.937294088,
(('1', '2', '0', '2', '1', '1', '0', '2'), 0):317.614219468,
(('1', '2', '4', '2', '1', '0', '2', '2'), 0):458.601239831,
(('1', '2', '2', '4', '0', '2', '4', '4'), 0):10,
(('4', '-1', '4', '-1', '1', '-1', '-1', '-1'), 0):131.077052224,
(('2', '2', '2', '2', '4', '1', '1', '0'), 3):10,
(('4', '2', '0', '-1', '4', '0', '-1', '-1'), 1):106.941768884,
(('2', '2', '2', '2', '2', '4', '2', '2'), 3):10,
(('1', '0', '-1', '1', '-1', '-1', '1', '1'), 3):270.612240551,
(('1', '2', '0', '2', '4', '2', '4', '4'), 0):10,
(('1', '0', '1', '-1', '4', '0', '-1', '-1'), 2):172.526770481,
(('0', '-1', '4', '2', '2', '-1', '1', '-1'), 3):750,
(('-1', '2', '1', '2', '-1', '0', '-1', '2'), 2):399.427182747,
(('-1', '4', '4', '1', '-1', '4', '-1', '4'), 3):0,
(('1', '0', '1', '-1', '4', '1', '-1', '-1'), 3):170.511330884,
(('0', '1', '1', '1', '0', '0', '0', '4'), 3):133.077280394,
(('0', '2', '-1', '2', '-1', '-1', '0', '2'), 2):409.328102894,
(('0', '0', '-1', '4', '-1', '-1', '1', '0'), 2):47.3639793307,
(('2', '2', '1', '2', '2', '0', '2', '2'), 0):516.290876529,
(('1', '2', '2', '4', '0', '2', '4', '1'), 3):170,
(('1', '2', '4', '-1', '0', '1', '-1', '-1'), 3):101.637356207,
(('1', '2', '2', '2', '1', '2', '0', '0'), 3):328.989605636,
(('4', '2', '2', '-1', '0', '0', '-1', '-1'), 0):306.182517949,
(('2', '2', '0', '-1', '1', '2', '-1', '-1'), 2):124.416490623,
(('2', '-1', '-1', '2', '-1', '-1', '2', '-1'), 2):347.802152158,
(('1', '2', '2', '2', '2', '2', '1', '4'), 3):202.155773539,
(('4', '2', '0', '4', '4', '0', '4', '4'), 0):10,
(('1', '-1', '1', '2', '0', '-1', '0', '-1'), 3):246.956052997,
(('0', '-1', '1', '2', '1', '-1', '4', '-1'), 1):10,
(('1', '0', '0', '4', '1', '0', '1', '4'), 3):182.147357289,
(('0', '2', '1', '2', '0', '4', '0', '4'), 2):10,
(('1', '1', '4', '0', '1', '0', '1', '0'), 0):135.019681059,
(('1', '1', '1', '0', '0', '1', '0', '0'), 0):219.866504209,
(('1', '1', '4', '1', '0', '1', '0', '1'), 1):39.111240888,
(('4', '2', '1', '2', '0', '2', '4', '0'), 0):173.607049545,
(('2', '2', '0', '-1', '1', '1', '-1', '-1'), 1):321.517595585,
(('4', '1', '0', '4', '4', '0', '0', '0'), 0):10,
(('4', '1', '0', '0', '1', '0', '0', '1'), 2):69.3711715017,
(('0', '2', '2', '2', '2', '0', '4', '4'), 0):10,
(('0', '4', '-1', '2', '-1', '-1', '1', '0'), 3):70.1012727873,
(('1', '2', '1', '2', '0', '4', '1', '0'), 3):98.9077346922,
(('0', '2', '1', '2', '1', '1', '0', '0'), 0):284.818668104,
(('4', '1', '4', '1', '4', '4', '4', '1'), 3):5.24,
(('1', '0', '4', '-1', '1', '0', '-1', '-1'), 1):311.092172923,
(('0', '2', '2', '4', '2', '0', '2', '4'), 3):70.1678940121,
(('1', '4', '1', '1', '1', '0', '1', '1'), 2):112.979716343,
(('0', '-1', '1', '4', '0', '-1', '1', '-1'), 0):10,
(('4', '2', '2', '2', '4', '2', '4', '0'), 1):10,
(('-1', '2', '2', '2', '-1', '1', '-1', '2'), 1):351.70634966,
(('1', '2', '2', '2', '4', '2', '1', '0'), 3):104.948626356,
(('1', '1', '0', '1', '4', '0', '1', '1'), 1):184.98799349,
(('0', '2', '2', '4', '0', '2', '4', '2'), 3):200,
(('4', '0', '0', '1', '1', '0', '0', '0'), 2):49.0014965274,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '0'), 2):57.1513755695,
(('1', '0', '1', '0', '1', '4', '0', '0'), 0):128.350607404,
(('2', '2', '2', '2', '0', '2', '0', '4'), 1):231.926956617,
(('-1', '2', '1', '-1', '-1', '4', '-1', '-1'), 1):222.614524008,
(('4', '2', '2', '2', '2', '2', '4', '0'), 0):118.974944293,
(('1', '0', '0', '4', '0', '0', '4', '0'), 0):86.4363932137,
(('0', '2', '4', '2', '4', '4', '2', '2'), 0):86.156852345,
(('0', '1', '0', '1', '0', '0', '1', '1'), 3):211.022079637,
(('1', '0', '0', '4', '1', '0', '4', '4'), 1):6.75967654612,
(('1', '0', '0', '0', '0', '1', '1', '0'), 0):60.5132954386,
(('2', '-1', '1', '2', '2', '-1', '1', '-1'), 1):377.997258755,
(('4', '2', '4', '-1', '4', '1', '-1', '-1'), 2):20.4312605969,
(('1', '4', '0', '2', '0', '0', '1', '4'), 1):104.429263401,
(('1', '2', '2', '2', '4', '1', '1', '0'), 3):56.5175384336,
(('0', '1', '4', '1', '4', '0', '0', '1'), 1):30.5208370724,
(('2', '2', '0', '2', '0', '0', '0', '4'), 2):86.7841773398,
(('0', '2', '-1', '4', '-1', '-1', '4', '0'), 0):39.1064959143,
(('4', '1', '1', '-1', '1', '1', '-1', '-1'), 3):234.418858622,
(('2', '4', '1', '2', '2', '1', '2', '0'), 1):20.3804462496,
(('2', '4', '0', '2', '1', '4', '1', '4'), 1):10,
(('2', '2', '0', '2', '1', '2', '2', '0'), 0):10,
(('0', '2', '1', '2', '0', '1', '1', '0'), 3):211.707963473,
(('0', '2', '0', '4', '1', '0', '1', '0'), 2):63.8814195435,
(('0', '4', '1', '-1', '1', '1', '-1', '-1'), 2):410.821125439,
(('4', '0', '0', '-1', '4', '0', '-1', '-1'), 2):166.50718958,
(('1', '1', '4', '1', '0', '0', '0', '1'), 2):91.0870318775,
(('1', '0', '-1', '4', '-1', '-1', '4', '4'), 0):9.604,
(('0', '-1', '4', '-1', '0', '-1', '-1', '-1'), 0):255.591939586,
(('1', '2', '2', '2', '0', '0', '0', '0'), 3):269.610683614,
(('0', '1', '0', '4', '0', '1', '1', '4'), 1):-70,
(('1', '-1', '1', '2', '1', '-1', '2', '-1'), 0):336.774928564,
(('1', '2', '2', '4', '0', '2', '4', '0'), 0):10,
(('2', '2', '1', '2', '1', '2', '2', '0'), 1):345.910475261,
(('0', '0', '0', '1', '0', '1', '1', '1'), 3):93.0336523644,
(('2', '2', '2', '2', '2', '2', '0', '0'), 2):417.546790343,
(('4', '-1', '2', '2', '2', '-1', '4', '-1'), 3):146.991286403,
(('1', '1', '1', '0', '1', '1', '0', '1'), 0):224.098006833,
(('4', '1', '1', '1', '1', '0', '0', '0'), 2):-1000,
(('2', '2', '2', '2', '1', '4', '2', '0'), 2):10,
(('0', '1', '0', '1', '1', '1', '1', '1'), 0):63.0992570429,
(('-1', '0', '1', '0', '-1', '4', '-1', '0'), 3):150.878716027,
(('4', '-1', '2', '-1', '2', '-1', '-1', '-1'), 0):138.853021646,
(('0', '2', '1', '2', '1', '1', '1', '0'), 1):56.2619284363,
(('2', '2', '2', '2', '1', '1', '0', '4'), 3):52.1293562871,
(('4', '2', '2', '2', '1', '2', '4', '1'), 3):137.866250844,
(('4', '1', '1', '1', '1', '0', '0', '1'), 1):0,
(('0', '0', '0', '-1', '4', '1', '-1', '-1'), 3):78.4719691685,
(('1', '1', '0', '0', '0', '0', '0', '4'), 0):55.9482896287,
(('4', '1', '0', '-1', '0', '1', '-1', '-1'), 2):241.438920778,
(('0', '0', '1', '0', '0', '1', '0', '4'), 0):10,
(('0', '1', '4', '-1', '4', '0', '-1', '-1'), 3):76.660849992,
(('1', '2', '4', '2', '4', '1', '0', '0'), 1):10,
(('4', '0', '-1', '1', '-1', '-1', '1', '1'), 2):149.664813321,
(('4', '-1', '-1', '1', '-1', '-1', '1', '-1'), 1):264.359243879,
(('1', '1', '0', '1', '1', '1', '1', '0'), 3):206.780886052,
(('4', '2', '0', '2', '0', '2', '0', '0'), 0):220.505762241,
(('1', '0', '1', '0', '0', '0', '4', '0'), 2):14.141712648,
(('1', '0', '0', '0', '1', '0', '4', '0'), 1):60.6406827734,
(('0', '0', '1', '0', '0', '4', '0', '0'), 0):2.44270121548,
(('0', '1', '0', '0', '0', '0', '4', '0'), 1):-49.632671892,
(('0', '1', '-1', '0', '-1', '-1', '1', '0'), 3):292.742053801,
(('1', '1', '0', '0', '0', '1', '0', '0'), 3):209.375083386,
(('1', '1', '1', '0', '1', '1', '0', '4'), 2):177.19531466,
(('1', '-1', '0', '0', '1', '-1', '4', '-1'), 3):104.039948784,
(('1', '2', '0', '2', '2', '0', '0', '0'), 0):11.8,
(('1', '4', '1', '0', '1', '0', '1', '0'), 2):142.084666827,
(('1', '2', '0', '2', '1', '2', '1', '0'), 0):330.527138334,
(('4', '4', '0', '1', '0', '4', '1', '0'), 0):10,
(('1', '4', '1', '1', '1', '4', '1', '1'), 3):26.6564283928,
(('0', '4', '0', '2', '0', '0', '0', '2'), 2):220.584398839,
(('2', '2', '0', '2', '2', '0', '1', '4'), 1):258.307780648,
(('-1', '2', '4', '-1', '-1', '2', '-1', '-1'), 0):56.4977993914,
(('1', '4', '-1', '1', '-1', '-1', '1', '1'), 2):249.56172223,
(('4', '2', '1', '-1', '2', '1', '-1', '-1'), 1):233.203956789,
(('0', '2', '1', '2', '4', '2', '4', '0'), 0):10,
(('4', '1', '0', '0', '1', '0', '4', '0'), 1):11.1039122458,
(('0', '1', '0', '0', '0', '1', '4', '1'), 3):86.7728642065,
(('1', '0', '0', '4', '1', '0', '0', '4'), 3):60.2720705936,
(('4', '-1', '4', '-1', '4', '-1', '-1', '-1'), 0):6.58720896148,
(('2', '2', '0', '4', '2', '1', '4', '1'), 1):680,
(('2', '4', '2', '2', '0', '2', '0', '0'), 1):80.1024595629,
(('-1', '0', '4', '-1', '-1', '1', '-1', '-1'), 0):91.0744664854,
(('1', '0', '0', '1', '1', '0', '4', '1'), 2):85.6820328961,
(('2', '2', '2', '2', '1', '2', '0', '1'), 0):120.6,
(('0', '2', '0', '2', '1', '1', '1', '0'), 2):177.005576066,
(('1', '4', '0', '1', '0', '1', '1', '1'), 0):-10,
(('0', '2', '1', '4', '0', '2', '0', '0'), 0):66.7609793285,
(('2', '2', '4', '-1', '0', '4', '-1', '-1'), 0):10,
(('4', '-1', '2', '-1', '0', '-1', '-1', '-1'), 2):10,
(('2', '4', '0', '2', '0', '4', '1', '4'), 1):108.595121181,
(('2', '2', '2', '2', '0', '0', '4', '0'), 1):166.76629344,
(('1', '1', '4', '1', '0', '4', '1', '1'), 0):52.6317178437,
(('1', '0', '1', '1', '4', '1', '1', '0'), 0):70.2742853146,
(('-1', '1', '0', '1', '-1', '0', '-1', '4'), 2):178.584754631,
(('4', '1', '1', '1', '4', '1', '4', '0'), 0):-18.8285901483,
(('2', '2', '2', '2', '2', '2', '0', '1'), 1):371.384849309,
(('0', '2', '1', '2', '4', '0', '2', '2'), 2):680,
(('2', '2', '1', '2', '4', '4', '2', '2'), 1):10,
(('0', '0', '0', '1', '0', '0', '4', '0'), 1):149.273200412,
(('0', '-1', '0', '4', '1', '-1', '4', '-1'), 1):10,
(('2', '2', '0', '4', '2', '0', '0', '0'), 1):120.380048888,
(('2', '2', '1', '2', '2', '0', '1', '1'), 1):187.683857943,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '4'), 3):173.318094528,
(('0', '2', '2', '2', '1', '0', '0', '2'), 0):183.270755327,
(('1', '4', '0', '4', '1', '0', '4', '4'), 1):50,
(('4', '0', '1', '0', '0', '0', '4', '0'), 0):65.1591313238,
(('0', '1', '4', '1', '1', '0', '1', '1'), 3):-10,
(('4', '2', '0', '2', '4', '4', '2', '2'), 2):10,
(('2', '2', '4', '2', '4', '4', '2', '1'), 2):50,
(('0', '2', '0', '2', '4', '0', '2', '2'), 0):126.719772577,
(('4', '1', '-1', '4', '-1', '-1', '4', '0'), 1):10,
(('4', '0', '-1', '1', '-1', '-1', '4', '1'), 0):127.607686368,
(('2', '-1', '1', '2', '1', '-1', '1', '-1'), 1):274.404620823,
(('1', '-1', '2', '2', '1', '-1', '2', '-1'), 3):470.333273985,
(('0', '2', '4', '2', '0', '2', '0', '0'), 0):205.609918526,
(('0', '-1', '1', '1', '1', '-1', '4', '-1'), 3):94.8651499852,
(('4', '1', '1', '1', '1', '0', '4', '0'), 3):-10,
(('0', '2', '0', '2', '1', '0', '0', '4'), 1):22.0384228627,
(('1', '4', '-1', '0', '-1', '-1', '0', '0'), 1):269.551811778,
(('2', '2', '0', '2', '1', '0', '2', '4'), 2):11.8,
(('0', '2', '0', '2', '0', '2', '4', '0'), 2):43.0057077051,
(('1', '2', '2', '2', '1', '2', '2', '2'), 2):550.826732546,
(('2', '2', '1', '2', '0', '2', '0', '0'), 1):147.211210474,
(('4', '2', '2', '2', '1', '2', '0', '2'), 2):110.164037051,
(('4', '1', '0', '-1', '0', '0', '-1', '-1'), 3):254.913095955,
(('2', '4', '4', '2', '0', '4', '2', '2'), 1):362.0,
(('0', '2', '4', '2', '0', '4', '1', '2'), 2):196.944297935,
(('4', '2', '4', '2', '4', '4', '0', '1'), 1):10,
(('0', '0', '-1', '1', '-1', '-1', '0', '4'), 2):187.136486469,
(('0', '2', '0', '2', '0', '0', '1', '2'), 2):290.704813103,
(('0', '4', '-1', '4', '-1', '-1', '4', '4'), 3):10,
(('1', '2', '2', '-1', '0', '0', '-1', '-1'), 0):332.528087365,
(('1', '1', '4', '1', '0', '0', '0', '1'), 0):0,
(('4', '2', '1', '2', '4', '0', '4', '0'), 1):0,
(('0', '2', '1', '2', '0', '4', '0', '1'), 3):185.737861841,
(('0', '1', '1', '1', '1', '1', '1', '1'), 2):185.536848729,
(('1', '-1', '0', '0', '4', '-1', '0', '-1'), 3):-86.8062043206,
(('2', '2', '-1', '2', '-1', '-1', '1', '0'), 0):318.420112311,
(('1', '1', '0', '4', '0', '0', '1', '1'), 1):49.9628164028,
(('0', '2', '4', '2', '0', '4', '0', '0'), 3):155.309711929,
(('0', '0', '0', '0', '1', '0', '0', '1'), 0):10,
(('1', '4', '0', '0', '0', '4', '1', '0'), 2):13.2812208631,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '1'), 3):333.073837744,
(('0', '-1', '4', '0', '1', '-1', '0', '-1'), 0):23.9473348679,
(('4', '4', '4', '-1', '4', '4', '-1', '-1'), 0):-10,
(('1', '-1', '1', '4', '0', '-1', '4', '-1'), 3):-10,
(('1', '-1', '1', '0', '1', '-1', '0', '-1'), 1):296.467534624,
(('0', '2', '0', '2', '0', '2', '0', '0'), 2):308.361252307,
(('1', '1', '-1', '1', '-1', '-1', '4', '0'), 0):189.291021266,
(('0', '2', '-1', '2', '-1', '-1', '4', '0'), 3):210.431505777,
(('0', '1', '0', '0', '1', '1', '0', '0'), 0):176.048785692,
(('0', '1', '1', '0', '1', '0', '1', '1'), 0):91.8608894525,
(('2', '2', '2', '4', '0', '1', '0', '4'), 3):10,
(('2', '2', '4', '2', '1', '0', '2', '2'), 2):138.779045989,
(('2', '2', '2', '2', '0', '2', '2', '2'), 0):482.232929374,
(('0', '2', '1', '2', '0', '2', '0', '0'), 2):391.226294784,
(('0', '2', '2', '4', '2', '0', '1', '4'), 3):11.44,
(('1', '2', '1', '2', '4', '1', '1', '1'), 0):39.2177254772,
(('4', '1', '1', '1', '0', '1', '4', '0'), 3):-10,
(('2', '2', '1', '2', '2', '2', '2', '0'), 1):527.630579608,
(('0', '2', '0', '2', '1', '2', '2', '2'), 2):225.451548061,
(('1', '1', '0', '4', '0', '0', '0', '4'), 1):43.5109908311,
(('1', '-1', '1', '-1', '4', '-1', '-1', '-1'), 3):213.573155614,
(('2', '2', '0', '2', '0', '2', '1', '2'), 1):103.584669668,
(('0', '1', '4', '1', '0', '4', '1', '1'), 1):95.1768772484,
(('4', '1', '1', '4', '4', '1', '4', '0'), 0):50,
(('1', '2', '-1', '2', '-1', '-1', '0', '4'), 1):221.712960122,
(('4', '-1', '0', '1', '0', '-1', '4', '-1'), 0):155.449587865,
(('1', '2', '2', '2', '4', '2', '1', '2'), 3):623.835593411,
(('2', '2', '-1', '2', '-1', '-1', '1', '1'), 1):325.18100196,
(('-1', '2', '4', '2', '-1', '4', '-1', '2'), 0):390.1299776,
(('-1', '0', '0', '1', '-1', '1', '-1', '1'), 0):10,
(('2', '4', '0', '2', '0', '0', '4', '4'), 1):0,
(('0', '1', '1', '0', '0', '0', '0', '0'), 3):225.003637967,
(('4', '2', '0', '2', '1', '0', '1', '0'), 2):217.675747293,
(('2', '-1', '1', '4', '1', '-1', '2', '-1'), 1):160.372355057,
(('1', '0', '1', '1', '1', '1', '0', '1'), 2):124.995302933,
(('2', '2', '2', '4', '2', '0', '2', '4'), 1):10,
(('2', '4', '0', '2', '0', '0', '2', '0'), 2):65.8135400873,
(('2', '2', '1', '4', '1', '1', '0', '0'), 1):199.922818154,
(('1', '0', '4', '0', '4', '0', '0', '0'), 3):71.7723748303,
(('0', '4', '0', '4', '0', '0', '0', '4'), 1):-10,
(('4', '2', '1', '2', '1', '1', '1', '1'), 1):62.6232421735,
(('1', '1', '0', '0', '0', '0', '0', '0'), 1):233.779151505,
(('0', '-1', '1', '4', '0', '-1', '4', '-1'), 2):10,
(('1', '1', '1', '1', '1', '1', '4', '1'), 2):66.8486236251,
(('2', '-1', '1', '4', '0', '-1', '0', '-1'), 1):131.343761217,
(('0', '4', '1', '0', '0', '0', '0', '1'), 2):-10,
(('2', '2', '2', '2', '0', '0', '0', '2'), 3):346.268853329,
(('2', '2', '2', '4', '2', '0', '4', '4'), 3):14.7724607422,
(('4', '-1', '1', '2', '0', '-1', '4', '-1'), 0):89.4664417169,
(('-1', '1', '0', '4', '-1', '0', '-1', '4'), 0):61.2019763565,
(('2', '2', '1', '2', '2', '4', '4', '4'), 1):10,
(('0', '-1', '4', '1', '0', '-1', '0', '-1'), 1):192.160065304,
(('0', '1', '0', '1', '4', '1', '0', '0'), 2):14.4883497727,
(('2', '-1', '1', '2', '2', '-1', '2', '-1'), 0):459.19949635,
(('1', '2', '4', '2', '4', '0', '0', '0'), 2):137.840576228,
(('0', '1', '4', '0', '4', '1', '0', '1'), 2):-40.9264373455,
(('2', '2', '0', '2', '0', '4', '2', '0'), 1):234.228945217,
(('0', '2', '2', '2', '0', '2', '1', '1'), 2):10,
(('2', '2', '4', '2', '0', '0', '2', '0'), 2):208.057301301,
(('1', '2', '4', '2', '0', '0', '2', '2'), 0):200.054478793,
(('0', '0', '0', '1', '4', '0', '1', '1'), 3):0,
(('0', '4', '0', '0', '0', '0', '0', '0'), 2):202.968586032,
(('1', '4', '2', '2', '1', '0', '1', '0'), 3):247.895275884,
(('2', '4', '1', '4', '0', '4', '0', '4'), 1):10,
(('4', '2', '0', '2', '1', '0', '0', '2'), 0):212.08161785,
(('1', '2', '0', '2', '0', '4', '0', '4'), 2):59.5932619916,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '4'), 2):264.200802173,
(('1', '2', '2', '2', '0', '2', '4', '2'), 0):44.2060616565,
(('0', '2', '0', '2', '0', '0', '0', '1'), 3):231.365061917,
(('1', '2', '4', '2', '4', '1', '0', '1'), 2):10,
(('0', '1', '1', '0', '4', '0', '0', '0'), 0):172.636427847,
(('4', '1', '4', '1', '4', '4', '4', '0'), 3):0,
(('0', '1', '1', '-1', '0', '0', '-1', '-1'), 1):266.045746761,
(('1', '1', '4', '0', '4', '0', '1', '0'), 0):35.7155175278,
(('2', '4', '2', '2', '0', '0', '0', '4'), 1):10,
(('2', '2', '2', '2', '2', '2', '0', '2'), 0):503.916716568,
(('1', '1', '0', '-1', '0', '4', '-1', '-1'), 0):140.514242542,
(('0', '1', '1', '4', '0', '1', '0', '4'), 3):184.131242461,
(('0', '0', '0', '4', '0', '0', '0', '1'), 0):73.2620940081,
(('2', '2', '0', '2', '1', '0', '4', '0'), 1):212.154295051,
(('0', '4', '-1', '0', '-1', '-1', '1', '0'), 3):212.400104766,
(('-1', '2', '2', '2', '-1', '0', '-1', '2'), 3):370.112522441,
(('1', '0', '0', '0', '4', '1', '0', '0'), 0):10,
(('0', '4', '0', '-1', '0', '4', '-1', '-1'), 0):90.8504003557,
(('2', '2', '0', '2', '0', '0', '0', '0'), 2):285.483510663,
(('1', '4', '1', '1', '0', '0', '0', '0'), 0):0,
(('0', '2', '0', '-1', '0', '4', '-1', '-1'), 3):133.922271553,
(('0', '0', '4', '0', '1', '4', '0', '0'), 2):41.8713707016,
(('4', '2', '1', '2', '1', '1', '2', '0'), 1):196.35167489,
(('2', '4', '1', '2', '0', '4', '0', '1'), 1):10,
(('-1', '4', '1', '1', '-1', '0', '-1', '4'), 1):79.2081621888,
(('4', '0', '4', '1', '0', '4', '0', '0'), 3):-10,
(('2', '4', '0', '2', '0', '4', '1', '1'), 1):25.2664875265,
(('2', '-1', '2', '2', '1', '-1', '0', '-1'), 0):218.767452062,
(('0', '-1', '0', '1', '0', '-1', '0', '-1'), 2):235.751397529,
(('0', '0', '4', '1', '0', '1', '0', '0'), 1):-10,
(('0', '2', '-1', '2', '-1', '-1', '4', '2'), 3):357.994775371,
(('0', '1', '1', '1', '4', '1', '0', '0'), 1):120.048729878,
(('0', '4', '0', '1', '0', '1', '0', '1'), 0):73.3930911105,
(('4', '0', '0', '1', '1', '0', '0', '0'), 3):10,
(('4', '1', '1', '1', '0', '0', '4', '1'), 3):46.452454371,
(('4', '-1', '2', '2', '4', '-1', '2', '-1'), 3):23.32,
(('1', '2', '0', '2', '4', '0', '0', '0'), 0):99.7502630544,
(('0', '2', '4', '2', '0', '4', '0', '4'), 0):-10,
(('1', '0', '-1', '4', '-1', '-1', '4', '4'), 3):71.9505744426,
(('0', '2', '0', '2', '0', '4', '0', '0'), 2):210.588074293,
(('0', '-1', '4', '-1', '4', '-1', '-1', '-1'), 0):215.001759725,
(('4', '2', '-1', '2', '-1', '-1', '1', '0'), 0):263.274888077,
(('2', '2', '1', '2', '0', '1', '2', '2'), 2):550.815231127,
(('1', '-1', '0', '0', '0', '-1', '0', '-1'), 0):253.817141436,
(('-1', '1', '1', '4', '-1', '1', '-1', '0'), 1):196.706781318,
(('-1', '0', '0', '1', '-1', '4', '-1', '1'), 0):37.3625776921,
(('2', '-1', '1', '-1', '4', '-1', '-1', '-1'), 2):58.2827232812,
(('0', '2', '2', '2', '0', '2', '0', '1'), 0):307.324562198,
(('1', '1', '1', '1', '0', '0', '4', '1'), 3):10,
(('4', '0', '1', '1', '4', '0', '0', '0'), 2):38.2328095637,
(('0', '0', '1', '0', '1', '1', '0', '0'), 2):218.440823173,
(('1', '2', '0', '2', '4', '0', '0', '1'), 2):79.2445588298,
(('1', '2', '2', '2', '0', '0', '1', '4'), 0):60,
(('4', '0', '-1', '1', '-1', '-1', '0', '1'), 1):167.26101329,
(('0', '1', '1', '0', '1', '0', '0', '0'), 3):258.39193482,
(('0', '4', '1', '1', '1', '0', '0', '0'), 0):39.0969506757,
(('4', '1', '1', '4', '0', '0', '4', '4'), 3):0,
(('1', '0', '4', '1', '1', '0', '0', '1'), 3):10,
(('1', '-1', '0', '4', '0', '-1', '4', '-1'), 2):15.8270189785,
(('2', '-1', '0', '2', '2', '-1', '2', '-1'), 0):400.098423723,
(('0', '1', '4', '1', '0', '1', '0', '1'), 3):212.852735439,
(('0', '0', '1', '4', '0', '0', '0', '0'), 1):179.532738517,
(('0', '1', '0', '1', '0', '0', '4', '0'), 3):120.840081964,
(('-1', '1', '0', '0', '-1', '1', '-1', '4'), 0):59.3920800442,
(('0', '2', '0', '2', '0', '0', '4', '0'), 1):78.1939274163,
(('1', '2', '0', '2', '0', '1', '1', '0'), 1):205.525427852,
(('-1', '2', '0', '2', '-1', '0', '-1', '1'), 2):257.703962789,
(('1', '2', '4', '2', '4', '4', '1', '1'), 2):90.0883710084,
(('1', '1', '4', '0', '1', '0', '0', '0'), 0):78.8746700415,
(('4', '0', '0', '1', '4', '0', '4', '0'), 3):41.2661335418,
(('1', '0', '0', '1', '0', '1', '0', '0'), 0):-10,
(('1', '1', '0', '4', '1', '0', '1', '4'), 0):39.1062248313,
(('0', '1', '4', '-1', '4', '4', '-1', '-1'), 2):166.854312624,
(('4', '2', '2', '2', '1', '2', '4', '0'), 1):10,
(('1', '2', '4', '-1', '1', '4', '-1', '-1'), 2):293.06873162,
(('0', '-1', '1', '0', '0', '-1', '1', '-1'), 3):182.187965118,
(('-1', '1', '0', '4', '-1', '0', '-1', '1'), 3):159.467746841,
(('2', '2', '2', '-1', '2', '2', '-1', '-1'), 3):416.994928851,
(('0', '0', '0', '0', '1', '1', '0', '0'), 3):39.5911681404,
(('1', '2', '0', '2', '2', '0', '1', '2'), 2):478.246963991,
(('4', '2', '4', '2', '4', '4', '2', '2'), 1):52.8501042452,
(('-1', '4', '0', '0', '-1', '0', '-1', '1'), 0):89.7585634888,
(('0', '2', '2', '2', '0', '2', '4', '1'), 0):226.59677906,
(('4', '-1', '0', '0', '0', '-1', '0', '-1'), 1):167.414789387,
(('2', '2', '0', '4', '1', '0', '1', '4'), 1):68.5765687073,
(('-1', '2', '2', '2', '-1', '0', '-1', '1'), 1):295.76360432,
(('1', '4', '0', '2', '0', '0', '0', '4'), 1):208.290495885,
(('0', '2', '0', '2', '0', '4', '0', '0'), 1):92.2359599993,
(('4', '1', '1', '1', '1', '1', '4', '0'), 3):70.0662213652,
(('4', '0', '4', '-1', '4', '4', '-1', '-1'), 3):-10.0,
(('1', '4', '0', '-1', '0', '4', '-1', '-1'), 0):85.0044652629,
(('1', '0', '0', '1', '0', '0', '1', '4'), 1):143.218064757,
(('1', '0', '0', '0', '0', '1', '0', '0'), 2):154.439621049,
(('4', '2', '0', '4', '1', '0', '4', '1'), 0):10,
(('1', '1', '1', '4', '1', '1', '1', '4'), 1):111.619135189,
(('1', '0', '4', '0', '1', '1', '1', '0'), 0):10,
(('0', '4', '1', '2', '0', '4', '0', '4'), 0):0,
(('0', '4', '0', '0', '0', '0', '0', '4'), 0):57.0549686554,
(('2', '-1', '2', '2', '4', '-1', '1', '-1'), 1):75.5198672398,
(('4', '1', '1', '0', '0', '0', '0', '0'), 2):181.115555226,
(('0', '2', '1', '-1', '0', '0', '-1', '-1'), 3):366.048203652,
(('-1', '1', '0', '0', '-1', '4', '-1', '0'), 3):76.6624094976,
(('1', '2', '0', '-1', '2', '2', '-1', '-1'), 2):275.644290904,
(('1', '2', '2', '2', '1', '2', '1', '0'), 3):415.505303464,
(('2', '2', '4', '2', '4', '4', '2', '0'), 1):-19.5815664471,
(('2', '4', '-1', '2', '-1', '-1', '2', '0'), 3):-151.432765997,
(('4', '1', '1', '1', '4', '1', '1', '0'), 0):-10.0,
(('1', '1', '1', '4', '0', '1', '1', '1'), 0):-10,
(('4', '2', '4', '2', '4', '0', '1', '1'), 2):10,
(('1', '1', '1', '4', '1', '1', '1', '1'), 0):115.338024594,
(('2', '2', '0', '2', '2', '4', '1', '0'), 1):183.213774749,
(('2', '2', '1', '2', '2', '0', '0', '4'), 2):10,
(('0', '4', '0', '-1', '0', '1', '-1', '-1'), 0):166.941056707,
(('4', '1', '1', '1', '0', '1', '4', '1'), 1):25.1800176929,
(('1', '-1', '0', '4', '1', '-1', '4', '-1'), 2):65.166269534,
(('2', '2', '1', '2', '1', '1', '2', '0'), 2):355.60864098,
(('-1', '2', '0', '4', '-1', '2', '-1', '0'), 0):177.881206772,
(('1', '2', '1', '2', '1', '2', '0', '2'), 2):437.502176325,
(('4', '0', '1', '1', '1', '1', '1', '1'), 3):-10,
(('0', '4', '1', '0', '1', '1', '0', '1'), 0):0,
(('1', '1', '0', '0', '1', '0', '4', '0'), 0):99.0403502479,
(('4', '-1', '2', '-1', '2', '-1', '-1', '-1'), 2):0,
(('0', '0', '1', '0', '1', '4', '0', '0'), 0):101.09552599,
(('0', '1', '4', '0', '0', '4', '0', '0'), 3):38.6722578343,
(('0', '1', '4', '-1', '0', '4', '-1', '-1'), 3):125.537975965,
(('4', '1', '4', '0', '1', '4', '1', '0'), 2):-10,
(('0', '-1', '2', '2', '2', '-1', '1', '-1'), 0):369.653171757,
(('1', '1', '0', '0', '0', '0', '1', '0'), 0):221.871956037,
(('4', '1', '0', '1', '4', '0', '0', '1'), 1):49.6588670675,
(('0', '1', '0', '-1', '4', '0', '-1', '-1'), 1):130.287740594,
(('2', '2', '2', '2', '0', '4', '0', '0'), 3):188.229750039,
(('4', '2', '0', '2', '4', '0', '0', '1'), 0):189.043484452,
(('4', '0', '0', '0', '0', '0', '1', '0'), 2):-8.2,
(('4', '2', '4', '2', '4', '2', '0', '0'), 1):10,
(('-1', '2', '0', '2', '-1', '0', '-1', '0'), 1):250.681258024,
(('1', '-1', '0', '1', '0', '-1', '0', '-1'), 0):240.055436526,
(('1', '4', '4', '4', '4', '4', '1', '0'), 1):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '4'), 0):208.38690157,
(('1', '-1', '-1', '2', '-1', '-1', '2', '-1'), 2):365.444213211,
(('2', '2', '-1', '2', '-1', '-1', '2', '2'), 2):502.355426454,
(('1', '0', '1', '0', '1', '1', '1', '0'), 3):226.268959514,
(('2', '2', '-1', '2', '-1', '-1', '2', '4'), 2):316.62442711,
(('4', '4', '2', '4', '0', '2', '4', '4'), 3):50,
(('-1', '4', '2', '2', '-1', '0', '-1', '1'), 3):53.900155059,
(('4', '1', '0', '0', '1', '1', '0', '0'), 2):-10,
(('2', '4', '0', '4', '0', '0', '2', '4'), 1):-150.510473103,
(('1', '0', '1', '1', '0', '1', '0', '1'), 1):0,
(('0', '2', '1', '2', '0', '2', '0', '2'), 2):534.418851323,
(('0', '1', '1', '0', '0', '1', '0', '4'), 3):211.109758482,
(('2', '2', '1', '-1', '2', '2', '-1', '-1'), 1):428.071825117,
(('4', '0', '0', '1', '0', '0', '1', '0'), 0):206.715046059,
(('0', '4', '2', '2', '0', '2', '1', '1'), 3):10,
(('-1', '1', '1', '0', '-1', '0', '-1', '0'), 1):228.702336296,
(('1', '2', '1', '2', '1', '1', '1', '1'), 1):261.937082093,
(('1', '2', '2', '2', '1', '0', '1', '2'), 0):212.26861392,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '4'), 2):138.755600936,
(('4', '2', '-1', '2', '-1', '-1', '4', '0'), 0):66.7565426983,
(('2', '-1', '2', '2', '1', '-1', '2', '-1'), 0):325.970938091,
(('0', '4', '0', '2', '0', '4', '0', '4'), 0):43.8277211132,
(('0', '4', '2', '2', '0', '4', '0', '1'), 3):10,
(('4', '-1', '-1', '1', '-1', '-1', '0', '-1'), 1):230.880317555,
(('0', '0', '1', '4', '0', '0', '0', '4'), 3):134.725363684,
(('2', '2', '0', '2', '2', '4', '4', '0'), 2):10,
(('1', '2', '0', '-1', '1', '4', '-1', '-1'), 0):212.041651102,
(('0', '-1', '-1', '2', '-1', '-1', '4', '-1'), 1):10,
(('0', '1', '4', '1', '0', '4', '0', '0'), 3):0,
(('1', '2', '2', '2', '2', '0', '4', '0'), 0):193.981732028,
(('0', '2', '2', '-1', '2', '1', '-1', '-1'), 2):278.189958691,
(('1', '4', '0', '1', '0', '4', '1', '0'), 3):73.1782379247,
(('4', '2', '1', '2', '0', '1', '4', '2'), 2):139.639154679,
(('1', '1', '1', '1', '4', '0', '1', '1'), 1):92.068719493,
(('1', '1', '-1', '1', '-1', '-1', '0', '0'), 2):230.664988144,
(('-1', '2', '0', '2', '-1', '1', '-1', '4'), 1):218.984407103,
(('1', '0', '1', '1', '1', '1', '1', '1'), 3):221.188492524,
(('1', '1', '1', '1', '0', '1', '4', '1'), 2):8.25602075078,
(('0', '-1', '4', '2', '4', '-1', '0', '-1'), 3):-132.276763538,
(('0', '2', '4', '-1', '1', '0', '-1', '-1'), 1):10,
(('1', '1', '1', '1', '1', '0', '4', '1'), 0):38.8381513735,
(('1', '1', '1', '4', '1', '4', '0', '0'), 1):0,
(('2', '2', '1', '4', '0', '0', '2', '4'), 1):10,
(('4', '1', '1', '1', '4', '1', '4', '1'), 3):-4.2,
(('1', '4', '1', '0', '1', '4', '0', '4'), 0):0,
(('0', '1', '1', '0', '1', '1', '0', '0'), 0):247.45042538,
(('2', '2', '2', '2', '2', '1', '0', '2'), 1):194.242375184,
(('0', '2', '4', '2', '1', '4', '2', '0'), 0):400,
(('0', '2', '1', '2', '1', '4', '2', '0'), 2):444.185025148,
(('2', '2', '2', '2', '0', '2', '4', '4'), 1):-566.505459399,
(('1', '2', '0', '2', '1', '0', '1', '0'), 1):275.955669017,
(('-1', '0', '0', '-1', '-1', '1', '-1', '-1'), 1):294.68769673,
(('0', '-1', '2', '2', '1', '-1', '2', '-1'), 3):337.90909552,
(('1', '2', '1', '2', '1', '1', '0', '0'), 1):261.808529764,
(('0', '1', '4', '1', '0', '4', '1', '0'), 2):50,
(('0', '1', '1', '4', '0', '0', '0', '4'), 3):114.987427718,
(('0', '2', '2', '2', '2', '2', '4', '0'), 0):148.302904077,
(('0', '0', '-1', '0', '-1', '-1', '0', '0'), 0):249.153026663,
(('4', '2', '2', '2', '0', '2', '4', '4'), 3):74.5483076729,
(('4', '0', '0', '1', '0', '0', '1', '1'), 2):188.272603326,
(('2', '2', '2', '2', '0', '2', '2', '0'), 0):417.089982826,
(('0', '2', '4', '2', '1', '0', '1', '0'), 0):10,
(('0', '1', '1', '-1', '0', '4', '-1', '-1'), 2):212.028124809,
(('2', '2', '2', '2', '1', '2', '1', '0'), 0):187.646897564,
(('0', '2', '1', '-1', '0', '2', '-1', '-1'), 2):329.381310731,
(('4', '1', '1', '0', '1', '0', '1', '0'), 0):-10.0,
(('4', '0', '1', '0', '4', '0', '4', '0'), 2):42.270468466,
(('1', '2', '1', '2', '4', '1', '0', '1'), 2):10,
(('2', '2', '2', '2', '1', '0', '2', '2'), 1):250,
(('1', '4', '1', '2', '1', '0', '1', '0'), 2):106.171672562,
(('1', '2', '2', '2', '1', '0', '0', '2'), 3):170.238323788,
(('1', '4', '0', '1', '0', '4', '1', '4'), 3):56.8103255184,
(('1', '4', '1', '-1', '0', '1', '-1', '-1'), 3):-10,
(('0', '0', '1', '4', '0', '1', '0', '0'), 1):151.758095431,
(('1', '2', '1', '2', '1', '1', '2', '2'), 2):457.711926365,
(('4', '-1', '-1', '0', '-1', '-1', '1', '-1'), 1):46.6972455758,
(('0', '2', '1', '2', '0', '0', '4', '2'), 0):67.7670774295,
(('4', '2', '1', '2', '4', '0', '4', '2'), 2):175.440780889,
(('2', '2', '0', '2', '1', '0', '0', '1'), 1):244.859408538,
(('1', '2', '0', '4', '0', '0', '1', '0'), 0):40,
(('1', '1', '0', '0', '0', '0', '0', '1'), 3):235.075206337,
(('1', '2', '2', '2', '2', '4', '1', '2'), 2):920,
(('0', '1', '4', '0', '4', '0', '0', '0'), 1):72.1584684158,
(('1', '4', '0', '-1', '4', '0', '-1', '-1'), 1):53.2463115139,
(('0', '2', '4', '2', '4', '0', '0', '0'), 2):121.88082692,
(('0', '4', '0', '2', '0', '0', '0', '0'), 3):10,
(('4', '0', '0', '-1', '0', '1', '-1', '-1'), 0):42.810207268,
(('0', '2', '4', '2', '0', '0', '2', '0'), 3):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '2'), 1):471.879346055,
(('4', '-1', '4', '2', '4', '-1', '2', '-1'), 0):11.8,
(('0', '1', '4', '0', '0', '4', '0', '1'), 2):52.6290906821,
(('2', '2', '1', '2', '1', '1', '1', '4'), 1):210.060038269,
(('1', '4', '0', '2', '0', '4', '2', '2'), 0):10,
(('-1', '1', '1', '-1', '-1', '1', '-1', '-1'), 1):293.670445011,
(('1', '-1', '4', '1', '1', '-1', '1', '-1'), 1):251.807733403,
(('4', '0', '-1', '0', '-1', '-1', '0', '0'), 1):246.594189687,
(('0', '4', '1', '-1', '1', '4', '-1', '-1'), 2):177.708339355,
(('2', '2', '4', '2', '4', '0', '0', '1'), 1):55.044676693,
(('0', '1', '1', '0', '1', '1', '0', '1'), 2):236.581305307,
(('4', '1', '1', '-1', '4', '1', '-1', '-1'), 3):183.570765425,
(('0', '0', '0', '4', '0', '0', '4', '4'), 0):64.1653569159,
(('1', '2', '2', '2', '2', '0', '2', '1'), 3):127.398896614,
(('0', '2', '2', '4', '0', '2', '0', '0'), 0):10,
(('0', '1', '0', '1', '1', '1', '0', '1'), 1):226.112632168,
(('1', '1', '1', '1', '0', '1', '0', '4'), 2):34.2732709341,
(('4', '2', '-1', '4', '-1', '-1', '4', '4'), 3):105.672761931,
(('2', '2', '2', '2', '2', '1', '0', '0'), 2):375.611641608,
(('1', '2', '2', '2', '2', '0', '1', '2'), 0):271.325775394,
(('0', '2', '2', '2', '0', '0', '1', '0'), 0):291.389469276,
(('4', '2', '1', '2', '4', '1', '1', '1'), 3):10,
(('0', '2', '2', '2', '1', '2', '1', '0'), 0):262.846522858,
(('1', '1', '0', '1', '0', '1', '4', '0'), 3):10,
(('1', '1', '1', '1', '4', '1', '0', '1'), 2):47.3969936027,
(('1', '1', '1', '1', '1', '0', '1', '4'), 1):78.8926675514,
(('4', '2', '2', '2', '0', '0', '2', '2'), 3):260,
(('0', '2', '4', '2', '0', '0', '1', '1'), 0):204.771933347,
(('0', '-1', '0', '0', '4', '-1', '0', '-1'), 2):60.3803624574,
(('1', '4', '1', '0', '1', '1', '0', '0'), 2):197.425598676,
(('1', '2', '4', '2', '0', '0', '1', '1'), 1):103.078760709,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '1'), 2):299.676808417,
(('4', '1', '1', '1', '1', '1', '1', '1'), 1):139.112080922,
(('1', '0', '0', '1', '0', '4', '1', '0'), 2):146.39963011,
(('1', '1', '1', '1', '0', '0', '0', '1'), 3):195.078415383,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '4'), 1):183.192079699,
(('0', '-1', '2', '2', '0', '-1', '1', '-1'), 2):213.536482641,
(('1', '0', '1', '4', '0', '1', '0', '0'), 0):0,
(('0', '1', '-1', '4', '-1', '-1', '4', '4'), 0):160.593953491,
(('0', '4', '0', '-1', '0', '0', '-1', '-1'), 2):305.280018626,
(('0', '1', '1', '4', '1', '0', '0', '4'), 2):0,
(('2', '2', '0', '4', '0', '0', '4', '4'), 1):107.727688949,
(('0', '2', '4', '2', '4', '0', '0', '1'), 3):26.7241024766,
(('1', '0', '1', '1', '1', '0', '1', '4'), 0):143.618096495,
(('2', '4', '1', '-1', '2', '1', '-1', '-1'), 1):261.009126759,
(('1', '0', '1', '1', '1', '4', '1', '0'), 2):182.757113428,
(('4', '2', '0', '-1', '4', '0', '-1', '-1'), 2):271.060758327,
(('0', '4', '2', '2', '2', '2', '0', '1'), 3):91.4648767201,
(('1', '0', '-1', '1', '-1', '-1', '1', '1'), 0):273.472168985,
(('1', '0', '1', '-1', '4', '0', '-1', '-1'), 3):289.936240219,
(('1', '2', '4', '2', '1', '0', '2', '0'), 0):10,
(('-1', '2', '1', '2', '-1', '0', '-1', '2'), 1):288.848618052,
(('-1', '4', '4', '1', '-1', '4', '-1', '4'), 2):10,
(('0', '1', '1', '4', '0', '1', '1', '4'), 1):50,
(('0', '1', '1', '1', '0', '0', '0', '4'), 0):75.9985748888,
(('0', '2', '-1', '2', '-1', '-1', '0', '2'), 3):335.908819089,
(('0', '0', '-1', '4', '-1', '-1', '1', '0'), 1):229.689975959,
(('2', '2', '1', '2', '2', '0', '2', '2'), 1):398.092534288,
(('-1', '2', '0', '-1', '-1', '2', '-1', '-1'), 0):319.559006821,
(('1', '2', '4', '-1', '0', '1', '-1', '-1'), 0):332.541843892,
(('1', '2', '2', '2', '1', '2', '0', '0'), 2):349.026489977,
(('-1', '1', '0', '0', '-1', '1', '-1', '0'), 2):233.577934087,
(('1', '-1', '2', '4', '1', '-1', '1', '-1'), 0):98.9850412334,
(('2', '-1', '-1', '2', '-1', '-1', '2', '-1'), 3):381.520471756,
(('1', '2', '-1', '2', '-1', '-1', '2', '0'), 3):382.836247286,
(('2', '2', '0', '2', '2', '1', '2', '1'), 2):429.989218943,
(('1', '-1', '1', '2', '0', '-1', '0', '-1'), 0):237.023140659,
(('1', '0', '1', '4', '1', '0', '0', '0'), 2):123.926490044,
(('2', '2', '1', '2', '0', '0', '1', '0'), 2):10,
(('1', '0', '0', '4', '1', '0', '1', '4'), 0):4.19560236157,
(('0', '2', '1', '2', '0', '4', '0', '4'), 3):73.8662022399,
(('0', '1', '0', '0', '1', '1', '0', '1'), 2):47.9709141757,
(('4', '1', '4', '1', '4', '4', '0', '0'), 1):0.0,
(('1', '0', '1', '1', '0', '0', '1', '4'), 3):-10,
(('0', '4', '4', '2', '0', '4', '2', '0'), 2):10,
(('0', '0', '0', '0', '4', '0', '0', '0'), 1):120.91886049,
(('2', '2', '0', '-1', '1', '1', '-1', '-1'), 2):314.8712904,
(('-1', '1', '1', '1', '-1', '1', '-1', '0'), 2):226.982143763,
(('4', '2', '4', '2', '4', '4', '0', '4'), 2):-1000,
(('0', '2', '2', '2', '2', '0', '4', '4'), 3):101.996721374,
(('0', '4', '-1', '2', '-1', '-1', '1', '0'), 2):98.7939828429,
(('0', '0', '1', '4', '1', '1', '0', '4'), 2):0,
(('1', '0', '4', '-1', '1', '4', '-1', '-1'), 2):257.18634446,
(('4', '0', '-1', '4', '-1', '-1', '4', '1'), 2):10,
(('4', '2', '-1', '2', '-1', '-1', '2', '0'), 1):221.677511834,
(('4', '1', '1', '4', '0', '1', '4', '4'), 0):-6.0,
(('0', '-1', '1', '4', '0', '-1', '1', '-1'), 1):45.3899603898,
(('2', '2', '2', '2', '0', '2', '4', '2'), 1):190,
(('4', '2', '2', '2', '4', '2', '4', '0'), 0):78.7121216836,
(('0', '0', '1', '4', '0', '1', '4', '4'), 3):10,
(('1', '2', '2', '2', '2', '2', '4', '0'), 0):149.071794267,
(('-1', '2', '2', '2', '-1', '1', '-1', '2'), 0):318.284074717,
(('4', '1', '1', '1', '1', '0', '0', '0'), 1):0,
(('1', '1', '0', '1', '4', '0', '1', '1'), 2):141.2835351,
(('1', '4', '0', '1', '0', '1', '1', '0'), 0):-10,
(('0', '2', '2', '2', '0', '2', '4', '2'), 2):130.48312888,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '0'), 3):237.865224676,
(('1', '1', '1', '4', '1', '1', '0', '1'), 1):174.751121162,
(('0', '2', '1', '2', '1', '0', '0', '1'), 2):290.420204812,
(('4', '-1', '0', '0', '4', '-1', '0', '-1'), 2):38.1723115812,
(('-1', '2', '1', '-1', '-1', '4', '-1', '-1'), 0):250.031267724,
(('1', '0', '0', '4', '0', '0', '4', '0'), 1):76.5018823551,
(('2', '2', '2', '2', '1', '2', '1', '0'), 2):10,
(('0', '1', '0', '1', '0', '0', '1', '1'), 2):222.378952006,
(('1', '0', '0', '0', '0', '1', '1', '0'), 1):105.483701295,
(('2', '-1', '1', '2', '2', '-1', '1', '-1'), 2):142.953925674,
(('1', '2', '4', '2', '4', '4', '0', '0'), 3):10,
(('0', '1', '4', '1', '1', '0', '0', '0'), 2):-10,
(('1', '2', '4', '2', '4', '1', '0', '0'), 2):10,
(('0', '-1', '1', '2', '0', '-1', '2', '-1'), 2):374.927420691,
(('-1', '0', '1', '4', '-1', '0', '-1', '1'), 2):50,
(('1', '1', '1', '1', '0', '4', '0', '1'), 2):47.1051765009,
(('2', '2', '0', '2', '0', '0', '0', '4'), 1):216.294509827,
(('1', '-1', '2', '-1', '2', '-1', '-1', '-1'), 0):355.33910158,
(('-1', '4', '0', '-1', '-1', '4', '-1', '-1'), 2):0,
(('0', '2', '0', '4', '0', '1', '0', '2'), 0):204.323301221,
(('4', '2', '2', '-1', '1', '0', '-1', '-1'), 3):272.683739887,
(('1', '0', '0', '4', '0', '0', '0', '0'), 0):118.148018494,
(('4', '4', '4', '1', '4', '4', '0', '1'), 3):10,
(('0', '2', '1', '2', '0', '1', '1', '0'), 0):191.6427592,
(('1', '-1', '1', '0', '4', '-1', '1', '-1'), 3):63.1573618611,
(('4', '1', '1', '0', '0', '0', '1', '0'), 0):0,
(('4', '4', '0', '4', '4', '0', '4', '4'), 3):10,
(('4', '0', '0', '-1', '4', '0', '-1', '-1'), 3):50.1332865513,
(('2', '2', '0', '-1', '0', '4', '-1', '-1'), 0):121.5131759,
(('0', '-1', '4', '-1', '0', '-1', '-1', '-1'), 1):226.939857281,
(('1', '2', '2', '-1', '0', '2', '-1', '-1'), 0):470.520120707,
(('1', '4', '4', '1', '0', '4', '1', '1'), 1):37.4031728238,
(('4', '1', '1', '4', '4', '1', '4', '1'), 0):0,
(('1', '0', '4', '0', '0', '4', '0', '0'), 3):10,
(('4', '0', '0', '1', '4', '0', '0', '0'), 2):98.3802459192,
(('1', '1', '1', '0', '1', '1', '0', '1'), 3):231.167623491,
(('2', '2', '1', '2', '2', '0', '0', '1'), 2):10,
(('0', '0', '1', '0', '4', '1', '0', '0'), 1):112.827341487,
(('0', '1', '0', '1', '0', '0', '0', '4'), 1):183.215320779,
(('-1', '0', '1', '0', '-1', '4', '-1', '0'), 2):192.901817399,
(('0', '4', '1', '1', '0', '4', '0', '1'), 2):14.2565492442,
(('0', '2', '1', '2', '1', '1', '1', '0'), 0):234.445631498,
(('0', '0', '1', '0', '0', '0', '4', '0'), 2):87.3960645853,
(('0', '0', '4', '0', '4', '4', '0', '0'), 3):131.16837401,
(('0', '-1', '-1', '2', '-1', '-1', '2', '-1'), 2):303.413708231,
(('1', '4', '1', '2', '1', '1', '2', '0'), 2):59.815719398,
(('0', '1', '0', '1', '0', '1', '0', '1'), 1):213.030492607,
(('4', '1', '0', '-1', '0', '1', '-1', '-1'), 3):239.086208914,
(('1', '0', '0', '1', '1', '4', '1', '0'), 2):116.850686218,
(('0', '-1', '4', '-1', '1', '-1', '-1', '-1'), 3):204.812886009,
(('4', '1', '1', '4', '0', '1', '4', '4'), 2):0,
(('0', '1', '4', '-1', '4', '0', '-1', '-1'), 2):96.679157087,
(('0', '-1', '0', '-1', '2', '-1', '-1', '-1'), 0):259.509124919,
(('1', '4', '1', '0', '0', '1', '1', '0'), 2):0,
(('1', '2', '0', '2', '4', '1', '1', '2'), 0):206.846640228,
(('4', '-1', '2', '-1', '4', '-1', '-1', '-1'), 0):42.9248882928,
(('4', '0', '-1', '1', '-1', '-1', '1', '1'), 1):255.490766458,
(('4', '2', '1', '2', '4', '1', '0', '0'), 1):112.223686919,
(('4', '-1', '-1', '1', '-1', '-1', '1', '-1'), 2):260.313351427,
(('1', '1', '0', '1', '1', '1', '1', '0'), 2):171.456867231,
(('2', '2', '0', '2', '2', '0', '1', '0'), 2):325.887865816,
(('1', '4', '1', '1', '0', '1', '1', '4'), 2):0,
(('1', '0', '1', '0', '0', '0', '4', '0'), 1):22.168503774,
(('0', '2', '1', '2', '0', '1', '0', '1'), 3):225.867417737,
(('0', '0', '1', '0', '0', '4', '0', '0'), 1):205.553820073,
(('1', '2', '2', '2', '2', '2', '0', '4'), 3):217.172352086,
(('4', '2', '2', '-1', '2', '2', '-1', '-1'), 3):257.499876196,
(('0', '-1', '4', '2', '4', '-1', '0', '-1'), 2):210.85760068,
(('1', '1', '1', '0', '1', '1', '0', '4'), 3):153.005993312,
(('1', '-1', '0', '0', '1', '-1', '4', '-1'), 0):114.893246197,
(('0', '1', '0', '0', '0', '1', '4', '0'), 2):142.601594172,
(('1', '4', '1', '1', '1', '4', '1', '1'), 2):37.5586570894,
(('1', '2', '2', '2', '1', '2', '1', '2'), 0):475.961536074,
(('2', '4', '1', '2', '0', '1', '0', '1'), 1):112.729198269,
(('0', '0', '1', '1', '1', '4', '0', '1'), 3):10,
(('1', '4', '-1', '1', '-1', '-1', '1', '1'), 3):239.197571166,
(('1', '1', '1', '4', '0', '1', '4', '4'), 2):17.3751582621,
(('1', '4', '0', '2', '1', '0', '2', '4'), 2):10.0,
(('1', '2', '1', '-1', '4', '1', '-1', '-1'), 1):144.926848517,
(('1', '2', '0', '2', '4', '2', '2', '2'), 0):10,
(('0', '2', '2', '4', '2', '2', '1', '0'), 3):10,
(('1', '1', '0', '1', '1', '1', '1', '1'), 2):194.795665401,
(('0', '0', '4', '1', '4', '0', '0', '1'), 2):92.49607207,
(('-1', '0', '0', '0', '-1', '0', '-1', '1'), 3):100.896968599,
(('2', '2', '2', '2', '2', '4', '0', '4'), 1):95.040530543,
(('-1', '0', '4', '-1', '-1', '1', '-1', '-1'), 3):93.290671671,
(('0', '-1', '0', '2', '4', '-1', '0', '-1'), 2):191.470846838,
(('1', '2', '1', '-1', '0', '1', '-1', '-1'), 1):276.548750556,
(('1', '4', '0', '1', '0', '1', '1', '1'), 1):0,
(('1', '2', '-1', '2', '-1', '-1', '1', '2'), 2):415.053277557,
(('0', '0', '4', '-1', '4', '4', '-1', '-1'), 1):0,
(('4', '-1', '2', '-1', '0', '-1', '-1', '-1'), 3):269.976122345,
(('2', '-1', '0', '2', '2', '-1', '0', '-1'), 1):333.917067122,
(('4', '1', '0', '1', '0', '0', '4', '1'), 2):157.177473735,
(('1', '1', '4', '1', '0', '4', '1', '1'), 1):131.130557172,
(('0', '0', '-1', '1', '-1', '-1', '4', '0'), 0):205.827751859,
(('0', '2', '2', '4', '2', '0', '0', '2'), 0):10,
(('-1', '1', '0', '1', '-1', '0', '-1', '4'), 3):184.360725443,
(('4', '1', '1', '1', '4', '1', '4', '0'), 3):41.4729944117,
(('1', '4', '0', '2', '0', '1', '1', '1'), 2):10,
(('0', '2', '0', '2', '2', '2', '4', '2'), 2):10,
(('0', '-1', '0', '4', '1', '-1', '4', '-1'), 0):10,
(('0', '1', '1', '-1', '4', '1', '-1', '-1'), 1):206.497014534,
(('1', '2', '0', '4', '0', '0', '4', '0'), 3):10,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '4'), 2):96.7793255376,
(('1', '4', '0', '4', '1', '0', '4', '4'), 0):-10.0,
(('2', '2', '2', '2', '2', '1', '1', '0'), 3):144.409897751,
(('0', '2', '0', '2', '0', '0', '2', '2'), 0):304.630887047,
(('0', '2', '0', '-1', '4', '2', '-1', '-1'), 0):283.441907094,
(('4', '2', '1', '2', '1', '1', '4', '0'), 2):94.8155273395,
(('0', '4', '2', '2', '0', '0', '4', '0'), 3):10,
(('2', '-1', '1', '2', '1', '-1', '1', '-1'), 0):67.5438877628,
(('1', '1', '1', '4', '0', '1', '4', '1'), 0):32.2324358372,
(('0', '4', '4', '1', '0', '0', '0', '1'), 1):-10,
(('0', '1', '0', '0', '4', '0', '4', '1'), 0):0,
(('0', '2', '0', '2', '1', '0', '0', '4'), 2):68.2999660542,
(('1', '0', '1', '1', '1', '0', '4', '1'), 2):10,
(('1', '4', '4', '1', '1', '4', '0', '0'), 0):-10,
(('1', '2', '0', '2', '0', '0', '4', '1'), 1):28.3785150505,
(('4', '-1', '0', '1', '4', '-1', '0', '-1'), 1):31.8688162209,
(('4', '2', '2', '2', '1', '2', '0', '2'), 3):10,
(('0', '2', '2', '2', '1', '2', '4', '4'), 3):65.2699861205,
(('2', '2', '2', '2', '2', '0', '1', '2'), 3):83.3899155301,
(('1', '-1', '0', '2', '2', '-1', '1', '-1'), 0):439.230987402,
(('1', '4', '1', '0', '0', '0', '1', '4'), 1):53.6579707097,
(('-1', '4', '1', '1', '-1', '0', '-1', '4'), 0):44.1671211146,
(('0', '0', '1', '1', '1', '4', '1', '0'), 0):-10,
(('4', '-1', '1', '1', '1', '-1', '4', '-1'), 3):-95.4322360486,
(('0', '2', '2', '2', '1', '0', '2', '2'), 3):10,
(('-1', '2', '1', '4', '-1', '0', '-1', '1'), 1):140,
(('1', '2', '1', '2', '4', '1', '1', '0'), 0):114.841406512,
(('1', '4', '2', '2', '0', '0', '0', '0'), 3):173.760035912,
(('0', '1', '1', '1', '1', '1', '1', '1'), 3):196.03039318,
(('1', '1', '1', '0', '1', '1', '1', '4'), 1):85.4066150007,
(('1', '-1', '0', '0', '4', '-1', '0', '-1'), 2):-30.9162208167,
(('2', '2', '-1', '2', '-1', '-1', '1', '0'), 3):305.079217092,
(('1', '1', '1', '1', '1', '1', '4', '0'), 2):111.989967974,
(('1', '0', '0', '0', '0', '0', '4', '0'), 1):131.461644794,
(('4', '0', '0', '0', '1', '0', '4', '0'), 0):52.9002630977,
(('0', '2', '4', '2', '0', '1', '4', '0'), 0):10,
(('1', '4', '0', '0', '0', '4', '1', '0'), 1):35.7335334469,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '1'), 2):293.886939786,
(('1', '1', '-1', '1', '-1', '-1', '0', '1'), 1):209.054283544,
(('0', '2', '2', '2', '2', '2', '2', '1'), 3):323.035564401,
(('1', '-1', '1', '0', '1', '-1', '0', '-1'), 0):267.424562319,
(('0', '2', '1', '2', '4', '1', '1', '0'), 0):36.6230221108,
(('1', '1', '1', '-1', '4', '0', '-1', '-1'), 3):116.011769227,
(('0', '1', '1', '0', '0', '0', '1', '1'), 1):0,
(('0', '1', '0', '0', '1', '1', '0', '0'), 1):119.627750344,
(('1', '-1', '0', '2', '1', '-1', '4', '-1'), 0):223.984041412,
(('4', '-1', '0', '0', '4', '-1', '4', '-1'), 3):22.4934891096,
(('0', '2', '0', '2', '4', '0', '2', '2'), 2):220.48491905,
(('4', '2', '0', '2', '0', '1', '1', '1'), 2):198.283731579,
(('-1', '0', '0', '0', '-1', '4', '-1', '0'), 2):0,
(('1', '0', '0', '-1', '1', '4', '-1', '-1'), 1):199.565270128,
(('1', '2', '1', '4', '1', '0', '0', '4'), 0):50,
(('1', '2', '2', '2', '1', '1', '4', '4'), 3):174.265262983,
(('1', '1', '0', '4', '0', '0', '0', '4'), 0):77.5733957194,
(('1', '2', '1', '2', '1', '1', '0', '1'), 2):223.270604607,
(('0', '1', '4', '1', '0', '4', '1', '1'), 0):40.2776025408,
(('1', '4', '0', '-1', '0', '1', '-1', '-1'), 0):-10,
(('1', '2', '-1', '2', '-1', '-1', '0', '4'), 0):205.936824489,
(('4', '-1', '0', '1', '0', '-1', '4', '-1'), 3):45.9908113091,
(('0', '2', '2', '2', '0', '0', '0', '1'), 3):257.891807621,
(('0', '1', '0', '0', '0', '4', '0', '0'), 2):85.083271941,
(('-1', '2', '4', '2', '-1', '4', '-1', '2'), 1):527.210506628,
(('-1', '0', '0', '1', '-1', '1', '-1', '1'), 3):136.984619271,
(('0', '0', '0', '0', '0', '1', '0', '4'), 3):10,
(('1', '4', '-1', '2', '-1', '-1', '2', '0'), 2):173.564485121,
(('4', '2', '0', '2', '1', '0', '1', '0'), 1):124.746940699,
(('4', '1', '1', '0', '1', '1', '1', '1'), 3):-10,
(('1', '2', '4', '2', '4', '4', '1', '0'), 1):73.3471673592,
(('1', '0', '4', '0', '4', '4', '1', '0'), 2):54.2898168617,
(('0', '2', '-1', '2', '-1', '-1', '0', '1'), 3):250.728544393,
(('2', '4', '0', '2', '0', '0', '2', '0'), 1):-25.446470839,
(('4', '2', '1', '2', '1', '1', '1', '1'), 2):10,
(('1', '1', '0', '0', '0', '0', '0', '0'), 0):220.055172374,
(('1', '1', '1', '1', '1', '1', '4', '1'), 3):103.555314645,
(('0', '1', '1', '4', '1', '1', '0', '1'), 0):185.736265953,
(('4', '2', '2', '2', '2', '1', '0', '0'), 3):148.898760853,
(('2', '2', '2', '2', '0', '0', '0', '2'), 2):-374.569517959,
(('1', '0', '1', '0', '1', '1', '0', '0'), 1):229.838437659,
(('-1', '1', '0', '4', '-1', '0', '-1', '4'), 3):62.7484332357,
(('0', '-1', '4', '1', '0', '-1', '0', '-1'), 0):186.826301705,
(('1', '1', '1', '0', '4', '1', '1', '0'), 0):100.902796361,
(('0', '2', '2', '4', '2', '1', '0', '1'), 3):165.129081743,
(('1', '2', '4', '2', '4', '0', '0', '0'), 3):10,
(('1', '2', '1', '2', '1', '0', '1', '1'), 2):303.947789798,
(('2', '2', '0', '4', '0', '1', '1', '0'), 1):10,
(('1', '2', '1', '2', '1', '1', '0', '4'), 2):156.442425639,
(('4', '1', '1', '1', '4', '0', '1', '1'), 0):42.1862222834,
(('1', '2', '4', '2', '1', '1', '1', '0'), 1):105.517994861,
(('1', '2', '0', '2', '1', '1', '2', '1'), 2):222.600770111,
(('4', '2', '0', '2', '1', '0', '0', '2'), 1):10,
(('2', '2', '0', '-1', '2', '2', '-1', '-1'), 0):401.194198379,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '4'), 3):226.267246609,
(('0', '2', '0', '2', '4', '2', '2', '2'), 2):10,
(('0', '2', '0', '2', '0', '0', '0', '1'), 0):244.242294423,
(('4', '2', '0', '2', '4', '1', '1', '1'), 2):48.2572467486,
(('0', '1', '1', '0', '4', '0', '0', '0'), 3):138.322289119,
(('4', '1', '4', '1', '4', '4', '4', '0'), 2):-800.0,
(('1', '0', '1', '0', '0', '1', '1', '0'), 3):187.863983674,
(('1', '1', '0', '-1', '0', '4', '-1', '-1'), 1):187.076821388,
(('0', '1', '1', '4', '0', '1', '0', '4'), 0):80.2838514757,
(('2', '2', '4', '2', '1', '0', '1', '1'), 1):196.300908277,
(('1', '4', '1', '1', '1', '0', '0', '4'), 1):59.7355996418,
(('0', '0', '0', '4', '0', '0', '0', '1'), 1):117.692104459,
(('0', '0', '-1', '0', '-1', '-1', '1', '0'), 3):261.484439643,
(('4', '-1', '0', '2', '1', '-1', '2', '-1'), 2):125.520571819,
(('0', '2', '4', '2', '4', '0', '1', '0'), 2):79.2474865041,
(('-1', '2', '2', '2', '-1', '0', '-1', '2'), 0):315.890733991,
(('-1', '4', '0', '-1', '-1', '1', '-1', '-1'), 2):134.449711317,
(('4', '2', '2', '2', '0', '2', '4', '2'), 3):268.617593927,
(('2', '2', '0', '2', '0', '0', '0', '0'), 1):264.302347153,
(('1', '4', '1', '1', '0', '0', '0', '0'), 1):46.5016113937,
(('2', '2', '0', '2', '1', '4', '2', '0'), 0):10,
(('-1', '0', '4', '1', '-1', '0', '-1', '0'), 2):230.394422937,
(('1', '2', '2', '4', '1', '2', '0', '0'), 3):164.788426087,
(('4', '0', '0', '1', '4', '0', '4', '1'), 0):-10,
(('0', '1', '1', '4', '1', '1', '0', '0'), 0):235.888548517,
(('4', '1', '4', '1', '0', '0', '4', '1'), 2):40.541928945,
(('2', '-1', '2', '2', '1', '-1', '0', '-1'), 3):347.349840002,
(('-1', '4', '1', '0', '-1', '0', '-1', '4'), 3):68.5814462558,
(('0', '2', '-1', '2', '-1', '-1', '4', '2'), 0):313.015387412,
(('0', '1', '1', '1', '4', '1', '0', '0'), 0):150.125416757,
(('4', '-1', '4', '-1', '0', '-1', '-1', '-1'), 0):2.0,
(('0', '4', '0', '1', '0', '1', '0', '1'), 1):23.0933009471,
(('1', '1', '0', '4', '0', '0', '4', '4'), 2):0.0,
(('1', '1', '0', '1', '0', '1', '0', '4'), 2):0,
(('0', '-1', '0', '2', '0', '-1', '2', '-1'), 0):309.97623203,
(('0', '0', '1', '4', '1', '0', '0', '4'), 2):0,
(('1', '1', '1', '1', '4', '4', '1', '0'), 2):0,
(('1', '2', '1', '4', '1', '1', '1', '4'), 0):10,
(('1', '2', '0', '2', '4', '0', '0', '0'), 1):207.431514282,
(('-1', '4', '0', '4', '-1', '0', '-1', '4'), 0):64.3544243358,
(('1', '0', '-1', '4', '-1', '-1', '4', '4'), 2):-64.5303084988,
(('0', '2', '4', '2', '4', '4', '1', '2'), 0):164.494767666,
(('2', '2', '-1', '4', '-1', '-1', '1', '4'), 3):546.101702016,
(('2', '2', '1', '2', '0', '1', '2', '2'), 1):401.698888613,
(('0', '4', '1', '1', '0', '0', '0', '1'), 2):52.784186886,
(('1', '4', '1', '1', '1', '1', '1', '0'), 0):197.80084472,
(('-1', '1', '1', '4', '-1', '1', '-1', '0'), 0):206.6864335,
(('-1', '0', '0', '1', '-1', '4', '-1', '1'), 1):121.767343387,
(('1', '1', '4', '1', '4', '4', '0', '1'), 3):0,
(('2', '-1', '1', '-1', '4', '-1', '-1', '-1'), 1):299.163796884,
(('0', '2', '2', '2', '2', '4', '1', '0'), 3):198.027849223,
(('0', '0', '1', '0', '1', '1', '0', '0'), 3):248.95845993,
(('2', '2', '2', '-1', '2', '0', '-1', '-1'), 2):449.261456001,
(('0', '-1', '0', '0', '0', '-1', '1', '-1'), 3):280.421306778,
(('1', '1', '-1', '1', '-1', '-1', '4', '4'), 1):0,
(('4', '0', '-1', '1', '-1', '-1', '0', '1'), 2):147.196238121,
(('0', '4', '0', '4', '0', '4', '4', '4'), 2):10,
(('2', '2', '2', '2', '2', '4', '1', '0'), 3):56.122846723,
(('0', '0', '1', '-1', '0', '0', '-1', '-1'), 1):239.111208145,
(('1', '-1', '0', '4', '0', '-1', '4', '-1'), 1):84.536596249,
(('2', '-1', '0', '2', '2', '-1', '2', '-1'), 1):338.594977699,
(('0', '0', '1', '1', '0', '0', '0', '4'), 1):58.7411555939,
(('0', '4', '0', '1', '0', '0', '1', '1'), 3):169.814996525,
(('0', '1', '4', '1', '0', '1', '0', '1'), 2):204.672577549,
(('0', '1', '0', '0', '0', '0', '0', '0'), 2):230.622981773,
(('0', '2', '2', '2', '2', '1', '0', '1'), 0):329.133735961,
(('0', '2', '0', '2', '0', '0', '4', '0'), 0):235.198600459,
(('1', '2', '0', '2', '0', '1', '1', '0'), 2):228.722551881,
(('2', '2', '1', '2', '0', '0', '2', '2'), 0):420.645872504,
(('4', '2', '1', '2', '2', '1', '4', '0'), 1):48.142906908,
(('0', '2', '1', '2', '0', '2', '4', '0'), 0):201.672097319,
(('0', '-1', '2', '2', '1', '-1', '1', '-1'), 0):287.120645359,
(('1', '1', '-1', '1', '-1', '-1', '1', '4'), 2):197.666918477,
(('1', '0', '0', '1', '0', '1', '0', '0'), 1):54.4432143085,
(('1', '1', '0', '4', '1', '0', '1', '4'), 3):35.7828192877,
(('0', '2', '2', '2', '2', '2', '1', '0'), 0):414.774340786,
(('0', '0', '-1', '4', '-1', '-1', '0', '1'), 0):127.322736337,
(('0', '2', '1', '2', '1', '1', '2', '4'), 2):168.974137231,
(('-1', '0', '1', '0', '-1', '0', '-1', '1'), 3):10,
(('2', '2', '4', '2', '2', '4', '2', '2'), 3):11.8,
(('2', '2', '2', '2', '2', '0', '2', '2'), 2):315.641162968,
(('1', '4', '1', '1', '0', '0', '1', '4'), 3):74.3020661475,
(('0', '2', '2', '2', '1', '4', '0', '0'), 3):226.945747178,
(('1', '4', '4', '1', '4', '4', '1', '0'), 2):65.046033623,
(('1', '0', '0', '0', '0', '4', '1', '0'), 3):29.5735988683,
(('4', '2', '4', '2', '4', '4', '2', '2'), 0):10,
(('-1', '4', '0', '0', '-1', '0', '-1', '1'), 3):0,
(('2', '2', '0', '2', '0', '0', '1', '4'), 1):238.565093722,
(('2', '2', '1', '-1', '0', '4', '-1', '-1'), 1):247.982911617,
(('1', '2', '1', '2', '0', '1', '1', '2'), 0):324.327546537,
(('1', '2', '4', '2', '4', '0', '1', '1'), 2):128.561491487,
(('-1', '2', '1', '2', '-1', '0', '-1', '0'), 2):260.391720882,
(('1', '2', '4', '2', '0', '0', '0', '1'), 2):66.3828268747,
(('2', '2', '-1', '2', '-1', '-1', '0', '0'), 2):410.972510532,
(('2', '2', '2', '4', '2', '1', '4', '0'), 1):10,
(('1', '0', '0', '1', '0', '0', '1', '4'), 2):160.618585922,
(('1', '-1', '1', '4', '0', '-1', '0', '-1'), 0):84.4533275737,
(('2', '4', '0', '2', '2', '1', '0', '4'), 1):124.785880254,
(('1', '0', '0', '0', '0', '1', '0', '0'), 1):157.185879404,
(('1', '4', '2', '2', '1', '0', '0', '0'), 3):198.523681462,
(('-1', '2', '2', '4', '-1', '1', '-1', '4'), 1):10,
(('1', '1', '1', '4', '1', '1', '1', '4'), 0):-10,
(('1', '1', '0', '0', '1', '1', '1', '0'), 0):81.1588702101,
(('0', '4', '0', '0', '0', '0', '0', '4'), 3):102.822832325,
(('0', '2', '2', '2', '2', '2', '1', '1'), 0):387.316250408,
(('2', '2', '4', '2', '2', '0', '0', '1'), 1):50,
(('4', '0', '0', '0', '1', '0', '0', '0'), 2):105.67111981,
(('0', '2', '1', '-1', '0', '0', '-1', '-1'), 2):334.609118384,
(('-1', '1', '0', '0', '-1', '4', '-1', '0'), 2):105.83587808,
(('1', '-1', '4', '-1', '4', '-1', '-1', '-1'), 3):178.7685874,
(('2', '-1', '4', '2', '1', '-1', '0', '-1'), 2):133.831096138,
(('1', '2', '2', '2', '1', '2', '1', '0'), 0):432.012892314,
(('1', '4', '1', '2', '1', '0', '1', '1'), 1):10,
(('1', '4', '1', '1', '0', '1', '0', '1'), 2):0,
(('1', '0', '1', '1', '0', '0', '0', '0'), 0):200.53227527,
(('2', '2', '4', '2', '1', '0', '2', '1'), 1):111.000606509,
(('0', '2', '0', '2', '0', '1', '1', '2'), 0):316.567440877,
(('1', '4', '1', '1', '0', '4', '0', '0'), 1):10,
(('0', '4', '0', '-1', '0', '1', '-1', '-1'), 3):125.885803137,
(('2', '2', '-1', '2', '-1', '-1', '0', '4'), 2):10,
(('0', '0', '1', '4', '1', '0', '4', '4'), 3):10,
(('1', '-1', '0', '4', '1', '-1', '4', '-1'), 3):47.3994208919,
(('1', '1', '1', '0', '0', '0', '0', '1'), 2):80.0658879679,
(('0', '2', '4', '2', '0', '4', '2', '0'), 0):113.498794071,
(('1', '2', '1', '2', '1', '0', '1', '4'), 1):114.492388512,
(('0', '2', '4', '2', '4', '1', '0', '0'), 2):215.197593987,
(('1', '0', '0', '4', '0', '0', '1', '4'), 1):203.000201806,
(('1', '1', '0', '0', '0', '0', '1', '0'), 1):225.86531308,
(('1', '2', '4', '2', '1', '0', '1', '2'), 2):381.085900974,
(('0', '2', '1', '-1', '4', '0', '-1', '-1'), 3):233.682752782,
(('0', '1', '0', '-1', '4', '0', '-1', '-1'), 0):219.771457256,
(('2', '2', '0', '2', '1', '4', '0', '4'), 1):123.565415535,
(('4', '2', '0', '2', '1', '0', '2', '2'), 2):10,
(('4', '2', '0', '2', '4', '0', '0', '1'), 1):110.373677875,
(('4', '0', '0', '0', '0', '0', '1', '0'), 3):137.333754498,
(('-1', '0', '1', '1', '-1', '0', '-1', '0'), 2):194.90223585,
(('1', '-1', '0', '1', '0', '-1', '0', '-1'), 1):102.94001679,
(('0', '1', '0', '0', '0', '1', '0', '0'), 1):208.962995475,
(('1', '2', '0', '2', '1', '1', '4', '0'), 2):10,
(('0', '2', '2', '2', '4', '2', '0', '4'), 3):-6.0,
(('-1', '2', '1', '2', '-1', '1', '-1', '4'), 1):259.771439242,
(('4', '0', '0', '1', '0', '0', '0', '0'), 0):187.984443466,
(('2', '2', '-1', '2', '-1', '-1', '2', '2'), 3):526.129239851,
(('1', '0', '1', '0', '1', '1', '1', '0'), 0):265.667555585,
(('2', '2', '-1', '2', '-1', '-1', '2', '4'), 3):399.351401633,
(('1', '4', '0', '1', '1', '4', '1', '0'), 0):10,
(('4', '1', '-1', '4', '-1', '-1', '0', '1'), 3):-10,
(('0', '-1', '-1', '4', '-1', '-1', '4', '-1'), 2):76.7084391697,
(('4', '1', '0', '0', '0', '1', '1', '1'), 1):-10,
(('2', '2', '0', '4', '2', '1', '0', '4'), 1):170,
(('0', '2', '2', '2', '0', '0', '1', '4'), 3):143.911136699,
(('0', '2', '2', '-1', '2', '0', '-1', '-1'), 0):382.743638316,
(('2', '2', '0', '2', '4', '0', '1', '1'), 0):10,
(('1', '0', '1', '0', '0', '1', '4', '0'), 0):10,
(('2', '-1', '4', '2', '1', '-1', '1', '-1'), 1):236.141090511,
(('0', '1', '1', '0', '0', '1', '0', '4'), 0):122.387405506,
(('0', '1', '1', '1', '4', '0', '1', '1'), 1):0,
(('1', '-1', '0', '1', '4', '-1', '0', '-1'), 0):51.0751042515,
(('2', '2', '1', '-1', '2', '2', '-1', '-1'), 0):539.685180762,
(('4', '0', '0', '1', '0', '0', '1', '0'), 3):165.240767321,
(('0', '0', '0', '1', '4', '1', '1', '1'), 1):10,
(('2', '2', '2', '2', '1', '0', '0', '2'), 1):10,
(('1', '2', '1', '2', '1', '1', '1', '1'), 0):227.998082482,
(('2', '2', '2', '2', '1', '1', '2', '0'), 3):336.355575302,
(('0', '2', '0', '2', '1', '2', '0', '0'), 2):387.583597839,
(('4', '2', '2', '2', '0', '2', '0', '0'), 0):77.8461622929,
(('0', '0', '1', '0', '0', '0', '0', '4'), 2):19.148521585,
(('1', '2', '0', '2', '1', '0', '0', '2'), 2):363.32147368,
(('4', '2', '0', '-1', '0', '2', '-1', '-1'), 2):232.993978604,
(('0', '0', '1', '0', '0', '1', '4', '0'), 2):56.8243198624,
(('1', '2', '0', '2', '1', '4', '1', '2'), 2):249.234736387,
(('4', '-1', '-1', '1', '-1', '-1', '0', '-1'), 0):248.545985684,
(('1', '0', '0', '0', '1', '0', '1', '1'), 1):118.257409398,
(('-1', '4', '4', '4', '-1', '4', '-1', '4'), 2):-10,
(('1', '2', '1', '2', '2', '0', '2', '2'), 0):139.292222592,
(('0', '2', '4', '2', '1', '4', '0', '0'), 2):117.494134959,
(('2', '4', '1', '2', '1', '0', '1', '0'), 1):57.7153896803,
(('2', '2', '1', '2', '0', '4', '2', '2'), 1):10,
(('0', '-1', '4', '0', '4', '-1', '0', '-1'), 1):14.4350869119,
(('0', '2', '1', '2', '1', '0', '2', '4'), 2):770,
(('1', '1', '1', '1', '4', '0', '1', '1'), 0):44.174444414,
(('0', '0', '1', '-1', '1', '4', '-1', '-1'), 0):202.322896628,
(('-1', '2', '0', '2', '-1', '1', '-1', '4'), 0):204.327867472,
(('1', '0', '1', '1', '1', '1', '1', '1'), 0):211.414987411,
(('2', '2', '2', '2', '0', '0', '2', '0'), 3):348.808678657,
(('1', '1', '1', '1', '0', '1', '4', '1'), 1):69.1163194755,
(('0', '1', '1', '4', '1', '1', '4', '0'), 3):78.0177130627,
(('0', '2', '4', '-1', '1', '0', '-1', '-1'), 0):205.267165399,
(('1', '1', '1', '1', '1', '0', '4', '1'), 3):36.5944498811,
(('0', '2', '4', '2', '4', '4', '1', '0'), 0):10,
(('2', '2', '2', '2', '2', '1', '0', '4'), 1):202.680332822,
(('0', '4', '0', '2', '0', '0', '2', '4'), 2):172.559216569,
(('0', '2', '2', '2', '2', '2', '2', '1'), 2):64.5908432762,
(('4', '1', '1', '1', '4', '1', '4', '1'), 0):120.863596457,
(('0', '2', '4', '2', '2', '0', '0', '0'), 3):-60.9360583694,
(('0', '4', '0', '2', '0', '1', '0', '2'), 2):63.991153161,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '0'), 3):255.668010124,
(('0', '1', '4', '1', '0', '0', '0', '1'), 1):233.372569129,
(('4', '2', '2', '2', '1', '1', '4', '0'), 3):197.26010847,
(('0', '2', '2', '2', '0', '0', '2', '2'), 2):88.7679047416,
(('0', '-1', '2', '2', '1', '-1', '2', '-1'), 2):11.8,
(('0', '1', '1', '0', '0', '1', '1', '0'), 1):110.680735426,
(('1', '2', '1', '2', '1', '1', '0', '0'), 0):279.780893061,
(('0', '0', '-1', '0', '-1', '-1', '0', '0'), 1):244.715478863,
(('4', '0', '0', '1', '0', '0', '1', '1'), 3):195.656369575,
(('2', '2', '2', '2', '0', '2', '2', '0'), 3):396.442845626,
(('0', '1', '1', '-1', '0', '4', '-1', '-1'), 3):221.133894602,
(('0', '1', '-1', '0', '-1', '-1', '1', '1'), 3):303.019082869,
(('4', '0', '1', '0', '4', '0', '4', '0'), 3):47.1118318187,
(('4', '1', '-1', '1', '-1', '-1', '1', '1'), 0):243.53397287,
(('1', '2', '2', '2', '1', '0', '0', '2'), 2):293.648864666,
(('-1', '0', '0', '0', '-1', '1', '-1', '0'), 1):263.600145344,
(('1', '4', '1', '-1', '0', '1', '-1', '-1'), 2):77.5829785049,
(('1', '1', '-1', '1', '-1', '-1', '4', '0'), 2):159.837517228,
(('1', '4', '1', '1', '1', '1', '0', '4'), 3):41.6332122662,
(('0', '-1', '2', '4', '1', '-1', '0', '-1'), 0):71.7408564601,
(('4', '-1', '-1', '0', '-1', '-1', '1', '-1'), 0):43.295254322,
(('1', '0', '0', '4', '0', '0', '4', '4'), 0):0,
(('2', '2', '2', '4', '2', '0', '0', '0'), 3):64.1575807664,
(('2', '2', '2', '4', '2', '2', '2', '4'), 3):33.66918012,
(('0', '1', '0', '0', '1', '1', '0', '0'), 2):175.506489669,
(('1', '-1', '0', '2', '0', '-1', '4', '-1'), 0):214.475591019,
(('1', '4', '0', '1', '1', '0', '0', '0'), 1):125.967340638,
(('-1', '4', '1', '-1', '-1', '4', '-1', '-1'), 1):154.315226543,
(('1', '1', '1', '1', '0', '1', '1', '4'), 3):-3.62966622524,
(('0', '4', '0', '2', '0', '0', '0', '0'), 2):128.484255508,
(('4', '0', '0', '-1', '0', '1', '-1', '-1'), 3):154.192626722,
(('2', '2', '0', '4', '2', '1', '0', '0'), 1):80,
(('1', '2', '4', '2', '0', '4', '1', '0'), 1):144.070432602,
(('-1', '1', '1', '0', '-1', '4', '-1', '0'), 1):186.3194299,
(('4', '0', '0', '0', '0', '0', '0', '0'), 1):144.140868934,
(('4', '2', '1', '2', '4', '0', '4', '1'), 0):20,
(('4', '-1', '0', '0', '4', '-1', '4', '-1'), 0):-10,
(('0', '0', '0', '0', '0', '1', '0', '1'), 1):52.8705339937,
(('-1', '1', '1', '-1', '-1', '1', '-1', '-1'), 0):271.946270387,
(('4', '1', '0', '0', '1', '0', '4', '0'), 0):63.1424526503,
(('4', '2', '1', '2', '1', '1', '0', '2'), 2):297.638441185,
(('0', '2', '2', '2', '4', '0', '2', '2'), 3):10,
(('4', '0', '-1', '0', '-1', '-1', '0', '0'), 2):242.026046094,
(('0', '1', '0', '0', '4', '1', '0', '0'), 1):68.8071814301,
(('0', '2', '2', '4', '1', '0', '0', '4'), 0):78.2931397181,
(('0', '2', '4', '2', '0', '0', '2', '1'), 2):237.950263542,
(('0', '1', '1', '0', '1', '1', '0', '1'), 3):253.95041405,
(('1', '4', '1', '0', '0', '1', '0', '4'), 2):0,
(('0', '1', '0', '1', '1', '1', '0', '1'), 2):191.856950753,
(('2', '2', '4', '-1', '2', '2', '-1', '-1'), 1):104.353807044,
(('4', '2', '-1', '4', '-1', '-1', '4', '4'), 0):65.1713492669,
(('2', '2', '2', '2', '2', '1', '0', '0'), 3):328.563498814,
(('1', '2', '2', '2', '2', '0', '1', '2'), 3):575.404759811,
(('0', '2', '0', '2', '4', '0', '1', '1'), 2):223.713549774,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '4'), 2):12.4278116382,
(('4', '2', '2', '4', '4', '1', '4', '4'), 3):10,
(('4', '2', '1', '2', '4', '1', '1', '1'), 2):37.4961713804,
(('0', '0', '0', '0', '0', '0', '0', '1'), 2):206.686579485,
(('0', '4', '1', '2', '1', '4', '2', '1'), 2):10,
(('1', '2', '0', '2', '1', '0', '0', '0'), 1):272.70394351,
(('1', '2', '2', '2', '4', '0', '0', '1'), 0):10,
(('0', '2', '4', '2', '0', '0', '1', '1'), 3):161.596742565,
(('4', '2', '4', '4', '4', '4', '4', '4'), 3):30,
(('0', '2', '-1', '2', '-1', '-1', '2', '2'), 2):389.919417996,
(('0', '2', '1', '2', '0', '1', '0', '4'), 2):175.222781675,
(('0', '2', '1', '2', '0', '1', '1', '2'), 0):201.332915168,
(('2', '4', '0', '2', '1', '4', '2', '4'), 1):10,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '0'), 2):238.71788364,
(('1', '2', '4', '2', '0', '0', '1', '1'), 2):166.936827494,
(('0', '0', '-1', '4', '-1', '-1', '0', '1'), 3):88.6517836396,
(('2', '2', '2', '2', '2', '2', '4', '0'), 1):-139.014441663,
(('4', '1', '1', '1', '1', '1', '1', '1'), 2):47.9280530149,
(('1', '0', '0', '1', '0', '4', '1', '0'), 3):68.0442265991,
(('1', '0', '0', '4', '1', '1', '0', '0'), 3):10,
(('4', '2', '2', '2', '0', '2', '4', '0'), 1):64.5858932764,
(('0', '2', '4', '2', '1', '4', '2', '2'), 0):-1000,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '4'), 0):191.993694444,
(('1', '4', '0', '1', '1', '0', '0', '1'), 3):46.5250622625,
(('1', '-1', '4', '2', '0', '-1', '1', '-1'), 0):60.2708165452,
(('0', '4', '0', '-1', '0', '0', '-1', '-1'), 3):259.049097287,
(('0', '1', '4', '0', '1', '1', '0', '0'), 2):49.8794682624,
(('4', '-1', '1', '2', '0', '-1', '1', '-1'), 2):10,
(('0', '2', '4', '2', '4', '0', '0', '1'), 0):158.714995043,
(('2', '2', '0', '2', '0', '2', '0', '0'), 1):435.163616362,
(('1', '2', '0', '2', '1', '1', '0', '2'), 2):279.530348054,
(('1', '2', '4', '2', '1', '0', '2', '2'), 2):248.263394238,
(('1', '0', '1', '1', '1', '4', '1', '0'), 3):175.353931971,
(('4', '2', '1', '2', '2', '1', '0', '0'), 1):112.494868175,
(('2', '2', '1', '-1', '4', '0', '-1', '-1'), 2):171.702447788,
(('-1', '2', '2', '2', '-1', '2', '-1', '4'), 2):78.3954213971,
(('1', '1', '0', '1', '0', '4', '0', '1'), 0):0,
(('1', '0', '-1', '1', '-1', '-1', '1', '1'), 1):286.829867009,
(('0', '0', '1', '4', '4', '0', '0', '4'), 0):-10,
(('-1', '2', '1', '2', '-1', '0', '-1', '2'), 0):417.361269138,
(('0', '2', '0', '4', '0', '0', '0', '4'), 0):168.956047171,
(('0', '2', '-1', '2', '-1', '-1', '0', '2'), 0):244.580955906,
(('0', '0', '-1', '4', '-1', '-1', '1', '0'), 0):147.070071632,
(('4', '1', '1', '1', '0', '1', '1', '1'), 1):164.869052753,
(('2', '-1', '0', '2', '1', '-1', '0', '-1'), 2):305.314784472,
(('2', '2', '1', '4', '1', '0', '4', '4'), 1):10,
(('-1', '2', '0', '-1', '-1', '2', '-1', '-1'), 1):331.585039718,
(('1', '2', '4', '-1', '0', '1', '-1', '-1'), 1):90.6307748348,
(('1', '0', '1', '0', '1', '1', '0', '1'), 2):71.3142801439,
(('-1', '1', '0', '0', '-1', '1', '-1', '0'), 3):228.088442945,
(('0', '2', '1', '2', '0', '0', '2', '0'), 2):380.200914858,
(('2', '-1', '-1', '2', '-1', '-1', '2', '-1'), 0):289.907231783,
(('1', '0', '1', '-1', '1', '1', '-1', '-1'), 2):262.501950718,
(('1', '2', '-1', '2', '-1', '-1', '2', '0'), 2):366.009587956,
(('2', '2', '0', '2', '2', '1', '2', '1'), 1):380.36540511,
(('1', '-1', '1', '2', '0', '-1', '0', '-1'), 1):303.152600799,
(('1', '0', '4', '1', '0', '1', '1', '0'), 2):2.0,
(('0', '-1', '1', '0', '1', '-1', '1', '-1'), 0):70.0846853831,
(('2', '2', '1', '2', '0', '0', '1', '0'), 1):268.971054212,
(('1', '0', '0', '4', '1', '0', '1', '4'), 1):62.9621855639,
(('0', '2', '1', '2', '1', '0', '4', '4'), 3):11.8,
(('0', '2', '1', '2', '0', '4', '0', '4'), 0):0,
(('1', '1', '4', '0', '1', '0', '1', '0'), 2):68.5750924502,
(('0', '4', '4', '1', '4', '4', '1', '1'), 2):0,
(('4', '1', '4', '1', '4', '4', '0', '0'), 0):0.0,
(('2', '4', '-1', '4', '-1', '-1', '2', '4'), 1):38.8002336625,
(('1', '1', '4', '1', '0', '1', '0', '1'), 3):139.010908603,
(('0', '0', '0', '0', '4', '0', '0', '0'), 0):73.4929655794,
(('-1', '1', '1', '1', '-1', '1', '-1', '0'), 3):179.373962767,
(('0', '1', '1', '4', '0', '1', '1', '0'), 3):0,
(('4', '2', '0', '2', '0', '1', '0', '0'), 2):150.107593471,
(('2', '2', '4', '2', '2', '1', '1', '1'), 1):10,
(('1', '1', '4', '0', '4', '1', '1', '0'), 2):0,
(('1', '2', '1', '4', '1', '2', '0', '2'), 2):10,
(('1', '0', '4', '-1', '1', '4', '-1', '-1'), 3):54.6897154743,
(('0', '-1', '4', '1', '4', '-1', '0', '-1'), 0):49.2867600616,
(('2', '2', '2', '2', '0', '2', '4', '2'), 0):10,
(('4', '2', '2', '2', '4', '2', '4', '0'), 3):162.358045226,
(('0', '0', '1', '4', '0', '1', '4', '4'), 2):0,
(('-1', '2', '2', '2', '-1', '1', '-1', '2'), 3):375.489583606,
(('0', '0', '-1', '1', '-1', '-1', '1', '1'), 3):276.279911293,
(('1', '1', '0', '1', '4', '0', '1', '1'), 3):183.068040634,
(('0', '2', '4', '2', '1', '4', '0', '1'), 3):38.4752292319,
(('4', '1', '0', '1', '0', '0', '0', '1'), 1):191.963420574,
(('1', '2', '-1', '2', '-1', '-1', '0', '4'), 3):264.972308091,
(('1', '1', '1', '4', '1', '1', '0', '1'), 0):178.189751869,
(('2', '2', '2', '2', '1', '2', '2', '2'), 1):426.3480957,
(('1', '4', '2', '-1', '1', '1', '-1', '-1'), 3):190.692152668,
(('1', '0', '0', '4', '0', '0', '4', '0'), 2):18.2650665199,
(('0', '2', '4', '2', '4', '4', '2', '2'), 2):179.138091232,
(('1', '1', '-1', '0', '-1', '-1', '0', '1'), 1):233.150683397,
(('4', '2', '2', '2', '0', '0', '4', '0'), 1):40,
(('1', '2', '1', '4', '1', '2', '0', '2'), 0):219.8,
(('0', '2', '2', '2', '2', '2', '1', '4'), 0):10,
(('-1', '0', '0', '1', '-1', '1', '-1', '1'), 2):91.3147194567,
(('2', '-1', '1', '2', '1', '-1', '4', '-1'), 1):219.509572071,
(('0', '1', '4', '1', '1', '1', '1', '1'), 2):10,
(('4', '1', '1', '0', '1', '1', '4', '1'), 3):23.3541818419,
(('2', '2', '2', '2', '1', '2', '2', '2'), 2):170.393489665,
(('0', '2', '4', '2', '0', '0', '0', '2'), 3):10,
(('2', '4', '1', '2', '1', '0', '0', '4'), 1):59.6015735018,
(('2', '2', '2', '4', '0', '2', '4', '4'), 1):107.148347632,
(('-1', '4', '0', '-1', '-1', '4', '-1', '-1'), 3):55.3115823752,
(('0', '0', '0', '-1', '1', '1', '-1', '-1'), 0):10.6221627916,
(('-1', '1', '0', '1', '-1', '1', '-1', '1'), 2):240.231229301,
(('4', '0', '1', '0', '1', '1', '4', '0'), 2):61.6746172961,
(('0', '2', '1', '2', '0', '1', '1', '0'), 1):129.949211083,
(('0', '4', '1', '-1', '1', '1', '-1', '-1'), 0):146.224758852,
(('4', '0', '0', '-1', '4', '0', '-1', '-1'), 0):80.5250914881,
(('2', '2', '0', '-1', '0', '4', '-1', '-1'), 1):212.359408344,
(('1', '2', '1', '-1', '4', '2', '-1', '-1'), 2):10,
(('4', '1', '1', '1', '0', '1', '1', '0'), 2):10,
(('1', '-1', '1', '2', '1', '-1', '2', '-1'), 2):429.994235183,
(('4', '2', '4', '2', '1', '4', '0', '0'), 0):50,
(('4', '1', '0', '4', '0', '0', '4', '1'), 0):-31.0441841968,
(('4', '2', '0', '2', '1', '1', '0', '2'), 0):53.1637933839,
(('-1', '4', '2', '2', '-1', '0', '-1', '0'), 3):190.659248399,
(('1', '1', '1', '0', '1', '1', '0', '1'), 2):216.578432638,
(('0', '0', '1', '0', '4', '1', '0', '0'), 0):31.6403281086,
(('0', '2', '2', '2', '1', '1', '1', '2'), 3):89.9275590549,
(('0', '1', '0', '1', '0', '0', '0', '4'), 0):171.745238081,
(('0', '-1', '1', '0', '0', '-1', '4', '-1'), 0):-10,
(('0', '1', '0', '1', '0', '1', '0', '4'), 0):20.5436133564,
(('1', '0', '1', '0', '0', '1', '0', '0'), 0):210.543721117,
(('0', '0', '1', '0', '0', '0', '4', '0'), 3):119.58675045,
(('0', '-1', '2', '2', '0', '-1', '0', '-1'), 0):250.546299415,
(('1', '4', '1', '2', '1', '4', '1', '4'), 1):50,
(('0', '-1', '-1', '2', '-1', '-1', '2', '-1'), 3):370.880579136,
(('1', '-1', '4', '1', '1', '-1', '0', '-1'), 0):79.0097281934,
(('4', '1', '0', '-1', '0', '1', '-1', '-1'), 0):275.719042633,
(('4', '2', '2', '2', '2', '2', '4', '1'), 0):10,
(('2', '2', '2', '2', '1', '0', '2', '2'), 2):10,
(('0', '1', '4', '0', '4', '0', '0', '1'), 0):53.9944271947,
(('2', '2', '1', '2', '1', '4', '0', '0'), 1):214.277169773,
(('0', '2', '0', '2', '4', '0', '0', '0'), 0):255.129925504,
(('4', '0', '-1', '1', '-1', '-1', '1', '1'), 0):209.541077331,
(('4', '2', '1', '2', '4', '1', '0', '0'), 0):128.083003217,
(('4', '-1', '-1', '1', '-1', '-1', '1', '-1'), 3):232.081653004,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '4'), 3):170.028215854,
(('0', '2', '1', '2', '0', '1', '0', '1'), 0):220.723615573,
(('2', '2', '1', '2', '2', '2', '1', '2'), 1):10,
(('0', '2', '2', '2', '4', '2', '0', '1'), 3):252.429497926,
(('1', '2', '2', '2', '2', '2', '0', '4'), 0):10,
(('1', '2', '2', '2', '0', '2', '0', '2'), 0):371.219189037,
(('2', '2', '1', '2', '0', '1', '2', '0'), 2):339.211126331,
(('0', '1', '0', '1', '0', '1', '4', '1'), 1):171.561052461,
(('2', '2', '0', '2', '0', '2', '2', '1'), 1):10.0,
(('1', '1', '1', '0', '1', '1', '0', '4'), 0):209.427333039,
(('1', '-1', '0', '0', '1', '-1', '4', '-1'), 1):16.691735574,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '0'), 2):239.336905744,
(('0', '0', '0', '4', '0', '1', '4', '0'), 3):10,
(('1', '2', '0', '2', '1', '2', '1', '0'), 2):58.7031108381,
(('1', '2', '4', '2', '1', '0', '4', '2'), 0):10,
(('1', '0', '0', '0', '0', '0', '4', '0'), 0):104.322217378,
(('1', '-1', '4', '1', '0', '-1', '1', '-1'), 2):223.288151193,
(('1', '-1', '4', '1', '0', '-1', '0', '-1'), 1):38.6458182199,
(('0', '4', '1', '1', '0', '4', '0', '1'), 3):10,
(('1', '4', '-1', '1', '-1', '-1', '1', '1'), 0):229.669102098,
(('1', '2', '1', '-1', '4', '1', '-1', '-1'), 0):247.734888728,
(('0', '2', '2', '4', '2', '2', '1', '0'), 0):10,
(('2', '4', '0', '2', '1', '4', '1', '0'), 1):10,
(('1', '1', '0', '1', '1', '1', '1', '1'), 3):191.54615154,
(('4', '2', '2', '2', '1', '1', '0', '2'), 3):41.4689514031,
(('0', '2', '2', '2', '2', '1', '1', '1'), 3):290.165512795,
(('1', '2', '0', '2', '4', '2', '1', '1'), 0):121.075955789,
(('1', '1', '1', '1', '1', '1', '4', '1'), 0):93.1865027496,
(('2', '4', '2', '2', '0', '2', '0', '0'), 3):10,
(('-1', '0', '4', '-1', '-1', '1', '-1', '-1'), 2):-510,
(('1', '1', '4', '0', '0', '4', '0', '0'), 0):36.9533114105,
(('1', '1', '1', '0', '4', '0', '0', '0'), 0):77.5916423077,
(('1', '2', '1', '-1', '0', '1', '-1', '-1'), 0):274.296613431,
(('1', '2', '-1', '2', '-1', '-1', '1', '2'), 3):156.08335996,
(('1', '4', '-1', '0', '-1', '-1', '0', '1'), 2):41.7310849328,
(('4', '2', '0', '2', '1', '1', '1', '1'), 2):18.6863044147,
(('-1', '1', '1', '4', '-1', '0', '-1', '4'), 3):106.312025606,
(('2', '2', '2', '2', '0', '0', '4', '0'), 3):78.613254389,
(('2', '4', '1', '2', '2', '0', '2', '4'), 1):10,
(('4', '1', '0', '1', '0', '0', '4', '1'), 3):186.873478282,
(('1', '1', '4', '1', '0', '4', '1', '1'), 2):117.952986971,
(('4', '2', '2', '2', '0', '2', '0', '0'), 2):10,
(('2', '-1', '1', '-1', '1', '-1', '-1', '-1'), 2):360.194503862,
(('-1', '1', '0', '1', '-1', '0', '-1', '4'), 0):125.170240364,
(('2', '-1', '0', '4', '0', '-1', '2', '-1'), 1):201.582369831,
(('2', '2', '0', '2', '1', '0', '1', '0'), 1):291.507027791,
(('2', '4', '0', '2', '2', '0', '2', '4'), 2):44.0778599876,
(('1', '4', '2', '2', '1', '0', '1', '4'), 3):100.711767631,
(('1', '0', '1', '1', '4', '0', '1', '1'), 1):18.4584120914,
(('-1', '4', '1', '0', '-1', '4', '-1', '1'), 1):-10,
(('1', '1', '1', '4', '1', '0', '4', '4'), 1):-1.6,
(('0', '1', '1', '-1', '4', '1', '-1', '-1'), 0):271.086872006,
(('1', '0', '1', '1', '4', '0', '1', '0'), 3):117.450043185,
(('-1', '2', '1', '2', '-1', '2', '-1', '4'), 0):173.061275582,
(('0', '2', '2', '2', '1', '0', '0', '2'), 2):278.254038411,
(('0', '2', '1', '2', '1', '0', '0', '1'), 3):253.267589875,
(('1', '4', '0', '4', '0', '0', '1', '4'), 2):10,
(('0', '1', '1', '0', '0', '4', '1', '0'), 2):0,
(('1', '1', '4', '0', '4', '4', '0', '0'), 1):19.6230172961,
(('2', '4', '1', '2', '1', '4', '2', '2'), 2):500,
(('4', '2', '1', '2', '1', '1', '4', '0'), 3):192.700188245,
(('2', '2', '4', '-1', '2', '1', '-1', '-1'), 2):65.1134883287,
(('4', '0', '-1', '1', '-1', '-1', '4', '1'), 2):58.7883690715,
(('4', '-1', '1', '-1', '4', '-1', '-1', '-1'), 2):219.848038722,
(('1', '-1', '4', '0', '1', '-1', '0', '-1'), 0):188.392986843,
(('4', '-1', '1', '1', '1', '-1', '0', '-1'), 3):175.251387191,
(('0', '4', '4', '1', '0', '0', '0', '1'), 0):10,
(('0', '2', '0', '2', '1', '0', '4', '0'), 0):10,
(('2', '4', '0', '4', '2', '4', '2', '4'), 1):10,
(('1', '4', '0', '2', '0', '1', '0', '0'), 1):10,
(('4', '2', '4', '2', '4', '1', '0', '1'), 0):50,
(('2', '2', '2', '2', '1', '4', '0', '0'), 1):97.5409400876,
(('2', '2', '0', '2', '4', '0', '2', '0'), 0):81.0283731784,
(('0', '2', '0', '2', '0', '2', '4', '0'), 0):220.824560292,
(('1', '1', '4', '1', '0', '4', '1', '0'), 3):16.3983603507,
(('4', '2', '2', '2', '1', '2', '0', '2'), 0):10.0,
(('2', '2', '0', '2', '1', '1', '4', '0'), 2):10,
(('4', '2', '2', '4', '2', '0', '4', '0'), 3):10,
(('1', '0', '4', '1', '4', '0', '1', '1'), 2):46.1525476206,
(('1', '2', '0', '-1', '4', '1', '-1', '-1'), 2):184.193225671,
(('4', '-1', '1', '1', '1', '-1', '4', '-1'), 2):73.3396929278,
(('1', '0', '-1', '1', '-1', '-1', '0', '1'), 1):266.629851207,
(('1', '4', '4', '2', '1', '4', '1', '4'), 2):10,
(('0', '0', '4', '1', '1', '4', '0', '0'), 2):37.1363624182,
(('0', '0', '-1', '1', '-1', '-1', '0', '0'), 0):253.948898751,
(('0', '4', '0', '4', '0', '0', '1', '1'), 1):10,
(('0', '2', '1', '4', '0', '1', '4', '1'), 2):0,
(('1', '1', '1', '0', '1', '1', '1', '4'), 0):0,
(('1', '-1', '0', '0', '4', '-1', '0', '-1'), 1):112.86133547,
(('2', '2', '-1', '2', '-1', '-1', '1', '0'), 2):341.664819774,
(('1', '0', '4', '-1', '0', '4', '-1', '-1'), 2):61.276136808,
(('0', '4', '2', '2', '0', '0', '0', '4'), 3):92.7038204745,
(('0', '2', '2', '4', '0', '2', '0', '1'), 0):10,
(('1', '2', '-1', '4', '-1', '-1', '4', '1'), 1):10,
(('4', '2', '0', '-1', '4', '1', '-1', '-1'), 3):50,
(('1', '-1', '1', '0', '1', '-1', '0', '-1'), 3):283.073579893,
(('0', '2', '0', '2', '0', '2', '0', '0'), 0):286.085396218,
(('1', '2', '0', '2', '0', '0', '4', '1'), 0):170.185564933,
(('0', '2', '1', '2', '1', '0', '1', '2'), 2):544.255960927,
(('0', '1', '1', '0', '0', '0', '1', '1'), 0):0,
(('4', '0', '4', '4', '0', '0', '0', '0'), 3):50,
(('4', '2', '4', '2', '0', '0', '2', '0'), 2):-1000,
(('1', '-1', '0', '2', '1', '-1', '4', '-1'), 1):268.403144618,
(('0', '1', '1', '0', '1', '0', '1', '1'), 2):89.6878286557,
(('4', '2', '0', '2', '0', '2', '4', '4'), 0):10,
(('4', '-1', '0', '1', '4', '-1', '4', '-1'), 0):80.5193839423,
(('1', '2', '4', '2', '4', '0', '0', '4'), 3):10,
(('1', '1', '1', '1', '1', '0', '0', '0'), 2):209.537149587,
(('2', '2', '2', '2', '0', '4', '2', '2'), 0):289.053142139,
(('1', '0', '1', '-1', '0', '0', '-1', '-1'), 0):247.184638127,
(('2', '2', '0', '4', '0', '0', '2', '0'), 1):209.024079946,
(('4', '-1', '1', '0', '1', '-1', '1', '-1'), 3):-10,
(('1', '2', '1', '2', '4', '1', '1', '1'), 2):37.2893079376,
(('1', '1', '1', '1', '1', '4', '1', '1'), 2):135.907500451,
(('1', '2', '1', '2', '4', '2', '0', '0'), 0):82.1896036022,
(('1', '2', '1', '2', '1', '1', '0', '1'), 3):226.161135015,
(('1', '0', '1', '4', '1', '0', '0', '0'), 3):198.504800685,
(('0', '4', '-1', '0', '-1', '-1', '0', '0'), 3):240.124163905,
(('0', '1', '1', '0', '1', '0', '4', '0'), 0):10,
(('0', '1', '0', '0', '0', '4', '0', '0'), 3):189.470414552,
(('-1', '2', '4', '2', '-1', '4', '-1', '2'), 2):367.902208873,
(('2', '2', '0', '2', '4', '0', '1', '2'), 1):59.3207325932,
(('-1', '4', '0', '1', '-1', '0', '-1', '0'), 1):175.96572282,
(('4', '2', '0', '2', '1', '0', '1', '0'), 0):101.088377892,
(('1', '1', '-1', '4', '-1', '-1', '1', '1'), 2):195.958240686,
(('4', '1', '1', '1', '4', '0', '0', '0'), 2):40.4063122256,
(('0', '2', '-1', '2', '-1', '-1', '0', '1'), 2):282.544731327,
(('2', '2', '4', '4', '0', '4', '2', '4'), 1):104.303312987,
(('1', '2', '1', '4', '1', '0', '0', '0'), 0):53.4771895909,
(('0', '4', '0', '4', '0', '0', '0', '4'), 3):0,
(('4', '2', '1', '2', '1', '1', '1', '1'), 3):28.2566979684,
(('4', '0', '4', '4', '0', '0', '4', '0'), 3):-10,
(('0', '1', '1', '4', '1', '1', '0', '1'), 1):202.135107897,
(('2', '2', '2', '2', '1', '4', '1', '4'), 1):10,
(('2', '2', '2', '2', '0', '0', '0', '2'), 1):338.127249804,
(('1', '4', '1', '-1', '1', '4', '-1', '-1'), 1):42.8743236147,
(('1', '0', '1', '0', '1', '1', '0', '0'), 0):240.071138306,
(('-1', '1', '0', '4', '-1', '0', '-1', '4'), 2):10,
(('0', '1', '1', '0', '0', '0', '0', '1'), 2):212.299849376,
(('0', '-1', '4', '1', '0', '-1', '0', '-1'), 3):179.056102933,
(('2', '-1', '1', '2', '2', '-1', '2', '-1'), 2):427.488205013,
(('0', '2', '-1', '4', '-1', '-1', '4', '2'), 0):264.913365221,
(('1', '2', '1', '2', '1', '0', '1', '1'), 3):228.85029279,
(('2', '2', '4', '2', '1', '4', '2', '2'), 2):349.495456999,
(('2', '4', '2', '2', '2', '2', '2', '0'), 3):10,
(('4', '2', '0', '2', '1', '2', '4', '1'), 0):52.5934357034,
(('1', '1', '-1', '1', '-1', '-1', '1', '0'), 3):220.128683285,
(('1', '2', '4', '2', '1', '1', '1', '0'), 0):-38.8445013739,
(('2', '2', '0', '-1', '2', '2', '-1', '-1'), 1):453.017174416,
(('1', '2', '4', '2', '0', '4', '0', '4'), 0):10,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '4'), 0):224.865313302,
(('4', '1', '4', '-1', '4', '0', '-1', '-1'), 2):-85.9874222929,
(('0', '2', '0', '2', '0', '0', '0', '1'), 1):253.742886193,
(('1', '1', '1', '1', '1', '1', '0', '0'), 0):221.133972205,
(('0', '1', '1', '0', '4', '0', '0', '0'), 2):64.4828790307,
(('1', '0', '1', '0', '0', '1', '1', '0'), 2):184.202706784,
(('0', '4', '4', '0', '1', '1', '0', '0'), 0):10,
(('4', '2', '4', '2', '4', '4', '2', '0'), 1):50.5941475494,
(('1', '1', '0', '-1', '0', '4', '-1', '-1'), 2):181.895545709,
(('0', '1', '1', '4', '0', '1', '0', '4'), 1):77.2432227164,
(('1', '2', '4', '-1', '0', '0', '-1', '-1'), 1):229.105219157,
(('4', '1', '0', '1', '1', '0', '4', '1'), 2):-10,
(('0', '0', '-1', '0', '-1', '-1', '1', '0'), 2):247.221326217,
(('1', '1', '4', '0', '4', '1', '0', '0'), 0):48.8764263019,
(('-1', '2', '2', '2', '-1', '0', '-1', '2'), 1):231.885365994,
(('-1', '2', '0', '2', '-1', '2', '-1', '1'), 1):113.698951844,
(('4', '2', '2', '2', '0', '2', '4', '2'), 2):400,
(('2', '2', '0', '2', '0', '0', '0', '0'), 0):286.670730754,
(('0', '4', '0', '2', '0', '4', '1', '0'), 1):10,
(('1', '4', '1', '1', '0', '0', '0', '0'), 2):27.9722450977,
(('0', '-1', '1', '2', '1', '-1', '2', '-1'), 0):378.365044357,
(('4', '0', '0', '1', '4', '0', '4', '1'), 3):0,
(('2', '-1', '2', '2', '1', '-1', '0', '-1'), 2):258.458246112,
(('0', '1', '1', '0', '4', '0', '0', '1'), 2):0,
(('-1', '4', '1', '2', '-1', '1', '-1', '4'), 3):10,
(('4', '2', '2', '2', '0', '0', '0', '0'), 3):231.071090215,
(('-1', '0', '1', '4', '-1', '1', '-1', '0'), 0):113.316899539,
(('0', '0', '0', '1', '4', '0', '0', '0'), 1):156.123668862,
(('4', '2', '4', '2', '4', '0', '0', '1'), 2):10,
(('1', '0', '1', '0', '1', '0', '1', '4'), 0):10,
(('1', '2', '0', '2', '0', '0', '0', '4'), 0):-172.96,
(('1', '2', '1', '4', '1', '0', '1', '0'), 1):172.290869312,
(('-1', '4', '0', '4', '-1', '0', '-1', '4'), 1):50.3902134575,
(('2', '2', '2', '2', '0', '1', '0', '4'), 2):0,
(('2', '-1', '4', '2', '0', '-1', '2', '-1'), 1):295.628192205,
(('2', '2', '1', '2', '0', '1', '2', '2'), 0):330.95541707,
(('2', '2', '4', '2', '1', '0', '0', '2'), 0):10,
(('0', '4', '1', '1', '0', '0', '0', '1'), 3):10,
(('1', '0', '0', '0', '1', '0', '0', '4'), 3):45.4269792182,
(('-1', '1', '1', '4', '-1', '1', '-1', '0'), 3):134.154421909,
(('1', '1', '4', '1', '4', '4', '0', '1'), 2):84.3716948945,
(('2', '-1', '1', '-1', '4', '-1', '-1', '-1'), 0):51.4214628456,
(('0', '2', '1', '2', '4', '0', '0', '4'), 3):10,
(('0', '2', '0', '4', '0', '0', '1', '0'), 1):10,
(('2', '2', '2', '-1', '2', '0', '-1', '-1'), 3):348.9906742,
(('0', '-1', '0', '0', '0', '-1', '1', '-1'), 2):202.548979447,
(('1', '1', '-1', '1', '-1', '-1', '4', '4'), 0):-10,
(('4', '0', '-1', '1', '-1', '-1', '0', '1'), 3):154.797159335,
(('0', '4', '1', '1', '1', '0', '0', '0'), 2):108.965194072,
(('0', '0', '0', '1', '4', '0', '1', '0'), 0):-8.0,
(('0', '0', '1', '-1', '0', '0', '-1', '-1'), 0):241.71318368,
(('0', '4', '-1', '2', '-1', '-1', '2', '2'), 2):10,
(('1', '-1', '0', '4', '0', '-1', '4', '-1'), 0):93.3894914031,
(('0', '0', '1', '1', '0', '0', '0', '4'), 0):51.746852288,
(('0', '2', '1', '2', '1', '0', '0', '0'), 1):260.026336456,
(('0', '1', '0', '0', '0', '0', '0', '0'), 3):217.316494198,
(('0', '2', '2', '2', '2', '1', '0', '1'), 3):329.85461282,
(('0', '0', '-1', '4', '-1', '-1', '4', '4'), 0):10,
(('0', '2', '0', '2', '0', '0', '4', '0'), 3):-576.699663398,
(('1', '2', '0', '2', '0', '1', '1', '0'), 3):196.210690938,
(('2', '2', '1', '2', '0', '0', '2', '2'), 1):418.282435018,
(('1', '2', '1', '2', '4', '0', '1', '1'), 2):42.6376956175,
(('0', '2', '4', '2', '1', '1', '1', '1'), 0):10,
(('2', '2', '0', '2', '0', '0', '2', '2'), 2):348.04587927,
(('1', '2', '-1', '4', '-1', '-1', '4', '0'), 2):10,
(('2', '2', '0', '4', '0', '0', '1', '1'), 1):60,
(('4', '0', '0', '1', '1', '0', '0', '1'), 1):-10,
(('1', '1', '-1', '1', '-1', '-1', '1', '4'), 3):187.870658657,
(('1', '0', '0', '1', '0', '1', '0', '0'), 2):46.8181474065,
(('1', '1', '0', '4', '1', '0', '1', '4'), 2):6.13608880076,
(('4', '2', '2', '2', '1', '2', '4', '0'), 3):188.98519877,
(('1', '2', '1', '2', '1', '0', '0', '4'), 2):20,
(('1', '1', '1', '0', '4', '1', '1', '0'), 1):22.1325715211,
(('2', '2', '4', '2', '2', '4', '2', '2'), 2):-190.3008,
(('0', '2', '0', '2', '1', '2', '4', '2'), 0):10,
(('1', '2', '1', '4', '1', '1', '1', '0'), 1):10,
(('1', '4', '1', '1', '0', '0', '1', '4'), 2):0,
(('0', '4', '4', '-1', '0', '1', '-1', '-1'), 3):-10,
(('1', '2', '0', '2', '2', '0', '1', '2'), 0):604.933832098,
(('2', '4', '0', '2', '0', '0', '2', '2'), 2):10,
(('0', '2', '2', '2', '0', '1', '4', '0'), 3):191.059536182,
(('4', '0', '0', '1', '4', '0', '0', '1'), 1):10,
(('1', '2', '4', '2', '4', '0', '1', '1'), 3):10,
(('2', '2', '0', '2', '1', '1', '1', '0'), 2):127.57112483,
(('1', '2', '4', '2', '0', '0', '0', '1'), 1):10,
(('0', '2', '2', '-1', '1', '4', '-1', '-1'), 0):10,
(('2', '2', '-1', '2', '-1', '-1', '0', '0'), 3):350.412768923,
(('4', '0', '4', '-1', '4', '4', '-1', '-1'), 1):10,
(('0', '-1', '2', '2', '4', '-1', '1', '-1'), 0):41.3410174897,
(('1', '0', '0', '1', '0', '0', '1', '4'), 3):177.261397626,
(('4', '0', '1', '1', '0', '0', '1', '1'), 2):47.890906483,
(('1', '0', '0', '0', '0', '1', '0', '0'), 0):48.0618310625,
(('1', '0', '0', '1', '0', '0', '0', '4'), 3):67.7151378775,
(('1', '2', '4', '2', '0', '4', '1', '0'), 2):190.54158187,
(('1', '1', '1', '4', '1', '1', '1', '4'), 3):180.152216047,
(('0', '4', '0', '0', '0', '0', '0', '4'), 2):18.108741832,
(('0', '4', '0', '0', '0', '1', '0', '0'), 2):69.8338749766,
(('1', '4', '1', '1', '0', '0', '0', '1'), 2):-10,
(('0', '2', '1', '-1', '0', '0', '-1', '-1'), 1):280.319911298,
(('1', '2', '4', '-1', '4', '0', '-1', '-1'), 1):123.768062867,
(('2', '-1', '4', '2', '1', '-1', '0', '-1'), 1):262.321544506,
(('2', '2', '2', '2', '1', '0', '2', '0'), 1):389.655941013,
(('-1', '2', '1', '4', '-1', '0', '-1', '0'), 1):85.4619973819,
(('2', '4', '-1', '2', '-1', '-1', '2', '0'), 1):244.190385434,
(('1', '0', '1', '-1', '1', '0', '-1', '-1'), 1):292.328381599,
(('1', '0', '1', '1', '0', '0', '0', '0'), 1):221.712524403,
(('0', '-1', '-1', '0', '-1', '-1', '4', '-1'), 2):90.4269476601,
(('0', '4', '0', '-1', '0', '1', '-1', '-1'), 2):198.172200801,
(('0', '4', '2', '-1', '2', '4', '-1', '-1'), 2):10,
(('1', '-1', '0', '4', '1', '-1', '4', '-1'), 0):-160,
(('1', '1', '1', '0', '0', '0', '0', '1'), 1):150.293156308,
(('2', '2', '4', '2', '2', '0', '0', '0'), 1):200.026502271,
(('1', '2', '1', '2', '1', '0', '1', '4'), 0):60,
(('1', '2', '1', '2', '1', '2', '0', '2'), 0):483.081326684,
(('-1', '4', '2', '-1', '-1', '1', '-1', '-1'), 1):118.464245162,
(('4', '0', '1', '1', '1', '1', '1', '1'), 1):-10,
(('1', '0', '0', '1', '1', '0', '1', '0'), 1):251.360027462,
(('2', '2', '0', '2', '2', '2', '1', '2'), 0):100.64628742,
(('1', '0', '0', '4', '0', '0', '1', '4'), 0):45.3580406378,
(('0', '2', '1', '2', '1', '2', '4', '4'), 0):107.031164952,
(('1', '1', '0', '0', '0', '0', '1', '0'), 2):209.579788078,
(('2', '2', '4', '-1', '4', '0', '-1', '-1'), 1):221.913590519,
(('0', '1', '4', '0', '4', '0', '0', '0'), 2):77.3845140241,
(('0', '2', '1', '-1', '4', '0', '-1', '-1'), 2):193.035046091,
(('0', '1', '0', '-1', '4', '0', '-1', '-1'), 3):130.092949665,
(('0', '1', '4', '0', '0', '0', '4', '0'), 1):0,
(('4', '0', '0', '0', '0', '0', '1', '0'), 0):64.7988326354,
(('-1', '0', '1', '1', '-1', '0', '-1', '0'), 3):180.004330497,
(('1', '-1', '0', '1', '0', '-1', '0', '-1'), 2):243.983576575,
(('0', '4', '1', '0', '0', '1', '0', '0'), 1):216.138859217,
(('0', '1', '0', '0', '0', '1', '0', '0'), 0):220.011375925,
(('-1', '2', '2', '4', '-1', '2', '-1', '0'), 3):242.995274105,
(('-1', '1', '0', '0', '-1', '1', '-1', '1'), 1):266.62005288,
(('2', '2', '-1', '2', '-1', '-1', '2', '2'), 0):536.452939357,
(('1', '0', '1', '0', '1', '1', '1', '0'), 1):236.939189779,
(('1', '4', '0', '1', '1', '4', '1', '0'), 3):10,
(('2', '2', '1', '2', '1', '0', '1', '4'), 2):40,
(('4', '1', '0', '0', '0', '1', '1', '1'), 0):10,
(('1', '4', '0', '0', '0', '4', '0', '4'), 1):55.4219634739,
(('1', '0', '1', '1', '0', '1', '0', '1'), 3):16.2261300529,
(('0', '2', '1', '2', '0', '2', '0', '2'), 0):342.353357938,
(('0', '1', '1', '0', '0', '1', '0', '4'), 1):120.263933058,
(('1', '1', '1', '0', '1', '4', '1', '0'), 2):192.329119827,
(('1', '-1', '0', '1', '4', '-1', '0', '-1'), 1):2.20123649732,
(('4', '0', '0', '1', '0', '0', '1', '0'), 2):228.7206656,
(('1', '2', '2', '2', '2', '1', '1', '1'), 3):302.709160804,
(('4', '0', '1', '0', '4', '1', '1', '0'), 1):10,
(('1', '2', '1', '2', '1', '1', '1', '1'), 3):233.312520338,
(('0', '2', '4', '2', '4', '4', '0', '4'), 2):10,
(('2', '2', '0', '2', '2', '0', '0', '1'), 2):280.676907246,
(('1', '2', '4', '2', '1', '4', '1', '2'), 0):187.473244696,
(('4', '2', '2', '2', '0', '2', '0', '0'), 3):239.597905202,
(('0', '0', '1', '0', '0', '0', '0', '4'), 3):70.3513076993,
(('2', '4', '1', '4', '2', '0', '0', '4'), 1):11.8,
(('4', '-1', '0', '2', '1', '-1', '4', '-1'), 1):43.1568604581,
(('4', '2', '4', '4', '0', '0', '4', '4'), 2):50,
(('4', '2', '1', '2', '1', '0', '0', '0'), 1):233.787384209,
(('2', '2', '1', '4', '2', '1', '2', '0'), 1):68.2776659481,
(('0', '2', '2', '2', '2', '1', '2', '1'), 3):41.7239450759,
(('4', '-1', '1', '2', '4', '-1', '1', '-1'), 1):46.9989374092,
(('0', '2', '0', '2', '0', '1', '2', '0'), 0):67.2932892929,
(('4', '2', '1', '2', '0', '4', '0', '0'), 2):0,
(('1', '1', '0', '1', '1', '0', '0', '1'), 2):200.700585492,
(('2', '2', '1', '2', '0', '4', '2', '2'), 2):67.8169045055,
(('0', '2', '2', '-1', '2', '1', '-1', '-1'), 0):398.671352051,
(('4', '2', '1', '2', '0', '1', '4', '2'), 0):242.277165538,
(('-1', '2', '0', '-1', '-1', '1', '-1', '-1'), 3):279.632281531,
(('1', '0', '1', '1', '1', '1', '1', '1'), 1):216.064716733,
(('2', '2', '2', '2', '0', '0', '2', '0'), 2):322.276728261,
(('1', '1', '1', '1', '0', '1', '4', '1'), 0):64.7184937659,
(('0', '2', '4', '-1', '1', '0', '-1', '-1'), 3):301.074615153,
(('1', '2', '0', '2', '0', '1', '0', '0'), 3):101.27222001,
(('2', '2', '2', '2', '2', '1', '0', '4'), 2):450,
(('2', '-1', '2', '2', '0', '-1', '1', '-1'), 3):313.423197031,
(('0', '2', '2', '2', '0', '2', '1', '0'), 3):355.964829184,
(('4', '1', '1', '1', '4', '1', '4', '1'), 1):15.7716154562,
(('2', '2', '2', '2', '1', '2', '1', '4'), 1):193.403698953,
(('4', '0', '1', '1', '4', '1', '0', '0'), 0):-36.4604167655,
(('4', '2', '2', '2', '0', '2', '0', '2'), 1):340,
(('4', '2', '2', '2', '2', '0', '1', '1'), 3):60,
(('2', '4', '0', '2', '2', '1', '1', '4'), 1):10,
(('0', '1', '1', '0', '0', '1', '1', '0'), 0):186.583685412,
(('1', '2', '1', '2', '1', '1', '0', '0'), 3):261.459756386,
(('-1', '4', '4', '2', '-1', '4', '-1', '2'), 2):72.0806769883,
(('0', '1', '4', '1', '0', '4', '1', '0'), 0):-10,
(('0', '0', '-1', '0', '-1', '-1', '0', '0'), 2):258.540405246,
(('1', '0', '0', '0', '1', '0', '0', '1'), 2):55.4889033845,
(('4', '0', '0', '1', '0', '0', '1', '1'), 0):188.43843143,
(('2', '2', '2', '2', '0', '2', '2', '0'), 2):461.681709857,
(('-1', '0', '1', '1', '-1', '1', '-1', '1'), 0):209.004971708,
(('4', '2', '0', '2', '0', '0', '0', '2'), 2):271.726506762,
(('0', '1', '1', '-1', '0', '4', '-1', '-1'), 0):252.298877961,
(('0', '1', '1', '0', '4', '0', '4', '0'), 1):10,
(('0', '1', '-1', '0', '-1', '-1', '1', '1'), 2):267.254694151,
(('4', '0', '1', '0', '4', '0', '4', '0'), 0):28.984504732,
(('1', '2', '1', '2', '4', '1', '0', '1'), 0):75.7999108977,
(('4', '1', '-1', '1', '-1', '-1', '1', '1'), 1):247.343141345,
(('2', '2', '4', '-1', '4', '1', '-1', '-1'), 1):404.160546418,
(('-1', '0', '0', '0', '-1', '1', '-1', '0'), 0):215.323425566,
(('1', '4', '1', '-1', '0', '1', '-1', '-1'), 1):183.691292753,
(('0', '0', '1', '4', '0', '1', '0', '0'), 3):89.7274339842,
(('0', '-1', '2', '4', '1', '-1', '0', '-1'), 3):156.381119855,
(('2', '2', '1', '-1', '4', '1', '-1', '-1'), 2):231.13105504,
(('1', '0', '0', '4', '0', '0', '4', '4'), 1):147.371865894,
(('0', '2', '1', '2', '0', '0', '4', '2'), 2):292.049360837,
(('0', '2', '2', '2', '0', '0', '4', '0'), 0):49.9970772241,
(('1', '2', '0', '2', '4', '0', '0', '0'), 2):207.158087642,
(('0', '2', '4', '2', '0', '4', '0', '4'), 2):10,
(('1', '2', '0', '4', '0', '0', '1', '0'), 2):0,
(('-1', '2', '1', '2', '-1', '0', '-1', '1'), 2):264.051443849,
(('-1', '4', '1', '-1', '-1', '4', '-1', '-1'), 0):55.0886658,
(('4', '-1', '4', '0', '4', '-1', '4', '-1'), 3):-3.54503155271,
(('1', '2', '2', '2', '2', '1', '4', '2'), 3):10,
(('1', '1', '0', '4', '0', '0', '4', '4'), 1):57.1392107914,
(('4', '0', '0', '-1', '0', '1', '-1', '-1'), 2):62.8768637314,
(('2', '2', '4', '2', '4', '0', '0', '0'), 1):94.3967687854,
(('1', '2', '4', '2', '0', '4', '1', '0'), 0):108.742215935,
(('2', '2', '2', '4', '1', '1', '0', '0'), 3):10,
(('4', '0', '0', '0', '0', '0', '0', '0'), 0):168.149388753,
(('1', '2', '1', '2', '0', '0', '1', '2'), 2):235.66532774,
(('4', '2', '2', '-1', '0', '0', '-1', '-1'), 1):10,
(('0', '4', '1', '2', '0', '1', '0', '0'), 3):179.268665217,
(('-1', '1', '1', '-1', '-1', '1', '-1', '-1'), 3):332.519463858,
(('0', '0', '0', '0', '0', '1', '1', '0'), 0):40.3750956955,
(('4', '0', '-1', '0', '-1', '-1', '0', '0'), 3):247.048020732,
(('4', '1', '1', '1', '1', '1', '0', '0'), 0):133.652467005,
(('0', '0', '0', '4', '0', '0', '4', '4'), 2):1.5048,
(('2', '2', '2', '2', '2', '2', '1', '2'), 0):546.668847593,
(('0', '1', '0', '1', '1', '1', '0', '1'), 3):154.399785994,
(('1', '2', '0', '2', '0', '2', '0', '0'), 2):119.21702081,
(('4', '2', '2', '2', '0', '1', '0', '2'), 3):-76.3104478401,
(('0', '4', '-1', '2', '-1', '-1', '2', '4'), 2):135.722525709,
(('4', '2', '1', '2', '0', '2', '4', '1'), 0):10,
(('4', '1', '1', '-1', '4', '0', '-1', '-1'), 2):115.964616529,
(('4', '1', '0', '0', '4', '0', '0', '0'), 0):116.083886546,
(('1', '2', '2', '2', '2', '0', '1', '2'), 2):351.881985424,
(('1', '1', '1', '0', '4', '1', '1', '0'), 3):24.864453977,
(('0', '4', '1', '0', '0', '0', '0', '0'), 3):200.877955254,
(('1', '1', '1', '1', '4', '1', '0', '1'), 0):114.318339778,
(('4', '-1', '0', '0', '1', '-1', '0', '-1'), 3):117.879966293,
(('1', '2', '0', '2', '1', '0', '0', '0'), 0):290.09584022,
(('0', '1', '4', '1', '0', '4', '0', '0'), 0):119.133050693,
(('0', '2', '4', '2', '0', '0', '1', '1'), 2):218.88959718,
(('0', '2', '-1', '2', '-1', '-1', '2', '2'), 3):382.426535329,
(('0', '-1', '1', '1', '1', '-1', '0', '-1'), 3):243.785553826,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '1'), 1):53.3855627223,
(('1', '2', '2', '2', '0', '0', '0', '4'), 3):128.931460141,
(('1', '2', '4', '2', '0', '0', '1', '1'), 3):90.8965484313,
(('2', '2', '2', '2', '2', '2', '4', '0'), 0):92.1733827273,
(('4', '1', '1', '1', '1', '1', '1', '1'), 3):150.75914642,
(('2', '2', '1', '2', '2', '1', '2', '0'), 2):426.236815232,
(('0', '0', '4', '0', '0', '1', '0', '1'), 2):0,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '4'), 3):172.830945343,
(('4', '2', '1', '2', '0', '1', '1', '1'), 3):0,
(('0', '4', '0', '-1', '0', '0', '-1', '-1'), 0):159.707508142,
(('2', '2', '0', '2', '0', '2', '0', '0'), 0):188.555487608,
(('1', '2', '2', '2', '0', '4', '0', '2'), 0):100,
(('1', '0', '1', '1', '1', '4', '1', '0'), 0):200.506154898,
(('4', '2', '1', '2', '2', '1', '0', '0'), 0):-10,
(('1', '2', '1', '4', '0', '1', '1', '0'), 3):10,
(('-1', '2', '2', '2', '-1', '2', '-1', '4'), 3):255.772310425,
(('2', '2', '4', '2', '0', '4', '0', '4'), 1):60.3840789082,
(('2', '2', '1', '2', '1', '0', '1', '0'), 2):267.937730402,
(('-1', '4', '0', '0', '-1', '4', '-1', '0'), 1):68.0028731046,
(('1', '2', '2', '-1', '2', '1', '-1', '-1'), 3):414.36754726,
(('-1', '2', '2', '4', '-1', '1', '-1', '1'), 3):125.511827006,
(('0', '1', '1', '4', '0', '1', '1', '4'), 3):-10,
(('1', '1', '0', '1', '0', '1', '4', '1'), 0):48.8410551239,
(('1', '0', '4', '-1', '1', '1', '-1', '-1'), 1):117.707241934,
(('4', '1', '1', '1', '0', '1', '1', '1'), 0):157.943265776,
(('2', '-1', '0', '2', '1', '-1', '0', '-1'), 1):304.296096781,
(('0', '2', '0', '2', '1', '0', '0', '4'), 0):83.6001587685,
(('1', '2', '1', '4', '1', '1', '4', '4'), 0):10.0,
(('1', '0', '1', '0', '1', '1', '0', '1'), 3):127.996450388,
(('-1', '1', '0', '0', '-1', '1', '-1', '0'), 0):231.394740906,
(('1', '4', '0', '1', '1', '1', '1', '1'), 2):14.3668538228,
(('2', '-1', '-1', '2', '-1', '-1', '2', '-1'), 1):74.2417688776,
(('1', '0', '1', '-1', '1', '1', '-1', '-1'), 3):281.421422271,
(('1', '0', '1', '4', '1', '0', '0', '0'), 0):223.917984869,
(('0', '2', '1', '2', '1', '0', '4', '1'), 0):10,
(('1', '2', '1', '2', '0', '0', '0', '0'), 3):220.522488578,
(('4', '2', '2', '-1', '0', '2', '-1', '-1'), 2):10,
(('-1', '1', '4', '-1', '-1', '4', '-1', '-1'), 1):171.53156611,
(('0', '0', '0', '0', '4', '0', '0', '0'), 3):106.103271213,
(('4', '2', '1', '-1', '1', '0', '-1', '-1'), 2):245.498377335,
(('-1', '1', '1', '1', '-1', '1', '-1', '0'), 0):213.022892921,
(('0', '1', '-1', '1', '-1', '-1', '1', '0'), 2):282.018527795,
(('0', '4', '-1', '1', '-1', '-1', '1', '0'), 3):212.063210279,
(('1', '1', '4', '0', '4', '1', '1', '0'), 1):-10,
(('1', '0', '4', '-1', '1', '4', '-1', '-1'), 0):141.13168859,
(('-1', '4', '0', '2', '-1', '4', '-1', '4'), 0):10,
(('1', '4', '2', '2', '1', '1', '1', '4'), 3):50,
(('2', '2', '2', '2', '0', '1', '2', '2'), 2):338.963377453,
(('2', '2', '1', '-1', '2', '0', '-1', '-1'), 2):430.477786944,
(('2', '2', '2', '2', '0', '2', '4', '2'), 3):200,
(('0', '1', '1', '1', '1', '0', '0', '0'), 3):238.389992589,
(('1', '2', '0', '2', '1', '0', '2', '1'), 2):260.305700642,
(('-1', '2', '2', '2', '-1', '1', '-1', '2'), 2):332.754418867,
(('0', '0', '-1', '1', '-1', '-1', '1', '1'), 2):313.722857291,
(('4', '1', '0', '0', '0', '1', '0', '0'), 2):147.048004849,
(('2', '2', '0', '2', '4', '1', '0', '1'), 1):119.604626555,
(('2', '2', '4', '2', '4', '1', '0', '1'), 1):45.5489602159,
(('0', '2', '2', '2', '1', '0', '4', '0'), 3):194.952528349,
(('1', '1', '1', '4', '1', '1', '0', '1'), 3):189.147860518,
(('1', '4', '1', '1', '1', '4', '0', '0'), 1):0,
(('2', '2', '4', '2', '4', '0', '2', '0'), 2):147.111223037,
(('1', '0', '0', '4', '0', '0', '4', '0'), 3):129.677595589,
(('0', '2', '2', '2', '1', '1', '4', '2'), 3):10,
(('1', '1', '-1', '0', '-1', '-1', '0', '1'), 0):236.417400784,
(('1', '-1', '1', '0', '0', '-1', '4', '-1'), 0):-10,
(('1', '0', '0', '0', '0', '1', '1', '0'), 3):59.6083373458,
(('1', '4', '0', '2', '0', '0', '1', '4'), 2):193.402856351,
(('2', '-1', '0', '2', '0', '-1', '1', '-1'), 1):287.655529623,
(('0', '1', '-1', '1', '-1', '-1', '1', '0'), 3):253.451622117,
(('2', '-1', '1', '2', '1', '-1', '4', '-1'), 2):156.174519602,
(('1', '2', '2', '4', '2', '0', '1', '0'), 3):231.716493059,
(('4', '-1', '0', '2', '4', '-1', '4', '-1'), 0):140.109923003,
(('-1', '4', '0', '-1', '-1', '4', '-1', '-1'), 0):37.8085821168,
(('2', '4', '1', '2', '2', '1', '2', '0'), 2):152.229672117,
(('1', '0', '-1', '0', '-1', '-1', '1', '1'), 3):249.51442348,
(('4', '2', '1', '2', '1', '0', '1', '2'), 0):53.0324284712,
(('0', '2', '0', '2', '0', '4', '1', '1'), 1):51.6082771874,
(('-1', '1', '0', '1', '-1', '1', '-1', '1'), 3):216.221523596,
(('4', '0', '0', '0', '4', '0', '0', '0'), 3):65.8070011018,
(('1', '2', '1', '2', '1', '1', '4', '2'), 2):332.633892146,
(('0', '2', '2', '4', '0', '0', '0', '2'), 3):31.5188305388,
(('-1', '1', '1', '4', '-1', '0', '-1', '1'), 3):39.4983532655,
(('4', '-1', '0', '2', '0', '-1', '0', '-1'), 0):232.474034469,
(('4', '0', '0', '-1', '4', '0', '-1', '-1'), 1):195.175559161,
(('0', '0', '4', '0', '0', '1', '0', '0'), 1):52.0434817461,
(('2', '2', '-1', '2', '-1', '-1', '4', '0'), 2):181.88556541,
(('-1', '4', '2', '2', '-1', '4', '-1', '4'), 3):-57.619903874,
(('4', '2', '2', '-1', '0', '2', '-1', '-1'), 0):314.221642698,
(('4', '1', '1', '1', '0', '1', '1', '0'), 3):50.4655354448,
(('0', '4', '1', '2', '1', '1', '0', '1'), 2):57.7884444397,
(('4', '1', '0', '4', '0', '0', '4', '1'), 3):40.435014502,
(('4', '1', '1', '4', '4', '1', '4', '1'), 2):-10,
(('4', '1', '1', '0', '0', '1', '4', '1'), 0):10,
(('0', '0', '1', '0', '0', '1', '1', '1'), 1):0,
(('0', '4', '1', '2', '1', '0', '0', '4'), 1):10,
(('0', '0', '1', '0', '4', '1', '0', '0'), 3):141.03698074,
(('2', '2', '2', '2', '1', '4', '2', '0'), 1):110.545722099,
(('4', '2', '0', '2', '1', '1', '0', '0'), 1):86.9595534235,
(('2', '2', '2', '2', '2', '1', '4', '0'), 1):106.955882341,
(('0', '1', '0', '1', '0', '0', '0', '4'), 3):167.154469995,
(('0', '-1', '1', '0', '0', '-1', '4', '-1'), 3):35.1248256722,
(('1', '0', '1', '0', '0', '1', '0', '0'), 1):247.562344754,
(('0', '0', '1', '0', '0', '0', '4', '0'), 0):68.4097233396,
(('0', '0', '4', '1', '0', '0', '1', '0'), 1):160.048130309,
(('0', '2', '4', '2', '0', '1', '0', '0'), 2):217.625535399,
(('0', '2', '0', '2', '1', '0', '1', '2'), 0):327.448654678,
(('4', '2', '4', '2', '4', '4', '4', '0'), 0):38.992,
(('1', '-1', '4', '1', '1', '-1', '0', '-1'), 3):0,
(('4', '1', '0', '-1', '0', '1', '-1', '-1'), 1):182.262226556,
(('-1', '0', '0', '4', '-1', '0', '-1', '4'), 0):39.2107002487,
(('2', '2', '0', '2', '1', '4', '0', '0'), 2):114.08372764,
(('1', '2', '1', '4', '1', '1', '1', '1'), 0):10,
(('4', '2', '2', '2', '2', '2', '4', '1'), 1):80.3473959038,
(('1', '1', '0', '1', '0', '1', '1', '1'), 3):190.488542331,
(('0', '-1', '0', '-1', '2', '-1', '-1', '-1'), 2):199.789353498,
(('2', '2', '4', '2', '4', '4', '2', '0'), 0):10,
(('0', '2', '0', '2', '4', '0', '0', '0'), 3):10,
(('4', '2', '1', '2', '4', '1', '0', '0'), 3):154.174422129,
(('4', '4', '-1', '1', '-1', '-1', '4', '4'), 2):10,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '4'), 0):211.780938259,
(('-1', '0', '4', '1', '-1', '4', '-1', '1'), 0):11.7868128,
(('2', '2', '2', '2', '0', '2', '0', '1'), 0):202.332038483,
(('1', '0', '0', '0', '1', '0', '4', '0'), 2):12.124,
(('1', '-1', '4', '2', '1', '-1', '0', '-1'), 2):256.273042023,
(('0', '1', '1', '1', '1', '0', '4', '1'), 2):10,
(('2', '2', '0', '2', '2', '0', '0', '0'), 1):315.332416118,
(('0', '1', '4', '4', '0', '0', '0', '0'), 0):10,
(('1', '1', '1', '1', '1', '0', '1', '0'), 1):205.171491428,
(('0', '1', '0', '1', '0', '1', '4', '1'), 0):186.858228695,
(('2', '2', '0', '2', '0', '2', '2', '1'), 2):10,
(('1', '1', '1', '0', '1', '1', '0', '4'), 1):177.34954872,
(('2', '2', '2', '2', '0', '1', '0', '0'), 2):293.558177317,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '0'), 3):229.035010404,
(('0', '-1', '0', '0', '0', '-1', '4', '-1'), 1):82.2583715311,
(('2', '2', '1', '2', '2', '0', '4', '0'), 2):44.2340729608,
(('1', '4', '4', '2', '0', '0', '1', '2'), 2):-10,
(('1', '2', '2', '2', '1', '2', '1', '2'), 2):443.349975202,
(('0', '1', '0', '0', '0', '0', '1', '1'), 2):145.2109087,
(('1', '-1', '4', '1', '0', '-1', '0', '-1'), 2):125.197104389,
(('1', '0', '1', '1', '0', '1', '0', '0'), 3):222.817161379,
(('1', '4', '-1', '1', '-1', '-1', '1', '1'), 1):268.366847778,
(('1', '2', '1', '-1', '4', '1', '-1', '-1'), 3):175.312538998,
(('0', '4', '2', '2', '0', '2', '1', '0'), 3):10,
(('0', '-1', '4', '0', '4', '-1', '0', '-1'), 2):107.996706255,
(('0', '4', '1', '-1', '4', '4', '-1', '-1'), 2):10.0,
(('4', '1', '4', '4', '4', '4', '4', '1'), 1):0,
(('1', '1', '0', '1', '1', '1', '1', '1'), 0):218.287821987,
(('0', '2', '2', '2', '2', '1', '1', '1'), 0):219.60039074,
(('4', '2', '1', '2', '4', '0', '0', '2'), 0):230,
(('1', '1', '1', '0', '4', '0', '0', '0'), 1):63.3202540518,
(('1', '4', '0', '1', '1', '4', '0', '4'), 1):0,
(('1', '2', '1', '-1', '0', '1', '-1', '-1'), 3):285.202847565,
(('1', '4', '0', '1', '0', '1', '1', '1'), 3):-10,
(('1', '4', '-1', '0', '-1', '-1', '0', '1'), 3):0,
(('2', '2', '2', '2', '0', '0', '4', '0'), 2):66.4942364299,
(('2', '2', '4', '2', '4', '2', '2', '0'), 3):10,
(('4', '1', '0', '1', '0', '0', '4', '1'), 0):192.885390637,
(('1', '1', '4', '1', '0', '4', '1', '1'), 3):40.1169708586,
(('0', '-1', '0', '2', '2', '-1', '0', '-1'), 2):271.496200875,
(('0', '1', '0', '1', '0', '1', '0', '1'), 0):224.9207507,
(('-1', '1', '0', '1', '-1', '0', '-1', '4'), 1):127.807061285,
(('1', '2', '4', '2', '4', '4', '1', '2'), 0):208.562701433,
(('1', '0', '4', '0', '0', '1', '0', '0'), 2):-1000,
(('1', '0', '1', '0', '1', '1', '1', '4'), 3):10,
(('1', '1', '1', '4', '1', '0', '4', '4'), 0):0,
(('0', '1', '1', '-1', '4', '1', '-1', '-1'), 3):235.105277228,
(('4', '1', '0', '0', '4', '0', '4', '0'), 0):23.4162879008,
(('0', '2', '2', '2', '1', '0', '0', '2'), 3):198.680343098,
(('4', '2', '1', '2', '2', '1', '4', '2'), 0):226.0,
(('2', '2', '2', '2', '2', '1', '1', '0'), 1):127.32737623,
(('0', '2', '0', '2', '0', '0', '2', '2'), 2):322.464516317,
(('0', '-1', '1', '4', '4', '-1', '0', '-1'), 0):10,
(('2', '4', '0', '2', '2', '4', '0', '4'), 2):10,
(('2', '2', '4', '-1', '2', '1', '-1', '-1'), 1):412.261820088,
(('4', '0', '-1', '1', '-1', '-1', '4', '1'), 3):14.4692454651,
(('2', '2', '2', '-1', '0', '0', '-1', '-1'), 0):321.508035491,
(('1', '4', '0', '-1', '0', '1', '-1', '-1'), 1):48.1797676457,
(('1', '2', '0', '4', '1', '2', '1', '0'), 0):140,
(('4', '-1', '1', '1', '1', '-1', '0', '-1'), 2):203.351548559,
(('4', '-1', '0', '1', '0', '-1', '1', '-1'), 2):217.175728211,
(('4', '1', '1', '1', '1', '0', '4', '0'), 0):68.7762772845,
(('1', '0', '1', '1', '1', '0', '4', '1'), 0):1.53607364876,
(('1', '2', '0', '2', '1', '4', '0', '0'), 1):178.259346419,
(('1', '1', '4', '1', '0', '4', '1', '0'), 2):10,
(('0', '1', '1', '0', '1', '0', '0', '1'), 3):164.031798923,
(('0', '2', '0', '2', '4', '1', '4', '0'), 0):10,
(('1', '-1', '4', '1', '0', '-1', '0', '-1'), 0):0,
(('4', '2', '4', '2', '4', '2', '0', '2'), 2):100,
(('4', '1', '0', '1', '0', '1', '1', '1'), 2):169.21489725,
(('1', '-1', '0', '2', '2', '-1', '1', '-1'), 2):154.627634462,
(('4', '0', '1', '1', '1', '1', '1', '0'), 0):60.7461569744,
(('1', '0', '-1', '1', '-1', '-1', '0', '1'), 0):270.870339257,
(('2', '-1', '0', '4', '0', '-1', '1', '-1'), 1):187.748814493,
(('2', '2', '2', '4', '1', '2', '0', '0'), 1):10,
(('0', '4', '0', '1', '0', '0', '0', '1'), 1):222.983508236,
(('1', '-1', '1', '4', '0', '-1', '0', '-1'), 1):100.938101376,
(('1', '1', '0', '4', '0', '0', '4', '1'), 1):50,
(('2', '2', '1', '2', '2', '4', '2', '4'), 1):280,
(('0', '2', '1', '4', '0', '1', '4', '1'), 3):22.474806262,
(('4', '-1', '-1', '2', '-1', '-1', '0', '-1'), 2):204.729993396,
(('1', '1', '1', '0', '1', '1', '1', '4'), 3):49.1451543072,
(('1', '-1', '0', '0', '4', '-1', '0', '-1'), 0):71.2919120498,
(('1', '4', '1', '4', '1', '1', '1', '4'), 2):-10,
(('2', '4', '0', '2', '1', '0', '1', '1'), 1):149.113855008,
(('4', '1', '1', '4', '0', '1', '4', '0'), 3):10,
(('1', '-1', '-1', '4', '-1', '-1', '4', '-1'), 2):178.710242493,
(('0', '1', '4', '1', '4', '0', '1', '1'), 3):-10,
(('0', '0', '1', '1', '0', '4', '0', '0'), 1):86.0933721382,
(('4', '1', '1', '0', '0', '1', '4', '1'), 2):37.843221286,
(('4', '2', '2', '2', '0', '1', '0', '4'), 3):-1000,
(('1', '2', '4', '2', '0', '4', '1', '2'), 0):160.105731358,
(('0', '2', '2', '2', '1', '4', '0', '0'), 0):10,
(('4', '2', '0', '-1', '4', '1', '-1', '-1'), 2):200.085145853,
(('1', '-1', '1', '0', '1', '-1', '0', '-1'), 2):286.255266893,
(('0', '2', '0', '2', '0', '4', '1', '2'), 0):163.776684827,
(('-1', '2', '0', '4', '-1', '1', '-1', '0'), 0):133.258917946,
(('0', '1', '0', '0', '1', '1', '0', '0'), 3):143.517423815,
(('1', '2', '0', '2', '0', '1', '2', '1'), 2):223.431235414,
(('1', '-1', '0', '2', '1', '-1', '4', '-1'), 2):243.623414453,
(('4', '-1', '0', '0', '4', '-1', '4', '-1'), 1):7.8,
(('4', '2', '0', '2', '0', '1', '1', '1'), 0):256.384138549,
(('1', '1', '1', '1', '1', '0', '0', '0'), 3):212.922902474,
(('2', '2', '2', '2', '0', '4', '2', '2'), 3):111.831008458,
(('1', '0', '1', '-1', '0', '0', '-1', '-1'), 1):263.704567524,
(('4', '-1', '1', '0', '1', '-1', '1', '-1'), 2):10,
(('1', '2', '1', '2', '4', '1', '1', '1'), 3):11.8,
(('0', '2', '4', '2', '0', '4', '1', '0'), 2):137.033707998,
(('1', '2', '1', '2', '1', '1', '0', '1'), 0):243.957926734,
(('0', '1', '4', '1', '0', '4', '1', '1'), 2):68.3375703763,
(('1', '2', '1', '2', '2', '1', '4', '2'), 0):10,
(('2', '2', '4', '2', '4', '4', '2', '1'), 1):233.662496617,
(('1', '2', '-1', '2', '-1', '-1', '0', '4'), 2):204.625597906,
(('1', '4', '4', '0', '0', '4', '0', '4'), 1):55.0680797629,
(('0', '1', '0', '0', '0', '4', '0', '0'), 0):206.334347705,
(('2', '2', '1', '2', '0', '0', '1', '2'), 1):208.923596374,
(('-1', '4', '0', '1', '-1', '0', '-1', '0'), 0):167.231915104,
(('2', '-1', '1', '-1', '0', '-1', '-1', '-1'), 2):329.451874586,
(('1', '2', '-1', '2', '-1', '-1', '4', '2'), 2):193.840583843,
(('1', '1', '-1', '4', '-1', '-1', '1', '1'), 3):212.64425037,
(('1', '1', '0', '0', '0', '1', '1', '1'), 2):80.9662108056,
(('0', '2', '0', '-1', '0', '0', '-1', '-1'), 0):323.177764955,
(('0', '2', '-1', '2', '-1', '-1', '0', '1'), 1):270.798147616,
(('1', '4', '0', '1', '0', '4', '1', '1'), 3):71.7306427173,
(('1', '2', '1', '4', '1', '0', '0', '0'), 1):10,
(('0', '4', '0', '4', '0', '0', '0', '4'), 2):7.8,
(('2', '2', '2', '4', '0', '1', '0', '0'), 1):121.444142245,
(('1', '1', '1', '1', '1', '1', '4', '1'), 1):121.740435418,
(('1', '2', '4', '-1', '1', '2', '-1', '-1'), 0):211.383907111,
(('0', '1', '1', '4', '1', '1', '0', '1'), 2):179.830194074,
(('2', '2', '1', '2', '1', '1', '0', '4'), 2):25.0734014788,
(('0', '2', '0', '2', '0', '1', '0', '0'), 1):185.318126561,
(('2', '2', '2', '2', '0', '0', '0', '2'), 0):-25.0090228085,
(('1', '0', '4', '1', '0', '0', '0', '0'), 1):88.2074811251,
(('1', '4', '1', '-1', '1', '4', '-1', '-1'), 0):183.714837549,
(('1', '4', '1', '4', '0', '0', '0', '4'), 1):45.3834636237,
(('4', '2', '2', '2', '2', '2', '4', '2'), 1):1276.0,
(('0', '1', '1', '0', '0', '0', '0', '1'), 3):218.834107808,
(('0', '-1', '4', '1', '0', '-1', '0', '-1'), 2):209.371451489,
(('1', '2', '1', '2', '1', '2', '4', '4'), 0):10,
(('4', '4', '-1', '2', '-1', '-1', '0', '0'), 1):10,
(('0', '2', '0', '-1', '2', '0', '-1', '-1'), 2):309.862566305,
(('1', '2', '1', '2', '1', '0', '1', '1'), 0):224.574074479,
(('2', '2', '0', '2', '0', '4', '2', '0'), 2):103.54917102,
(('0', '2', '2', '4', '2', '0', '0', '4'), 3):96.8922090279,
(('4', '1', '-1', '4', '-1', '-1', '1', '0'), 3):50,
(('0', '2', '0', '2', '4', '1', '0', '2'), 0):200.43733741,
(('1', '2', '4', '2', '1', '1', '1', '0'), 3):34.9879215982,
(('4', '0', '1', '1', '4', '0', '1', '0'), 2):47.323780219,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '4'), 1):258.93872985,
(('4', '1', '0', '-1', '4', '0', '-1', '-1'), 1):133.579101571,
(('4', '2', '0', '2', '4', '1', '1', '1'), 0):10.0,
(('0', '2', '0', '2', '0', '1', '0', '2'), 0):277.732304258,
(('1', '0', '1', '0', '0', '1', '1', '0'), 1):236.122748279,
(('4', '1', '1', '1', '4', '0', '4', '0'), 0):53.772829839,
(('1', '1', '0', '-1', '0', '4', '-1', '-1'), 3):124.541188815,
(('1', '2', '4', '-1', '0', '0', '-1', '-1'), 0):187.457474328,
(('1', '4', '1', '1', '1', '0', '0', '4'), 3):56.0340083227,
(('0', '4', '2', '4', '1', '2', '0', '4'), 3):10,
(('0', '0', '-1', '0', '-1', '-1', '1', '0'), 1):254.112068602,
(('4', '-1', '0', '2', '1', '-1', '2', '-1'), 0):136.0,
(('4', '2', '1', '2', '0', '1', '2', '0'), 1):107.13531526,
(('1', '1', '4', '0', '4', '1', '0', '0'), 1):-10,
(('1', '2', '2', '2', '1', '2', '4', '4'), 0):54.9626786856,
(('1', '1', '1', '0', '0', '0', '0', '4'), 1):0,
(('0', '2', '4', '2', '0', '1', '1', '0'), 3):10,
(('0', '4', '0', '2', '0', '4', '1', '0'), 2):21.8,
(('1', '4', '1', '1', '0', '0', '0', '0'), 3):61.5892706377,
(('0', '1', '0', '1', '1', '1', '0', '0'), 3):0,
(('4', '0', '0', '1', '4', '0', '4', '1'), 2):49.1224548712,
(('2', '2', '4', '2', '0', '0', '1', '4'), 1):20,
(('2', '4', '1', '-1', '2', '4', '-1', '-1'), 2):73.9824618475,
(('1', '2', '1', '4', '0', '0', '0', '4'), 1):0,
(('0', '4', '1', '0', '1', '4', '0', '0'), 2):71.6394187929,
(('0', '2', '1', '2', '1', '0', '1', '1'), 3):162.544469468,
(('4', '2', '2', '2', '0', '0', '0', '0'), 2):36.0770907453,
(('0', '1', '1', '1', '4', '1', '0', '0'), 2):134.930947061,
(('1', '1', '0', '1', '0', '1', '0', '4'), 0):0,
(('4', '-1', '4', '2', '4', '-1', '0', '-1'), 0):115.385504956,
(('1', '0', '1', '0', '1', '0', '1', '4'), 3):93.0743213293,
(('4', '2', '4', '2', '4', '4', '0', '2'), 2):179.443668875,
(('1', '2', '0', '2', '4', '0', '0', '0'), 3):87.7495364268,
(('4', '2', '0', '2', '1', '0', '1', '1'), 0):-184.718343193,
(('2', '-1', '4', '2', '0', '-1', '2', '-1'), 2):66.1668354417,
(('1', '1', '1', '0', '1', '1', '1', '0'), 1):226.724233029,
(('0', '4', '1', '1', '0', '0', '0', '1'), 0):-10,
(('0', '4', '4', '1', '0', '4', '0', '1'), 1):-151.156392953,
(('-1', '1', '1', '4', '-1', '1', '-1', '0'), 2):179.943642604,
(('0', '2', '2', '-1', '1', '2', '-1', '-1'), 0):342.369378921,
(('1', '1', '4', '1', '4', '4', '0', '1'), 1):-91.7046580616,
(('0', '-1', '0', '0', '1', '-1', '0', '-1'), 1):302.154764427,
(('1', '4', '-1', '2', '-1', '-1', '1', '0'), 1):259.407938888,
(('1', '2', '0', '2', '4', '2', '1', '2'), 2):214.675202,
(('2', '4', '2', '2', '0', '4', '2', '1'), 3):10,
(('2', '2', '2', '-1', '2', '0', '-1', '-1'), 0):319.869460737,
(('0', '0', '0', '4', '1', '0', '0', '0'), 0):40.1489727027,
(('0', '4', '1', '1', '1', '0', '0', '0'), 3):83.1467676881,
(('0', '0', '1', '-1', '0', '0', '-1', '-1'), 3):236.267350616,
(('0', '2', '1', '2', '0', '1', '2', '1'), 0):223.220302736,
(('0', '0', '1', '1', '0', '0', '0', '4'), 3):89.2016999941,
(('4', '2', '2', '4', '4', '2', '4', '4'), 3):58.4895254257,
(('0', '1', '0', '0', '0', '0', '0', '0'), 0):222.864115868,
(('-1', '1', '4', '-1', '-1', '0', '-1', '-1'), 1):229.400192362,
(('2', '2', '0', '4', '1', '0', '0', '0'), 1):205.053273737,
(('0', '2', '0', '2', '0', '0', '4', '0'), 2):213.106454705,
(('-1', '0', '0', '-1', '-1', '0', '-1', '-1'), 2):300.846536935,
(('2', '2', '1', '2', '0', '0', '2', '2'), 2):651.684494169,
(('0', '2', '0', '2', '1', '2', '1', '2'), 0):171.470331507,
(('4', '-1', '2', '4', '0', '-1', '4', '-1'), 3):80,
(('0', '2', '2', '2', '1', '2', '1', '4'), 3):73.5143399411,
(('1', '2', '1', '2', '0', '2', '1', '1'), 0):150,
(('0', '-1', '2', '2', '1', '-1', '1', '-1'), 2):10,
(('1', '2', '1', '4', '0', '0', '1', '0'), 1):0,
(('4', '1', '0', '0', '1', '0', '0', '1'), 0):10,
(('1', '1', '-1', '1', '-1', '-1', '1', '4'), 0):186.075143009,
(('1', '0', '0', '1', '0', '1', '0', '0'), 3):34.5923301614,
(('1', '2', '-1', '2', '-1', '-1', '2', '2'), 0):428.116029709,
(('0', '2', '2', '2', '2', '2', '1', '0'), 2):10,
(('4', '2', '1', '2', '4', '2', '4', '0'), 0):95.7297047717,
(('1', '2', '1', '2', '1', '0', '0', '4'), 3):122.69151603,
(('-1', '0', '1', '4', '-1', '1', '-1', '4'), 0):10,
(('1', '4', '1', '1', '0', '0', '1', '4'), 1):12.8280002304,
(('0', '0', '0', '0', '1', '1', '0', '0'), 0):10,
(('2', '2', '0', '2', '2', '1', '2', '0'), 1):369.36394618,
(('1', '1', '1', '1', '1', '0', '0', '4'), 0):0,
(('4', '0', '0', '1', '4', '0', '0', '1'), 0):10,
(('1', '0', '0', '0', '0', '4', '1', '0'), 1):115.965387889,
(('4', '2', '4', '2', '4', '4', '2', '2'), 2):-626.665584989,
(('0', '2', '4', '-1', '2', '4', '-1', '-1'), 0):10.0,
(('4', '1', '4', '0', '4', '1', '0', '0'), 0):0,
(('1', '2', '1', '2', '0', '1', '1', '2'), 2):293.455885121,
(('1', '2', '1', '2', '1', '4', '4', '2'), 0):10,
(('1', '0', '0', '0', '1', '0', '1', '0'), 2):230.576439127,
(('2', '4', '0', '2', '0', '0', '1', '2'), 1):10,
(('2', '2', '-1', '2', '-1', '-1', '0', '0'), 0):251.043537314,
(('0', '-1', '2', '2', '4', '-1', '1', '-1'), 3):250.031562651,
(('1', '2', '0', '2', '1', '4', '2', '0'), 2):212.507818291,
(('2', '4', '-1', '2', '-1', '-1', '1', '1'), 1):285.030323413,
(('1', '2', '2', '2', '4', '2', '0', '0'), 0):84.9453323997,
(('1', '2', '0', '2', '0', '2', '1', '0'), 0):447.038732739,
(('2', '2', '1', '2', '0', '2', '2', '0'), 2):453.138826447,
(('1', '1', '1', '4', '1', '1', '1', '4'), 2):-58.0,
(('2', '2', '2', '2', '0', '2', '1', '2'), 2):10,
(('2', '2', '0', '2', '2', '2', '2', '0'), 1):552.750336559,
(('0', '4', '0', '0', '0', '1', '0', '0'), 3):131.648579946,
(('0', '2', '1', '-1', '0', '0', '-1', '-1'), 0):263.606798815,
(('4', '2', '-1', '2', '-1', '-1', '2', '0'), 2):294.458949503,
(('1', '2', '4', '-1', '4', '0', '-1', '-1'), 0):202.831123018,
(('1', '0', '1', '-1', '1', '4', '-1', '-1'), 1):265.897565994,
(('1', '4', '1', '2', '1', '0', '1', '1'), 3):10,
(('-1', '0', '0', '1', '-1', '0', '-1', '0'), 1):246.861460521,
(('1', '1', '0', '4', '1', '0', '0', '0'), 2):-10,
(('1', '0', '1', '-1', '1', '0', '-1', '-1'), 0):253.150796603,
(('1', '0', '1', '1', '0', '0', '0', '0'), 2):192.960849034,
(('2', '2', '1', '2', '2', '0', '0', '4'), 1):107.763057294,
(('0', '4', '2', '-1', '2', '4', '-1', '-1'), 3):93.3946366214,
(('0', '0', '1', '4', '1', '0', '4', '4'), 1):10,
(('1', '-1', '0', '4', '1', '-1', '4', '-1'), 1):10,
(('1', '0', '1', '0', '1', '0', '0', '0'), 2):262.684179756,
(('0', '0', '0', '4', '1', '0', '1', '0'), 2):10,
(('1', '1', '1', '0', '0', '0', '0', '1'), 0):151.891598397,
(('4', '1', '0', '1', '4', '0', '0', '0'), 0):84.0953370182,
(('1', '2', '1', '2', '1', '0', '1', '4'), 3):88.3298832374,
(('2', '4', '0', '2', '0', '1', '0', '4'), 1):61.64,
(('-1', '1', '1', '4', '-1', '0', '-1', '1'), 2):-10,
(('4', '0', '1', '1', '1', '1', '1', '1'), 0):-10,
(('2', '2', '4', '2', '2', '4', '0', '4'), 1):-1000,
(('0', '-1', '0', '2', '4', '-1', '2', '-1'), 2):279.971613161,
(('1', '0', '0', '1', '1', '0', '1', '0'), 0):234.392740393,
(('0', '-1', '1', '-1', '0', '-1', '-1', '-1'), 1):182.881488789,
(('1', '-1', '0', '2', '0', '-1', '4', '-1'), 2):213.237220401,
(('1', '1', '0', '0', '0', '0', '1', '0'), 3):241.552672337,
(('-1', '4', '0', '2', '-1', '0', '-1', '1'), 2):262.889317236,
(('0', '1', '0', '-1', '4', '0', '-1', '-1'), 2):250.246247322,
(('-1', '0', '0', '4', '-1', '0', '-1', '4'), 3):44.8874707631,
(('4', '0', '0', '0', '0', '0', '1', '0'), 1):132.564616803,
(('1', '2', '0', '2', '1', '2', '4', '0'), 2):360,
(('-1', '0', '1', '1', '-1', '0', '-1', '0'), 0):191.405555523,
(('1', '-1', '0', '1', '0', '-1', '0', '-1'), 3):234.040792224,
(('0', '4', '0', '1', '0', '4', '0', '1'), 1):41.4575130027,
(('0', '4', '1', '0', '0', '1', '0', '0'), 0):208.936369431,
(('0', '1', '0', '0', '0', '1', '0', '0'), 3):223.209163434,
(('1', '2', '1', '2', '1', '1', '1', '2'), 0):403.557974863,
(('2', '2', '1', '2', '0', '2', '0', '2'), 2):39.0853266141,
(('-1', '1', '0', '0', '-1', '1', '-1', '1'), 0):257.56975933,
(('2', '2', '-1', '2', '-1', '-1', '2', '2'), 1):509.699000376,
(('2', '2', '0', '2', '2', '4', '1', '1'), 1):114.422497525,
(('0', '2', '0', '2', '0', '0', '1', '0'), 2):266.876620689,
(('1', '-1', '-1', '0', '-1', '-1', '0', '-1'), 1):280.150979096,
(('-1', '1', '0', '0', '-1', '1', '-1', '4'), 1):85.6499551492,
(('0', '2', '2', '4', '1', '0', '4', '0'), 3):10,
(('0', '4', '0', '2', '0', '4', '0', '1'), 0):45.9199421426,
(('1', '4', '0', '0', '0', '4', '0', '4'), 2):32.0803043308,
(('0', '2', '2', '-1', '2', '0', '-1', '-1'), 2):370.862500837,
(('2', '2', '1', '2', '0', '0', '0', '2'), 0):290.800157269,
(('2', '-1', '4', '2', '1', '-1', '1', '-1'), 3):10,
(('1', '0', '0', '4', '0', '0', '0', '4'), 0):0,
(('0', '2', '0', '2', '1', '0', '1', '4'), 2):55.5601675177,
(('1', '-1', '0', '1', '4', '-1', '0', '-1'), 2):23.1104451868,
(('2', '2', '1', '-1', '2', '2', '-1', '-1'), 2):601.026495888,
(('1', '2', '1', '2', '1', '1', '1', '1'), 2):241.19007657,
(('1', '4', '2', '2', '0', '0', '0', '4'), 0):10,
(('1', '1', '4', '1', '1', '1', '0', '1'), 0):0,
(('0', '2', '0', '2', '1', '2', '0', '0'), 0):333.529960988,
(('4', '2', '-1', '2', '-1', '-1', '4', '0'), 3):168.384421412,
(('0', '0', '1', '0', '0', '0', '0', '4'), 0):54.7037986931,
(('1', '2', '0', '2', '1', '0', '0', '2'), 0):424.97686829,
(('4', '2', '0', '-1', '0', '2', '-1', '-1'), 0):313.618053568,
(('4', '-1', '0', '2', '1', '-1', '4', '-1'), 0):151.664248114,
(('4', '1', '0', '1', '4', '0', '0', '0'), 1):0,
(('1', '0', '1', '-1', '4', '1', '-1', '-1'), 2):101.434611459,
(('1', '4', '2', '2', '1', '0', '0', '4'), 3):83.5171522193,
(('1', '2', '2', '2', '4', '4', '1', '0'), 3):86.8781396646,
(('4', '2', '1', '2', '2', '1', '4', '4'), 1):10,
(('0', '4', '0', '2', '0', '1', '0', '0'), 2):56.6949276997,
(('1', '2', '4', '2', '1', '0', '2', '0'), 2):310.089127984,
(('1', '2', '2', '2', '2', '0', '4', '0'), 3):244.054023839,
(('1', '2', '2', '2', '1', '0', '0', '4'), 3):165.553634448,
(('0', '0', '0', '1', '1', '0', '0', '1'), 0):0,
(('-1', '2', '0', '-1', '-1', '1', '-1', '-1'), 2):321.982425378,
(('-1', '2', '0', '2', '-1', '1', '-1', '4'), 2):199.42353247,
(('4', '0', '1', '1', '0', '0', '1', '1'), 1):-10,
(('2', '2', '2', '2', '0', '0', '2', '0'), 1):150.639728676,
(('0', '2', '4', '-1', '1', '0', '-1', '-1'), 2):385.90187631,
(('1', '2', '0', '2', '0', '1', '0', '0'), 2):208.835709854,
(('2', '2', '2', '2', '2', '1', '0', '4'), 3):10,
(('4', '2', '0', '2', '1', '0', '4', '2'), 2):85.6226285776,
(('2', '-1', '2', '2', '0', '-1', '1', '-1'), 2):108.780335356,
(('0', '2', '2', '2', '0', '2', '1', '0'), 0):320.414519867,
(('1', '1', '0', '0', '0', '1', '0', '1'), 2):164.60187535,
(('0', '-1', '-1', '4', '-1', '-1', '1', '-1'), 1):91.5760557239,
(('1', '4', '1', '1', '1', '1', '1', '1'), 2):155.365907827,
(('1', '-1', '1', '1', '0', '-1', '4', '-1'), 2):58.4630628109,
(('0', '2', '2', '2', '0', '0', '2', '2'), 0):10,
(('2', '4', '2', '2', '2', '4', '2', '0'), 3):280,
(('0', '1', '1', '0', '0', '1', '1', '0'), 3):108.585247752,
(('1', '2', '1', '2', '1', '1', '0', '0'), 2):270.2682067,
(('0', '0', '1', '4', '1', '1', '0', '0'), 0):92.6413456461,
(('1', '4', '1', '0', '1', '1', '0', '0'), 1):217.602402084,
(('0', '0', '-1', '0', '-1', '-1', '0', '0'), 3):258.221280154,
(('0', '2', '2', '4', '1', '1', '0', '4'), 3):123.476192997,
(('1', '0', '0', '0', '1', '0', '0', '1'), 3):10,
(('4', '0', '0', '1', '0', '0', '1', '1'), 1):177.689182131,
(('0', '0', '0', '1', '0', '1', '0', '1'), 2):101.980072379,
(('4', '2', '0', '2', '0', '0', '0', '2'), 1):10.0,
(('0', '1', '1', '-1', '0', '4', '-1', '-1'), 1):193.802976705,
(('4', '-1', '2', '-1', '1', '-1', '-1', '-1'), 0):217.037488578,
(('1', '1', '1', '0', '1', '0', '1', '1'), 1):176.605246199,
(('2', '2', '4', '2', '0', '4', '2', '2'), 1):195.836453031,
(('4', '1', '4', '0', '1', '4', '1', '0'), 3):-1000,
(('4', '1', '-1', '1', '-1', '-1', '1', '1'), 2):247.131099104,
(('2', '2', '4', '2', '1', '4', '1', '1'), 1):73.1969546841,
(('-1', '0', '0', '0', '-1', '1', '-1', '0'), 3):251.103011557,
(('1', '4', '1', '-1', '0', '1', '-1', '-1'), 0):-10,
(('0', '1', '1', '1', '4', '0', '0', '0'), 3):42.1461343351,
(('1', '4', '1', '1', '1', '1', '0', '4'), 1):91.7560162531,
(('1', '0', '0', '1', '1', '1', '1', '1'), 3):82.0955095788,
(('1', '0', '0', '4', '0', '0', '4', '4'), 2):0,
(('0', '0', '1', '4', '0', '1', '0', '1'), 3):10,
(('4', '2', '2', '-1', '4', '2', '-1', '-1'), 0):178.240065394,
(('0', '1', '1', '4', '0', '0', '4', '1'), 3):-10,
(('2', '2', '0', '2', '1', '0', '0', '1'), 2):54.0566291681,
(('1', '2', '1', '-1', '1', '0', '-1', '-1'), 3):291.463614503,
(('-1', '2', '1', '2', '-1', '0', '-1', '1'), 3):237.245121687,
(('-1', '4', '1', '-1', '-1', '4', '-1', '-1'), 3):86.3098118934,
(('1', '1', '-1', '4', '-1', '-1', '4', '1'), 1):39.2142282491,
(('1', '1', '0', '4', '0', '0', '4', '4'), 0):43.105632755,
(('2', '4', '1', '2', '0', '0', '0', '1'), 1):49.5926344197,
(('2', '2', '0', '2', '0', '2', '0', '1'), 1):10,
(('1', '4', '-1', '2', '-1', '-1', '0', '4'), 3):162.016926331,
(('4', '0', '0', '0', '0', '0', '0', '0'), 3):170.487251,
(('4', '2', '4', '2', '4', '4', '2', '4'), 2):10,
(('2', '2', '2', '2', '0', '0', '0', '0'), 0):125.910832213,
(('1', '1', '0', '4', '1', '0', '4', '4'), 1):0,
(('-1', '1', '1', '-1', '-1', '1', '-1', '-1'), 2):277.378443219,
(('-1', '4', '0', '-1', '-1', '0', '-1', '-1'), 0):209.911756634,
(('0', '2', '2', '4', '1', '2', '0', '4'), 3):-80.9828228666,
(('4', '1', '0', '1', '4', '1', '4', '1'), 1):-10,
(('4', '2', '1', '2', '1', '1', '0', '2'), 0):327.294231856,
(('4', '1', '1', '1', '1', '1', '0', '0'), 1):56.7419959572,
(('0', '0', '0', '4', '0', '0', '4', '4'), 3):96.1079677333,
(('1', '0', '0', '1', '0', '0', '4', '4'), 0):10,
(('2', '2', '4', '-1', '4', '4', '-1', '-1'), 0):59.3824155292,
(('2', '2', '2', '2', '2', '2', '1', '2'), 1):489.59908946,
(('0', '2', '2', '2', '2', '2', '4', '1'), 0):-310,
(('0', '2', '0', '2', '4', '1', '1', '0'), 2):10,
(('2', '-1', '0', '2', '4', '-1', '1', '-1'), 1):272.036041687,
(('4', '1', '1', '-1', '4', '0', '-1', '-1'), 3):62.8512105329,
(('1', '2', '1', '-1', '0', '0', '-1', '-1'), 2):290.819340833,
(('0', '2', '2', '2', '0', '0', '1', '0'), 3):185.077634533,
(('0', '0', '0', '0', '0', '0', '0', '1'), 0):183.453844637,
(('1', '1', '0', '1', '0', '1', '4', '0'), 0):10,
(('1', '4', '0', '1', '1', '0', '1', '0'), 1):221.446315021,
(('1', '2', '0', '2', '1', '1', '1', '0'), 0):316.50020344,
(('4', '2', '0', '2', '0', '0', '0', '1'), 0):252.79563256,
(('2', '2', '2', '4', '2', '0', '1', '4'), 0):10,
(('0', '-1', '1', '1', '1', '-1', '0', '-1'), 2):239.660805427,
(('0', '2', '1', '2', '0', '1', '1', '2'), 2):286.273268618,
(('1', '4', '0', '2', '0', '0', '0', '1'), 1):10,
(('0', '2', '4', '2', '4', '1', '0', '1'), 0):195.204591409,
(('1', '2', '2', '2', '0', '0', '0', '4'), 0):10,
(('0', '0', '0', '0', '0', '1', '1', '0'), 1):10,
(('2', '2', '2', '2', '2', '2', '4', '0'), 3):157.368259997,
(('0', '4', '1', '4', '1', '4', '0', '4'), 1):50,
(('2', '2', '1', '2', '2', '1', '2', '0'), 1):356.27796409,
(('-1', '4', '1', '0', '-1', '0', '-1', '1'), 3):25.1341702798,
(('1', '0', '4', '1', '0', '4', '1', '1'), 0):0,
(('2', '2', '4', '2', '2', '4', '2', '4'), 1):10,
(('2', '2', '0', '2', '2', '0', '2', '0'), 2):358.544749052,
(('0', '2', '0', '2', '1', '1', '2', '2'), 0):78.3557647196,
(('2', '-1', '2', '4', '0', '-1', '0', '-1'), 3):40,
(('1', '2', '2', '2', '2', '0', '2', '0'), 3):386.070049013,
(('1', '0', '1', '1', '1', '4', '1', '0'), 1):200.727154149,
(('-1', '2', '2', '2', '-1', '2', '-1', '4'), 0):93.385640499,
(('2', '2', '2', '2', '0', '0', '2', '1'), 0):365.649815484,
(('-1', '2', '2', '4', '-1', '1', '-1', '1'), 0):10,
(('1', '1', '0', '1', '0', '1', '4', '1'), 1):66.285097044,
(('2', '2', '2', '2', '1', '1', '0', '0'), 3):289.705394948,
(('2', '2', '0', '2', '4', '0', '0', '1'), 1):201.163343095,
(('4', '1', '1', '1', '0', '1', '1', '1'), 3):188.680590147,
(('2', '-1', '0', '2', '1', '-1', '0', '-1'), 0):232.682268496,
(('2', '4', '2', '2', '0', '4', '2', '4'), 3):38.1920868816,
(('1', '0', '1', '0', '1', '1', '0', '1'), 0):32.9059158043,
(('-1', '1', '0', '0', '-1', '1', '-1', '0'), 1):224.911339727,
(('1', '2', '1', '2', '4', '1', '0', '1'), 3):10,
(('1', '0', '1', '-1', '1', '1', '-1', '-1'), 0):262.024951596,
(('1', '2', '-1', '2', '-1', '-1', '2', '0'), 0):449.545510878,
(('2', '-1', '1', '2', '4', '-1', '1', '-1'), 2):210,
(('1', '0', '1', '4', '1', '0', '0', '0'), 1):215.441371485,
(('1', '1', '1', '0', '1', '0', '4', '0'), 1):119.291996506,
(('0', '2', '0', '-1', '2', '0', '-1', '-1'), 0):296.13833929,
(('1', '2', '1', '-1', '1', '2', '-1', '-1'), 0):332.743590154,
(('4', '1', '4', '1', '4', '4', '0', '0'), 2):9.604,
(('4', '2', '0', '2', '2', '2', '4', '0'), 0):391.765937624,
(('4', '2', '0', '2', '0', '4', '1', '0'), 2):10,
(('1', '0', '1', '1', '0', '0', '1', '4'), 0):-0.357080784737,
(('-1', '1', '4', '-1', '-1', '4', '-1', '-1'), 0):163.039807779,
(('2', '4', '0', '4', '2', '0', '2', '4'), 1):86.080768177,
(('0', '0', '0', '0', '4', '0', '0', '0'), 2):-21.9343770473,
(('4', '2', '0', '2', '0', '0', '1', '0'), 2):239.64053793,
(('4', '2', '1', '-1', '1', '0', '-1', '-1'), 3):248.074380986,
(('-1', '1', '1', '1', '-1', '1', '-1', '0'), 1):232.781790642,
(('1', '-1', '1', '1', '1', '-1', '1', '-1'), 1):205.426697838,
(('0', '2', '-1', '2', '-1', '-1', '1', '1'), 2):286.702381352,
(('2', '2', '4', '2', '0', '1', '2', '0'), 2):110,
(('0', '4', '0', '2', '0', '0', '1', '1'), 0):29.1446729611,
(('0', '2', '4', '2', '0', '4', '0', '2'), 3):19.4477327212,
(('1', '0', '4', '-1', '1', '4', '-1', '-1'), 1):241.67338901,
(('1', '2', '4', '2', '1', '4', '1', '1'), 1):49.2690155907,
(('-1', '4', '0', '2', '-1', '4', '-1', '4'), 1):68.1067577922,
(('2', '2', '2', '2', '2', '1', '1', '0'), 0):10,
(('2', '2', '2', '2', '0', '1', '2', '2'), 3):456.610649617,
(('2', '2', '1', '-1', '2', '0', '-1', '-1'), 1):454.592490861,
(('0', '1', '1', '1', '1', '0', '0', '0'), 2):218.329846397,
(('0', '0', '-1', '1', '-1', '-1', '1', '1'), 1):270.509456274,
(('1', '0', '4', '0', '1', '0', '1', '0'), 3):173.882485431,
(('0', '2', '1', '2', '4', '2', '0', '2'), 2):322.381893695,
(('0', '2', '2', '2', '1', '0', '4', '0'), 0):29.0856804521,
(('1', '1', '1', '4', '1', '1', '0', '1'), 2):185.460097905,
(('0', '0', '1', '1', '1', '1', '4', '1'), 0):10,
(('2', '2', '0', '2', '2', '0', '2', '1'), 1):375.774096623,
(('1', '2', '4', '2', '0', '4', '2', '2'), 0):43.6512964084,
(('0', '2', '1', '2', '0', '4', '1', '2'), 2):10,
(('1', '2', '0', '2', '0', '0', '2', '4'), 2):31.6447932696,
(('1', '1', '-1', '0', '-1', '-1', '0', '1'), 3):256.673386018,
(('1', '2', '2', '2', '2', '2', '4', '2'), 0):381.163943624,
(('0', '1', '0', '0', '0', '0', '4', '1'), 3):38.8331902043,
(('1', '1', '4', '1', '1', '4', '1', '1'), 1):112.229563452,
(('2', '-1', '0', '2', '0', '-1', '1', '-1'), 0):162.297228165,
(('1', '1', '1', '1', '1', '0', '1', '4'), 0):130.049035189,
(('-1', '0', '1', '4', '-1', '0', '-1', '1'), 1):10,
(('4', '1', '-1', '0', '-1', '-1', '1', '0'), 0):180.566908342,
(('4', '-1', '0', '2', '0', '-1', '2', '-1'), 0):71.4871164458,
(('0', '2', '1', '2', '1', '2', '1', '2'), 0):317.162488988,
(('-1', '4', '0', '-1', '-1', '4', '-1', '-1'), 1):134.985101277,
(('2', '2', '4', '2', '2', '4', '0', '0'), 1):-171.254614819,
(('0', '2', '0', '2', '4', '1', '0', '1'), 0):169.957030294,
(('4', '2', '2', '-1', '1', '0', '-1', '-1'), 0):186.384996528,
(('2', '2', '0', '2', '0', '4', '1', '0'), 2):105.039611872,
(('0', '2', '0', '2', '0', '4', '1', '1'), 0):209.789547216,
(('-1', '1', '0', '1', '-1', '1', '-1', '1'), 0):242.96453578,
(('0', '1', '1', '0', '1', '4', '0', '0'), 0):80.8973396634,
(('0', '2', '0', '2', '4', '0', '2', '0'), 2):216.132414665,
(('-1', '2', '4', '2', '-1', '2', '-1', '1'), 3):42.5296592193,
(('4', '-1', '0', '2', '0', '-1', '0', '-1'), 1):233.507404334,
(('1', '2', '2', '4', '0', '0', '0', '4'), 3):10,
(('2', '2', '2', '2', '1', '0', '2', '1'), 3):118.312544421,
(('4', '2', '4', '2', '4', '4', '2', '4'), 1):10,
(('2', '2', '-1', '2', '-1', '-1', '4', '0'), 3):189.112917302,
(('0', '0', '-1', '4', '-1', '-1', '1', '1'), 1):-10,
(('2', '2', '0', '2', '2', '0', '2', '2'), 1):344.939222747,
(('0', '2', '2', '2', '2', '0', '0', '2'), 3):355.486584474,
(('4', '1', '1', '0', '0', '1', '4', '1'), 3):75.6406272398,
(('0', '0', '1', '0', '4', '1', '0', '0'), 2):59.9995446955,
(('0', '1', '0', '1', '0', '0', '0', '4'), 2):126.380096466,
(('0', '-1', '1', '0', '0', '-1', '4', '-1'), 2):3.58941717167,
(('1', '0', '1', '0', '0', '1', '0', '0'), 2):242.363302832,
(('0', '0', '1', '0', '0', '0', '4', '0'), 1):59.3004897891,
(('0', '0', '4', '1', '0', '0', '1', '0'), 0):119.076192922,
(('1', '2', '1', '2', '1', '0', '4', '1'), 0):28.4380468998,
(('0', '2', '4', '2', '0', '1', '0', '0'), 3):221.494621841,
(('0', '0', '-1', '1', '-1', '-1', '4', '1'), 0):49.4842817863,
(('1', '-1', '4', '1', '1', '-1', '0', '-1'), 2):152.851147033,
(('4', '2', '0', '2', '4', '0', '2', '1'), 2):10,
(('1', '4', '-1', '1', '-1', '-1', '4', '4'), 1):78.3169215499,
(('1', '1', '0', '1', '0', '1', '1', '1'), 2):209.234818788,
(('2', '2', '1', '2', '1', '2', '0', '0'), 0):425.236548104,
(('2', '2', '4', '2', '4', '4', '2', '0'), 3):10,
(('0', '2', '0', '2', '4', '0', '0', '0'), 2):238.994983784,
(('0', '0', '0', '1', '0', '1', '1', '1'), 1):109.204987888,
(('4', '2', '1', '2', '4', '1', '0', '0'), 2):30,
(('1', '4', '0', '1', '0', '4', '0', '0'), 3):10,
(('2', '2', '2', '2', '2', '2', '0', '0'), 0):186.784223572,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '4'), 1):165.139788057,
(('0', '0', '-1', '1', '-1', '-1', '1', '4'), 0):102.088968973,
(('4', '2', '0', '4', '4', '0', '4', '2'), 0):120.273332412,
(('0', '4', '-1', '1', '-1', '-1', '1', '0'), 0):202.727452104,
(('2', '2', '0', '2', '2', '0', '0', '0'), 0):323.781296488,
(('1', '1', '1', '1', '1', '0', '1', '0'), 0):199.254151407,
(('0', '1', '0', '1', '0', '1', '4', '1'), 3):33.2105384036,
(('2', '2', '2', '2', '0', '1', '0', '0'), 3):236.581077592,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '0'), 0):226.025086357,
(('0', '0', '0', '4', '0', '1', '4', '0'), 1):0,
(('4', '4', '-1', '2', '-1', '-1', '0', '4'), 3):10,
(('1', '2', '2', '2', '1', '2', '1', '2'), 3):376.705217723,
(('0', '1', '0', '0', '0', '0', '1', '1'), 3):137.548441409,
(('1', '0', '1', '1', '0', '1', '0', '0'), 2):225.260778418,
(('2', '2', '2', '4', '0', '2', '4', '1'), 1):0,
(('1', '2', '1', '-1', '4', '1', '-1', '-1'), 2):176.284413597,
(('1', '2', '2', '4', '0', '0', '0', '0'), 0):60,
(('-1', '4', '0', '1', '-1', '4', '-1', '1'), 3):46.953403644,
(('1', '1', '0', '1', '1', '1', '1', '1'), 1):193.306915987,
(('1', '0', '1', '0', '0', '0', '0', '0'), 3):240.885794284,
(('1', '2', '4', '2', '4', '0', '2', '2'), 0):181.672155121,
(('1', '4', '1', '0', '0', '0', '1', '0'), 2):23.6374957176,
(('1', '1', '1', '0', '4', '0', '0', '0'), 2):36.6645847386,
(('0', '2', '0', '4', '0', '0', '0', '1'), 0):256.348882855,
(('1', '2', '1', '-1', '0', '1', '-1', '-1'), 2):267.786913535,
(('0', '4', '1', '4', '0', '0', '0', '0'), 0):-10,
(('1', '4', '-1', '0', '-1', '-1', '0', '1'), 0):119.240949433,
(('4', '2', '0', '2', '1', '1', '1', '1'), 0):20,
(('1', '2', '1', '2', '1', '0', '4', '4'), 3):83.4297515377,
(('1', '2', '2', '-1', '0', '2', '-1', '-1'), 2):522.988472861,
(('1', '1', '4', '1', '1', '1', '0', '1'), 1):3.45646524295,
(('2', '2', '2', '2', '1', '2', '2', '2'), 0):309.30377954,
(('1', '0', '1', '1', '1', '0', '4', '0'), 0):136.626102057,
(('2', '-1', '1', '2', '2', '-1', '0', '-1'), 1):394.75427888,
(('0', '2', '1', '2', '1', '0', '1', '4'), 0):10,
(('0', '2', '2', '2', '4', '2', '1', '0'), 3):104.715952873,
(('4', '2', '-1', '2', '-1', '-1', '4', '0'), 2):227.193425071,
(('1', '1', '0', '1', '1', '4', '1', '0'), 2):36.1468868889,
(('1', '2', '1', '4', '1', '2', '4', '0'), 0):10,
(('1', '2', '1', '2', '1', '0', '4', '0'), 2):167.371116347,
(('1', '1', '1', '4', '1', '0', '4', '4'), 3):46.1520568304,
(('0', '1', '1', '-1', '4', '1', '-1', '-1'), 2):232.642090886,
(('1', '4', '0', '-1', '1', '4', '-1', '-1'), 2):53.990213036,
(('0', '4', '0', '1', '0', '4', '1', '1'), 1):50,
(('1', '2', '2', '2', '0', '2', '0', '0'), 0):348.284749037,
(('1', '2', '0', '2', '1', '1', '1', '2'), 2):313.245345081,
(('0', '2', '4', '2', '0', '4', '1', '2'), 0):188.671600357,
(('2', '4', '0', '2', '1', '1', '2', '1'), 1):10,
(('1', '4', '0', '4', '0', '0', '1', '4'), 0):-798.2,
(('1', '1', '1', '1', '0', '0', '0', '0'), 2):194.364978716,
(('2', '4', '0', '2', '2', '4', '0', '4'), 1):70.4346326162,
(('2', '2', '2', '-1', '0', '0', '-1', '-1'), 1):90.0759528031,
(('1', '4', '0', '-1', '0', '1', '-1', '-1'), 2):123.971987015,
(('1', '2', '2', '2', '1', '2', '0', '1'), 2):340,
(('4', '-1', '1', '1', '1', '-1', '0', '-1'), 1):145.2430136,
(('0', '1', '4', '1', '0', '0', '0', '4'), 2):10,
(('1', '1', '1', '1', '0', '1', '0', '1'), 3):187.064760361,
(('4', '0', '1', '-1', '1', '1', '-1', '-1'), 1):120.130078049,
(('2', '2', '2', '2', '1', '4', '0', '0'), 3):10,
(('0', '0', '4', '0', '4', '4', '0', '0'), 2):0,
(('1', '2', '0', '2', '1', '4', '0', '0'), 0):10,
(('1', '1', '4', '1', '0', '4', '1', '0'), 1):10,
(('0', '1', '1', '0', '1', '0', '0', '1'), 2):226.273917358,
(('0', '4', '0', '2', '0', '0', '2', '2'), 2):194.59209507,
(('2', '2', '4', '2', '1', '1', '0', '0'), 2):74.0257309316,
(('4', '1', '0', '1', '0', '1', '1', '1'), 3):183.011701806,
(('0', '4', '4', '2', '1', '4', '0', '0'), 3):0,
(('0', '1', '-1', '1', '-1', '-1', '4', '1'), 3):219.384027606,
(('4', '-1', '1', '1', '1', '-1', '4', '-1'), 0):50.9588768938,
(('2', '4', '2', '2', '2', '2', '0', '0'), 1):10,
(('0', '4', '4', '0', '1', '4', '0', '0'), 1):-10,
(('1', '0', '-1', '1', '-1', '-1', '0', '1'), 3):252.978813515,
(('1', '1', '-1', '4', '-1', '-1', '4', '0'), 2):26.0748109677,
(('0', '1', '0', '1', '0', '1', '0', '0'), 2):223.358460111,
(('1', '-1', '1', '4', '0', '-1', '0', '-1'), 2):-10,
(('0', '0', '0', '-1', '4', '1', '-1', '-1'), 1):10,
(('1', '2', '0', '-1', '1', '1', '-1', '-1'), 3):219.651257504,
(('0', '2', '2', '-1', '0', '4', '-1', '-1'), 3):260.792409405,
(('4', '-1', '-1', '2', '-1', '-1', '0', '-1'), 3):294.454085864,
(('1', '2', '1', '2', '0', '0', '2', '0'), 2):305.370203697,
(('1', '1', '1', '0', '1', '1', '1', '4'), 2):91.6598134719,
(('0', '4', '1', '4', '0', '0', '0', '4'), 3):71.0180042997,
(('1', '0', '4', '-1', '0', '4', '-1', '-1'), 0):48.6657394059,
(('-1', '2', '4', '2', '-1', '4', '-1', '4'), 2):10,
(('0', '0', '1', '1', '0', '4', '0', '0'), 0):31.2509631199,
(('2', '2', '1', '-1', '0', '0', '-1', '-1'), 1):267.357346652,
(('0', '1', '4', '0', '1', '1', '0', '0'), 0):50.2486460107,
(('0', '2', '2', '2', '1', '2', '0', '2'), 3):382.395025432,
(('1', '4', '1', '4', '0', '1', '4', '4'), 3):0,
(('2', '2', '0', '4', '0', '4', '2', '4'), 1):51.2426938142,
(('0', '1', '4', '1', '4', '0', '0', '1'), 3):115.207577275,
(('1', '-1', '0', '2', '1', '-1', '4', '-1'), 3):10,
(('4', '-1', '0', '1', '4', '-1', '4', '-1'), 2):73.1552757461,
(('2', '2', '1', '2', '2', '2', '1', '1'), 0):420,
(('1', '1', '1', '1', '1', '0', '0', '0'), 0):211.740554272,
(('-1', '0', '0', '0', '-1', '4', '-1', '0'), 1):0,
(('1', '0', '1', '-1', '0', '0', '-1', '-1'), 2):267.457431778,
(('1', '2', '2', '2', '0', '2', '2', '2'), 2):644.601039473,
(('1', '0', '1', '4', '0', '0', '1', '1'), 3):10,
(('-1', '4', '1', '2', '-1', '4', '-1', '0'), 1):10,
(('1', '0', '0', '1', '1', '0', '4', '0'), 2):130.037472068,
(('4', '2', '2', '2', '1', '2', '0', '0'), 1):10,
(('2', '2', '0', '4', '0', '0', '2', '1'), 1):55.418789842,
(('2', '-1', '0', '-1', '2', '-1', '-1', '-1'), 2):302.092460282,
(('1', '2', '1', '2', '1', '1', '0', '1'), 1):216.548311991,
(('2', '4', '0', '2', '2', '1', '0', '0'), 1):140.455375268,
(('0', '1', '1', '4', '1', '0', '4', '4'), 0):58.4185592507,
(('1', '1', '4', '1', '4', '0', '0', '0'), 3):0,
(('0', '1', '0', '0', '0', '4', '0', '0'), 1):206.73195689,
(('2', '2', '2', '2', '1', '2', '2', '0'), 2):267.248700493,
(('-1', '4', '0', '1', '-1', '0', '-1', '0'), 3):204.410225313,
(('2', '2', '0', '-1', '2', '0', '-1', '-1'), 0):338.145575078,
(('2', '-1', '1', '-1', '0', '-1', '-1', '-1'), 1):307.409707083,
(('-1', '4', '1', '1', '-1', '4', '-1', '4'), 2):78.7645555703,
(('1', '2', '1', '2', '1', '2', '1', '0'), 2):347.872895912,
(('1', '1', '-1', '4', '-1', '-1', '1', '1'), 0):187.640804174,
(('4', '1', '1', '0', '1', '1', '1', '1'), 0):-10,
(('4', '4', '4', '0', '4', '4', '0', '4'), 0):0,
(('0', '2', '0', '-1', '0', '0', '-1', '-1'), 1):288.679734424,
(('4', '1', '1', '1', '4', '0', '0', '0'), 0):46.7770086864,
(('0', '2', '-1', '2', '-1', '-1', '0', '1'), 0):308.521039314,
(('1', '-1', '0', '1', '0', '-1', '4', '-1'), 0):118.615799363,
(('1', '4', '0', '1', '0', '4', '1', '1'), 2):131.716286118,
(('0', '4', '4', '1', '0', '0', '0', '0'), 1):50,
(('1', '2', '0', '2', '0', '1', '1', '1'), 2):225.896147734,
(('1', '1', '1', '0', '4', '1', '0', '1'), 1):10,
(('0', '1', '1', '4', '1', '1', '0', '1'), 3):161.543458417,
(('2', '2', '2', '2', '0', '1', '0', '1'), 2):287.324661278,
(('2', '2', '2', '2', '1', '1', '1', '1'), 0):60,
(('1', '2', '2', '2', '0', '2', '0', '4'), 3):41.6238503283,
(('1', '0', '1', '0', '1', '1', '0', '0'), 2):243.885622459,
(('1', '-1', '1', '2', '4', '-1', '0', '-1'), 2):77.6558565002,
(('1', '1', '4', '0', '1', '1', '0', '0'), 0):59.7236890986,
(('0', '1', '1', '0', '0', '0', '0', '1'), 0):225.763472517,
(('1', '0', '1', '0', '1', '1', '0', '4'), 1):53.6122854641,
(('1', '2', '1', '2', '4', '0', '1', '2'), 2):55.963008603,
(('1', '0', '0', '1', '4', '1', '1', '0'), 2):0,
(('1', '2', '1', '2', '1', '0', '1', '1'), 1):238.424870179,
(('1', '2', '0', '-1', '4', '0', '-1', '-1'), 3):163.194971711,
(('0', '4', '2', '-1', '2', '2', '-1', '-1'), 3):133.48203594,
(('1', '1', '1', '4', '1', '1', '4', '4'), 2):32.1520031803,
(('1', '0', '4', '-1', '4', '4', '-1', '-1'), 3):10,
(('1', '0', '-1', '4', '-1', '-1', '0', '1'), 3):51.6457778272,
(('1', '2', '4', '2', '1', '1', '1', '0'), 2):84.9493772759,
(('-1', '1', '4', '-1', '-1', '4', '-1', '-1'), 3):115.789909416,
(('1', '1', '0', '-1', '1', '0', '-1', '-1'), 0):239.977625373,
(('4', '1', '0', '-1', '4', '0', '-1', '-1'), 0):231.962861932,
(('4', '1', '0', '1', '4', '0', '4', '1'), 1):13.2269306878,
(('0', '2', '1', '-1', '0', '4', '-1', '-1'), 3):283.098232556,
(('2', '-1', '4', '-1', '0', '-1', '-1', '-1'), 1):255.490950709,
(('4', '2', '0', '2', '4', '1', '1', '1'), 1):10,
(('1', '0', '1', '0', '0', '1', '1', '0'), 0):197.373212984,
(('0', '-1', '0', '4', '0', '-1', '0', '-1'), 2):201.900406854,
(('4', '1', '1', '1', '4', '0', '4', '0'), 1):0,
(('1', '2', '4', '-1', '0', '0', '-1', '-1'), 3):53.3299403399,
(('4', '1', '0', '1', '1', '0', '4', '1'), 0):46.7977039367,
(('0', '0', '-1', '0', '-1', '-1', '1', '0'), 0):266.310518873,
(('2', '2', '1', '2', '1', '0', '0', '1'), 2):102.016045873,
(('1', '1', '4', '0', '4', '1', '0', '0'), 2):-10,
(('0', '1', '-1', '4', '-1', '-1', '1', '1'), 0):69.3333959158,
(('4', '2', '2', '2', '0', '2', '4', '2'), 0):87.704225076,
(('0', '2', '1', '4', '1', '1', '0', '2'), 0):165.128551955,
(('0', '1', '0', '1', '1', '1', '0', '0'), 2):194.043702802,
(('0', '-1', '1', '2', '1', '-1', '2', '-1'), 2):511.32657468,
(('1', '0', '0', '0', '0', '0', '1', '1'), 2):0,
(('4', '1', '4', '1', '0', '4', '4', '1'), 0):50,
(('0', '2', '1', '2', '1', '4', '4', '4'), 3):10,
(('1', '2', '4', '-1', '2', '0', '-1', '-1'), 3):10,
(('1', '1', '4', '0', '4', '1', '1', '1'), 0):-10,
(('0', '4', '1', '0', '1', '4', '0', '0'), 1):47.4893261743,
(('4', '1', '1', '0', '4', '1', '0', '1'), 3):28.6862859329,
(('1', '2', '1', '2', '1', '0', '2', '1'), 2):238.884883275,
(('4', '2', '2', '2', '0', '0', '0', '0'), 1):137.76364565,
(('4', '1', '1', '0', '4', '1', '1', '0'), 0):-6.0,
(('4', '-1', '-1', '1', '-1', '-1', '4', '-1'), 3):168.421395386,
(('0', '1', '1', '1', '4', '1', '0', '4'), 0):10,
(('1', '0', '1', '0', '1', '0', '1', '4'), 2):23.029178827,
(('1', '-1', '0', '2', '0', '-1', '1', '-1'), 2):284.145255968,
(('1', '2', '2', '2', '2', '4', '0', '1'), 3):10,
(('1', '2', '0', '2', '0', '0', '0', '4'), 2):179.251053112,
(('0', '2', '2', '2', '1', '1', '0', '0'), 0):291.459908991,
(('4', '2', '1', '2', '0', '1', '4', '1'), 3):63.016252863,
(('0', '2', '1', '2', '4', '0', '0', '2'), 0):10,
(('1', '1', '1', '0', '1', '1', '1', '0'), 0):232.442968021,
(('2', '2', '2', '4', '0', '0', '0', '4'), 1):10,
(('0', '4', '1', '1', '0', '0', '0', '1'), 1):85.441815383,
(('0', '2', '2', '-1', '1', '2', '-1', '-1'), 3):355.488759976,
(('4', '-1', '2', '-1', '2', '-1', '-1', '-1'), 3):286.008343568,
(('1', '4', '-1', '2', '-1', '-1', '1', '0'), 2):256.787000733,
(('0', '2', '1', '4', '1', '0', '4', '0'), 0):10,
(('2', '2', '2', '-1', '2', '0', '-1', '-1'), 1):296.509188102,
(('1', '1', '1', '4', '0', '1', '4', '0'), 3):0,
(('0', '4', '4', '2', '0', '4', '1', '1'), 2):10,
(('-1', '0', '4', '1', '-1', '0', '-1', '1'), 2):240.1003524,
(('0', '0', '0', '4', '1', '0', '0', '0'), 1):10,
(('1', '1', '0', '0', '0', '1', '0', '1'), 3):193.358116458,
(('1', '2', '0', '2', '4', '0', '1', '4'), 2):10,
(('0', '0', '1', '-1', '0', '0', '-1', '-1'), 2):239.486203984,
(('2', '2', '2', '2', '2', '1', '1', '4'), 1):10,
(('1', '1', '0', '0', '0', '1', '1', '1'), 1):96.1711464124,
(('4', '2', '4', '4', '0', '4', '4', '4'), 3):10,
(('0', '0', '1', '1', '0', '0', '0', '4'), 2):-0.888266935723,
(('0', '2', '2', '2', '0', '0', '0', '2'), 0):242.056202245,
(('2', '2', '0', '4', '0', '0', '2', '4'), 1):193.366245755,
(('0', '1', '0', '0', '0', '0', '0', '0'), 1):222.868052373,
(('1', '1', '1', '1', '0', '1', '4', '0'), 0):0,
(('-1', '1', '4', '-1', '-1', '0', '-1', '-1'), 0):213.753247098,
(('0', '2', '2', '2', '0', '4', '1', '0'), 3):10,
(('1', '0', '-1', '1', '-1', '-1', '4', '1'), 3):109.703875996,
(('-1', '0', '0', '-1', '-1', '0', '-1', '-1'), 3):192.907221141,
(('0', '1', '1', '0', '1', '1', '4', '0'), 3):114.405561942,
(('0', '4', '1', '4', '0', '4', '0', '0'), 2):-10,
(('2', '2', '0', '2', '0', '0', '2', '2'), 0):346.043037991,
(('0', '4', '1', '2', '0', '0', '0', '0'), 0):0,
(('1', '2', '2', '2', '0', '0', '4', '0'), 3):113.76888195,
(('2', '2', '2', '2', '4', '2', '2', '0'), 3):-117.5808,
(('0', '-1', '2', '2', '1', '-1', '1', '-1'), 3):301.311293649,
(('1', '1', '-1', '1', '-1', '-1', '1', '4'), 1):175.504650515,
(('1', '2', '-1', '2', '-1', '-1', '2', '2'), 3):429.732631134,
(('0', '2', '2', '2', '2', '2', '1', '0'), 3):472.966555357,
(('4', '2', '2', '-1', '2', '0', '-1', '-1'), 0):251.533623442,
(('1', '2', '1', '2', '1', '0', '0', '4'), 0):67.5172551032,
(('4', '2', '1', '2', '0', '0', '0', '0'), 2):40,
(('2', '2', '2', '2', '1', '0', '0', '1'), 0):10,
(('1', '2', '2', '-1', '0', '4', '-1', '-1'), 3):274.52014262,
(('0', '1', '1', '4', '0', '0', '4', '0'), 3):10,
(('2', '2', '0', '2', '2', '1', '2', '0'), 2):391.116253241,
(('0', '4', '4', '2', '4', '4', '0', '0'), 2):66.3715086513,
(('0', '2', '2', '2', '4', '0', '0', '2'), 3):278.151434106,
(('1', '0', '0', '0', '0', '4', '1', '0'), 0):48.3136371192,
(('1', '0', '4', '0', '4', '4', '0', '0'), 1):22.8951105993,
(('1', '4', '1', '1', '0', '1', '0', '4'), 1):7.8046146897,
(('2', '2', '1', '-1', '0', '4', '-1', '-1'), 2):85.983009061,
(('0', '1', '0', '4', '0', '1', '0', '1'), 2):181.418322054,
(('0', '2', '1', '4', '1', '1', '1', '4'), 0):10,
(('4', '2', '2', '-1', '2', '1', '-1', '-1'), 3):58.2086229486,
(('1', '0', '0', '0', '1', '0', '1', '0'), 3):237.59165217,
(('2', '2', '-1', '2', '-1', '-1', '0', '0'), 1):292.689511468,
(('0', '2', '2', '4', '2', '0', '4', '4'), 3):105.1376825,
(('2', '4', '1', '2', '0', '0', '2', '4'), 1):10.0,
(('1', '1', '4', '1', '4', '0', '0', '1'), 0):33.06791525,
(('0', '2', '4', '2', '4', '0', '2', '2'), 2):149.618592275,
(('4', '-1', '0', '1', '4', '-1', '1', '-1'), 0):123.223892249,
(('2', '2', '2', '2', '2', '1', '4', '1'), 2):10,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '1'), 2):239.63403785,
(('0', '1', '1', '4', '0', '0', '0', '0'), 0):180.217030761,
(('2', '2', '1', '2', '4', '0', '0', '0'), 2):144.432505746,
(('2', '4', '-1', '4', '-1', '-1', '2', '4'), 3):10,
(('-1', '0', '0', '1', '-1', '1', '-1', '0'), 3):60.3991624695,
(('2', '2', '0', '2', '2', '2', '2', '0'), 0):428.761116483,
(('0', '4', '0', '0', '0', '1', '0', '0'), 0):43.7404047399,
(('1', '0', '1', '1', '0', '1', '1', '0'), 0):184.124425088,
(('1', '2', '0', '2', '1', '4', '0', '2'), 2):10,
(('1', '4', '0', '1', '0', '0', '0', '4'), 0):10,
(('1', '1', '-1', '1', '-1', '-1', '1', '1'), 1):216.595444562,
(('1', '2', '2', '4', '1', '1', '1', '4'), 3):22.0,
(('4', '1', '0', '0', '0', '1', '0', '1'), 2):87.0501639097,
(('1', '0', '1', '-1', '1', '4', '-1', '-1'), 0):253.458530707,
(('0', '2', '2', '2', '0', '1', '0', '1'), 3):252.423138211,
(('0', '2', '0', '2', '0', '1', '0', '1'), 0):235.913590075,
(('1', '1', '1', '4', '0', '0', '0', '1'), 3):17.1141784196,
(('1', '1', '0', '4', '1', '0', '0', '0'), 3):0,
(('1', '0', '1', '-1', '1', '0', '-1', '-1'), 3):290.418940925,
(('1', '0', '1', '1', '0', '0', '0', '0'), 3):214.487125437,
(('1', '4', '2', '2', '1', '4', '0', '4'), 3):10,
(('0', '0', '1', '4', '1', '0', '4', '4'), 0):50,
(('1', '-1', '4', '-1', '0', '-1', '-1', '-1'), 3):268.942339537,
(('1', '0', '1', '0', '1', '0', '0', '0'), 3):256.880414077,
(('0', '0', '0', '4', '1', '0', '1', '0'), 1):0,
(('1', '0', '1', '1', '1', '4', '0', '0'), 1):86.4677111121,
(('1', '0', '-1', '1', '-1', '-1', '0', '0'), 2):259.570453418,
(('4', '1', '0', '1', '4', '0', '0', '0'), 3):24.7548852059,
(('1', '2', '1', '2', '1', '0', '1', '4'), 2):149.933334613,
(('0', '0', '4', '0', '1', '4', '1', '0'), 0):10,
(('1', '0', '0', '1', '1', '0', '1', '0'), 3):245.348925436,
(('0', '-1', '1', '-1', '0', '-1', '-1', '-1'), 0):218.074648348,
(('1', '1', '1', '4', '1', '0', '1', '0'), 2):67.0671114154,
(('0', '2', '4', '-1', '2', '0', '-1', '-1'), 3):122.316930368,
(('-1', '4', '0', '2', '-1', '0', '-1', '1'), 1):258.27032685,
(('0', '2', '1', '-1', '4', '0', '-1', '-1'), 0):226.697317334,
(('1', '0', '1', '0', '0', '0', '0', '1'), 3):0,
(('0', '2', '1', '4', '0', '0', '4', '4'), 3):10,
(('0', '2', '4', '2', '4', '2', '1', '1'), 3):10,
(('0', '0', '0', '0', '1', '0', '1', '0'), 2):106.711581646,
(('-1', '0', '1', '1', '-1', '0', '-1', '0'), 1):193.566433448,
(('4', '-1', '1', '2', '4', '-1', '0', '-1'), 3):-79.4486499262,
(('0', '4', '0', '1', '0', '4', '0', '1'), 0):10,
(('0', '4', '1', '0', '0', '1', '0', '0'), 3):229.758362842,
(('0', '1', '0', '0', '0', '1', '0', '0'), 2):221.334986774,
(('1', '1', '4', '0', '1', '1', '1', '1'), 3):0,
(('4', '1', '0', '4', '0', '1', '0', '1'), 0):-1000,
(('-1', '1', '0', '0', '-1', '1', '-1', '1'), 3):268.582335649,
(('2', '-1', '1', '4', '0', '-1', '2', '-1'), 1):77.1838005714,
(('0', '2', '0', '2', '0', '0', '1', '0'), 3):111.414963111,
(('0', '-1', '-1', '1', '-1', '-1', '1', '-1'), 3):243.791960267,
(('2', '-1', '2', '4', '1', '-1', '1', '-1'), 3):34.5744771534,
(('1', '-1', '-1', '0', '-1', '-1', '0', '-1'), 0):267.748746086,
(('1', '2', '2', '2', '2', '0', '0', '1'), 3):187.427757682,
(('2', '2', '0', '2', '4', '0', '4', '2'), 1):10,
(('0', '1', '4', '1', '0', '0', '1', '0'), 3):67.3292555062,
(('0', '2', '1', '-1', '0', '4', '-1', '-1'), 0):232.490720442,
(('1', '2', '2', '-1', '4', '1', '-1', '-1'), 3):192.064236035,
(('0', '1', '0', '1', '0', '0', '1', '4'), 2):39.0633938224,
(('4', '1', '4', '-1', '4', '4', '-1', '-1'), 2):103.821689101,
(('0', '2', '2', '-1', '2', '0', '-1', '-1'), 3):348.350642312,
(('4', '2', '2', '2', '1', '2', '0', '1'), 3):143.64383083,
(('2', '2', '1', '2', '0', '0', '0', '2'), 1):325.67567216,
(('0', '2', '2', '2', '0', '1', '0', '0'), 2):59.5800065797,
(('1', '1', '4', '0', '0', '0', '0', '1'), 1):26.6211007593,
(('0', '2', '2', '2', '1', '1', '4', '4'), 3):52.0503886944,
(('1', '-1', '0', '1', '4', '-1', '0', '-1'), 3):78.1989652713,
(('0', '4', '-1', '1', '-1', '-1', '0', '4'), 3):151.265626047,
(('1', '2', '4', '2', '1', '4', '1', '2'), 2):229.076358806,
(('4', '2', '0', '-1', '1', '1', '-1', '-1'), 2):134.191904247,
(('1', '2', '0', '2', '1', '1', '1', '2'), 0):345.930999293,
(('2', '2', '0', '2', '2', '1', '2', '2'), 2):463.176111051,
(('4', '2', '0', '-1', '0', '2', '-1', '-1'), 1):10,
(('0', '4', '2', '2', '1', '1', '0', '0'), 3):269.760044362,
(('1', '0', '1', '-1', '4', '1', '-1', '-1'), 1):158.50651339,
(('2', '2', '4', '2', '1', '1', '2', '1'), 1):168.289801391,
(('4', '1', '0', '1', '4', '0', '1', '1'), 1):75.6914035333,
(('2', '4', '2', '2', '0', '1', '0', '0'), 1):166.873463136,
(('4', '0', '0', '1', '4', '0', '1', '1'), 1):10,
(('4', '-1', '1', '2', '4', '-1', '1', '-1'), 3):10,
(('0', '2', '0', '2', '0', '1', '2', '0'), 2):482.84299418,
(('1', '2', '4', '2', '4', '4', '0', '2'), 2):10,
(('0', '2', '1', '4', '1', '1', '1', '0'), 3):10,
(('1', '1', '0', '1', '1', '0', '0', '1'), 0):213.774324514,
(('0', '2', '1', '2', '0', '1', '4', '1'), 3):131.54070329,
(('-1', '2', '0', '-1', '-1', '1', '-1', '-1'), 1):359.231240068,
(('1', '2', '4', '2', '1', '4', '0', '4'), 1):10,
(('2', '2', '2', '2', '0', '0', '2', '0'), 0):382.339145664,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '0'), 1):265.28225816,
(('2', '2', '4', '2', '1', '0', '2', '0'), 1):291.762143161,
(('1', '0', '1', '1', '0', '0', '0', '1'), 2):126.65829824,
(('2', '2', '1', '2', '2', '1', '2', '2'), 2):642.270588161,
(('1', '2', '0', '2', '0', '1', '0', '0'), 1):197.015026675,
(('4', '0', '1', '1', '0', '1', '4', '0'), 2):-10,
(('2', '-1', '2', '2', '0', '-1', '1', '-1'), 1):301.547850955,
(('4', '2', '4', '2', '4', '0', '1', '0'), 0):10.0,
(('1', '1', '0', '0', '0', '1', '0', '1'), 1):207.811763923,
(('0', '2', '4', '2', '2', '0', '0', '0'), 0):439.444770409,
(('2', '4', '1', '4', '1', '0', '2', '4'), 1):10,
(('0', '1', '1', '0', '1', '0', '1', '0'), 3):96.530228025,
(('1', '0', '1', '4', '0', '0', '1', '0'), 0):10,
(('1', '4', '1', '1', '1', '1', '1', '1'), 3):89.4045978012,
(('0', '4', '-1', '1', '-1', '-1', '0', '1'), 0):211.446222354,
(('0', '1', '1', '0', '0', '1', '1', '0'), 2):84.0273971643,
(('0', '2', '0', '2', '0', '1', '1', '1'), 2):258.957885467,
(('0', '0', '1', '4', '1', '1', '0', '0'), 1):163.889834503,
(('2', '2', '0', '2', '2', '4', '0', '0'), 2):74.8933965238,
(('1', '2', '2', '2', '2', '4', '0', '0'), 0):10,
(('1', '4', '1', '0', '1', '1', '0', '0'), 0):218.727579756,
(('4', '-1', '2', '-1', '0', '-1', '-1', '-1'), 0):164.749688639,
(('1', '0', '0', '0', '1', '0', '0', '1'), 0):10,
(('1', '4', '1', '1', '1', '1', '0', '4'), 0):-8.0,
(('0', '0', '0', '1', '0', '1', '0', '1'), 3):36.8044625389,
(('4', '2', '0', '2', '0', '0', '0', '2'), 0):279.970847556,
(('4', '-1', '2', '-1', '1', '-1', '-1', '-1'), 3):286.714472414,
(('0', '2', '1', '2', '1', '4', '1', '1'), 2):90,
(('2', '2', '4', '2', '0', '4', '2', '2'), 0):-569.737830548,
(('4', '1', '-1', '1', '-1', '-1', '1', '1'), 3):191.055744344,
(('-1', '0', '0', '0', '-1', '1', '-1', '0'), 2):235.026070513,
(('4', '2', '2', '2', '1', '2', '1', '0'), 3):140.048077298,
(('4', '-1', '4', '2', '1', '-1', '0', '-1'), 0):10,
(('4', '0', '1', '-1', '4', '1', '-1', '-1'), 2):100.42499943,
(('1', '0', '0', '4', '0', '0', '4', '4'), 3):47.7111921763,
(('1', '4', '1', '0', '1', '4', '1', '4'), 1):66.2753715063,
(('4', '2', '2', '-1', '4', '2', '-1', '-1'), 1):-139.13941152,
(('-1', '1', '1', '0', '-1', '0', '-1', '1'), 2):240.862535839,
(('1', '1', '0', '1', '0', '0', '1', '4'), 3):141.57309694,
(('1', '2', '1', '-1', '1', '0', '-1', '-1'), 2):292.526196348,
(('-1', '2', '1', '2', '-1', '0', '-1', '1'), 0):251.481376973,
(('-1', '4', '1', '-1', '-1', '4', '-1', '-1'), 2):181.857845481,
(('1', '1', '-1', '4', '-1', '-1', '4', '1'), 0):22.2505528159,
(('1', '4', '-1', '2', '-1', '-1', '0', '4'), 2):18.0,
(('0', '1', '0', '0', '0', '1', '1', '1'), 0):83.2178761557,
(('4', '0', '0', '0', '0', '0', '0', '0'), 2):87.0213654643,
(('-1', '1', '4', '-1', '-1', '1', '-1', '-1'), 2):179.324137284,
(('1', '4', '-1', '2', '-1', '-1', '4', '4'), 2):10,
(('1', '2', '1', '2', '0', '0', '1', '2'), 0):282.292016687,
(('1', '1', '4', '0', '4', '4', '0', '1'), 3):0,
(('2', '2', '2', '2', '0', '0', '0', '0'), 3):282.618604355,
(('1', '0', '-1', '0', '-1', '-1', '0', '0'), 1):267.307007109,
(('0', '1', '0', '1', '1', '0', '1', '0'), 2):68.5376560777,
(('4', '1', '0', '1', '4', '1', '4', '1'), 0):18.6430485262,
(('4', '1', '1', '1', '1', '1', '0', '0'), 2):145.802862995,
(('0', '2', '2', '4', '1', '0', '0', '4'), 3):47.4741700754,
(('2', '2', '2', '2', '2', '2', '1', '2'), 2):316.641664533,
(('1', '2', '0', '2', '0', '2', '0', '0'), 0):296.701336647,
(('0', '1', '4', '1', '0', '4', '0', '4'), 1):-10,
(('4', '1', '1', '-1', '4', '0', '-1', '-1'), 0):51.1599126333,
(('0', '1', '4', '1', '1', '4', '0', '1'), 3):-10,
(('1', '2', '1', '-1', '0', '0', '-1', '-1'), 3):311.057199333,
(('0', '0', '0', '0', '0', '0', '0', '1'), 1):173.582817996,
(('1', '4', '0', '1', '1', '0', '1', '0'), 0):195.090098231,
(('4', '-1', '0', '0', '1', '-1', '0', '-1'), 1):157.223352333,
(('1', '2', '0', '2', '1', '0', '0', '0'), 2):298.993521448,
(('1', '1', '1', '0', '1', '0', '0', '1'), 2):197.169485891,
(('4', '0', '4', '1', '0', '0', '1', '0'), 0):50,
(('1', '4', '2', '4', '1', '0', '0', '4'), 3):10,
(('0', '-1', '1', '1', '1', '-1', '0', '-1'), 1):257.808799454,
(('4', '2', '2', '2', '2', '2', '4', '0'), 3):55.2615627097,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '0'), 1):171.699112925,
(('0', '0', '1', '4', '0', '0', '4', '4'), 3):54.5880878569,
(('2', '2', '1', '2', '2', '1', '2', '0'), 0):140.370218394,
(('4', '2', '4', '2', '4', '0', '0', '0'), 3):10,
(('2', '2', '0', '2', '2', '0', '2', '0'), 1):330.032810766,
(('2', '2', '4', '2', '2', '0', '1', '1'), 1):189.251770048,
(('4', '-1', '0', '2', '4', '-1', '4', '-1'), 1):11.8,
(('0', '4', '2', '2', '2', '0', '1', '4'), 3):10,
(('-1', '4', '1', '0', '-1', '1', '-1', '1'), 1):50,
(('2', '4', '2', '-1', '2', '4', '-1', '-1'), 1):104.722110046,
(('2', '4', '1', '-1', '1', '1', '-1', '-1'), 2):60,
(('4', '0', '0', '1', '0', '0', '0', '0'), 2):194.262309155,
(('1', '1', '0', '0', '4', '0', '0', '0'), 2):9.70677623806,
(('0', '-1', '4', '1', '1', '-1', '0', '-1'), 3):10,
(('-1', '2', '2', '2', '-1', '2', '-1', '4'), 1):270.051474651,
(('1', '1', '0', '1', '1', '4', '0', '0'), 1):10,
(('2', '2', '1', '2', '1', '0', '1', '0'), 0):158.032166625,
(('2', '2', '4', '2', '0', '0', '4', '0'), 1):10,
(('2', '2', '2', '2', '0', '0', '2', '1'), 1):322.476064549,
(('0', '2', '4', '2', '4', '4', '1', '0'), 2):54.6160699657,
(('-1', '2', '2', '4', '-1', '1', '-1', '1'), 1):10,
(('1', '1', '0', '1', '0', '1', '4', '1'), 2):41.3132488806,
(('2', '2', '2', '2', '1', '1', '0', '0'), 2):270.572893542,
(('1', '0', '4', '-1', '1', '1', '-1', '-1'), 3):75.1762041221,
(('4', '1', '1', '1', '0', '1', '1', '1'), 2):196.86591415,
(('0', '1', '0', '1', '0', '4', '0', '1'), 2):209.348477944,
(('4', '2', '2', '2', '0', '1', '4', '1'), 0):10,
(('1', '0', '1', '-1', '1', '1', '-1', '-1'), 1):254.638488844,
(('1', '1', '1', '0', '1', '0', '4', '0'), 0):105.159090339,
(('0', '2', '1', '2', '1', '0', '4', '1'), 2):10,
(('1', '2', '2', '2', '2', '4', '1', '1'), 3):75.4095091881,
(('1', '2', '0', '2', '1', '1', '1', '1'), 2):227.307926139,
(('1', '1', '1', '1', '1', '1', '0', '1'), 2):165.573637825,
(('1', '2', '1', '2', '0', '0', '0', '0'), 1):259.624329548,
(('0', '2', '1', '2', '0', '1', '2', '2'), 0):365.337580028,
(('0', '1', '4', '0', '1', '4', '0', '0'), 1):0,
(('2', '2', '-1', '4', '-1', '-1', '0', '4'), 0):10,
(('4', '2', '0', '2', '0', '0', '1', '0'), 3):0,
(('4', '2', '1', '-1', '1', '0', '-1', '-1'), 0):259.647743679,
(('1', '-1', '1', '1', '1', '-1', '1', '-1'), 0):213.79776154,
(('0', '1', '-1', '1', '-1', '-1', '1', '0'), 0):284.820040611,
(('4', '2', '2', '2', '2', '2', '0', '1'), 3):170,
(('1', '1', '-1', '4', '-1', '-1', '0', '4'), 3):253.571282649,
(('0', '0', '0', '1', '0', '4', '1', '1'), 2):79.082864958,
(('0', '2', '4', '2', '0', '4', '0', '2'), 2):223.201427343,
(('0', '4', '0', '2', '0', '0', '2', '1'), 2):123.126078203,
(('-1', '4', '0', '2', '-1', '4', '-1', '4'), 2):61.9181952961,
(('2', '2', '2', '2', '0', '1', '2', '2'), 0):194.393357846,
(('2', '2', '1', '-1', '2', '0', '-1', '-1'), 0):623.418751445,
(('4', '2', '2', '2', '4', '1', '0', '2'), 2):50,
(('0', '1', '1', '1', '1', '0', '0', '0'), 1):216.749348184,
(('1', '4', '4', '2', '4', '0', '1', '4'), 2):10,
(('1', '2', '-1', '4', '-1', '-1', '4', '0'), 0):123.524118254,
(('0', '0', '-1', '1', '-1', '-1', '1', '1'), 0):258.467159368,
(('4', '2', '4', '2', '0', '0', '0', '0'), 1):-1000,
(('1', '2', '4', '-1', '4', '4', '-1', '-1'), 0):268.694540103,
(('0', '2', '4', '2', '1', '4', '0', '1'), 0):68.1795324316,
(('2', '2', '2', '2', '0', '0', '0', '0'), 1):287.996442002,
(('1', '4', '2', '2', '0', '0', '1', '4'), 3):57.3370150444,
(('2', '2', '2', '2', '0', '0', '4', '2'), 2):-1000,
(('2', '2', '0', '2', '2', '0', '2', '1'), 2):403.66030179,
(('0', '1', '0', '1', '1', '0', '0', '4'), 3):0,
(('-1', '4', '0', '2', '-1', '1', '-1', '0'), 1):133.922607674,
(('0', '4', '2', '2', '2', '4', '0', '4'), 3):10,
(('0', '4', '1', '2', '1', '1', '0', '4'), 3):70.9484805263,
(('0', '-1', '2', '2', '1', '-1', '0', '-1'), 0):343.004758112,
(('1', '1', '-1', '0', '-1', '-1', '0', '1'), 2):228.151211567,
(('1', '0', '1', '-1', '0', '4', '-1', '-1'), 0):-10,
(('4', '-1', '4', '2', '4', '-1', '1', '-1'), 2):64.1574959412,
(('1', '4', '-1', '4', '-1', '-1', '1', '4'), 0):-10,
(('1', '1', '4', '1', '1', '4', '1', '1'), 0):65.9840274965,
(('2', '2', '0', '2', '2', '0', '1', '2'), 0):179.554158346,
(('4', '1', '-1', '0', '-1', '-1', '1', '0'), 1):45.0679561116,
(('0', '2', '4', '-1', '4', '4', '-1', '-1'), 0):245.610188786,
(('4', '0', '1', '0', '1', '0', '4', '0'), 2):117.243956921,
(('1', '1', '0', '1', '1', '1', '0', '1'), 3):143.227494751,
(('0', '-1', '4', '1', '4', '-1', '0', '-1'), 1):0,
(('1', '2', '2', '2', '1', '1', '1', '1'), 0):101.201759049,
(('-1', '1', '0', '1', '-1', '1', '-1', '1'), 1):231.872117068,
(('0', '1', '0', '0', '0', '0', '4', '1'), 1):0,
(('0', '1', '1', '0', '1', '4', '0', '0'), 1):164.83203103,
(('1', '2', '1', '2', '1', '1', '4', '2'), 0):325.544516828,
(('0', '2', '0', '2', '2', '0', '2', '0'), 0):86.672682126,
(('-1', '4', '2', '-1', '-1', '2', '-1', '-1'), 1):78.8391509493,
(('4', '-1', '0', '2', '0', '-1', '0', '-1'), 2):267.742923427,
(('-1', '2', '0', '2', '-1', '1', '-1', '1'), 2):286.000112207,
(('2', '4', '1', '-1', '0', '4', '-1', '-1'), 1):67.2828700985,
(('2', '2', '-1', '2', '-1', '-1', '4', '0'), 0):10,
(('-1', '4', '2', '2', '-1', '4', '-1', '4'), 1):10,
(('1', '1', '-1', '0', '-1', '-1', '0', '0'), 2):231.149320275,
(('0', '0', '-1', '4', '-1', '-1', '1', '1'), 2):-10,
(('2', '4', '-1', '2', '-1', '-1', '0', '2'), 1):100.976288333,
(('2', '2', '0', '2', '2', '0', '2', '2'), 0):440.692227405,
(('2', '2', '1', '4', '2', '4', '0', '4'), 1):10,
(('1', '4', '1', '2', '0', '0', '0', '0'), 1):12.615065606,
(('1', '1', '0', '0', '1', '0', '1', '1'), 0):125.311739897,
(('0', '2', '2', '2', '2', '0', '0', '2'), 2):404.413045859,
(('0', '4', '0', '2', '0', '4', '2', '0'), 2):79.8675586342,
(('0', '4', '1', '2', '1', '0', '0', '4'), 3):10,
(('2', '2', '2', '2', '2', '1', '4', '0'), 3):46.9507777376,
(('2', '2', '1', '2', '0', '0', '1', '1'), 1):226.878373328,
(('1', '0', '1', '0', '0', '1', '0', '0'), 3):222.223417913,
(('2', '2', '4', '2', '0', '4', '0', '2'), 1):233.368026526,
(('0', '0', '4', '1', '0', '0', '1', '0'), 3):76.0553941429,
(('4', '4', '0', '0', '4', '4', '4', '0'), 0):0,
(('0', '2', '4', '2', '0', '1', '0', '0'), 0):238.72699692,
(('0', '2', '0', '2', '1', '0', '1', '2'), 2):343.651792342,
(('0', '0', '-1', '1', '-1', '-1', '4', '1'), 1):119.341847715,
(('-1', '0', '1', '1', '-1', '1', '-1', '1'), 2):190.650196085,
(('2', '2', '1', '2', '0', '1', '0', '1'), 1):217.129335162,
(('4', '2', '2', '2', '2', '2', '4', '1'), 3):-96.164889735,
(('1', '1', '0', '1', '0', '1', '1', '1'), 1):195.478066136,
(('0', '0', '1', '1', '0', '0', '1', '0'), 2):225.193335789,
(('2', '2', '1', '2', '1', '4', '0', '0'), 2):247.339201639,
(('4', '1', '1', '0', '4', '0', '4', '0'), 0):-19.0003597742,
(('2', '4', '1', '2', '1', '0', '2', '0'), 2):10,
(('-1', '4', '2', '2', '-1', '4', '-1', '1'), 1):10,
(('0', '2', '0', '2', '0', '4', '0', '2'), 2):250.273651737,
(('2', '2', '0', '2', '0', '1', '0', '4'), 1):104.602910107,
(('1', '0', '1', '4', '0', '0', '1', '0'), 1):77.3234904324,
(('0', '2', '4', '2', '1', '0', '0', '0'), 0):173.547462102,
(('0', '4', '-1', '1', '-1', '-1', '1', '0'), 1):144.550662937,
(('1', '2', '2', '2', '0', '0', '1', '4'), 3):144.194395556,
(('0', '1', '0', '1', '0', '1', '4', '1'), 2):158.757271562,
(('2', '2', '2', '2', '0', '1', '0', '0'), 0):10,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '0'), 1):242.524094305,
(('1', '2', '-1', '2', '-1', '-1', '4', '0'), 1):234.823885564,
(('0', '2', '0', '4', '0', '0', '1', '4'), 1):10,
(('2', '2', '1', '2', '2', '0', '4', '0'), 0):10,
(('0', '0', '0', '4', '0', '0', '0', '0'), 1):237.181246455,
(('0', '1', '0', '0', '0', '0', '1', '1'), 0):114.888471534,
(('2', '2', '2', '2', '1', '2', '1', '1'), 0):121.045388235,
(('1', '0', '1', '1', '0', '1', '0', '0'), 1):221.981232461,
(('0', '-1', '0', '0', '0', '-1', '4', '-1'), 3):99.8913752842,
(('4', '1', '4', '4', '4', '4', '4', '1'), 3):0,
(('1', '0', '1', '0', '0', '0', '0', '0'), 2):236.346722467,
(('-1', '0', '1', '1', '-1', '4', '-1', '1'), 1):33.0877003963,
(('0', '2', '1', '2', '0', '1', '4', '0'), 0):188.150596328,
(('1', '1', '1', '0', '4', '0', '0', '0'), 3):0,
(('4', '2', '4', '2', '0', '0', '0', '1'), 0):30.8616725963,
(('2', '-1', '2', '2', '2', '-1', '1', '-1'), 1):388.430415534,
(('1', '2', '2', '2', '0', '1', '1', '0'), 3):267.53018089,
(('1', '4', '-1', '0', '-1', '-1', '0', '1'), 1):36.5298176326,
(('1', '2', '2', '2', '0', '2', '1', '0'), 3):356.331624769,
(('2', '2', '2', '2', '1', '2', '2', '2'), 3):434.691057428,
(('1', '2', '4', '2', '4', '4', '0', '0'), 2):71.6395033293,
(('0', '0', '0', '0', '0', '0', '0', '1'), 3):163.951678527,
(('0', '0', '1', '0', '1', '0', '0', '4'), 3):111.687595417,
(('0', '2', '4', '2', '0', '4', '2', '1'), 2):153.394556772,
(('0', '1', '0', '1', '0', '1', '0', '1'), 2):225.275256965,
(('1', '2', '2', '2', '1', '2', '2', '2'), 0):253.34297331,
(('2', '2', '0', '2', '1', '0', '1', '0'), 2):283.78648224,
(('-1', '4', '2', '-1', '-1', '4', '-1', '-1'), 3):60.8962843431,
(('4', '2', '4', '2', '4', '0', '0', '2'), 2):85.5199726465,
(('1', '1', '0', '1', '1', '4', '1', '0'), 3):0,
(('1', '2', '0', '2', '1', '1', '1', '0'), 1):197.808611736,
(('1', '2', '1', '2', '1', '0', '4', '0'), 3):181.23612436,
(('1', '4', '0', '-1', '1', '4', '-1', '-1'), 3):45.2831218172,
(('1', '4', '-1', '1', '-1', '-1', '1', '0'), 0):229.484151927,
(('2', '2', '2', '2', '4', '1', '0', '4'), 1):10,
(('0', '0', '1', '0', '0', '1', '4', '0'), 1):50.9454148872,
(('1', '2', '2', '2', '4', '0', '0', '1'), 3):28.0400037816,
(('-1', '2', '0', '-1', '-1', '4', '-1', '-1'), 1):190.860271231,
(('0', '-1', '0', '0', '1', '-1', '0', '-1'), 3):315.327658506,
(('0', '4', '1', '0', '1', '4', '0', '4'), 1):86.5814967135,
(('1', '1', '1', '1', '1', '0', '0', '4'), 3):0,
(('2', '2', '0', '2', '2', '0', '1', '1'), 1):319.631424594,
(('0', '1', '1', '1', '0', '0', '1', '1'), 2):163.992506055,
(('1', '2', '0', '4', '1', '0', '0', '1'), 0):10,
(('2', '2', '2', '-1', '0', '0', '-1', '-1'), 2):54.5792190895,
(('1', '4', '0', '-1', '0', '1', '-1', '-1'), 3):-10,
(('2', '2', '0', '2', '2', '0', '0', '2'), 1):576.038397959,
(('1', '2', '2', '2', '1', '2', '0', '1'), 3):311.358516206,
(('4', '-1', '1', '1', '1', '-1', '0', '-1'), 0):198.212768351,
(('4', '2', '-1', '4', '-1', '-1', '4', '2'), 0):214.951294755,
(('4', '2', '2', '2', '4', '2', '4', '1'), 3):140.709573212,
(('1', '0', '1', '4', '1', '0', '1', '1'), 0):-10,
(('1', '1', '1', '1', '0', '1', '0', '1'), 2):196.552347486,
(('-1', '1', '0', '1', '-1', '0', '-1', '0'), 2):234.077834105,
(('1', '0', '1', '0', '0', '1', '0', '1'), 2):0,
(('0', '1', '0', '1', '0', '4', '1', '1'), 1):129.248905226,
(('1', '1', '0', '4', '0', '1', '0', '4'), 1):52.4448058856,
(('4', '2', '2', '2', '0', '0', '2', '0'), 3):10,
(('0', '1', '1', '0', '1', '0', '0', '1'), 1):238.537156052,
(('0', '0', '0', '-1', '0', '0', '-1', '-1'), 2):239.387224588,
(('4', '1', '0', '1', '0', '1', '1', '1'), 0):191.185904172,
(('2', '4', '0', '2', '0', '0', '0', '4'), 1):154.642006331,
(('2', '4', '2', '2', '1', '4', '0', '0'), 3):10,
(('0', '1', '4', '0', '4', '0', '0', '1'), 3):10,
(('1', '2', '4', '2', '0', '4', '1', '1'), 0):95.4289319525,
(('2', '2', '4', '2', '4', '4', '0', '0'), 2):186.1375258,
(('1', '0', '-1', '1', '-1', '-1', '0', '1'), 2):266.248224823,
(('1', '1', '-1', '4', '-1', '-1', '4', '0'), 3):191.226364111,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '0'), 3):228.072548644,
(('0', '1', '0', '1', '0', '1', '0', '0'), 3):179.241061649,
(('1', '-1', '1', '4', '0', '-1', '0', '-1'), 3):0,
(('-1', '4', '0', '-1', '-1', '0', '-1', '-1'), 2):229.070817206,
(('1', '2', '0', '-1', '1', '1', '-1', '-1'), 2):301.488884036,
(('4', '1', '4', '1', '4', '1', '4', '1'), 2):9.0,
(('1', '2', '0', '2', '4', '2', '0', '2'), 0):338.821287383,
(('0', '1', '0', '1', '0', '1', '1', '1'), 3):217.542967175,
(('1', '1', '-1', '4', '-1', '-1', '4', '4'), 2):20.4889624175,
(('4', '0', '0', '0', '1', '0', '4', '0'), 1):-10,
(('0', '0', '1', '1', '0', '4', '0', '0'), 3):7.8,
(('1', '2', '2', '2', '2', '4', '1', '4'), 3):17.1250276448,
(('2', '2', '1', '-1', '0', '0', '-1', '-1'), 0):305.708524107,
(('2', '2', '4', '2', '0', '1', '1', '0'), 1):50,
(('0', '2', '2', '4', '0', '2', '0', '1'), 3):355.048379314,
(('4', '2', '0', '-1', '4', '1', '-1', '-1'), 0):234.515354152,
(('2', '2', '2', '2', '4', '0', '2', '0'), 3):242.042408294,
(('0', '2', '2', '2', '1', '2', '0', '2'), 0):361.73960078,
(('4', '2', '1', '2', '0', '1', '1', '1'), 0):102.12761238,
(('1', '-1', '4', '0', '1', '-1', '1', '-1'), 1):168.895674544,
(('1', '-1', '4', '2', '0', '-1', '0', '-1'), 1):130.848570135,
(('0', '2', '2', '2', '1', '2', '2', '2'), 0):349.426680668,
(('0', '4', '1', '1', '1', '1', '0', '4'), 2):10,
(('1', '1', '1', '1', '1', '0', '0', '0'), 1):176.174743221,
(('1', '0', '1', '1', '0', '4', '1', '0'), 3):53.7956820931,
(('1', '0', '1', '-1', '0', '0', '-1', '-1'), 3):283.936737277,
(('1', '2', '2', '-1', '2', '2', '-1', '-1'), 3):425.652019401,
(('4', '-1', '1', '0', '1', '-1', '1', '-1'), 0):137.264094127,
(('1', '0', '0', '1', '1', '0', '4', '0'), 3):57.8873711977,
(('0', '2', '4', '2', '0', '4', '1', '0'), 0):78.3500839115,
(('1', '2', '1', '2', '4', '1', '1', '0'), 3):59.5004266649,
(('2', '2', '1', '2', '1', '1', '1', '1'), 2):210.095417482,
(('-1', '4', '0', '2', '-1', '0', '-1', '2'), 2):184.256347527,
(('2', '4', '0', '2', '2', '1', '0', '0'), 2):10,
(('0', '1', '1', '4', '1', '0', '4', '4'), 1):8.0,
(('0', '2', '2', '4', '0', '0', '0', '4'), 3):146.350548817,
(('-1', '4', '0', '1', '-1', '0', '-1', '0'), 2):220.900230955,
(('2', '2', '0', '-1', '2', '0', '-1', '-1'), 1):280.592278976,
(('0', '2', '4', '2', '0', '4', '1', '1'), 0):113.162178131,
(('2', '-1', '1', '-1', '0', '-1', '-1', '-1'), 0):301.275739481,
(('-1', '4', '1', '1', '-1', '4', '-1', '4'), 3):97.3026299624,
(('2', '2', '1', '4', '1', '1', '2', '0'), 1):196.118426127,
(('1', '1', '-1', '4', '-1', '-1', '1', '1'), 1):164.899706952,
(('4', '4', '4', '0', '4', '4', '0', '4'), 3):0,
(('0', '0', '4', '0', '1', '0', '0', '0'), 0):-561.957081642,
(('0', '2', '0', '-1', '0', '0', '-1', '-1'), 2):299.736013935,
(('4', '1', '1', '1', '4', '0', '0', '0'), 1):0,
(('1', '-1', '0', '1', '0', '-1', '4', '-1'), 1):140.1165186,
(('1', '4', '0', '1', '0', '4', '1', '1'), 1):62.1026717671,
(('1', '2', '1', '4', '1', '0', '0', '0'), 3):67.8934236168,
(('1', '1', '1', '0', '1', '4', '0', '1'), 2):-10,
(('2', '2', '2', '4', '0', '1', '0', '0'), 3):10,
(('1', '0', '1', '4', '1', '0', '4', '4'), 2):59.9446082935,
(('0', '0', '-1', '4', '-1', '-1', '0', '4'), 2):48.5777215242,
(('-1', '0', '1', '1', '-1', '1', '-1', '4'), 1):0,
(('1', '4', '1', '-1', '1', '4', '-1', '-1'), 2):247.191808543,
(('1', '0', '4', '1', '1', '4', '1', '0'), 1):75.692094863,
(('1', '-1', '1', '2', '4', '-1', '0', '-1'), 3):169.506616413,
(('1', '1', '4', '0', '1', '1', '0', '0'), 3):40.4954851434,
(('0', '1', '1', '0', '0', '0', '0', '1'), 1):225.419172324,
(('1', '1', '0', '0', '0', '4', '1', '1'), 3):10,
(('1', '0', '1', '0', '1', '1', '0', '4'), 0):57.8278629259,
(('2', '4', '1', '2', '2', '4', '2', '4'), 1):10,
(('0', '2', '-1', '4', '-1', '-1', '4', '2'), 3):10,
(('1', '2', '2', '2', '1', '0', '4', '0'), 3):218.926186537,
(('2', '2', '4', '2', '1', '4', '2', '2'), 1):10,
(('4', '2', '1', '2', '1', '0', '1', '0'), 0):173.96007636,
(('1', '4', '2', '2', '1', '1', '1', '0'), 3):65.7053086359,
(('4', '0', '0', '1', '0', '1', '0', '1'), 1):0,
(('1', '1', '1', '4', '1', '1', '4', '4'), 3):-23.1137848653,
(('1', '4', '0', '1', '0', '0', '0', '4'), 2):75.5749818793,
(('0', '2', '0', '2', '4', '1', '0', '2'), 2):244.305668545,
(('0', '1', '0', '0', '1', '1', '0', '1'), 1):64.0021929931,
(('1', '1', '0', '-1', '1', '0', '-1', '-1'), 3):248.30975263,
(('1', '4', '0', '0', '1', '0', '1', '0'), 2):86.6765138067,
(('2', '2', '4', '2', '4', '1', '2', '2'), 1):220.907922605,
(('2', '2', '1', '2', '0', '1', '0', '2'), 0):159.270706193,
(('0', '2', '1', '-1', '0', '4', '-1', '-1'), 2):229.209855249,
(('4', '2', '1', '4', '0', '2', '4', '0'), 0):10,
(('0', '2', '0', '2', '0', '1', '0', '2'), 2):290.679639777,
(('0', '-1', '0', '4', '0', '-1', '0', '-1'), 3):218.240723387,
(('-1', '4', '0', '0', '-1', '4', '-1', '4'), 1):0.0,
(('1', '2', '4', '-1', '0', '0', '-1', '-1'), 2):276.221930174,
(('1', '1', '0', '4', '0', '0', '1', '1'), 3):32.7469312045,
(('0', '1', '4', '0', '4', '0', '0', '1'), 2):63.6693715927,
(('1', '1', '1', '0', '0', '0', '0', '4'), 3):44.5371768205,
(('0', '1', '0', '1', '1', '1', '0', '0'), 1):61.3810206762,
(('2', '4', '1', '2', '1', '1', '1', '4'), 1):129.261226782,
(('0', '1', '1', '1', '0', '0', '0', '1'), 1):137.484938716,
(('1', '2', '1', '4', '0', '0', '0', '4'), 3):62.6681377614,
(('0', '4', '1', '0', '1', '4', '0', '0'), 0):41.9675004818,
(('2', '4', '1', '2', '1', '4', '0', '0'), 1):63.8692532516,
(('4', '2', '2', '2', '0', '0', '0', '0'), 0):129.776740913,
(('4', '-1', '-1', '1', '-1', '-1', '4', '-1'), 2):174.165332658,
(('4', '-1', '4', '2', '4', '-1', '0', '-1'), 2):88.8312673386,
(('-1', '2', '4', '-1', '-1', '0', '-1', '-1'), 0):237.647545242,
(('1', '-1', '0', '2', '0', '-1', '1', '-1'), 3):236.049442467,
(('2', '2', '0', '2', '0', '0', '4', '4'), 1):144.031178673,
(('4', '2', '4', '2', '4', '4', '0', '2'), 0):85.0616021914,
(('1', '-1', '2', '2', '0', '-1', '1', '-1'), 0):312.602906727,
(('2', '2', '4', '2', '4', '1', '0', '0'), 1):10,
(('0', '2', '2', '2', '1', '1', '0', '0'), 3):259.48131132,
(('1', '0', '1', '1', '0', '0', '4', '0'), 0):30.99232009,
(('4', '2', '0', '2', '1', '0', '1', '1'), 2):117.007569022,
(('1', '1', '1', '0', '1', '1', '1', '0'), 3):216.772440101,
(('0', '4', '-1', '2', '-1', '-1', '0', '1'), 0):125.746030388,
(('0', '4', '4', '1', '0', '4', '0', '1'), 3):10,
(('0', '2', '2', '-1', '1', '2', '-1', '-1'), 2):356.730092793,
(('1', '0', '4', '0', '0', '0', '1', '0'), 1):172.581304808,
(('1', '4', '1', '2', '0', '0', '1', '2'), 2):10,
(('1', '4', '-1', '2', '-1', '-1', '1', '0'), 3):220.538079004,
(('2', '2', '2', '2', '2', '1', '2', '0'), 2):403.006042683,
(('-1', '0', '4', '1', '-1', '0', '-1', '1'), 3):176.383688559,
(('0', '0', '0', '4', '1', '0', '0', '0'), 2):61.3019797403,
(('1', '1', '-1', '1', '-1', '-1', '0', '1'), 2):220.009892788,
(('1', '4', '4', '1', '1', '4', '1', '4'), 1):56.7052212825,
(('2', '2', '2', '2', '4', '0', '2', '2'), 1):10,
(('0', '2', '2', '2', '0', '0', '0', '2'), 3):298.980993205,
(('0', '0', '0', '4', '0', '0', '4', '0'), 1):0,
(('1', '1', '1', '1', '0', '1', '4', '0'), 1):0,
(('-1', '1', '4', '-1', '-1', '0', '-1', '-1'), 3):131.141248811,
(('2', '2', '2', '4', '0', '0', '0', '1'), 3):40,
(('0', '1', '1', '1', '1', '4', '1', '1'), 3):0,
(('4', '0', '1', '0', '0', '1', '4', '0'), 0):97.7991014868,
(('-1', '0', '0', '-1', '-1', '0', '-1', '-1'), 0):239.469210785,
(('0', '1', '1', '0', '1', '1', '4', '0'), 2):84.0612108346,
(('0', '1', '1', '1', '0', '4', '1', '0'), 1):-10,
(('2', '4', '0', '2', '0', '4', '1', '0'), 1):75.8677647064,
(('1', '2', '2', '2', '0', '0', '4', '0'), 0):112.379378897,
(('1', '0', '4', '4', '1', '4', '4', '0'), 1):0,
(('1', '2', '1', '2', '1', '1', '4', '4'), 0):46.0208815928,
(('1', '2', '-1', '2', '-1', '-1', '2', '2'), 2):472.100478263,
(('4', '0', '1', '1', '0', '1', '0', '0'), 2):64.0265787755,
(('4', '2', '2', '-1', '2', '0', '-1', '-1'), 1):91.3754962361,
(('0', '-1', '1', '2', '0', '-1', '4', '-1'), 0):183.463440191,
(('1', '2', '1', '2', '1', '0', '0', '4'), 1):68.5823962175,
(('1', '4', '1', '1', '1', '4', '0', '4'), 1):101.446204783,
(('0', '2', '2', '4', '1', '1', '0', '1'), 3):204.80594087,
(('0', '0', '1', '1', '0', '0', '4', '0'), 1):5.83679271827,
(('1', '1', '4', '0', '1', '0', '0', '0'), 1):108.998034023,
(('1', '4', '4', '-1', '1', '0', '-1', '-1'), 3):0,
(('4', '0', '0', '1', '4', '0', '0', '1'), 2):30.7567048033,
(('2', '2', '0', '-1', '0', '1', '-1', '-1'), 1):302.719870651,
(('1', '-1', '0', '4', '0', '-1', '1', '-1'), 0):154.824399367,
(('1', '2', '2', '-1', '1', '2', '-1', '-1'), 0):491.585526422,
(('0', '1', '0', '4', '0', '1', '0', '1'), 3):167.311755469,
(('1', '0', '0', '0', '1', '0', '1', '0'), 0):235.663385072,
(('1', '4', '1', '1', '0', '1', '1', '1'), 3):65.6258126726,
(('1', '2', '0', '2', '1', '4', '2', '0'), 0):10,
(('2', '2', '2', '2', '2', '1', '4', '1'), 1):10,
(('2', '4', '-1', '2', '-1', '-1', '1', '1'), 3):170.402057113,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '1'), 3):196.114630531,
(('0', '1', '1', '4', '0', '0', '0', '0'), 3):92.7889067685,
(('-1', '4', '2', '2', '-1', '1', '-1', '0'), 3):182.326744222,
(('1', '4', '1', '2', '0', '0', '1', '0'), 1):39.8755119785,
(('0', '4', '0', '0', '0', '1', '0', '0'), 1):186.468174555,
(('4', '2', '2', '2', '4', '2', '1', '1'), 3):165.47677776,
(('1', '0', '1', '1', '0', '1', '1', '0'), 1):220.305608904,
(('1', '1', '-1', '1', '-1', '-1', '1', '1'), 0):260.981658763,
(('2', '2', '4', '2', '0', '4', '1', '1'), 1):187.114534849,
(('1', '2', '4', '-1', '4', '0', '-1', '-1'), 2):290.826263312,
(('4', '1', '0', '0', '0', '1', '0', '1'), 3):47.4701368234,
(('1', '0', '1', '-1', '1', '4', '-1', '-1'), 3):258.938031316,
(('2', '-1', '2', '2', '2', '-1', '0', '-1'), 2):230.693937661,
(('0', '2', '2', '2', '0', '1', '0', '1'), 2):10,
(('0', '2', '0', '2', '0', '1', '0', '1'), 3):229.928434631,
(('1', '1', '0', '4', '1', '0', '0', '0'), 0):77.9588074279,
(('1', '0', '1', '-1', '1', '0', '-1', '-1'), 2):264.740285672,
(('1', '0', '-1', '4', '-1', '-1', '1', '1'), 0):-10,
(('1', '-1', '4', '-1', '0', '-1', '-1', '-1'), 2):260.65541458,
(('1', '0', '1', '0', '1', '0', '0', '0'), 0):253.140937306,
(('1', '4', '0', '1', '0', '4', '0', '1'), 2):50.274474757,
(('-1', '2', '1', '4', '-1', '1', '-1', '2'), 0):85.6859868328,
(('4', '1', '0', '1', '4', '0', '0', '0'), 2):48.3805324648,
(('0', '4', '0', '1', '4', '4', '1', '4'), 0):-10,
(('4', '2', '0', '2', '0', '4', '2', '4'), 1):-1000,
(('4', '2', '4', '-1', '4', '0', '-1', '-1'), 0):236.12358733,
(('0', '2', '1', '2', '4', '0', '1', '0'), 0):10,
(('1', '-1', '2', '-1', '1', '-1', '-1', '-1'), 0):347.374957451,
(('0', '-1', '0', '2', '4', '-1', '2', '-1'), 0):104.21649926,
(('1', '0', '0', '1', '1', '0', '1', '0'), 2):242.400739299,
(('4', '-1', '1', '2', '1', '-1', '1', '-1'), 1):78.7415942527,
(('4', '2', '0', '2', '0', '2', '2', '2'), 2):297.58943216,
(('0', '-1', '1', '-1', '0', '-1', '-1', '-1'), 3):190.466489093,
(('0', '-1', '2', '-1', '0', '-1', '-1', '-1'), 0):276.369054752,
(('1', '1', '1', '4', '1', '0', '1', '0'), 3):94.8517368477,
(('0', '2', '2', '4', '0', '0', '4', '0'), 3):103.443481841,
(('2', '2', '0', '4', '0', '1', '2', '0'), 1):10,
(('-1', '4', '0', '2', '-1', '0', '-1', '1'), 0):43.5585324714,
(('4', '-1', '-1', '2', '-1', '-1', '4', '-1'), 2):277.463689685,
(('1', '2', '2', '4', '1', '0', '4', '4'), 0):40,
(('1', '-1', '1', '2', '1', '-1', '1', '-1'), 0):338.263767098,
(('0', '0', '0', '0', '1', '0', '1', '0'), 1):84.9632779073,
(('1', '2', '0', '2', '1', '2', '4', '0'), 0):170.641071645,
(('1', '0', '4', '1', '0', '1', '1', '0'), 1):38.0710387783,
(('4', '-1', '1', '2', '4', '-1', '0', '-1'), 2):129.87721935,
(('0', '4', '0', '1', '0', '4', '0', '1'), 3):78.7254404405,
(('0', '4', '1', '0', '0', '1', '0', '0'), 2):171.726018229,
(('1', '2', '2', '2', '1', '2', '0', '2'), 3):422.544883275,
(('1', '2', '1', '2', '1', '1', '1', '2'), 2):478.583277918,
(('-1', '1', '0', '0', '-1', '1', '-1', '1'), 2):259.271874639,
(('2', '-1', '1', '-1', '2', '-1', '-1', '-1'), 1):344.194263095,
(('0', '2', '0', '2', '0', '0', '1', '0'), 0):280.490833212,
(('2', '2', '0', '2', '1', '2', '2', '0'), 1):10,
(('1', '-1', '-1', '0', '-1', '-1', '0', '-1'), 3):264.207809364,
(('0', '1', '0', '4', '0', '1', '0', '4'), 1):49.5234519436,
(('4', '2', '1', '2', '4', '0', '0', '1'), 0):22.7285859816,
(('0', '1', '4', '1', '0', '0', '1', '0'), 0):49.5906911557,
(('-1', '2', '2', '2', '-1', '4', '-1', '1'), 3):257.295403623,
(('0', '1', '0', '1', '0', '0', '1', '4'), 3):146.220707665,
(('-1', '2', '2', '2', '-1', '1', '-1', '1'), 2):303.669835405,
(('1', '2', '4', '2', '0', '1', '1', '1'), 2):49.7780015428,
(('1', '1', '1', '0', '1', '4', '1', '0'), 1):156.13153235,
(('0', '0', '1', '1', '1', '0', '1', '0'), 3):196.522073354,
(('1', '1', '0', '4', '0', '0', '0', '4'), 3):33.2064137918,
(('0', '4', '-1', '1', '-1', '-1', '0', '4'), 2):186.384569679,
(('2', '2', '0', '2', '2', '0', '0', '1'), 1):688.491029091,
(('2', '2', '4', '2', '0', '1', '2', '1'), 1):415.480699936,
(('-1', '4', '0', '0', '-1', '4', '-1', '0'), 2):81.4758994149,
(('4', '2', '1', '-1', '4', '0', '-1', '-1'), 3):264.725984673,
(('0', '4', '2', '2', '1', '4', '0', '0'), 3):50.6550251083,
(('4', '-1', '0', '2', '1', '-1', '4', '-1'), 2):125.383237999,
(('1', '1', '4', '1', '4', '1', '0', '1'), 0):23.1547782746,
(('1', '0', '1', '-1', '4', '1', '-1', '-1'), 0):131.885600241,
(('4', '1', '0', '1', '4', '0', '1', '1'), 0):112.175688543,
(('0', '1', '0', '4', '0', '0', '4', '0'), 3):95.2689630404,
(('1', '0', '1', '1', '1', '1', '4', '1'), 2):10,
(('4', '2', '0', '2', '1', '0', '1', '2'), 0):43.549915996,
(('1', '1', '0', '1', '1', '0', '0', '1'), 1):179.762489185,
(('0', '2', '1', '2', '0', '1', '4', '1'), 0):194.301398135,
(('-1', '2', '0', '-1', '-1', '1', '-1', '-1'), 0):334.115017722,
(('2', '4', '2', '2', '0', '1', '0', '4'), 1):87.0073746581,
(('4', '0', '1', '1', '0', '0', '1', '1'), 3):-10,
(('2', '2', '1', '2', '1', '4', '1', '4'), 1):10.0,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '0'), 0):225.732018267,
(('2', '2', '4', '2', '1', '0', '2', '0'), 2):159.297711079,
(('-1', '4', '2', '4', '-1', '1', '-1', '4'), 3):50,
(('0', '2', '1', '2', '0', '0', '1', '2'), 2):256.908856486,
(('1', '2', '0', '2', '0', '1', '0', '0'), 0):220.374114231,
(('4', '0', '1', '1', '0', '1', '4', '0'), 3):0,
(('4', '2', '0', '2', '1', '0', '4', '2'), 0):173.824856131,
(('2', '-1', '2', '2', '0', '-1', '1', '-1'), 0):307.713416825,
(('2', '2', '0', '2', '1', '4', '2', '1'), 1):100.140613413,
(('4', '0', '4', '-1', '4', '0', '-1', '-1'), 2):0,
(('1', '1', '0', '0', '0', '1', '0', '1'), 0):211.521199946,
(('4', '1', '0', '4', '4', '0', '4', '1'), 0):50.8498193939,
(('2', '4', '2', '2', '2', '0', '0', '1'), 3):10,
(('2', '2', '4', '2', '1', '0', '1', '0'), 3):30,
(('1', '2', '1', '2', '1', '0', '1', '2'), 2):364.571775982,
(('1', '4', '1', '1', '1', '1', '1', '1'), 0):137.845188088,
(('0', '1', '1', '0', '1', '1', '1', '1'), 3):96.5577442583,
(('0', '4', '-1', '1', '-1', '-1', '0', '1'), 1):243.829100241,
(('0', '2', '0', '2', '0', '1', '1', '1'), 3):171.953013506,
(('0', '0', '1', '4', '1', '1', '0', '0'), 2):122.590535396,
(('-1', '1', '4', '1', '-1', '4', '-1', '0'), 2):179.245506718,
(('1', '4', '1', '0', '1', '1', '0', '0'), 3):230.398298952,
(('0', '4', '4', '0', '4', '4', '0', '0'), 1):58.3228848559,
(('1', '0', '4', '1', '4', '4', '1', '1'), 2):21.5954351406,
(('1', '0', '0', '0', '1', '0', '0', '1'), 1):10,
(('0', '0', '0', '1', '0', '1', '0', '1'), 0):115.86557062,
(('1', '0', '1', '1', '4', '0', '0', '0'), 0):-10,
(('0', '4', '1', '1', '0', '1', '1', '4'), 1):-30,
(('-1', '2', '4', '2', '-1', '2', '-1', '2'), 3):10,
(('4', '-1', '2', '-1', '1', '-1', '-1', '-1'), 2):10,
(('4', '1', '0', '0', '0', '0', '4', '1'), 1):10,
(('0', '1', '0', '4', '0', '0', '0', '0'), 1):207.836768707,
(('0', '2', '-1', '2', '-1', '-1', '1', '1'), 1):274.265018661,
(('2', '2', '1', '2', '2', '2', '2', '4'), 2):10,
(('2', '4', '0', '2', '0', '4', '2', '2'), 1):153.112662764,
(('4', '0', '1', '-1', '4', '1', '-1', '-1'), 3):273.472287933,
(('1', '4', '1', '0', '1', '4', '0', '4'), 3):10,
(('4', '1', '-1', '1', '-1', '-1', '1', '0'), 3):127.883854113,
(('0', '1', '0', '0', '4', '0', '0', '1'), 0):107.250126605,
(('0', '1', '0', '1', '1', '4', '1', '1'), 3):-10.0,
(('1', '2', '2', '2', '1', '1', '0', '2'), 2):178.134030748,
(('0', '2', '0', '4', '0', '2', '0', '4'), 0):64.8879652421,
(('4', '2', '2', '-1', '4', '2', '-1', '-1'), 2):10,
(('-1', '1', '0', '0', '-1', '0', '-1', '4'), 0):29.9558946838,
(('1', '1', '0', '1', '0', '0', '1', '4'), 2):57.0398012029,
(('1', '2', '1', '-1', '1', '0', '-1', '-1'), 1):296.875215257,
(('-1', '2', '1', '2', '-1', '0', '-1', '1'), 1):259.120170348,
(('2', '2', '-1', '2', '-1', '-1', '1', '4'), 1):277.595224051,
(('0', '2', '0', '2', '1', '4', '2', '0'), 2):208.532494829,
(('1', '1', '-1', '4', '-1', '-1', '4', '1'), 3):168.872188815,
(('1', '2', '0', '2', '4', '0', '2', '2'), 0):228.593305851,
(('4', '1', '4', '0', '0', '0', '0', '1'), 0):10,
(('-1', '2', '0', '2', '-1', '4', '-1', '1'), 1):232.195737611,
(('1', '4', '-1', '2', '-1', '-1', '0', '4'), 1):171.223343017,
(('-1', '1', '4', '-1', '-1', '1', '-1', '-1'), 3):199.546261274,
(('4', '0', '4', '1', '1', '0', '1', '1'), 1):0,
(('4', '2', '2', '2', '4', '1', '0', '0'), 3):191.787151291,
(('0', '4', '1', '2', '0', '1', '0', '0'), 0):52.7706197192,
(('1', '0', '-1', '0', '-1', '-1', '0', '0'), 0):275.206839127,
(('1', '0', '1', '1', '1', '1', '0', '1'), 0):174.834708925,
(('4', '1', '0', '1', '4', '1', '4', '1'), 3):61.6819251356,
(('4', '1', '1', '1', '1', '1', '0', '0'), 3):122.884150368,
(('4', '1', '1', '1', '1', '0', '1', '1'), 1):0,
(('0', '-1', '4', '0', '4', '-1', '0', '-1'), 3):80.1949272881,
(('2', '2', '2', '2', '2', '2', '1', '2'), 3):490.479186513,
(('4', '1', '1', '-1', '4', '0', '-1', '-1'), 1):-4.2,
(('2', '2', '2', '2', '2', '4', '2', '0'), 1):316.349635126,
(('1', '2', '1', '-1', '0', '0', '-1', '-1'), 0):305.881084657,
(('4', '2', '0', '4', '0', '0', '4', '1'), 0):41.5126988596,
(('1', '4', '0', '1', '1', '0', '1', '0'), 3):171.899683171,
(('1', '2', '0', '2', '1', '1', '1', '0'), 2):258.507608646,
(('1', '1', '1', '0', '1', '0', '0', '1'), 3):150.302976739,
(('2', '4', '2', '2', '0', '0', '2', '1'), 3):89.2794671346,
(('0', '-1', '1', '1', '1', '-1', '0', '-1'), 0):289.516580328,
(('0', '2', '-1', '4', '-1', '-1', '1', '2'), 3):10,
(('0', '2', '4', '2', '4', '1', '0', '1'), 2):242.993128195,
(('0', '4', '1', '1', '0', '0', '0', '4'), 1):69.0366636905,
(('0', '0', '1', '1', '1', '1', '1', '0'), 0):46.6955798123,
(('2', '2', '0', '2', '2', '0', '2', '0'), 0):362.702384325,
(('0', '1', '1', '4', '0', '1', '4', '0'), 2):41.8335428159,
(('1', '1', '1', '0', '1', '4', '0', '1'), 1):36.9142929605,
(('1', '0', '4', '0', '1', '0', '1', '0'), 0):188.744642995,
(('2', '2', '0', '-1', '0', '2', '-1', '-1'), 0):101.627216816,
(('-1', '4', '1', '0', '-1', '1', '-1', '1'), 0):-10,
(('2', '-1', '2', '4', '0', '-1', '0', '-1'), 1):10,
(('4', '0', '0', '1', '0', '0', '0', '0'), 3):178.911592486,
(('1', '1', '0', '0', '4', '0', '0', '0'), 1):92.4549669708,
(('1', '1', '-1', '0', '-1', '-1', '1', '0'), 1):238.363832089,
(('1', '1', '0', '1', '1', '4', '0', '0'), 0):10,
(('4', '-1', '0', '2', '4', '-1', '2', '-1'), 0):10,
(('2', '2', '1', '2', '1', '0', '1', '0'), 1):252.335939727,
(('1', '4', '0', '1', '1', '4', '1', '1'), 3):0,
(('2', '2', '2', '2', '0', '0', '2', '1'), 2):-192.0,
(('0', '0', '0', '0', '1', '0', '0', '4'), 1):10,
(('-1', '4', '1', '1', '-1', '4', '-1', '1'), 1):-66.5492852013,
(('1', '2', '2', '2', '4', '2', '1', '0'), 0):115.523563357,
(('1', '1', '0', '1', '0', '1', '4', '1'), 3):0,
(('1', '-1', '4', '2', '4', '-1', '1', '-1'), 2):220.753907266,
(('2', '2', '2', '2', '1', '1', '0', '0'), 1):255.922769168,
(('1', '0', '4', '-1', '1', '1', '-1', '-1'), 2):28.6920395591,
(('0', '1', '0', '1', '0', '4', '0', '1'), 3):200.797553985,
(('0', '2', '4', '2', '1', '4', '0', '1'), 2):34.0174853621,
(('1', '-1', '2', '2', '2', '-1', '2', '-1'), 3):403.114603168,
(('1', '-1', '4', '-1', '0', '-1', '-1', '-1'), 0):258.436325165,
(('2', '2', '2', '4', '0', '0', '4', '4'), 1):12.1027490313,
(('1', '1', '0', '1', '0', '4', '0', '1'), 1):124.846964118,
(('0', '1', '1', '1', '1', '4', '0', '0'), 3):-10,
(('1', '2', '0', '2', '1', '1', '1', '1'), 3):115.334257814,
(('2', '4', '0', '2', '2', '4', '2', '0'), 1):128.350788021,
(('1', '1', '1', '1', '1', '1', '0', '1'), 3):210.259635133,
(('1', '2', '1', '-1', '1', '2', '-1', '-1'), 2):404.446299356,
(('0', '0', '4', '1', '0', '4', '0', '1'), 1):69.475497272,
(('0', '-1', '0', '2', '2', '-1', '0', '-1'), 0):275.903325572,
(('4', '2', '0', '2', '1', '2', '0', '0'), 0):193.947229283,
(('-1', '1', '4', '-1', '-1', '4', '-1', '-1'), 2):131.958973077,
(('2', '2', '2', '2', '4', '0', '0', '0'), 1):165.697860121,
(('2', '2', '-1', '4', '-1', '-1', '0', '4'), 1):267.944062345,
(('4', '2', '0', '2', '0', '0', '1', '0'), 0):235.445433471,
(('4', '2', '1', '-1', '1', '0', '-1', '-1'), 1):238.849177571,
(('1', '-1', '1', '1', '1', '-1', '1', '-1'), 3):211.058292179,
(('2', '2', '2', '2', '1', '4', '1', '1'), 3):30,
(('1', '1', '0', '1', '1', '0', '1', '4'), 2):37.1960710784,
(('-1', '2', '1', '-1', '-1', '0', '-1', '-1'), 2):290.226408876,
(('1', '2', '2', '4', '1', '2', '1', '0'), 3):220.792918085,
(('-1', '1', '0', '0', '-1', '4', '-1', '1'), 2):53.5446622899,
(('2', '4', '2', '2', '0', '4', '0', '4'), 3):10,
(('2', '2', '2', '2', '0', '1', '2', '2'), 1):131.791288075,
(('0', '1', '1', '1', '1', '0', '0', '0'), 0):223.735970273,
(('4', '2', '4', '2', '0', '0', '0', '0'), 0):50,
(('4', '2', '1', '2', '1', '2', '0', '0'), 2):146.105037549,
(('0', '2', '1', '2', '4', '2', '0', '2'), 0):217.914442405,
(('0', '2', '1', '4', '1', '0', '0', '0'), 1):92.2157220725,
(('2', '2', '2', '2', '0', '0', '4', '2'), 1):10,
(('0', '1', '4', '1', '4', '0', '1', '1'), 0):78.9053531101,
(('0', '0', '1', '4', '1', '0', '0', '0'), 2):78.478122383,
(('1', '2', '4', '2', '0', '4', '2', '2'), 2):10,
(('0', '2', '1', '2', '0', '4', '1', '2'), 0):60,
(('1', '1', '4', '1', '1', '1', '0', '1'), 3):31.9854452463,
(('-1', '1', '4', '0', '-1', '4', '-1', '1'), 3):14.8044846046,
(('0', '4', '4', '1', '4', '4', '0', '4'), 0):38.1809981952,
(('4', '1', '0', '0', '4', '0', '0', '0'), 1):72.8809646961,
(('1', '2', '4', '2', '4', '0', '0', '0'), 0):54.9923452238,
(('1', '0', '1', '-1', '0', '4', '-1', '-1'), 1):10,
(('0', '2', '2', '2', '1', '2', '1', '2'), 3):499.000220924,
(('1', '4', '-1', '4', '-1', '-1', '1', '4'), 1):130.430303382,
(('1', '2', '0', '2', '0', '4', '1', '4'), 2):155.567054066,
(('2', '-1', '0', '2', '0', '-1', '1', '-1'), 2):290.946532252,
(('2', '2', '0', '2', '1', '0', '2', '0'), 1):318.942888137,
(('4', '1', '-1', '0', '-1', '-1', '1', '0'), 2):45.8159075287,
(('-1', '2', '4', '2', '-1', '0', '-1', '2'), 0):306.157118802,
(('2', '2', '0', '4', '1', '1', '4', '0'), 1):10,
(('0', '4', '0', '1', '0', '0', '0', '1'), 2):226.33815296,
(('1', '1', '1', '1', '1', '1', '0', '0'), 1):222.811705369,
(('4', '2', '4', '2', '4', '4', '2', '0'), 2):11.8,
(('4', '0', '1', '0', '1', '0', '4', '0'), 1):31.0081798839,
(('0', '2', '0', '2', '4', '1', '0', '1'), 2):212.888307816,
(('2', '2', '-1', '4', '-1', '-1', '2', '4'), 1):262.014940512,
(('0', '1', '0', '1', '0', '0', '0', '1'), 2):241.120233982,
(('0', '1', '0', '0', '0', '0', '4', '1'), 0):110.961095419,
(('0', '1', '1', '0', '1', '4', '0', '0'), 2):163.198647275,
(('1', '-1', '1', '-1', '1', '-1', '-1', '-1'), 1):323.822378982,
(('1', '2', '-1', '4', '-1', '-1', '0', '4'), 3):102.794645754,
(('2', '2', '1', '2', '4', '1', '1', '1'), 1):10.0,
(('0', '2', '0', '2', '4', '0', '2', '0'), 0):-1000,
(('1', '2', '2', '2', '2', '0', '4', '1'), 3):58.5233461364,
(('-1', '2', '0', '2', '-1', '2', '-1', '4'), 0):231.761135322,
(('0', '2', '1', '2', '1', '0', '0', '0'), 2):290.572152071,
(('1', '2', '2', '2', '1', '2', '2', '0'), 3):461.534445845,
(('2', '2', '-1', '2', '-1', '-1', '4', '0'), 1):263.176766495,
(('1', '4', '2', '2', '1', '2', '0', '0'), 3):194.143634335,
(('1', '1', '-1', '0', '-1', '-1', '0', '0'), 3):219.192560099,
(('0', '0', '1', '1', '1', '0', '1', '1'), 1):97.1770881243,
(('4', '2', '2', '-1', '0', '2', '-1', '-1'), 3):311.076495348,
(('0', '4', '1', '0', '0', '4', '0', '0'), 2):33.3905207386,
(('0', '2', '2', '2', '2', '1', '0', '0'), 2):71.3930166854,
(('2', '4', '0', '-1', '0', '0', '-1', '-1'), 2):61.7145538266,
(('2', '2', '1', '2', '0', '1', '0', '0'), 2):229.284172337,
(('-1', '1', '0', '0', '-1', '0', '-1', '0'), 1):219.524616772,
(('0', '-1', '-1', '2', '-1', '-1', '1', '-1'), 2):301.738704919,
(('0', '0', '4', '1', '0', '0', '1', '0'), 2):192.670052585,
(('1', '1', '0', '0', '4', '0', '0', '1'), 0):26.2097880534,
(('1', '0', '1', '1', '1', '0', '1', '0'), 2):237.778922867,
(('0', '0', '-1', '1', '-1', '-1', '4', '1'), 2):57.6401031492,
(('4', '-1', '1', '0', '1', '-1', '0', '-1'), 0):273.440197955,
(('-1', '0', '1', '1', '-1', '1', '-1', '1'), 3):228.459631686,
(('4', '0', '0', '0', '0', '0', '4', '1'), 3):-10,
(('4', '2', '0', '2', '4', '2', '0', '0'), 0):74.9144307628,
(('-1', '4', '2', '2', '-1', '2', '-1', '4'), 2):10,
(('2', '2', '1', '2', '0', '1', '0', '1'), 2):223.474072201,
(('2', '2', '1', '2', '1', '2', '1', '2'), 1):150,
(('-1', '4', '0', '2', '-1', '1', '-1', '1'), 2):49.2091257053,
(('4', '2', '1', '2', '1', '2', '0', '2'), 0):308.765905394,
(('0', '0', '1', '1', '0', '0', '1', '0'), 3):213.496666325,
(('1', '1', '0', '4', '0', '0', '1', '1'), 2):31.7579763125,
(('1', '4', '0', '1', '0', '4', '0', '0'), 1):48.1567583699,
(('2', '2', '0', '2', '1', '4', '1', '4'), 1):72.6965079072,
(('0', '-1', '2', '4', '2', '-1', '0', '-1'), 3):157.250161677,
(('1', '4', '1', '4', '1', '0', '0', '0'), 3):66.5369582829,
(('2', '2', '2', '2', '1', '4', '2', '4'), 3):74.5198114651,
(('0', '4', '-1', '1', '-1', '-1', '1', '0'), 2):241.507681369,
(('2', '2', '0', '2', '2', '0', '0', '0'), 2):294.22828194,
(('1', '4', '4', '1', '1', '4', '1', '0'), 1):0,
(('1', '1', '1', '1', '1', '0', '1', '0'), 2):216.75569421,
(('0', '2', '2', '2', '2', '0', '1', '2'), 0):230.294027248,
(('2', '2', '2', '2', '0', '1', '0', '0'), 1):276.910284426,
(('1', '2', '-1', '2', '-1', '-1', '4', '0'), 0):265.276371983,
(('2', '2', '1', '2', '2', '0', '4', '0'), 1):190.189294227,
(('2', '2', '0', '2', '0', '1', '0', '0'), 1):243.130294241,
(('0', '1', '0', '0', '0', '0', '1', '1'), 1):8.06716148611,
(('-1', '4', '2', '-1', '-1', '1', '-1', '-1'), 3):88.2616068221,
(('1', '0', '1', '1', '0', '1', '0', '0'), 0):208.924829375,
(('0', '2', '0', '2', '0', '4', '1', '4'), 0):57.1526003655,
(('0', '4', '2', '4', '1', '0', '0', '4'), 3):54.6440550063,
(('0', '1', '0', '4', '0', '1', '4', '0'), 1):0,
(('0', '-1', '0', '0', '0', '-1', '4', '-1'), 0):83.4439660201,
(('-1', '4', '0', '1', '-1', '4', '-1', '1'), 1):59.922471293,
(('1', '0', '1', '0', '0', '0', '0', '0'), 1):251.334848153,
(('2', '2', '4', '2', '1', '4', '2', '0'), 2):99.4947234446,
(('-1', '0', '1', '1', '-1', '4', '-1', '1'), 0):70.8566983239,
(('0', '2', '1', '2', '0', '1', '4', '0'), 3):185.867571528,
(('2', '2', '-1', '2', '-1', '-1', '2', '4'), 0):203.459195151,
(('0', '2', '0', '4', '0', '0', '0', '1'), 2):154.843197399,
(('2', '-1', '2', '2', '2', '-1', '1', '-1'), 0):377.944771188,
(('1', '2', '2', '2', '0', '1', '1', '0'), 0):82.7520040757,
(('1', '0', '0', '1', '4', '0', '0', '0'), 3):123.565908376,
(('1', '2', '0', '2', '0', '0', '4', '2'), 2):122.239518214,
(('0', '2', '1', '2', '1', '2', '4', '1'), 0):59.7585493965,
(('1', '0', '1', '1', '1', '0', '4', '0'), 2):141.528405334,
(('2', '2', '-1', '4', '-1', '-1', '2', '4'), 2):10,
(('0', '2', '1', '2', '0', '2', '1', '1'), 0):85.9660789529,
(('1', '2', '1', '2', '1', '0', '4', '0'), 0):164.575654461,
(('1', '2', '0', '2', '4', '0', '2', '1'), 2):10,
(('0', '2', '2', '4', '0', '1', '4', '4'), 3):99.9549689628,
(('1', '4', '0', '-1', '1', '4', '-1', '-1'), 0):10,
(('1', '2', '2', '2', '0', '2', '0', '0'), 2):177.877138722,
(('1', '1', '1', '0', '1', '4', '0', '4'), 1):-10,
(('-1', '2', '0', '-1', '-1', '4', '-1', '-1'), 2):254.588529213,
(('4', '2', '2', '2', '0', '1', '0', '0'), 0):10,
(('0', '-1', '0', '0', '1', '-1', '0', '-1'), 2):277.767404613,
(('1', '1', '1', '1', '4', '1', '1', '0'), 2):58.48996499,
(('0', '1', '1', '0', '0', '1', '4', '0'), 2):41.3428454221,
(('1', '1', '4', '0', '1', '1', '0', '0'), 1):-10,
(('0', '1', '1', '1', '0', '0', '1', '1'), 3):201.096787723,
(('0', '2', '1', '2', '0', '2', '1', '0'), 2):100,
(('4', '1', '4', '0', '0', '1', '0', '1'), 3):0,
(('2', '2', '2', '-1', '0', '0', '-1', '-1'), 3):339.511396664,
(('1', '2', '2', '2', '1', '2', '0', '1'), 0):228.904053907,
(('0', '-1', '1', '2', '4', '-1', '0', '-1'), 3):246.418833874,
(('0', '0', '0', '1', '0', '0', '0', '4'), 0):49.208734948,
(('4', '1', '-1', '1', '-1', '-1', '4', '0'), 0):200.176138218,
(('1', '1', '1', '1', '0', '1', '0', '1'), 1):199.646251701,
(('-1', '2', '2', '-1', '-1', '1', '-1', '-1'), 1):334.532577187,
(('-1', '1', '0', '1', '-1', '0', '-1', '0'), 3):223.788021038,
(('4', '-1', '-1', '0', '-1', '-1', '4', '-1'), 1):64.5577152488,
(('4', '2', '0', '2', '4', '0', '2', '0'), 1):48.6477901213,
(('0', '1', '0', '1', '0', '4', '1', '1'), 0):135.861445287,
(('2', '4', '2', '2', '0', '4', '2', '0'), 3):139.353207363,
(('1', '2', '0', '2', '1', '4', '0', '0'), 2):169.767405163,
(('1', '4', '-1', '0', '-1', '-1', '1', '4'), 1):93.0802111483,
(('0', '1', '4', '1', '1', '1', '0', '1'), 1):85.6075368555,
(('0', '0', '0', '-1', '0', '0', '-1', '-1'), 3):268.40345454,
(('4', '1', '0', '1', '0', '1', '1', '1'), 1):181.287793991,
(('0', '4', '-1', '0', '-1', '-1', '0', '4'), 1):197.678998259,
(('4', '1', '0', '-1', '0', '0', '-1', '-1'), 2):265.330571293,
(('0', '-1', '4', '2', '1', '-1', '1', '-1'), 2):10,
(('1', '2', '4', '2', '0', '4', '1', '1'), 1):73.1264990081,
(('2', '2', '4', '2', '4', '4', '0', '0'), 1):123.99455155,
(('4', '1', '1', '1', '4', '0', '0', '1'), 0):47.5791290534,
(('1', '1', '-1', '4', '-1', '-1', '4', '0'), 0):121.737673188,
(('1', '1', '-1', '4', '-1', '-1', '0', '1'), 1):201.502190018,
(('0', '2', '0', '2', '0', '4', '2', '0'), 2):239.618907525,
(('0', '1', '0', '1', '0', '1', '0', '0'), 0):209.373893287,
(('1', '1', '0', '1', '4', '0', '1', '0'), 2):140.56690822,
(('2', '2', '1', '2', '0', '2', '0', '4'), 1):0,
(('1', '2', '0', '-1', '1', '1', '-1', '-1'), 1):335.199392438,
(('2', '2', '1', '2', '2', '4', '0', '4'), 1):79.90035058,
(('4', '-1', '-1', '2', '-1', '-1', '0', '-1'), 1):276.70797486,
(('1', '2', '0', '2', '0', '0', '1', '2'), 0):361.114749024,
(('-1', '1', '0', '-1', '-1', '1', '-1', '-1'), 2):237.877243618,
(('1', '1', '-1', '4', '-1', '-1', '4', '4'), 3):88.52872453,
(('0', '2', '2', '2', '0', '0', '0', '4'), 3):234.334767222,
(('2', '2', '1', '4', '0', '0', '0', '0'), 1):23.5242423227,
(('0', '2', '2', '2', '1', '2', '0', '4'), 0):93.3217270878,
(('0', '0', '1', '1', '0', '4', '0', '0'), 2):85.5875132508,
(('4', '4', '4', '1', '4', '4', '0', '0'), 0):0,
(('1', '1', '4', '1', '1', '1', '0', '0'), 2):46.0270715129,
(('4', '0', '0', '1', '1', '0', '0', '0'), 0):45.953488169,
(('0', '1', '0', '-1', '0', '4', '-1', '-1'), 2):231.307776744,
(('1', '-1', '4', '0', '1', '-1', '1', '-1'), 0):152.280396846,
(('1', '4', '0', '2', '1', '0', '2', '2'), 2):220,
(('1', '2', '-1', '2', '-1', '-1', '1', '0'), 2):163.275111616,
(('1', '4', '0', '2', '1', '0', '0', '0'), 2):35.849276113,
(('2', '2', '-1', '2', '-1', '-1', '2', '0'), 0):368.940566793,
(('1', '2', '2', '-1', '2', '2', '-1', '-1'), 2):417.585603062,
(('1', '0', '0', '1', '1', '0', '4', '0'), 0):155.570727642,
(('0', '0', '1', '1', '0', '1', '0', '4'), 2):0,
(('-1', '4', '1', '0', '-1', '1', '-1', '0'), 2):232.434822599,
(('2', '2', '0', '2', '0', '1', '1', '0'), 1):183.240810264,
(('0', '1', '1', '4', '1', '0', '4', '4'), 2):0,
(('0', '-1', '0', '1', '4', '-1', '1', '-1'), 2):169.848276567,
(('2', '2', '1', '4', '1', '0', '1', '0'), 1):132.334916543,
(('1', '4', '2', '2', '2', '0', '2', '0'), 3):10,
(('1', '4', '1', '2', '1', '1', '1', '0'), 1):95.0819412215,
(('2', '2', '1', '-1', '1', '2', '-1', '-1'), 0):533.286642038,
(('0', '1', '4', '0', '4', '4', '0', '1'), 1):54.6856661703,
(('-1', '4', '0', '0', '-1', '1', '-1', '0'), 1):10,
(('-1', '4', '1', '1', '-1', '4', '-1', '4'), 0):40.5744293463,
(('1', '2', '1', '2', '1', '2', '1', '0'), 0):356.030570276,
(('2', '2', '0', '-1', '4', '0', '-1', '-1'), 2):254.221319704,
(('2', '2', '1', '2', '1', '2', '2', '0'), 2):10,
(('4', '4', '4', '0', '4', '4', '0', '4'), 2):0,
(('0', '0', '4', '0', '1', '0', '0', '0'), 1):124.732833566,
(('1', '1', '1', '1', '1', '4', '1', '1'), 0):127.022255737,
(('0', '2', '0', '-1', '0', '0', '-1', '-1'), 3):346.073527121,
(('2', '4', '0', '2', '2', '4', '2', '4'), 1):10,
(('1', '-1', '0', '1', '0', '-1', '4', '-1'), 2):175.774033011,
(('1', '4', '0', '1', '0', '4', '1', '1'), 0):71.7089207513,
(('1', '0', '0', '1', '4', '1', '1', '0'), 3):0,
(('1', '2', '2', '2', '4', '1', '1', '1'), 0):30,
(('1', '0', '1', '4', '1', '0', '4', '4'), 3):42.0772317862,
(('2', '4', '4', '2', '4', '4', '2', '1'), 1):10,
(('2', '2', '1', '2', '1', '1', '0', '4'), 1):250.047837571,
(('0', '-1', '4', '2', '0', '-1', '1', '-1'), 3):80.6744456444,
(('4', '-1', '2', '2', '2', '-1', '0', '-1'), 0):190.7168035,
(('1', '-1', '1', '2', '4', '-1', '0', '-1'), 0):176.286731076,
(('4', '2', '2', '2', '2', '2', '4', '2'), 2):10,
(('1', '2', '1', '2', '4', '0', '1', '2'), 0):246.953187987,
(('0', '2', '4', '2', '1', '0', '1', '1'), 0):10,
(('0', '4', '2', '2', '2', '1', '0', '4'), 3):85.8830313723,
(('0', '2', '2', '4', '2', '0', '0', '4'), 0):50,
(('4', '2', '1', '2', '1', '0', '1', '0'), 1):96.9426120137,
(('1', '1', '1', '4', '1', '1', '4', '4'), 0):58.9158261431,
(('2', '2', '2', '2', '1', '1', '0', '2'), 1):67.3831674813,
(('1', '4', '0', '1', '0', '0', '0', '4'), 1):-21.3470317181,
(('4', '2', '2', '4', '0', '1', '0', '4'), 3):100.712089212,
(('0', '1', '4', '0', '1', '0', '0', '0'), 0):150.859043838,
(('1', '1', '0', '-1', '1', '0', '-1', '-1'), 2):254.789845633,
(('1', '4', '0', '0', '1', '0', '1', '0'), 3):183.458576361,
(('0', '4', '0', '2', '0', '0', '0', '4'), 0):54.7599199429,
(('4', '1', '0', '-1', '4', '0', '-1', '-1'), 2):201.028307358,
(('2', '2', '1', '2', '0', '1', '4', '2'), 1):10,
(('0', '2', '1', '-1', '0', '4', '-1', '-1'), 1):22.6786906612,
(('1', '4', '1', '1', '1', '4', '0', '0'), 2):0,
(('0', '-1', '0', '4', '0', '-1', '0', '-1'), 0):231.347464531,
(('0', '1', '-1', '0', '-1', '-1', '0', '0'), 3):247.538901526,
(('0', '2', '2', '4', '2', '0', '1', '0'), 0):10,
(('1', '4', '2', '2', '2', '0', '1', '0'), 3):202.316885154,
(('2', '4', '1', '-1', '1', '1', '-1', '-1'), 1):268.84804972,
(('2', '2', '1', '2', '1', '0', '0', '1'), 0):10,
(('0', '2', '1', '2', '4', '2', '1', '0'), 0):10,
(('2', '-1', '2', '4', '1', '-1', '2', '-1'), 3):10,
(('2', '2', '2', '4', '2', '2', '4', '0'), 1):10,
(('1', '2', '2', '4', '2', '0', '1', '4'), 3):199.0927002,
(('1', '4', '4', '1', '1', '4', '0', '4'), 2):10,
(('2', '2', '1', '2', '1', '2', '2', '2'), 2):900,
(('0', '1', '1', '1', '1', '0', '1', '0'), 3):86.1135190239,
(('0', '1', '1', '0', '0', '1', '4', '1'), 0):125.739755877,
(('0', '2', '1', '2', '0', '2', '4', '1'), 0):10,
(('-1', '4', '1', '1', '-1', '1', '-1', '1'), 2):124.494203106,
(('4', '1', '0', '4', '4', '0', '4', '0'), 0):0,
(('4', '0', '0', '1', '1', '0', '1', '1'), 2):10,
(('0', '1', '1', '1', '0', '0', '0', '1'), 0):227.604463057,
(('2', '2', '0', '4', '2', '0', '0', '4'), 1):35.6887772563,
(('0', '2', '1', '4', '0', '1', '4', '2'), 0):10.0,
(('0', '2', '1', '2', '1', '0', '1', '1'), 0):232.588589009,
(('1', '-1', '1', '1', '1', '-1', '4', '-1'), 2):204.807443966,
(('0', '4', '2', '2', '1', '0', '0', '4'), 3):-72.692209427,
(('0', '2', '2', '-1', '4', '0', '-1', '-1'), 2):10,
(('4', '-1', '-1', '1', '-1', '-1', '4', '-1'), 1):175.399619427,
(('2', '2', '0', '4', '0', '1', '1', '1'), 1):10,
(('2', '2', '2', '2', '0', '1', '2', '0'), 0):10,
(('-1', '2', '4', '-1', '-1', '0', '-1', '-1'), 1):261.355980663,
(('1', '-1', '0', '2', '0', '-1', '1', '-1'), 0):285.033500192,
(('4', '2', '0', '-1', '4', '0', '-1', '-1'), 3):95.069877026,
(('2', '2', '4', '2', '4', '1', '0', '0'), 2):37.7523001426,
(('0', '2', '2', '2', '1', '1', '0', '0'), 2):87.0613370296,
(('4', '2', '2', '2', '2', '0', '0', '0'), 1):66.8067135738,
(('1', '0', '1', '1', '0', '0', '4', '0'), 1):10,
(('0', '0', '4', '1', '4', '4', '0', '0'), 2):75.1183692636,
(('0', '2', '1', '2', '4', '0', '0', '2'), 2):-77.342761426,
(('1', '1', '1', '0', '1', '1', '1', '0'), 2):209.434062443,
(('0', '4', '-1', '2', '-1', '-1', '0', '1'), 3):103.627586284,
(('0', '4', '4', '1', '0', '4', '0', '1'), 2):50,
(('0', '4', '1', '1', '0', '0', '1', '1'), 1):0,
(('2', '2', '0', '2', '2', '4', '2', '4'), 2):10,
(('1', '2', '1', '4', '0', '1', '0', '1'), 3):10,
(('2', '2', '2', '2', '2', '1', '2', '0'), 3):350.131456094,
(('2', '2', '0', '2', '0', '4', '4', '4'), 1):10,
(('1', '2', '1', '2', '4', '1', '1', '2'), 0):94.5910642434,
(('-1', '0', '4', '1', '-1', '0', '-1', '1'), 0):197.153536406,
(('0', '0', '0', '4', '1', '0', '0', '0'), 3):10,
(('1', '1', '0', '0', '0', '1', '1', '1'), 3):114.148879753,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '1'), 3):70.170586804,
(('2', '4', '2', '-1', '2', '1', '-1', '-1'), 3):10,
(('0', '2', '4', '2', '4', '4', '2', '4'), 0):10,
(('1', '2', '2', '2', '2', '0', '0', '0'), 2):118.770946686,
(('2', '4', '0', '2', '2', '4', '0', '1'), 1):10,
(('0', '2', '2', '2', '0', '0', '0', '2'), 2):308.043922362,
(('0', '0', '0', '4', '0', '0', '4', '0'), 0):96.6186170955,
(('0', '1', '0', '1', '0', '0', '4', '0'), 2):130.065857647,
(('-1', '1', '4', '-1', '-1', '0', '-1', '-1'), 2):174.887598901,
(('1', '1', '1', '4', '1', '0', '0', '1'), 0):33.2385008044,
(('0', '1', '1', '1', '1', '4', '1', '1'), 2):0,
(('1', '2', '2', '2', '0', '1', '1', '1'), 0):130,
(('-1', '0', '0', '-1', '-1', '0', '-1', '-1'), 1):243.353411195,
(('0', '1', '1', '0', '1', '1', '4', '0'), 1):49.5702101408,
(('0', '2', '2', '2', '2', '2', '0', '4'), 3):262.92387467,
(('0', '1', '1', '1', '0', '4', '1', '0'), 0):-793.25147255,
(('4', '1', '1', '0', '0', '0', '0', '1'), 2):0,
(('1', '0', '4', '1', '1', '1', '1', '0'), 1):0,
(('1', '2', '1', '2', '1', '1', '4', '4'), 3):14.1894932294,
(('0', '1', '4', '1', '0', '1', '1', '1'), 2):190.2878921,
(('4', '0', '1', '1', '0', '1', '0', '0'), 3):0,
(('0', '0', '0', '4', '0', '1', '0', '1'), 3):0,
(('0', '1', '4', '0', '4', '1', '0', '0'), 0):162.397877462,
(('1', '2', '4', '-1', '1', '4', '-1', '-1'), 3):215.010295785,
(('1', '1', '1', '0', '4', '1', '1', '1'), 3):10,
(('0', '2', '0', '4', '0', '2', '0', '0'), 0):166.039321389,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '2'), 0):299.661203928,
(('2', '2', '0', '-1', '0', '1', '-1', '-1'), 0):263.878102254,
(('-1', '1', '4', '0', '-1', '1', '-1', '0'), 1):111.377798245,
(('0', '1', '0', '0', '0', '1', '1', '0'), 2):10,
(('1', '-1', '0', '4', '0', '-1', '1', '-1'), 1):180.66916115,
(('0', '1', '0', '4', '0', '1', '0', '1'), 0):221.306055298,
(('2', '4', '4', '4', '4', '0', '4', '4'), 1):50,
(('4', '2', '2', '-1', '2', '1', '-1', '-1'), 1):130,
(('1', '0', '0', '0', '1', '0', '1', '0'), 1):253.420178982,
(('4', '0', '-1', '4', '-1', '-1', '0', '4'), 0):50,
(('2', '2', '0', '4', '2', '0', '1', '4'), 1):41.6996524731,
(('0', '2', '1', '4', '1', '0', '0', '1'), 0):52.5385104726,
(('1', '-1', '4', '2', '1', '-1', '2', '-1'), 2):185.10751146,
(('4', '2', '1', '2', '1', '1', '4', '1'), 3):51.2752890753,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '1'), 0):260.718516495,
(('0', '1', '1', '4', '0', '0', '0', '0'), 2):75.2824163163,
(('1', '1', '4', '1', '0', '1', '1', '1'), 3):122.855940888,
(('2', '2', '2', '2', '0', '2', '1', '2'), 1):445.052186146,
(('1', '4', '-1', '1', '-1', '-1', '0', '4'), 2):93.8846316077,
(('4', '2', '0', '2', '2', '2', '4', '2'), 2):10,
(('2', '2', '0', '2', '2', '2', '2', '0'), 2):529.07816515,
(('2', '2', '2', '-1', '1', '1', '-1', '-1'), 2):292.191397986,
(('1', '0', '1', '1', '0', '1', '1', '0'), 2):203.752945337,
(('1', '2', '0', '2', '1', '4', '0', '2'), 0):10,
(('2', '-1', '4', '2', '0', '-1', '0', '-1'), 2):10,
(('2', '2', '4', '2', '2', '0', '2', '2'), 0):10,
(('1', '1', '-1', '1', '-1', '-1', '1', '1'), 3):221.753894951,
(('0', '2', '2', '-1', '1', '1', '-1', '-1'), 0):282.724980058,
(('4', '1', '0', '0', '0', '1', '0', '1'), 0):71.1704620898,
(('1', '0', '1', '-1', '1', '4', '-1', '-1'), 2):272.584185736,
(('2', '-1', '2', '2', '2', '-1', '0', '-1'), 3):272.034272673,
(('2', '2', '1', '2', '1', '4', '0', '0'), 0):56.2323587032,
(('0', '2', '0', '2', '0', '1', '0', '1'), 2):235.012607029,
(('1', '1', '1', '1', '1', '4', '0', '1'), 1):45.3270815751,
(('1', '1', '1', '4', '0', '0', '0', '1'), 1):0,
(('1', '1', '0', '4', '1', '0', '0', '0'), 1):0,
(('1', '2', '0', '-1', '4', '1', '-1', '-1'), 1):10,
(('1', '2', '2', '4', '1', '0', '0', '4'), 0):60,
(('1', '-1', '4', '-1', '0', '-1', '-1', '-1'), 1):237.002592742,
(('1', '0', '1', '0', '1', '0', '0', '0'), 1):229.219577596,
(('0', '4', '4', '2', '1', '4', '0', '2'), 2):10,
(('0', '0', '0', '1', '0', '4', '0', '0'), 3):115.939663722,
(('0', '2', '2', '2', '0', '1', '1', '4'), 3):10,
(('-1', '1', '4', '0', '-1', '4', '-1', '1'), 2):-10,
(('4', '0', '0', '1', '0', '0', '0', '1'), 1):137.327092782,
(('4', '-1', '1', '2', '1', '-1', '1', '-1'), 0):78.0853611971,
(('0', '-1', '1', '-1', '0', '-1', '-1', '-1'), 2):183.034130205,
(('0', '2', '1', '2', '1', '4', '0', '0'), 3):208.288714413,
(('1', '1', '1', '4', '1', '0', '1', '0'), 0):117.752879245,
(('4', '-1', '-1', '2', '-1', '-1', '4', '-1'), 3):233.287486142,
(('1', '2', '2', '4', '1', '0', '4', '4'), 3):51.1564937774,
(('0', '2', '4', '2', '2', '4', '1', '0'), 3):11.8,
(('1', '-1', '1', '2', '1', '-1', '1', '-1'), 1):298.618231065,
(('0', '0', '0', '0', '1', '0', '1', '0'), 0):10,
(('1', '2', '0', '2', '2', '0', '2', '2'), 2):224.281708308,
(('2', '2', '1', '2', '2', '2', '0', '2'), 0):247.734177972,
(('0', '4', '0', '1', '0', '4', '0', '1'), 2):82.5149153323,
(('0', '1', '0', '0', '0', '0', '0', '4'), 2):151.552556532,
(('1', '2', '2', '2', '1', '2', '0', '2'), 2):450.032884901,
(('4', '2', '1', '2', '0', '0', '1', '0'), 3):52.4169685713,
(('-1', '2', '0', '4', '-1', '0', '-1', '2'), 0):180.276342397,
(('2', '2', '0', '2', '1', '1', '0', '1'), 1):239.334966216,
(('4', '0', '0', '1', '1', '0', '1', '0'), 0):70.4076739164,
(('2', '-1', '1', '-1', '2', '-1', '-1', '-1'), 0):376.477251729,
(('0', '4', '0', '0', '1', '0', '0', '4'), 3):10.0562214482,
(('0', '2', '0', '2', '0', '0', '1', '0'), 1):241.00534175,
(('1', '0', '1', '4', '1', '1', '4', '0'), 1):77.3529292187,
(('2', '2', '0', '2', '0', '1', '1', '4'), 1):10,
(('2', '2', '0', '2', '0', '4', '4', '1'), 1):30,
(('1', '-1', '-1', '0', '-1', '-1', '0', '-1'), 2):257.672431131,
(('0', '1', '0', '4', '0', '1', '0', '4'), 0):18.8467036492,
(('0', '2', '4', '2', '2', '1', '0', '0'), 3):10,
(('-1', '2', '2', '2', '-1', '4', '-1', '1'), 2):140.494662728,
(('0', '1', '0', '1', '0', '0', '1', '4'), 0):152.455763552,
(('1', '0', '-1', '4', '-1', '-1', '4', '0'), 1):73.7517770143,
(('2', '4', '0', '2', '1', '0', '1', '0'), 1):60.4105436801,
(('0', '0', '1', '1', '1', '0', '1', '0'), 2):104.960972208,
(('1', '0', '4', '0', '0', '0', '1', '0'), 0):98.9718892562,
(('-1', '0', '1', '4', '-1', '1', '-1', '4'), 3):90.9982426629,
(('0', '2', '-1', '2', '-1', '-1', '4', '4'), 0):239.18755385,
(('0', '4', '-1', '1', '-1', '-1', '0', '4'), 1):163.670363979,
(('2', '2', '1', '2', '2', '4', '0', '2'), 0):10,
(('0', '2', '1', '2', '0', '1', '0', '1'), 1):158.955539088,
(('4', '2', '0', '-1', '1', '1', '-1', '-1'), 0):114.654074677,
(('4', '2', '1', '-1', '4', '0', '-1', '-1'), 2):1200,
(('2', '2', '0', '2', '2', '1', '2', '2'), 0):325.670532727,
(('1', '1', '1', '1', '1', '0', '0', '4'), 1):0,
(('1', '1', '4', '1', '4', '1', '0', '1'), 1):89.933595024,
(('0', '0', '1', '1', '0', '1', '0', '1'), 1):158.130863015,
(('4', '1', '0', '1', '4', '0', '1', '1'), 3):98.7841902529,
(('0', '-1', '1', '2', '1', '-1', '0', '-1'), 0):282.062450417,
(('-1', '1', '0', '4', '-1', '4', '-1', '4'), 3):0,
(('4', '0', '1', '0', '1', '1', '4', '0'), 1):0,
(('0', '4', '1', '0', '0', '4', '0', '4'), 1):45.0546522009,
(('4', '-1', '0', '2', '1', '-1', '0', '-1'), 1):230.49016709,
(('1', '4', '0', '2', '1', '1', '1', '1'), 2):106.495053406,
(('1', '2', '-1', '2', '-1', '-1', '0', '2'), 3):361.741316203,
(('1', '2', '2', '2', '1', '0', '0', '4'), 0):16.0,
(('0', '0', '0', '1', '1', '0', '0', '1'), 3):102.862701202,
(('4', '2', '2', '2', '4', '0', '0', '1'), 3):92.831565433,
(('1', '0', '-1', '4', '-1', '-1', '0', '0'), 1):260.151735044,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '0'), 3):258.405145984,
(('4', '0', '1', '1', '0', '1', '4', '0'), 0):-10,
(('2', '4', '0', '2', '2', '0', '2', '0'), 1):87.7040097077,
(('0', '2', '0', '-1', '1', '4', '-1', '-1'), 0):126.04910274,
(('2', '-1', '1', '2', '4', '-1', '1', '-1'), 1):138.295009985,
(('0', '4', '2', '4', '2', '0', '0', '4'), 3):126.361252557,
(('2', '4', '0', '-1', '0', '1', '-1', '-1'), 1):30,
(('0', '0', '1', '0', '0', '1', '0', '1'), 2):50.3358013826,
(('4', '1', '0', '4', '4', '0', '4', '1'), 3):10,
(('2', '2', '2', '2', '2', '0', '4', '4'), 3):59.5942465485,
(('0', '0', '-1', '1', '-1', '-1', '0', '1'), 0):238.03039699,
(('0', '2', '2', '2', '1', '0', '0', '4'), 3):141.005851477,
(('1', '0', '1', '4', '0', '0', '1', '0'), 2):-192.0,
(('1', '4', '1', '1', '1', '1', '1', '1'), 1):137.219805587,
(('1', '-1', '0', '1', '1', '-1', '4', '-1'), 0):104.701055005,
(('0', '4', '-1', '1', '-1', '-1', '0', '1'), 2):247.067021165,
(('4', '2', '2', '2', '1', '2', '4', '2'), 2):10,
(('0', '2', '0', '2', '0', '1', '1', '1'), 0):219.273342537,
(('0', '0', '1', '4', '1', '1', '0', '0'), 3):99.6777287766,
(('-1', '1', '4', '1', '-1', '4', '-1', '0'), 3):60.0161339645,
(('-1', '4', '2', '-1', '-1', '0', '-1', '-1'), 3):114.909388943,
(('1', '0', '0', '0', '1', '0', '0', '0'), 1):239.069552032,
(('0', '4', '4', '0', '4', '4', '0', '0'), 0):-10,
(('1', '2', '2', '4', '0', '2', '1', '0'), 3):10,
(('2', '2', '2', '2', '4', '0', '4', '2'), 1):10,
(('0', '0', '0', '1', '0', '1', '0', '1'), 1):95.9937697658,
(('0', '4', '0', '1', '0', '4', '0', '0'), 2):0,
(('-1', '2', '4', '2', '-1', '2', '-1', '2'), 0):138.460385829,
(('4', '2', '1', '2', '1', '0', '2', '2'), 0):10,
(('4', '1', '0', '0', '0', '0', '4', '1'), 0):64.5459231166,
(('0', '2', '2', '2', '0', '1', '1', '2'), 3):63.2253656283,
(('4', '2', '1', '-1', '4', '1', '-1', '-1'), 0):225.472786299,
(('2', '2', '4', '2', '4', '4', '2', '2'), 2):33.3287389575,
(('1', '-1', '4', '1', '0', '-1', '1', '-1'), 1):240.076185679,
(('0', '4', '-1', '2', '-1', '-1', '0', '2'), 0):95.1777458271,
(('1', '4', '0', '4', '1', '0', '1', '4'), 3):10,
(('1', '2', '-1', '4', '-1', '-1', '1', '0'), 0):194.667863179,
(('4', '0', '1', '-1', '4', '1', '-1', '-1'), 0):140.600026918,
(('4', '-1', '1', '1', '0', '-1', '4', '-1'), 2):0,
(('4', '1', '-1', '1', '-1', '-1', '1', '0'), 2):63.8631366404,
(('0', '1', '0', '0', '4', '0', '0', '1'), 3):73.3276125776,
(('4', '1', '4', '1', '1', '4', '1', '0'), 0):-10,
(('1', '2', '2', '2', '1', '1', '0', '2'), 3):271.076343295,
(('1', '2', '1', '2', '1', '0', '1', '2'), 0):560.93142004,
(('4', '2', '2', '-1', '4', '2', '-1', '-1'), 3):272.320986287,
(('2', '2', '2', '2', '1', '1', '1', '0'), 1):281.745335359,
(('1', '1', '0', '1', '0', '0', '1', '4'), 1):143.274273092,
(('1', '2', '1', '-1', '1', '0', '-1', '-1'), 0):233.408116463,
(('2', '2', '-1', '2', '-1', '-1', '1', '4'), 0):176.902395861,
(('1', '1', '-1', '4', '-1', '-1', '4', '1'), 2):44.024464587,
(('0', '4', '2', '2', '2', '4', '4', '0'), 3):10,
(('1', '1', '0', '0', '4', '0', '1', '0'), 1):-10,
(('-1', '2', '0', '2', '-1', '4', '-1', '1'), 0):261.153158119,
(('2', '2', '1', '4', '2', '0', '2', '0'), 1):600,
(('-1', '1', '4', '-1', '-1', '1', '-1', '-1'), 0):230.168918222,
(('1', '2', '0', '2', '0', '2', '1', '1'), 2):75.9439812697,
(('0', '2', '2', '4', '0', '1', '0', '4'), 3):168.848265099,
(('0', '4', '2', '2', '0', '2', '0', '0'), 3):199.432675502,
(('1', '0', '-1', '0', '-1', '-1', '0', '0'), 3):256.12165516,
(('0', '1', '0', '1', '1', '0', '1', '0'), 0):119.482770684,
(('4', '1', '0', '1', '4', '1', '4', '1'), 2):62.9990504982,
(('2', '2', '1', '2', '1', '2', '0', '1'), 1):10,
(('1', '2', '0', '2', '0', '0', '4', '4'), 1):11.8,
(('2', '2', '0', '2', '2', '4', '0', '4'), 1):97.1732003854,
(('0', '2', '0', '2', '0', '1', '1', '1'), 1):57.2015293016,
(('0', '2', '2', '2', '2', '2', '4', '1'), 3):157.828906536,
(('4', '1', '0', '1', '0', '1', '0', '1'), 1):134.056533215,
(('2', '-1', '0', '2', '4', '-1', '1', '-1'), 2):10,
(('2', '2', '4', '2', '4', '1', '2', '1'), 1):22.4291896653,
(('2', '2', '2', '2', '2', '4', '2', '0'), 0):670,
(('1', '2', '1', '-1', '0', '0', '-1', '-1'), 1):305.588731826,
(('-1', '1', '4', '0', '-1', '1', '-1', '1'), 1):56.9578103501,
(('1', '4', '0', '1', '1', '0', '1', '0'), 2):133.980087077,
(('1', '1', '1', '0', '1', '0', '0', '1'), 0):188.390190124,
(('4', '2', '0', '4', '4', '0', '0', '4'), 0):50,
(('0', '4', '0', '2', '0', '1', '0', '0'), 3):10,
(('0', '2', '0', '2', '1', '0', '4', '2'), 0):218.779247274,
(('-1', '4', '0', '1', '-1', '4', '-1', '1'), 2):52.0697908836,
(('0', '0', '1', '1', '1', '1', '1', '0'), 1):47.3621807732,
(('1', '4', '2', '2', '2', '1', '0', '0'), 3):10,
(('0', '0', '1', '4', '0', '0', '4', '4'), 1):14.536,
(('0', '2', '0', '2', '4', '2', '4', '2'), 0):10,
(('2', '2', '1', '2', '1', '4', '2', '1'), 2):10,
(('0', '1', '1', '4', '0', '1', '4', '0'), 3):91.3495949838,
(('4', '0', '1', '-1', '0', '1', '-1', '-1'), 3):225.136410644,
(('2', '-1', '4', '2', '1', '-1', '2', '-1'), 1):260.459774378,
(('-1', '4', '1', '0', '-1', '1', '-1', '1'), 3):10,
(('2', '4', '2', '-1', '2', '4', '-1', '-1'), 3):10,
(('-1', '4', '1', '-1', '-1', '1', '-1', '-1'), 1):189.696757589,
(('1', '1', '0', '0', '4', '0', '0', '0'), 0):97.9826932412,
(('1', '1', '-1', '0', '-1', '-1', '1', '0'), 0):228.917052675,
(('1', '2', '2', '2', '1', '1', '0', '0'), 0):260.78587196,
(('2', '2', '2', '2', '0', '0', '2', '1'), 3):374.397748052,
(('1', '-1', '1', '0', '1', '-1', '4', '-1'), 1):181.038737168,
(('0', '0', '0', '0', '1', '0', '0', '4'), 2):0,
(('-1', '4', '1', '1', '-1', '4', '-1', '1'), 0):-10.0,
(('1', '1', '1', '-1', '4', '0', '-1', '-1'), 2):85.9440757556,
(('4', '2', '0', '2', '4', '1', '4', '1'), 2):159.269966813,
(('2', '2', '2', '2', '1', '1', '0', '0'), 0):72.2326472801,
(('0', '1', '1', '4', '1', '1', '4', '4'), 3):94.9808770885,
(('0', '1', '0', '1', '0', '4', '0', '1'), 0):222.269563955,
(('4', '4', '4', '1', '4', '4', '4', '4'), 2):0,
(('0', '1', '4', '-1', '0', '4', '-1', '-1'), 1):197.240103991,
(('1', '-1', '2', '2', '2', '-1', '2', '-1'), 2):447.180680493,
(('0', '1', '4', '0', '0', '4', '0', '0'), 1):118.098377365,
(('0', '1', '4', '-1', '1', '4', '-1', '-1'), 0):47.6444639459,
(('0', '-1', '1', '2', '2', '-1', '2', '-1'), 2):651.597372809,
(('1', '2', '2', '2', '2', '1', '4', '1'), 3):11.8,
(('1', '1', '1', '0', '1', '0', '4', '0'), 2):82.0180465022,
(('0', '1', '1', '1', '1', '4', '0', '0'), 2):52.1761527737,
(('1', '2', '0', '2', '1', '1', '1', '1'), 0):264.937727979,
(('1', '1', '1', '1', '1', '1', '0', '1'), 0):187.371027487,
(('-1', '2', '1', '4', '-1', '1', '-1', '4'), 0):10,
(('0', '1', '4', '1', '1', '4', '0', '0'), 1):-10,
(('0', '2', '1', '2', '0', '1', '2', '2'), 2):469.76049575,
(('2', '2', '2', '2', '4', '0', '0', '0'), 0):10,
(('4', '2', '0', '2', '0', '0', '1', '0'), 1):236.10084078,
(('1', '1', '1', '0', '4', '1', '0', '1'), 0):65.2565632409,
(('1', '-1', '1', '1', '1', '-1', '1', '-1'), 2):237.656387262,
(('1', '1', '0', '1', '1', '0', '1', '4'), 3):73.6602068775,
(('2', '2', '4', '2', '0', '1', '2', '0'), 1):102.248251531,
(('0', '4', '0', '1', '0', '1', '0', '4'), 1):36.5906472926,
(('4', '0', '4', '4', '0', '0', '0', '4'), 0):50,
(('0', '0', '1', '4', '1', '1', '0', '4'), 3):58.4142500092,
(('0', '2', '4', '2', '0', '4', '0', '2'), 0):274.409569804,
(('0', '0', '1', '0', '0', '1', '0', '0'), 1):226.56250312,
(('0', '4', '0', '0', '0', '0', '1', '0'), 3):80.4508515584,
(('1', '2', '4', '2', '1', '4', '1', '1'), 2):114.150392231,
(('1', '-1', '0', '1', '0', '-1', '1', '-1'), 3):266.984919331,
(('0', '4', '2', '-1', '2', '0', '-1', '-1'), 3):196.594952642,
(('1', '4', '1', '1', '0', '0', '1', '1'), 1):-10,
(('1', '2', '4', '-1', '4', '4', '-1', '-1'), 2):91.0552517908,
(('1', '1', '0', '1', '0', '1', '0', '0'), 3):148.892925047,
(('2', '2', '2', '2', '0', '0', '4', '2'), 0):10,
(('1', '1', '0', '0', '1', '1', '0', '1'), 2):50.8280508131,
(('0', '1', '0', '1', '0', '4', '1', '4'), 0):-1000,
(('0', '0', '1', '4', '1', '0', '0', '0'), 1):176.815289294,
(('0', '4', '1', '2', '1', '1', '0', '4'), 1):10,
(('1', '2', '1', '2', '2', '1', '0', '2'), 2):10,
(('1', '4', '1', '2', '1', '0', '0', '4'), 1):26.3437001749,
(('1', '2', '2', '2', '2', '2', '4', '2'), 3):441.8,
(('1', '0', '1', '-1', '0', '4', '-1', '-1'), 2):71.3447386026,
(('0', '2', '2', '2', '1', '2', '1', '2'), 2):65.6012601934,
(('0', '0', '0', '-1', '1', '0', '-1', '-1'), 3):329.424781331,
(('1', '1', '4', '1', '1', '4', '1', '1'), 2):150.558220883,
(('2', '2', '0', '2', '1', '0', '2', '0'), 2):302.952388773,
(('4', '1', '-1', '0', '-1', '-1', '1', '0'), 3):76.1123947529,
(('0', '-1', '-1', '2', '-1', '-1', '0', '-1'), 2):304.958439115,
(('-1', '2', '4', '2', '-1', '0', '-1', '2'), 1):179.139452406,
(('0', '2', '2', '2', '4', '0', '0', '0'), 3):204.804292465,
(('1', '2', '1', '2', '1', '2', '1', '2'), 0):344.732136087,
(('0', '2', '4', '-1', '4', '4', '-1', '-1'), 2):218.569710023,
(('4', '0', '1', '0', '1', '0', '4', '0'), 0):56.673025946,
(('4', '2', '2', '2', '1', '2', '1', '0'), 0):10,
(('0', '2', '1', '2', '1', '0', '0', '4'), 1):0,
(('0', '1', '0', '1', '0', '0', '0', '1'), 3):233.437817551,
(('1', '0', '0', '4', '0', '0', '0', '0'), 1):235.024900896,
(('0', '1', '1', '0', '1', '4', '0', '0'), 3):49.4888539688,
(('-1', '2', '0', '2', '-1', '0', '-1', '4'), 2):220.228172679,
(('1', '-1', '1', '-1', '1', '-1', '-1', '-1'), 0):282.282122584,
(('4', '0', '-1', '0', '-1', '-1', '0', '1'), 0):10,
(('2', '4', '2', '2', '0', '0', '0', '1'), 1):87.4825361151,
(('-1', '2', '4', '2', '-1', '2', '-1', '1'), 0):191.970795835,
(('0', '-1', '1', '1', '4', '-1', '1', '-1'), 1):36.1613978652,
(('-1', '2', '0', '2', '-1', '1', '-1', '1'), 0):265.631358398,
(('1', '2', '2', '2', '1', '2', '2', '0'), 2):560.351456314,
(('-1', '4', '0', '4', '-1', '0', '-1', '1'), 1):0,
(('1', '1', '-1', '0', '-1', '-1', '0', '0'), 0):237.726427865,
(('1', '2', '0', '-1', '0', '0', '-1', '-1'), 1):304.268421399,
(('0', '4', '1', '0', '0', '4', '0', '0'), 3):2.2,
(('2', '2', '0', '2', '2', '0', '2', '2'), 2):377.360862455,
(('2', '2', '0', '2', '2', '2', '1', '0'), 1):10,
(('1', '2', '1', '2', '4', '2', '1', '0'), 0):44.8286176832,
(('0', '2', '2', '2', '2', '0', '0', '2'), 0):426.464533471,
(('4', '2', '1', '2', '4', '0', '0', '0'), 2):10,
(('0', '2', '2', '2', '2', '1', '0', '0'), 3):295.261451459,
(('0', '4', '1', '2', '1', '1', '0', '0'), 0):118.689525683,
(('2', '2', '1', '2', '0', '1', '0', '0'), 1):238.066439046,
(('1', '-1', '-1', '1', '-1', '-1', '1', '-1'), 1):272.473415815,
(('2', '4', '0', '2', '2', '4', '1', '1'), 1):10,
(('1', '1', '-1', '0', '-1', '-1', '0', '4'), 2):95.7171646891,
(('1', '1', '0', '0', '4', '0', '0', '1'), 1):53.9495970672,
(('1', '0', '1', '1', '1', '0', '4', '0'), 1):53.6802931719,
(('1', '0', '1', '1', '1', '0', '1', '0'), 3):249.626426553,
(('0', '0', '-1', '1', '-1', '-1', '4', '1'), 3):41.3544142316,
(('4', '-1', '1', '0', '1', '-1', '0', '-1'), 1):305.195368459,
(('2', '-1', '1', '2', '2', '-1', '0', '-1'), 2):409.810349348,
(('0', '4', '0', '2', '0', '0', '1', '0'), 2):158.766659495,
(('4', '-1', '1', '1', '1', '-1', '1', '-1'), 0):128.196802208,
(('0', '1', '0', '1', '1', '0', '4', '1'), 0):-60,
(('0', '1', '0', '4', '1', '1', '0', '1'), 2):10,
(('2', '4', '2', '-1', '0', '0', '-1', '-1'), 1):10,
(('0', '0', '1', '1', '0', '0', '1', '0'), 0):201.703486365,
(('1', '1', '1', '4', '1', '0', '0', '0'), 1):59.5617658456,
(('2', '4', '1', '2', '0', '1', '0', '0'), 2):20,
(('0', '0', '1', '1', '0', '1', '1', '0'), 1):43.4801248918,
(('1', '4', '0', '1', '0', '4', '0', '0'), 0):-10,
(('2', '2', '0', '2', '1', '0', '1', '0'), 0):10,
(('0', '2', '0', '2', '0', '4', '0', '2'), 0):226.762126692,
(('1', '1', '0', '1', '4', '1', '0', '1'), 2):46.0905103913,
(('-1', '1', '0', '1', '-1', '4', '-1', '1'), 1):177.548586805,
(('2', '2', '4', '2', '0', '1', '2', '4'), 1):142.115241328,
(('1', '2', '2', '4', '2', '0', '4', '0'), 0):0,
(('0', '4', '0', '-1', '1', '4', '-1', '-1'), 2):0,
(('1', '2', '-1', '2', '-1', '-1', '4', '0'), 3):259.012072929,
(('-1', '2', '2', '2', '-1', '0', '-1', '1'), 3):270.309211288,
(('2', '2', '0', '2', '0', '1', '0', '0'), 2):208.739186868,
(('1', '4', '0', '2', '1', '4', '1', '0'), 2):10,
(('-1', '0', '1', '1', '-1', '4', '-1', '0'), 3):107.563896107,
(('0', '1', '1', '1', '0', '1', '1', '0'), 2):188.961566996,
(('1', '4', '1', '2', '1', '1', '0', '4'), 1):59.995554174,
(('1', '1', '1', '0', '1', '1', '4', '0'), 2):191.525646928,
(('4', '1', '1', '0', '0', '1', '4', '0'), 1):10,
(('1', '2', '2', '4', '0', '0', '0', '0'), 3):135.673852226,
(('1', '0', '1', '0', '0', '0', '0', '0'), 0):217.403728188,
(('1', '1', '1', '4', '0', '1', '1', '0'), 0):36.057229383,
(('-1', '0', '0', '0', '-1', '0', '-1', '1'), 2):119.288009739,
(('4', '2', '2', '2', '4', '1', '0', '1'), 3):72.3425435777,
(('-1', '0', '0', '-1', '-1', '4', '-1', '-1'), 0):114.733791053,
(('0', '2', '1', '2', '0', '1', '4', '0'), 2):98.2062790616,
(('0', '2', '2', '-1', '0', '2', '-1', '-1'), 0):335.490060525,
(('2', '-1', '2', '2', '2', '-1', '1', '-1'), 3):404.517275908,
(('1', '0', '0', '1', '4', '0', '0', '0'), 2):171.723150138,
(('1', '1', '1', '1', '1', '0', '1', '4'), 3):135.778406485,
(('2', '-1', '0', '2', '2', '-1', '0', '-1'), 2):293.285757435,
(('2', '2', '-1', '2', '-1', '-1', '0', '4'), 0):212.19794473,
(('1', '2', '1', '4', '1', '1', '0', '1'), 0):10,
(('0', '2', '0', '2', '0', '0', '4', '4'), 0):66.5603056661,
(('2', '4', '1', '-1', '1', '0', '-1', '-1'), 2):10,
(('4', '0', '1', '0', '1', '0', '1', '0'), 1):-10,
(('1', '2', '1', '2', '1', '0', '4', '0'), 1):162.785647821,
(('1', '4', '0', '-1', '1', '4', '-1', '-1'), 1):162.108975582,
(('4', '2', '1', '2', '2', '0', '4', '0'), 0):0,
(('1', '2', '2', '2', '0', '2', '0', '0'), 3):439.267857248,
(('2', '-1', '2', '2', '2', '-1', '2', '-1'), 0):368.260775768,
(('0', '2', '4', '2', '0', '4', '1', '2'), 3):10,
(('0', '-1', '2', '-1', '1', '-1', '-1', '-1'), 0):285.325009475,
(('0', '0', '0', '1', '0', '4', '1', '0'), 3):43.0478599276,
(('0', '1', '1', '0', '0', '1', '4', '0'), 3):126.831724664,
(('0', '1', '1', '1', '0', '0', '1', '1'), 0):192.370765399,
(('4', '-1', '2', '2', '1', '-1', '4', '-1'), 3):225.271490545,
(('0', '2', '2', '-1', '0', '4', '-1', '-1'), 0):91.1508962928,
(('1', '1', '0', '1', '0', '1', '1', '0'), 0):177.564134279,
(('0', '-1', '1', '2', '4', '-1', '0', '-1'), 2):221.399111076,
(('2', '4', '4', '4', '4', '4', '0', '4'), 1):10,
(('0', '0', '1', '0', '1', '1', '1', '0'), 3):123.872826104,
(('4', '1', '-1', '1', '-1', '-1', '4', '0'), 1):25.5903252658,
(('1', '0', '1', '4', '1', '1', '0', '4'), 3):22.416780825,
(('1', '1', '1', '1', '0', '1', '0', '1'), 0):185.022524517,
(('-1', '2', '2', '-1', '-1', '1', '-1', '-1'), 0):319.498155367,
(('-1', '1', '0', '1', '-1', '0', '-1', '0'), 0):247.951371696,
(('2', '2', '4', '2', '0', '4', '0', '1'), 3):17.4096537486,
(('2', '2', '2', '2', '2', '2', '2', '0'), 3):424.148748843,
(('0', '1', '0', '1', '0', '4', '1', '1'), 3):153.138436885,
(('1', '1', '0', '4', '0', '1', '0', '4'), 3):0,
(('0', '0', '0', '1', '1', '0', '4', '0'), 3):0,
(('0', '0', '0', '-1', '0', '0', '-1', '-1'), 0):253.49908566,
(('2', '2', '2', '2', '2', '0', '1', '2'), 0):207.633849822,
(('0', '4', '-1', '0', '-1', '-1', '0', '4'), 2):130.721940307,
(('2', '4', '2', '2', '1', '4', '0', '0'), 1):10,
(('0', '-1', '-1', '0', '-1', '-1', '0', '-1'), 1):249.631742503,
(('1', '2', '4', '2', '0', '4', '1', '1'), 2):107.928178501,
(('1', '4', '0', '4', '0', '0', '1', '4'), 1):50,
(('4', '2', '1', '2', '0', '0', '4', '1'), 0):10,
(('4', '1', '1', '1', '4', '0', '0', '1'), 3):2.0,
(('1', '1', '-1', '4', '-1', '-1', '4', '0'), 1):34.0004559054,
(('1', '1', '-1', '4', '-1', '-1', '0', '1'), 0):203.180131094,
(('0', '1', '0', '1', '0', '1', '0', '0'), 1):208.349529694,
(('2', '4', '1', '2', '0', '1', '0', '4'), 1):81.960336565,
(('1', '1', '0', '1', '4', '0', '1', '0'), 1):110.275260682,
(('2', '2', '2', '2', '2', '2', '4', '4'), 1):10,
(('1', '2', '0', '-1', '1', '1', '-1', '-1'), 0):336.843796676,
(('1', '2', '0', '2', '4', '2', '0', '2'), 2):98.1035001786,
(('2', '2', '0', '4', '2', '0', '2', '0'), 1):126.244039416,
(('0', '2', '4', '2', '1', '4', '2', '0'), 2):182.977522409,
(('1', '1', '-1', '4', '-1', '-1', '4', '4'), 0):114.241449604,
(('-1', '0', '1', '0', '-1', '0', '-1', '4'), 1):9.8,
(('4', '1', '0', '1', '4', '1', '0', '1'), 0):16.4936390361,
(('-1', '4', '4', '4', '-1', '4', '-1', '4'), 0):-10,
(('-1', '2', '4', '2', '-1', '4', '-1', '4'), 1):10,
(('2', '2', '1', '-1', '0', '0', '-1', '-1'), 2):357.457956356,
(('-1', '0', '4', '0', '-1', '4', '-1', '0'), 2):46.3517975494,
(('4', '2', '2', '4', '0', '1', '4', '1'), 3):10,
(('2', '2', '2', '-1', '0', '1', '-1', '-1'), 0):18.3102306062,
(('4', '1', '0', '1', '0', '0', '0', '0'), 1):169.149564005,
(('1', '-1', '4', '0', '1', '-1', '1', '-1'), 3):10,
(('1', '-1', '4', '2', '0', '-1', '0', '-1'), 3):58.0432636982,
(('4', '2', '0', '4', '0', '0', '4', '0'), 3):50,
(('1', '2', '-1', '2', '-1', '-1', '1', '0'), 3):236.090474576,
(('0', '2', '2', '2', '1', '2', '2', '2'), 2):241.12347267,
(('1', '0', '1', '1', '0', '4', '1', '0'), 1):70.257337338,
(('1', '0', '0', '1', '0', '0', '1', '0'), 0):232.529013214,
(('2', '2', '-1', '2', '-1', '-1', '2', '0'), 1):400.1252327,
(('1', '-1', '4', '0', '4', '-1', '1', '-1'), 0):54.7487859351,
(('4', '2', '2', '2', '1', '0', '1', '0'), 3):162.332938665,
(('4', '-1', '2', '2', '4', '-1', '1', '-1'), 3):121.970733074,
(('1', '4', '2', '2', '2', '4', '1', '1'), 3):10,
(('0', '1', '1', '1', '0', '1', '0', '0'), 1):201.878584714,
(('-1', '4', '1', '0', '-1', '1', '-1', '0'), 3):272.237996555,
(('1', '2', '2', '2', '1', '2', '0', '4'), 3):167.088017718,
(('0', '1', '1', '4', '1', '0', '4', '4'), 3):27.8827111625,
(('0', '-1', '0', '1', '1', '-1', '0', '-1'), 0):232.304613957,
(('0', '-1', '0', '1', '4', '-1', '1', '-1'), 3):98.7556030009,
(('4', '1', '0', '1', '4', '4', '0', '1'), 1):-90,
(('1', '4', '1', '2', '1', '1', '1', '0'), 2):109.13964354,
(('2', '2', '1', '-1', '1', '2', '-1', '-1'), 1):408.833478506,
(('1', '0', '1', '4', '0', '0', '4', '4'), 2):0,
(('-1', '4', '1', '1', '-1', '4', '-1', '4'), 1):64.1190527887,
(('1', '0', '1', '0', '0', '0', '0', '4'), 2):10,
(('0', '0', '4', '0', '1', '0', '0', '0'), 2):115.990887561,
(('1', '4', '0', '2', '2', '4', '2', '0'), 2):10,
(('2', '2', '1', '2', '1', '1', '0', '2'), 1):327.485537249,
(('1', '-1', '0', '1', '0', '-1', '4', '-1'), 3):137.387064778,
(('0', '2', '1', '2', '0', '1', '4', '4'), 0):54.2255165547,
(('0', '2', '4', '2', '4', '1', '4', '2'), 2):45.9930222326,
(('1', '4', '-1', '4', '-1', '-1', '1', '4'), 3):17.2463912886,
(('1', '0', '1', '4', '1', '0', '4', '4'), 0):58.2936411368,
(('-1', '0', '1', '1', '-1', '1', '-1', '4'), 3):44.0999313735,
(('0', '-1', '4', '2', '0', '-1', '1', '-1'), 2):203.880317486,
(('4', '1', '0', '1', '0', '1', '0', '1'), 0):186.886892767,
(('0', '4', '0', '0', '0', '0', '0', '1'), 2):16.9319791347,
(('1', '-1', '1', '2', '4', '-1', '0', '-1'), 1):137.384423859,
(('0', '2', '2', '2', '2', '1', '2', '2'), 3):720,
(('1', '0', '1', '0', '1', '1', '0', '4'), 2):10,
(('1', '-1', '0', '2', '0', '-1', '0', '-1'), 1):282.989865519,
(('0', '2', '1', '2', '0', '4', '1', '1'), 0):10,
(('4', '2', '1', '2', '1', '0', '1', '0'), 2):104.443618837,
(('1', '1', '1', '4', '1', '1', '4', '4'), 1):55.9259904642,
(('4', '2', '0', '-1', '0', '0', '-1', '-1'), 0):285.043494798,
(('4', '2', '0', '4', '4', '0', '4', '0'), 0):10.0,
(('2', '2', '0', '2', '1', '4', '2', '2'), 1):10.0,
(('0', '2', '2', '4', '2', '2', '4', '0'), 3):23.1014861694,
(('2', '2', '4', '2', '2', '4', '1', '0'), 1):10.0,
(('1', '-1', '0', '-1', '0', '-1', '-1', '-1'), 3):258.423087888,
(('1', '-1', '4', '1', '0', '-1', '1', '-1'), 0):211.767596683,
(('0', '2', '4', '-1', '4', '2', '-1', '-1'), 0):223.632911092,
(('1', '4', '0', '0', '1', '0', '1', '0'), 0):10,
(('2', '2', '4', '2', '4', '1', '2', '2'), 3):660,
(('0', '2', '1', '2', '1', '2', '4', '2'), 0):53.4378547601,
(('2', '2', '1', '4', '0', '1', '0', '4'), 1):10,
(('2', '2', '2', '2', '4', '0', '1', '0'), 3):52.6128298995,
(('0', '-1', '0', '4', '0', '-1', '0', '-1'), 1):221.340915134,
(('0', '1', '-1', '0', '-1', '-1', '0', '0'), 2):238.172733348,
(('4', '2', '2', '4', '1', '2', '4', '4'), 0):22.7101432208,
(('1', '4', '1', '0', '1', '0', '1', '4'), 0):36.0422083333,
(('2', '2', '1', '2', '1', '0', '0', '1'), 1):252.615943474,
(('0', '0', '1', '1', '1', '4', '0', '0'), 0):0,
(('1', '4', '4', '1', '1', '4', '0', '4'), 3):10,
(('4', '2', '0', '2', '4', '1', '0', '2'), 0):130.065730736,
(('2', '2', '4', '2', '1', '4', '2', '1'), 1):89.6946374201,
(('0', '1', '1', '0', '0', '1', '4', '1'), 3):80.8278901286,
(('4', '2', '2', '2', '2', '1', '0', '1'), 1):10,
(('1', '0', '4', '1', '4', '0', '0', '0'), 3):-10,
(('-1', '4', '1', '1', '-1', '1', '-1', '1'), 3):80.521974532,
(('0', '2', '0', '2', '1', '4', '2', '2'), 2):10,
(('0', '1', '4', '0', '1', '1', '0', '0'), 1):94.0935580977,
(('0', '1', '1', '0', '1', '1', '4', '1'), 0):10,
(('1', '2', '2', '2', '0', '1', '4', '1'), 3):59.0482928698,
(('0', '1', '1', '1', '0', '0', '0', '1'), 3):226.502604239,
(('1', '4', '-1', '0', '-1', '-1', '1', '4'), 2):78.2936887098,
(('4', '2', '0', '2', '0', '1', '2', '2'), 2):1106.0,
(('1', '-1', '1', '1', '1', '-1', '4', '-1'), 3):186.951354615,
(('0', '0', '-1', '0', '-1', '-1', '4', '0'), 0):48.3945490535,
(('0', '2', '2', '-1', '4', '0', '-1', '-1'), 3):262.843522559,
(('1', '1', '1', '0', '1', '0', '0', '1'), 1):212.52568598,
(('4', '-1', '-1', '1', '-1', '-1', '4', '-1'), 0):185.429891558,
(('2', '2', '2', '2', '0', '1', '2', '0'), 1):255.731997728,
(('-1', '2', '4', '-1', '-1', '0', '-1', '-1'), 2):263.842775975,
(('1', '-1', '0', '2', '0', '-1', '1', '-1'), 1):305.741291745,
(('4', '1', '1', '0', '1', '1', '4', '0'), 3):121.991344809,
(('1', '-1', '2', '2', '0', '-1', '1', '-1'), 2):234.008999093,
(('2', '-1', '-1', '4', '-1', '-1', '2', '-1'), 3):81.1209925472,
(('4', '2', '2', '2', '2', '0', '0', '0'), 0):10,
(('1', '0', '1', '1', '0', '0', '4', '0'), 2):10,
(('0', '0', '4', '1', '4', '4', '0', '0'), 3):18.4132923824,
(('0', '4', '-1', '2', '-1', '-1', '0', '1'), 2):217.187357339,
(('1', '2', '0', '2', '1', '0', '1', '2'), 2):380.394850298,
(('0', '1', '1', '4', '1', '1', '4', '4'), 1):-10,
(('-1', '1', '0', '4', '-1', '0', '-1', '1'), 2):162.188300872,
(('2', '2', '2', '2', '2', '1', '2', '0'), 0):60.1151330527,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '0'), 3):-1000,
(('-1', '1', '4', '1', '-1', '4', '-1', '1'), 1):167.26510784,
(('-1', '0', '4', '1', '-1', '0', '-1', '1'), 1):209.018506944,
(('4', '1', '0', '0', '0', '0', '1', '1'), 0):10,
(('1', '0', '4', '1', '0', '1', '1', '1'), 1):10,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '1'), 2):272.772315588,
(('0', '2', '0', '2', '1', '1', '1', '2'), 0):227.371294007,
(('4', '4', '2', '2', '0', '0', '0', '4'), 3):10,
(('1', '1', '1', '0', '4', '1', '0', '1'), 2):0.133440317876,
(('0', '4', '0', '1', '0', '0', '1', '1'), 0):194.301660696,
(('0', '0', '0', '4', '0', '0', '4', '0'), 3):101.969416324,
(('1', '1', '1', '1', '0', '1', '4', '0'), 3):14.3577461581,
(('2', '-1', '2', '2', '0', '-1', '0', '-1'), 0):322.261471305,
(('-1', '2', '1', '4', '-1', '2', '-1', '4'), 0):10,
(('4', '0', '1', '0', '0', '1', '4', '0'), 2):10,
(('2', '2', '0', '2', '0', '1', '2', '1'), 1):405.770844934,
(('0', '0', '1', '0', '1', '4', '0', '0'), 2):24.8315816768,
(('0', '1', '1', '0', '1', '1', '4', '0'), 0):8.92263782535,
(('2', '4', '4', '-1', '1', '4', '-1', '-1'), 1):187.16008655,
(('0', '4', '4', '0', '1', '4', '0', '0'), 0):-10.0,
(('0', '0', '1', '1', '1', '0', '4', '0'), 2):10,
(('0', '0', '1', '1', '1', '1', '1', '0'), 2):106.382942086,
(('0', '1', '4', '1', '0', '1', '1', '1'), 3):191.329575879,
(('0', '2', '0', '2', '0', '4', '2', '4'), 2):218.516440545,
(('4', '0', '1', '1', '0', '1', '0', '0'), 0):0,
(('4', '2', '2', '-1', '2', '0', '-1', '-1'), 3):195.769367361,
(('0', '1', '4', '0', '4', '1', '0', '0'), 3):30.3319429126,
(('0', '4', '0', '4', '0', '0', '0', '1'), 3):50,
(('1', '4', '1', '1', '1', '4', '0', '4'), 3):42.0213800832,
(('1', '2', '2', '-1', '0', '4', '-1', '-1'), 0):50,
(('1', '0', '1', '0', '0', '4', '0', '0'), 1):90.8488908488,
(('0', '0', '1', '1', '0', '0', '4', '0'), 3):134.267991169,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '2'), 1):231.935059466,
(('4', '2', '0', '2', '4', '0', '2', '0'), 2):1.03764482634,
(('0', '4', '2', '-1', '1', '4', '-1', '-1'), 3):10,
(('0', '0', '0', '0', '0', '0', '0', '4'), 1):60.0934570694,
(('0', '1', '0', '0', '0', '1', '1', '0'), 3):22.4561414448,
(('1', '-1', '0', '4', '0', '-1', '1', '-1'), 2):202.755269631,
(('0', '2', '2', '2', '0', '1', '2', '0'), 2):10,
(('0', '4', '0', '2', '1', '0', '0', '0'), 3):58.828636172,
(('1', '2', '2', '-1', '1', '2', '-1', '-1'), 2):409.074730425,
(('0', '1', '0', '4', '0', '1', '0', '1'), 1):182.147686253,
(('1', '4', '4', '2', '0', '4', '2', '2'), 2):50,
(('2', '4', '2', '2', '2', '0', '0', '4'), 3):10,
(('4', '2', '4', '-1', '4', '2', '-1', '-1'), 0):-246.127802104,
(('2', '2', '4', '2', '4', '0', '1', '1'), 2):10,
(('1', '4', '0', '2', '1', '4', '1', '0'), 1):10,
(('1', '0', '1', '4', '1', '0', '1', '4'), 1):8.85782266048,
(('4', '2', '0', '2', '1', '0', '4', '0'), 1):75.7569553502,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '1'), 1):229.179335852,
(('1', '1', '4', '1', '0', '1', '1', '1'), 2):132.392107745,
(('1', '0', '1', '4', '0', '1', '0', '4'), 0):0,
(('1', '4', '-1', '1', '-1', '-1', '0', '4'), 3):68.3274726398,
(('1', '1', '1', '0', '1', '0', '1', '1'), 3):186.601800549,
(('1', '0', '1', '1', '0', '1', '1', '0'), 3):187.678661625,
(('2', '4', '0', '-1', '0', '0', '-1', '-1'), 1):283.889463354,
(('4', '0', '0', '0', '1', '0', '0', '0'), 3):112.389888419,
(('1', '1', '-1', '1', '-1', '-1', '1', '1'), 2):236.643037018,
(('0', '0', '4', '1', '0', '4', '1', '1'), 2):10,
(('1', '0', '0', '0', '1', '0', '1', '1'), 0):-10,
(('1', '2', '2', '2', '1', '1', '4', '2'), 3):48.9592455254,
(('4', '1', '0', '0', '0', '1', '0', '1'), 1):-10,
(('1', '0', '1', '4', '1', '1', '1', '0'), 2):184.638041191,
(('2', '-1', '2', '2', '2', '-1', '0', '-1'), 0):360.780699384,
(('0', '2', '2', '2', '0', '1', '0', '1'), 0):202.22841579,
(('4', '2', '-1', '2', '-1', '-1', '2', '1'), 1):252.805008542,
(('1', '1', '1', '4', '0', '0', '0', '1'), 0):-10,
(('1', '2', '1', '2', '1', '1', '2', '0'), 2):327.735277583,
(('1', '-1', '1', '2', '1', '-1', '4', '-1'), 3):261.760022745,
(('0', '1', '4', '1', '0', '1', '1', '0'), 1):0,
(('1', '2', '2', '4', '1', '0', '0', '4'), 3):31.2631741043,
(('1', '2', '-1', '2', '-1', '-1', '4', '2'), 0):198.215764056,
(('2', '2', '1', '2', '0', '0', '4', '1'), 2):10,
(('2', '2', '2', '2', '2', '0', '0', '4'), 3):183.13362582,
(('0', '4', '0', '1', '4', '4', '1', '4'), 2):10,
(('0', '2', '1', '2', '1', '1', '0', '1'), 3):235.31753925,
(('4', '2', '1', '2', '4', '2', '0', '2'), 2):220,
(('0', '2', '4', '2', '0', '1', '1', '1'), 3):172.726338428,
(('1', '-1', '2', '-1', '1', '-1', '-1', '-1'), 2):403.906894417,
(('4', '0', '0', '1', '0', '0', '0', '1'), 0):186.498220711,
(('4', '-1', '1', '2', '1', '-1', '1', '-1'), 3):-65.1599645238,
(('4', '-1', '4', '2', '4', '-1', '2', '-1'), 2):64.7974221013,
(('0', '2', '1', '2', '1', '4', '0', '0'), 2):173.353578201,
(('0', '-1', '2', '-1', '0', '-1', '-1', '-1'), 2):308.060126664,
(('1', '1', '1', '4', '1', '0', '1', '0'), 1):9.93942792782,
(('1', '2', '2', '-1', '4', '0', '-1', '-1'), 3):286.886098206,
(('1', '0', '4', '1', '0', '0', '1', '1'), 3):170.760026232,
(('4', '-1', '-1', '2', '-1', '-1', '4', '-1'), 0):288.769687519,
(('4', '0', '1', '4', '0', '0', '0', '4'), 2):-10,
(('1', '-1', '1', '2', '1', '-1', '1', '-1'), 2):298.446580072,
(('2', '2', '0', '2', '0', '4', '0', '0'), 2):86.8804093004,
(('0', '2', '4', '2', '4', '2', '1', '1'), 0):15.04,
(('2', '2', '1', '2', '2', '2', '0', '2'), 1):523.009662923,
(('0', '1', '0', '0', '0', '0', '0', '4'), 3):81.494486608,
(('2', '2', '-1', '2', '-1', '-1', '0', '4'), 1):247.677354876,
(('4', '2', '1', '2', '0', '0', '1', '0'), 2):10,
(('4', '2', '1', '4', '1', '1', '4', '2'), 0):10,
(('4', '-1', '-1', '2', '-1', '-1', '2', '-1'), 0):10,
(('4', '0', '0', '1', '1', '0', '1', '0'), 1):-10,
(('0', '1', '-1', '4', '-1', '-1', '1', '0'), 3):222.179403391,
(('4', '0', '-1', '1', '-1', '-1', '1', '0'), 0):-13.2558614584,
(('0', '1', '0', '-1', '1', '4', '-1', '-1'), 0):18.6234499479,
(('0', '-1', '-1', '4', '-1', '-1', '4', '-1'), 3):188.062567069,
(('0', '1', '0', '4', '0', '1', '0', '4'), 3):47.3390871003,
(('4', '1', '0', '1', '4', '0', '4', '0'), 2):38.126470539,
(('-1', '2', '2', '2', '-1', '4', '-1', '1'), 1):79.5832242739,
(('0', '1', '0', '1', '0', '0', '1', '4'), 1):140.120058704,
(('1', '0', '-1', '4', '-1', '-1', '4', '0'), 0):143.809985425,
(('1', '2', '1', '2', '1', '1', '4', '1'), 2):60.5534052,
(('1', '1', '1', '0', '0', '1', '0', '1'), 0):249.204246589,
(('0', '0', '1', '1', '1', '0', '1', '0'), 1):176.688846365,
(('4', '-1', '1', '0', '0', '-1', '4', '-1'), 2):45.2091449116,
(('0', '4', '-1', '1', '-1', '-1', '0', '4'), 0):49.8267416823,
(('1', '1', '1', '1', '0', '0', '0', '4'), 1):48.3744883988,
(('2', '2', '4', '2', '0', '1', '2', '1'), 3):77.7823106254,
(('1', '0', '4', '-1', '0', '0', '-1', '-1'), 3):205.718265906,
(('4', '2', '0', '-1', '1', '1', '-1', '-1'), 1):10,
(('1', '0', '0', '0', '0', '0', '0', '1'), 3):68.0826552813,
(('4', '2', '1', '-1', '4', '0', '-1', '-1'), 1):58.4432055024,
(('2', '2', '0', '2', '2', '1', '2', '2'), 1):517.688450567,
(('4', '-1', '1', '2', '1', '-1', '0', '-1'), 2):248.126498059,
(('1', '1', '4', '1', '4', '1', '0', '1'), 2):78.5557634954,
(('1', '-1', '1', '0', '0', '-1', '1', '-1'), 3):269.435175365,
(('4', '1', '0', '1', '4', '0', '1', '1'), 2):60.7426565866,
(('2', '-1', '1', '2', '2', '-1', '0', '-1'), 0):282.010565028,
(('1', '2', '2', '4', '2', '2', '4', '4'), 3):67.4614016316,
(('0', '1', '1', '4', '1', '0', '0', '0'), 0):5.38764550559,
(('4', '-1', '0', '2', '1', '-1', '0', '-1'), 0):81.6681092672,
(('1', '2', '-1', '2', '-1', '-1', '0', '2'), 2):522.611253467,
(('4', '2', '2', '2', '4', '2', '0', '0'), 1):56.5128388678,
(('1', '2', '1', '2', '1', '0', '1', '0'), 2):257.296635393,
(('1', '-1', '4', '2', '1', '-1', '1', '-1'), 3):-2.95204871661,
(('0', '2', '1', '2', '4', '1', '2', '2'), 2):81.0930425029,
(('2', '2', '1', '2', '4', '0', '0', '2'), 1):10,
(('1', '1', '4', '0', '1', '4', '1', '0'), 1):63.8188338606,
(('1', '0', '-1', '4', '-1', '-1', '0', '0'), 0):231.702538417,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '0'), 2):254.127502617,
(('-1', '0', '1', '-1', '-1', '1', '-1', '-1'), 3):280.219699546,
(('0', '2', '1', '2', '0', '0', '1', '2'), 0):218.979728977,
(('1', '2', '2', '2', '0', '2', '4', '0'), 0):212.980536291,
(('2', '2', '2', '2', '2', '0', '4', '2'), 2):10,
(('0', '2', '0', '-1', '1', '4', '-1', '-1'), 3):10,
(('2', '-1', '0', '2', '2', '-1', '1', '-1'), 2):334.413846934,
(('4', '2', '1', '4', '0', '0', '4', '0'), 3):10,
(('4', '4', '4', '1', '4', '4', '0', '4'), 0):-10,
(('1', '4', '1', '0', '0', '0', '0', '0'), 2):43.9105197554,
(('4', '0', '0', '4', '4', '0', '4', '0'), 2):0,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '0'), 0):250.808678217,
(('0', '0', '-1', '1', '-1', '-1', '0', '1'), 1):285.575608825,
(('0', '2', '2', '2', '1', '0', '0', '4'), 0):64.2599476875,
(('0', '2', '1', '2', '1', '0', '2', '2'), 0):358.371602304,
(('1', '-1', '0', '1', '1', '-1', '4', '-1'), 3):47.4203891181,
(('0', '4', '-1', '1', '-1', '-1', '0', '1'), 3):245.775330188,
(('4', '1', '0', '4', '0', '1', '1', '4'), 3):50,
(('2', '2', '1', '4', '2', '1', '0', '0'), 1):123.492892745,
(('1', '2', '2', '2', '4', '2', '1', '1'), 3):220.097021507,
(('1', '2', '2', '2', '1', '1', '4', '0'), 0):10,
(('-1', '1', '4', '1', '-1', '4', '-1', '0'), 0):63.5850705327,
(('1', '2', '2', '2', '2', '4', '0', '0'), 3):165.060302494,
(('1', '0', '0', '4', '1', '0', '1', '0'), 2):202.449638715,
(('0', '2', '2', '2', '1', '2', '0', '2'), 2):358.45010569,
(('1', '-1', '4', '2', '4', '-1', '1', '-1'), 0):62.8268806653,
(('0', '4', '1', '1', '0', '1', '1', '4'), 3):-10,
(('4', '1', '0', '0', '0', '0', '4', '1'), 3):0,
(('4', '2', '1', '-1', '4', '1', '-1', '-1'), 1):145.046044706,
(('0', '4', '2', '2', '2', '0', '1', '1'), 3):10,
(('1', '2', '2', '4', '0', '0', '1', '1'), 3):81.0043144779,
(('4', '-1', '0', '0', '4', '-1', '0', '-1'), 3):16.321686767,
(('-1', '1', '0', '4', '-1', '1', '-1', '4'), 3):54.4996339216,
(('1', '2', '-1', '4', '-1', '-1', '1', '0'), 1):259.952765485,
(('2', '-1', '-1', '4', '-1', '-1', '4', '-1'), 1):64.0925205714,
(('4', '-1', '1', '1', '0', '-1', '4', '-1'), 3):70.3264488184,
(('4', '1', '-1', '1', '-1', '-1', '1', '0'), 1):-8.2,
(('1', '2', '2', '4', '1', '2', '4', '4'), 3):10,
(('2', '4', '-1', '2', '-1', '-1', '2', '1'), 2):10,
(('-1', '2', '0', '4', '-1', '0', '-1', '0'), 0):181.755035681,
(('2', '2', '2', '2', '1', '1', '1', '0'), 2):71.9641435452,
(('1', '1', '0', '1', '0', '0', '1', '4'), 0):188.48431737,
(('2', '2', '-1', '2', '-1', '-1', '1', '4'), 3):247.50446823,
(('2', '2', '-1', '4', '-1', '-1', '1', '1'), 3):80,
(('4', '1', '-1', '0', '-1', '-1', '4', '1'), 0):189.669740953,
(('0', '-1', '1', '2', '2', '-1', '0', '-1'), 0):430.883506311,
(('1', '2', '0', '2', '4', '0', '2', '2'), 2):246.404665,
(('0', '2', '1', '2', '0', '4', '2', '2'), 2):34.7112192945,
(('1', '4', '1', '1', '1', '0', '1', '0'), 2):147.206799742,
(('4', '1', '0', '1', '0', '1', '4', '0'), 3):-120,
(('-1', '1', '4', '-1', '-1', '1', '-1', '-1'), 1):168.867260586,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '0'), 2):239.224467087,
(('4', '-1', '0', '1', '4', '-1', '0', '-1'), 0):93.6253491029,
(('1', '0', '-1', '0', '-1', '-1', '0', '0'), 2):272.053091547,
(('1', '2', '0', '2', '0', '0', '4', '4'), 2):46.2457954084,
(('4', '-1', '0', '1', '4', '-1', '4', '-1'), 3):10,
(('4', '2', '4', '2', '4', '0', '0', '0'), 0):11.8,
(('0', '2', '4', '2', '4', '4', '0', '0'), 0):103.613418116,
(('0', '4', '1', '1', '0', '0', '0', '4'), 0):0,
(('4', '1', '1', '0', '4', '0', '4', '0'), 1):10,
(('2', '2', '2', '2', '2', '4', '2', '0'), 3):186.715369953,
(('0', '0', '1', '1', '4', '0', '1', '0'), 3):10,
(('2', '2', '1', '2', '0', '4', '2', '0'), 2):202.398811323,
(('-1', '0', '0', '0', '-1', '4', '-1', '0'), 0):55.7334270049,
(('2', '2', '1', '2', '0', '1', '1', '2'), 1):473.998957275,
(('0', '2', '1', '2', '0', '0', '0', '0'), 2):261.729092767,
(('1', '0', '-1', '0', '-1', '-1', '0', '1'), 2):182.485958077,
(('0', '2', '2', '2', '2', '1', '4', '1'), 3):152.860740708,
(('4', '0', '0', '1', '0', '1', '0', '1'), 2):10,
(('0', '2', '1', '2', '4', '1', '1', '1'), 0):127.326084819,
(('1', '2', '2', '-1', '2', '4', '-1', '-1'), 3):327.368664306,
(('0', '2', '-1', '4', '-1', '-1', '1', '1'), 0):148.665968705,
(('0', '-1', '-1', '0', '-1', '-1', '1', '-1'), 3):344.937912542,
(('0', '1', '1', '4', '0', '1', '4', '0'), 0):11.8992,
(('4', '0', '1', '-1', '0', '1', '-1', '-1'), 0):143.011827674,
(('0', '-1', '0', '2', '1', '-1', '4', '-1'), 0):108.129237043,
(('4', '0', '0', '1', '0', '0', '0', '0'), 1):104.193195739,
(('1', '1', '-1', '0', '-1', '-1', '1', '0'), 3):261.053741471,
(('0', '4', '0', '1', '0', '0', '0', '4'), 2):141.569645084,
(('1', '4', '1', '4', '1', '1', '1', '4'), 1):10,
(('1', '-1', '1', '1', '0', '-1', '4', '-1'), 3):82.0797471604,
(('1', '4', '0', '1', '1', '4', '1', '1'), 1):48.7453284463,
(('2', '2', '-1', '4', '-1', '-1', '1', '0'), 3):132.161996126,
(('0', '0', '1', '-1', '1', '4', '-1', '-1'), 1):117.8457319,
(('4', '2', '2', '2', '2', '1', '1', '1'), 1):10,
(('-1', '4', '1', '1', '-1', '4', '-1', '1'), 3):-2.89186789476,
(('0', '1', '1', '1', '1', '4', '0', '0'), 1):0,
(('1', '1', '1', '-1', '4', '0', '-1', '-1'), 1):65.3606653938,
(('1', '2', '0', '2', '1', '2', '2', '0'), 0):10,
(('1', '1', '-1', '4', '-1', '-1', '0', '1'), 2):217.966816045,
(('0', '1', '0', '1', '0', '4', '0', '1'), 1):202.11004515,
(('0', '1', '4', '-1', '0', '4', '-1', '-1'), 0):234.695229415,
(('0', '1', '4', '-1', '1', '4', '-1', '-1'), 1):35.2526195161,
(('0', '1', '0', '4', '0', '0', '4', '1'), 1):10,
(('1', '2', '0', '2', '2', '4', '2', '0'), 2):10,
(('1', '2', '0', '2', '1', '1', '1', '1'), 1):229.694851958,
(('0', '-1', '1', '-1', '1', '-1', '-1', '-1'), 2):281.964944502,
(('1', '1', '1', '1', '1', '1', '0', '1'), 1):207.617450713,
(('-1', '2', '1', '4', '-1', '1', '-1', '4'), 1):122.860195331,
(('0', '1', '4', '1', '1', '4', '0', '0'), 2):27.8446414746,
(('0', '4', '4', '2', '0', '0', '2', '4'), 2):50,
(('1', '2', '1', '2', '4', '0', '0', '0'), 3):35.8599889993,
(('0', '4', '4', '2', '0', '4', '1', '4'), 2):10,
(('4', '-1', '1', '0', '4', '-1', '4', '-1'), 1):-10,
(('2', '2', '2', '2', '4', '0', '0', '0'), 3):150.666166501,
(('2', '2', '-1', '4', '-1', '-1', '0', '4'), 3):119.510026331,
(('0', '2', '4', '-1', '4', '0', '-1', '-1'), 0):261.645222561,
(('1', '1', '0', '1', '1', '0', '1', '4'), 0):78.5702713108,
(('2', '2', '4', '2', '0', '4', '2', '4'), 1):193.355143659,
(('1', '-1', '1', '1', '4', '-1', '0', '-1'), 3):38.6604009114,
(('0', '0', '1', '0', '0', '1', '0', '0'), 0):228.184554759,
(('-1', '1', '0', '0', '-1', '4', '-1', '1'), 0):47.6520119124,
(('4', '2', '2', '2', '1', '2', '4', '2'), 0):80.4824453758,
(('1', '-1', '0', '1', '0', '-1', '1', '-1'), 2):246.333088183,
(('2', '4', '0', '2', '0', '4', '2', '4'), 2):10,
(('1', '4', '1', '2', '1', '1', '0', '1'), 2):40,
(('0', '2', '4', '2', '4', '2', '0', '1'), 0):91.857499521,
(('4', '2', '4', '2', '0', '0', '0', '0'), 2):0.0,
(('1', '0', '1', '1', '4', '0', '1', '0'), 2):173.026230818,
(('0', '1', '0', '-1', '4', '1', '-1', '-1'), 2):149.874956504,
(('2', '2', '4', '2', '4', '4', '1', '1'), 1):139.60995733,
(('0', '0', '1', '4', '1', '0', '0', '0'), 0):71.1683955371,
(('0', '1', '-1', '4', '-1', '-1', '0', '0'), 3):253.001604765,
(('1', '2', '2', '2', '2', '0', '2', '4'), 3):0,
(('1', '2', '4', '2', '4', '0', '1', '2'), 0):376.544390218,
(('1', '-1', '1', '4', '1', '-1', '0', '-1'), 1):248.045126058,
(('1', '1', '4', '0', '0', '0', '0', '0'), 3):45.9522470141,
(('2', '2', '1', '2', '2', '2', '2', '2'), 0):300.996026917,
(('2', '4', '1', '2', '2', '4', '0', '4'), 1):61.9684091154,
(('1', '0', '1', '-1', '0', '4', '-1', '-1'), 3):30.7835772667,
(('0', '0', '0', '-1', '1', '0', '-1', '-1'), 2):334.641466369,
(('1', '2', '1', '2', '0', '0', '0', '4'), 1):10,
(('2', '2', '4', '2', '2', '0', '1', '0'), 1):150.599356598,
(('0', '2', '0', '2', '4', '0', '2', '1'), 2):216.759849934,
(('0', '-1', '-1', '2', '-1', '-1', '0', '-1'), 3):318.25851635,
(('2', '-1', '0', '2', '1', '-1', '4', '-1'), 1):223.672916371,
(('1', '1', '1', '1', '1', '1', '0', '0'), 3):211.242490089,
(('0', '2', '4', '-1', '4', '4', '-1', '-1'), 3):-285.480891187,
(('1', '2', '2', '2', '1', '1', '1', '1'), 3):236.840740747,
(('0', '1', '0', '1', '0', '0', '0', '1'), 0):230.570030804,
(('0', '1', '0', '0', '0', '0', '4', '1'), 2):0,
(('1', '4', '1', '2', '1', '4', '0', '4'), 1):10,
(('1', '-1', '1', '-1', '1', '-1', '-1', '-1'), 3):308.602588354,
(('0', '2', '2', '2', '0', '0', '4', '2'), 0):10,
(('1', '0', '4', '0', '4', '0', '1', '0'), 3):28.6661856949,
(('0', '-1', '1', '1', '4', '-1', '1', '-1'), 0):14.4102977045,
(('0', '2', '1', '2', '1', '0', '0', '0'), 0):251.620195676,
(('2', '2', '2', '2', '1', '0', '1', '0'), 1):278.066613799,
(('-1', '4', '4', '1', '-1', '4', '-1', '1'), 2):136.880892741,
(('1', '1', '-1', '0', '-1', '-1', '0', '0'), 1):250.572871754,
(('1', '0', '1', '1', '0', '0', '1', '1'), 0):198.924344769,
(('1', '2', '0', '-1', '0', '0', '-1', '-1'), 0):332.405978038,
(('0', '4', '1', '0', '0', '4', '0', '0'), 0):12.8611383747,
(('1', '4', '1', '-1', '0', '0', '-1', '-1'), 0):58.0091486702,
(('1', '2', '1', '2', '4', '4', '2', '2'), 2):10,
(('1', '4', '-1', '2', '-1', '-1', '2', '4'), 2):51.8597725305,
(('4', '2', '1', '2', '4', '0', '0', '0'), 3):97.619700795,
(('0', '2', '2', '2', '2', '1', '0', '0'), 0):327.804896642,
(('2', '-1', '0', '4', '2', '-1', '2', '-1'), 1):10,
(('2', '2', '1', '2', '0', '1', '0', '0'), 0):60.2051323559,
(('1', '-1', '-1', '1', '-1', '-1', '1', '-1'), 0):247.088471896,
(('0', '4', '1', '4', '0', '4', '4', '4'), 2):-10.0,
(('0', '1', '4', '0', '4', '1', '0', '1'), 3):10,
(('4', '4', '4', '0', '4', '4', '4', '4'), 2):0,
(('0', '1', '4', '1', '4', '0', '1', '1'), 2):1.8,
(('1', '0', '1', '1', '1', '0', '1', '0'), 0):248.894802236,
(('1', '1', '1', '1', '0', '1', '1', '4'), 2):75.6637010316,
(('4', '-1', '1', '0', '1', '-1', '0', '-1'), 2):252.294366434,
(('-1', '0', '1', '1', '-1', '1', '-1', '1'), 1):237.669556144,
(('4', '1', '0', '1', '0', '0', '1', '1'), 1):202.959957889,
(('0', '2', '0', '4', '0', '1', '4', '0'), 0):10,
(('4', '-1', '1', '1', '1', '-1', '1', '-1'), 1):51.5867138449,
(('4', '1', '1', '0', '0', '1', '0', '1'), 0):222.945244485,
(('0', '0', '1', '1', '0', '0', '1', '0'), 1):221.461200008,
(('2', '2', '2', '2', '1', '1', '2', '1'), 3):301.256557848,
(('2', '2', '1', '2', '2', '1', '1', '1'), 2):158.175897382,
(('0', '2', '0', '4', '0', '0', '4', '2'), 0):219.332869078,
(('1', '1', '0', '1', '4', '1', '1', '0'), 2):31.9397773351,
(('-1', '1', '0', '1', '-1', '4', '-1', '1'), 0):217.360270546,
(('4', '2', '0', '2', '0', '1', '0', '1'), 1):43.5971991742,
(('4', '2', '0', '2', '1', '0', '4', '1'), 2):61.094722403,
(('0', '2', '2', '2', '2', '0', '1', '2'), 2):352.626748601,
(('-1', '4', '1', '0', '-1', '1', '-1', '4'), 2):2.75242504895,
(('0', '4', '0', '-1', '1', '4', '-1', '-1'), 1):87.7782614583,
(('1', '2', '-1', '2', '-1', '-1', '4', '0'), 2):268.613462483,
(('0', '2', '0', '4', '0', '0', '0', '2'), 0):234.239234305,
(('0', '0', '0', '4', '0', '0', '0', '0'), 2):195.558003336,
(('1', '1', '0', '1', '1', '1', '4', '1'), 2):10,
(('-1', '1', '1', '1', '-1', '4', '-1', '1'), 2):154.518379456,
(('0', '1', '1', '1', '0', '1', '1', '0'), 3):194.633719135,
(('0', '0', '1', '4', '0', '0', '0', '1'), 0):-10,
(('2', '2', '2', '4', '0', '0', '0', '0'), 3):61.8864183759,
(('2', '2', '2', '2', '0', '2', '0', '1'), 1):357.42361133,
(('0', '-1', '0', '4', '1', '-1', '0', '-1'), 3):103.835501486,
(('-1', '2', '1', '2', '-1', '2', '-1', '2'), 1):439.075581686,
(('1', '1', '4', '1', '0', '4', '0', '1'), 2):131.923703794,
(('0', '4', '4', '2', '4', '4', '0', '2'), 2):92.505037246,
(('-1', '0', '1', '1', '-1', '4', '-1', '1'), 2):10,
(('4', '2', '4', '2', '0', '0', '1', '0'), 2):30,
(('1', '0', '0', '4', '1', '0', '4', '0'), 1):52.2318637257,
(('2', '-1', '2', '2', '2', '-1', '1', '-1'), 2):366.724233416,
(('1', '0', '0', '1', '4', '0', '0', '0'), 1):150.068114815,
(('0', '1', '4', '0', '0', '0', '0', '0'), 2):173.956569905,
(('1', '2', '2', '2', '0', '2', '1', '0'), 0):434.225608284,
(('-1', '1', '4', '0', '-1', '0', '-1', '1'), 2):85.0366047195,
(('4', '1', '0', '1', '1', '0', '1', '1'), 0):0,
(('1', '-1', '1', '2', '0', '-1', '1', '-1'), 1):284.492925964,
(('1', '1', '0', '1', '1', '1', '0', '1'), 2):167.248758456,
(('1', '4', '-1', '1', '-1', '-1', '1', '4'), 1):241.802935152,
(('0', '1', '0', '4', '0', '0', '4', '1'), 2):88.7055099366,
(('1', '0', '1', '1', '4', '0', '1', '1'), 2):50.7915320098,
(('2', '4', '0', '2', '1', '0', '0', '0'), 1):117.130870213,
(('0', '4', '0', '2', '0', '1', '1', '1'), 2):50.8564809816,
(('2', '2', '1', '2', '1', '0', '1', '2'), 2):160,
(('4', '2', '0', '2', '4', '0', '1', '1'), 1):10,
(('4', '2', '1', '2', '2', '0', '4', '0'), 1):10,
(('1', '1', '0', '1', '0', '1', '0', '0'), 2):185.720755127,
(('2', '-1', '2', '2', '2', '-1', '2', '-1'), 1):383.175596771,
(('1', '0', '4', '1', '4', '0', '0', '1'), 3):0,
(('2', '2', '1', '2', '2', '2', '0', '4'), 1):66.9438909249,
(('0', '-1', '2', '-1', '1', '-1', '-1', '-1'), 3):309.929372073,
(('0', '-1', '0', '0', '1', '-1', '0', '-1'), 0):273.475697137,
(('0', '-1', '1', '1', '4', '-1', '0', '-1'), 2):195.683872057,
(('1', '0', '1', '0', '1', '1', '0', '0'), 3):254.236120672,
(('0', '1', '1', '0', '0', '1', '4', '0'), 0):135.790379406,
(('2', '2', '0', '2', '2', '0', '1', '1'), 2):366.784820539,
(('0', '2', '1', '2', '1', '1', '2', '2'), 0):458.371029605,
(('0', '1', '1', '1', '0', '0', '1', '1'), 1):202.883787597,
(('4', '-1', '2', '2', '1', '-1', '4', '-1'), 2):50.144765316,
(('0', '2', '1', '2', '0', '2', '1', '0'), 0):175.20196979,
(('4', '0', '-1', '4', '-1', '-1', '4', '0'), 0):27.2694305662,
(('0', '1', '0', '1', '4', '0', '0', '0'), 2):158.498662358,
(('2', '-1', '0', '2', '1', '-1', '4', '-1'), 2):10,
(('1', '1', '0', '1', '0', '1', '1', '0'), 1):195.966680064,
(('0', '0', '4', '-1', '4', '1', '-1', '-1'), 0):0,
(('0', '0', '1', '0', '1', '1', '1', '0'), 2):-10,
(('2', '2', '1', '4', '1', '1', '0', '1'), 1):127.795593965,
(('2', '2', '2', '2', '2', '0', '0', '1'), 2):10,
(('-1', '2', '2', '-1', '-1', '1', '-1', '-1'), 3):333.595551337,
(('-1', '1', '0', '1', '-1', '0', '-1', '0'), 1):257.624962849,
(('2', '2', '2', '2', '2', '2', '2', '0'), 2):412.884911453,
(('0', '0', '0', '0', '0', '1', '0', '1'), 3):10,
(('0', '1', '0', '1', '0', '4', '1', '1'), 2):182.700013074,
(('1', '2', '0', '2', '0', '0', '0', '2'), 0):337.657254524,
(('1', '0', '0', '4', '0', '0', '0', '4'), 1):10.8893468195,
(('0', '-1', '1', '-1', '2', '-1', '-1', '-1'), 0):212.873852407,
(('1', '4', '0', '1', '1', '4', '0', '0'), 1):0,
(('0', '0', '0', '-1', '0', '0', '-1', '-1'), 1):251.779999508,
(('1', '0', '0', '0', '0', '0', '0', '4'), 2):10,
(('0', '2', '0', '2', '0', '2', '2', '2'), 2):313.537963336,
(('0', '4', '-1', '0', '-1', '-1', '0', '4'), 3):215.187495482,
(('1', '1', '0', '1', '0', '0', '0', '0'), 0):231.850825074,
(('0', '-1', '-1', '0', '-1', '-1', '0', '-1'), 2):266.016193768,
(('2', '2', '0', '2', '0', '2', '2', '2'), 1):343.852608783,
(('0', '2', '0', '2', '1', '1', '1', '1'), 2):172.783334321,
(('2', '2', '1', '2', '2', '0', '4', '4'), 1):13.564,
(('4', '1', '1', '1', '4', '0', '0', '1'), 2):5.56438582041,
(('4', '1', '4', '0', '4', '0', '0', '0'), 2):10,
(('0', '2', '1', '2', '1', '1', '4', '0'), 2):133.069767163,
(('0', '2', '0', '2', '0', '4', '2', '0'), 0):109.091029022,
(('4', '-1', '0', '2', '0', '-1', '4', '-1'), 0):197.258700181,
(('-1', '4', '0', '-1', '-1', '0', '-1', '-1'), 1):166.74592787,
(('0', '0', '0', '-1', '0', '1', '-1', '-1'), 1):253.996868924,
(('1', '1', '-1', '4', '-1', '-1', '4', '4'), 1):47.427565292,
(('4', '2', '0', '2', '0', '2', '1', '0'), 0):10,
(('4', '1', '0', '1', '4', '1', '0', '1'), 3):-10,
(('2', '2', '0', '2', '2', '4', '4', '4'), 1):10,
(('4', '2', '2', '2', '0', '1', '2', '1'), 3):10,
(('0', '0', '4', '1', '0', '0', '1', '1'), 2):176.762165063,
(('-1', '0', '4', '0', '-1', '4', '-1', '0'), 3):29.2527516388,
(('0', '2', '-1', '4', '-1', '-1', '2', '4'), 3):10,
(('2', '2', '2', '2', '4', '0', '2', '0'), 0):10,
(('4', '1', '0', '1', '0', '0', '0', '0'), 0):203.55954922,
(('1', '-1', '4', '0', '1', '-1', '1', '-1'), 2):60.1908034254,
(('0', '4', '1', '2', '0', '4', '0', '0'), 2):10,
(('1', '-1', '4', '2', '0', '-1', '0', '-1'), 2):138.517086457,
(('1', '2', '4', '2', '1', '4', '0', '0'), 1):37.4025864112,
(('1', '2', '-1', '2', '-1', '-1', '1', '0'), 0):315.387087789,
(('0', '2', '2', '2', '1', '2', '2', '2'), 3):342.313950582,
(('-1', '4', '2', '4', '-1', '2', '-1', '4'), 3):39.9599152554,
(('2', '-1', '0', '2', '4', '-1', '0', '-1'), 2):43.6514709363,
(('1', '0', '0', '1', '0', '0', '1', '0'), 1):207.389753151,
(('2', '2', '-1', '2', '-1', '-1', '2', '0'), 2):445.798850145,
(('1', '2', '2', '-1', '2', '2', '-1', '-1'), 0):421.761634782,
(('4', '2', '0', '2', '4', '1', '2', '2'), 2):0,
(('2', '2', '0', '2', '2', '1', '0', '0'), 2):313.72154075,
(('0', '1', '4', '1', '0', '4', '4', '0'), 0):10,
(('0', '-1', '4', '2', '2', '-1', '0', '-1'), 3):10,
(('2', '2', '1', '2', '1', '1', '1', '1'), 1):245.184082004,
(('0', '4', '0', '2', '0', '0', '1', '2'), 2):152.843438411,
(('1', '1', '1', '1', '0', '0', '0', '0'), 1):213.268263145,
(('-1', '4', '0', '2', '-1', '0', '-1', '2'), 1):10,
(('4', '2', '0', '2', '4', '1', '4', '0'), 1):10,
(('0', '1', '1', '0', '1', '0', '0', '0'), 0):277.676503196,
(('0', '1', '-1', '1', '-1', '-1', '4', '1'), 2):225.748347698,
(('1', '4', '1', '2', '1', '1', '1', '0'), 3):155.892536352,
(('0', '4', '4', '4', '4', '4', '1', '0'), 3):-10,
(('-1', '4', '0', '0', '-1', '1', '-1', '0'), 3):-10,
(('4', '-1', '-1', '0', '-1', '-1', '0', '-1'), 0):280.105484421,
(('2', '2', '0', '2', '0', '0', '1', '0'), 1):233.036412215,
(('0', '2', '4', '2', '4', '1', '1', '1'), 0):15.8938435547,
(('1', '0', '1', '0', '0', '0', '0', '4'), 1):42.9683497321,
(('0', '0', '4', '0', '1', '0', '0', '0'), 3):135.029171436,
(('2', '2', '1', '2', '4', '0', '2', '0'), 2):169.944729039,
(('1', '4', '0', '0', '1', '0', '0', '1'), 0):0,
(('1', '2', '0', '2', '0', '1', '1', '1'), 1):208.387477925,
(('0', '2', '1', '2', '0', '1', '4', '4'), 3):67.0551564602,
(('0', '1', '4', '-1', '1', '0', '-1', '-1'), 0):167.772139435,
(('4', '1', '0', '0', '1', '0', '0', '0'), 3):10,
(('0', '2', '2', '2', '0', '1', '2', '2'), 3):63.1511169199,
(('-1', '0', '1', '1', '-1', '1', '-1', '4'), 2):44.9300414798,
(('0', '4', '1', '1', '0', '4', '1', '0'), 2):0,
(('0', '-1', '4', '2', '0', '-1', '1', '-1'), 1):10,
(('0', '4', '0', '0', '0', '0', '0', '1'), 3):149.22614744,
(('1', '4', '0', '2', '1', '0', '0', '0'), 1):-92.1032685269,
(('0', '2', '2', '2', '2', '2', '4', '0'), 2):10,
(('1', '2', '0', '2', '1', '0', '1', '1'), 1):241.084890204,
(('1', '-1', '0', '2', '0', '-1', '0', '-1'), 0):301.530032856,
(('1', '2', '2', '2', '1', '0', '4', '0'), 0):113.966558439,
(('0', '1', '0', '0', '1', '0', '1', '1'), 1):29.7834602498,
(('2', '2', '4', '-1', '2', '4', '-1', '-1'), 1):180.723973079,
(('2', '2', '2', '2', '0', '1', '0', '1'), 0):80,
(('4', '-1', '2', '4', '4', '-1', '4', '-1'), 3):23.9882690752,
(('1', '1', '0', '-1', '1', '0', '-1', '-1'), 1):247.659063297,
(('0', '1', '0', '-1', '0', '0', '-1', '-1'), 3):249.21966198,
(('2', '2', '2', '2', '1', '1', '0', '2'), 3):144.977387382,
(('0', '-1', '2', '2', '2', '-1', '2', '-1'), 2):345.684937756,
(('1', '0', '1', '1', '1', '4', '0', '0'), 0):60.1752991167,
(('4', '1', '0', '1', '1', '1', '1', '0'), 0):0,
(('1', '2', '0', '2', '1', '2', '0', '1'), 0):308.480814853,
(('1', '4', '0', '0', '1', '0', '1', '0'), 1):157.310872145,
(('0', '0', '0', '1', '4', '1', '0', '0'), 1):0,
(('4', '0', '4', '0', '4', '0', '0', '0'), 0):50,
(('4', '1', '0', '0', '1', '0', '0', '4'), 3):10,
(('1', '4', '-1', '4', '-1', '-1', '0', '0'), 2):-156.805558639,
(('4', '2', '4', '-1', '0', '0', '-1', '-1'), 2):10,
(('-1', '1', '1', '-1', '-1', '4', '-1', '-1'), 0):187.835155452,
(('0', '1', '-1', '0', '-1', '-1', '0', '0'), 1):243.871013275,
(('1', '1', '0', '4', '1', '0', '0', '1'), 1):74.5067622852,
(('1', '4', '1', '0', '1', '0', '1', '4'), 3):77.2624360272,
(('-1', '1', '1', '1', '-1', '1', '-1', '1'), 1):198.202660884,
(('0', '0', '1', '1', '1', '4', '0', '0'), 1):-10,
(('-1', '2', '4', '2', '-1', '4', '-1', '1'), 1):185.913194855,
(('1', '2', '2', '2', '0', '0', '1', '2'), 3):345.862166954,
(('0', '1', '1', '0', '0', '1', '4', '1'), 2):10,
(('4', '-1', '0', '2', '4', '-1', '2', '-1'), 2):10,
(('0', '2', '0', '2', '1', '1', '0', '1'), 2):232.10843147,
(('0', '2', '0', '2', '2', '1', '2', '0'), 2):10,
(('1', '0', '4', '1', '4', '0', '0', '0'), 2):-2.16,
(('-1', '4', '1', '1', '-1', '1', '-1', '1'), 0):29.2322822375,
(('4', '1', '0', '0', '4', '0', '0', '1'), 0):50.5177640662,
(('0', '2', '1', '2', '1', '2', '0', '1'), 2):10,
(('0', '1', '1', '0', '1', '1', '4', '1'), 1):19.060378877,
(('0', '1', '1', '1', '0', '0', '0', '1'), 2):209.303019867,
(('0', '4', '1', '-1', '0', '1', '-1', '-1'), 2):374.131056763,
(('1', '4', '1', '4', '1', '0', '4', '4'), 3):50,
(('2', '4', '1', '2', '1', '4', '2', '0'), 1):144.533921467,
(('1', '1', '-1', '4', '-1', '-1', '0', '4'), 0):69.546273815,
(('0', '0', '-1', '0', '-1', '-1', '4', '0'), 1):27.853039273,
(('0', '2', '2', '-1', '4', '0', '-1', '-1'), 0):65.8637868582,
(('4', '2', '4', '2', '4', '1', '4', '2'), 0):10,
(('0', '1', '4', '1', '1', '4', '1', '1'), 1):0,
(('2', '2', '2', '2', '0', '1', '2', '0'), 2):383.631535998,
(('-1', '2', '4', '-1', '-1', '0', '-1', '-1'), 3):130.666066242,
(('1', '-1', '4', '-1', '1', '-1', '-1', '-1'), 2):242.956266645,
(('4', '1', '1', '0', '1', '1', '4', '0'), 2):98.1141976736,
(('1', '-1', '2', '2', '0', '-1', '1', '-1'), 3):306.579954022,
(('1', '1', '4', '1', '4', '0', '1', '1'), 0):146.349899997,
(('2', '2', '2', '2', '1', '1', '1', '1'), 2):106.022961008,
(('4', '2', '2', '2', '2', '0', '0', '0'), 3):221.122594117,
(('1', '0', '1', '1', '0', '0', '4', '0'), 3):0,
(('1', '2', '1', '2', '1', '0', '2', '0'), 0):344.415912548,
(('0', '0', '4', '1', '4', '4', '0', '0'), 0):155.665049789,
(('2', '4', '4', '2', '1', '4', '2', '0'), 1):36.756445471,
(('1', '4', '2', '2', '0', '1', '0', '0'), 3):34.9893052996,
(('0', '2', '1', '2', '1', '1', '1', '2'), 0):338.889760461,
(('0', '4', '1', '0', '1', '0', '0', '0'), 3):146.737819765,
(('0', '0', '1', '0', '0', '0', '0', '0'), 2):199.45264651,
(('-1', '0', '4', '1', '-1', '0', '-1', '0'), 1):227.002519193,
(('2', '2', '2', '2', '2', '1', '2', '0'), 1):395.917434414,
(('0', '2', '1', '4', '0', '0', '0', '4'), 0):51.4993879237,
(('2', '4', '0', '2', '2', '0', '1', '0'), 1):180.770354738,
(('4', '-1', '1', '-1', '4', '-1', '-1', '-1'), 1):139.1520507,
(('-1', '1', '4', '1', '-1', '4', '-1', '1'), 0):97.7957036629,
(('1', '2', '1', '2', '4', '1', '1', '2'), 2):268.093113917,
(('0', '0', '0', '1', '1', '0', '1', '1'), 0):52.5555812731,
(('0', '1', '0', '1', '0', '1', '1', '1'), 0):242.602587837,
(('0', '2', '4', '2', '1', '4', '1', '2'), 2):10,
(('1', '4', '4', '1', '1', '4', '1', '4'), 2):10,
(('2', '4', '0', '2', '0', '4', '0', '4'), 1):142.190928639,
(('0', '2', '0', '2', '2', '2', '0', '2'), 2):276.753796005,
(('-1', '2', '0', '2', '-1', '1', '-1', '1'), 1):283.127730684,
(('2', '-1', '2', '2', '0', '-1', '0', '-1'), 1):257.472300587,
(('1', '-1', '1', '2', '2', '-1', '2', '-1'), 2):59.1505227017,
(('2', '2', '2', '2', '1', '2', '0', '2'), 1):111.972592956,
(('0', '2', '2', '4', '2', '4', '0', '4'), 3):10,
(('-1', '2', '1', '2', '-1', '4', '-1', '0'), 1):209.042962692,
(('1', '2', '-1', '4', '-1', '-1', '4', '0'), 1):0,
(('1', '0', '4', '4', '1', '4', '4', '0'), 2):53.1068036286,
(('0', '1', '4', '1', '0', '1', '1', '1'), 0):169.846927203,
(('1', '4', '1', '0', '1', '0', '0', '0'), 2):149.59552952,
(('1', '1', '0', '1', '0', '0', '4', '1'), 2):142.755837172,
(('4', '0', '1', '1', '0', '1', '0', '0'), 1):0,
(('0', '1', '4', '0', '4', '1', '0', '0'), 2):68.2891931915,
(('0', '4', '0', '4', '0', '1', '0', '1'), 3):50,
(('1', '4', '1', '1', '1', '4', '0', '4'), 2):9.07340147882,
(('0', '2', '0', '4', '0', '0', '1', '1'), 2):10,
(('0', '0', '1', '1', '0', '0', '4', '0'), 2):74.004251742,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '2'), 2):317.669252331,
(('0', '2', '2', '2', '0', '1', '4', '1'), 3):204.990931417,
(('0', '2', '2', '2', '2', '1', '4', '4'), 3):61.1644878529,
(('2', '2', '0', '-1', '0', '1', '-1', '-1'), 2):312.052425272,
(('0', '1', '0', '0', '0', '1', '1', '0'), 0):203.511858314,
(('1', '-1', '0', '4', '0', '-1', '1', '-1'), 3):132.751011854,
(('0', '2', '2', '2', '0', '1', '2', '0'), 3):10,
(('1', '2', '2', '-1', '1', '2', '-1', '-1'), 3):414.859836663,
(('2', '2', '1', '2', '2', '0', '2', '0'), 0):187.1856934,
(('2', '2', '0', '2', '2', '0', '0', '4'), 0):65.4034613532,
(('4', '2', '2', '2', '4', '4', '4', '0'), 3):10,
(('2', '-1', '0', '-1', '1', '-1', '-1', '-1'), 1):298.573712619,
(('0', '-1', '1', '0', '1', '-1', '1', '-1'), 3):209.833510617,
(('2', '2', '4', '2', '4', '0', '1', '1'), 1):102.112747648,
(('1', '0', '1', '4', '1', '0', '1', '4'), 0):92.7257629733,
(('4', '2', '0', '2', '1', '0', '4', '0'), 2):96.4669178217,
(('0', '0', '1', '4', '0', '0', '0', '4'), 0):58.6971104413,
(('1', '1', '4', '1', '0', '1', '1', '1'), 1):161.211766844,
(('1', '4', '-1', '1', '-1', '-1', '0', '4'), 0):60.415698464,
(('0', '1', '1', '1', '1', '0', '1', '0'), 0):182.607924915,
(('1', '4', '1', '1', '0', '0', '0', '1'), 1):-10,
(('1', '2', '1', '2', '2', '0', '1', '2'), 2):10,
(('0', '2', '2', '-1', '1', '1', '-1', '-1'), 2):212.074613652,
(('1', '0', '1', '4', '1', '1', '1', '0'), 3):192.614856577,
(('2', '-1', '2', '2', '2', '-1', '0', '-1'), 1):315.014175299,
(('2', '2', '1', '2', '4', '2', '0', '2'), 1):10,
(('1', '1', '1', '1', '1', '4', '0', '1'), 3):10,
(('2', '2', '0', '-1', '0', '2', '-1', '-1'), 1):300.030444179,
(('4', '1', '1', '4', '1', '1', '4', '1'), 0):0,
(('1', '2', '4', '2', '4', '1', '0', '0'), 0):10,
(('0', '2', '1', '2', '1', '0', '0', '1'), 0):263.013779503,
(('2', '2', '2', '2', '2', '0', '0', '4'), 2):10,
(('2', '2', '4', '2', '2', '0', '0', '0'), 0):10,
(('0', '2', '1', '2', '1', '1', '0', '1'), 2):272.949631529,
(('-1', '4', '1', '2', '-1', '0', '-1', '4'), 3):10,
(('0', '2', '4', '2', '0', '1', '1', '1'), 0):220.344096255,
(('1', '-1', '2', '-1', '1', '-1', '-1', '-1'), 3):332.166437671,
(('1', '-1', '2', '2', '1', '-1', '0', '-1'), 2):368.098885656,
(('4', '0', '0', '1', '0', '0', '0', '1'), 3):123.38918268,
(('4', '-1', '1', '2', '1', '-1', '1', '-1'), 2):160.777941055,
(('0', '2', '1', '2', '1', '4', '0', '0'), 1):50.204418239,
(('0', '-1', '2', '-1', '0', '-1', '-1', '-1'), 3):277.889850779,
(('1', '2', '2', '-1', '4', '0', '-1', '-1'), 2):10,
(('4', '1', '1', '4', '1', '1', '4', '0'), 2):39.2258038944,
(('2', '4', '1', '-1', '0', '0', '-1', '-1'), 1):50.8179546755,
(('4', '-1', '-1', '2', '-1', '-1', '4', '-1'), 1):134.478691471,
(('1', '-1', '1', '2', '1', '-1', '1', '-1'), 3):327.850295885,
(('0', '4', '1', '0', '0', '0', '0', '4'), 2):2.36,
(('1', '2', '0', '2', '2', '0', '2', '2'), 0):407.090519033,
(('0', '2', '1', '4', '0', '1', '4', '4'), 3):21.1628299722,
(('0', '1', '0', '0', '0', '0', '0', '4'), 0):113.624486013,
(('1', '2', '2', '2', '1', '2', '0', '2'), 0):415.397544651,
(('0', '1', '1', '4', '1', '1', '4', '0'), 0):42.8039729063,
(('1', '1', '1', '1', '4', '1', '1', '0'), 1):-24.8997547504,
(('2', '4', '0', '2', '1', '4', '2', '0'), 1):73.472506496,
(('-1', '4', '0', '1', '-1', '4', '-1', '0'), 0):-10,
(('4', '0', '-1', '1', '-1', '-1', '1', '0'), 1):263.561202429,
(('2', '-1', '1', '-1', '2', '-1', '-1', '-1'), 2):348.125925126,
(('1', '0', '1', '4', '1', '1', '4', '0'), 3):41.5079856518,
(('0', '1', '0', '4', '0', '1', '0', '4'), 2):69.401918543,
(('2', '2', '2', '2', '0', '2', '1', '1'), 3):299.876825137,
(('1', '0', '-1', '4', '-1', '-1', '4', '0'), 3):200.356201858,
(('1', '1', '1', '0', '0', '1', '0', '1'), 1):210.650265399,
(('0', '0', '1', '1', '1', '0', '1', '0'), 0):123.161429093,
(('0', '-1', '4', '1', '1', '-1', '0', '-1'), 1):10,
(('0', '-1', '1', '-1', '4', '-1', '-1', '-1'), 1):213.88969214,
(('2', '2', '4', '2', '0', '1', '2', '1'), 2):205.117818123,
(('0', '0', '0', '1', '4', '0', '0', '1'), 1):95.951469138,
(('1', '0', '4', '-1', '0', '0', '-1', '-1'), 2):245.390519177,
(('4', '2', '1', '-1', '4', '0', '-1', '-1'), 0):288.141539414,
(('4', '2', '-1', '2', '-1', '-1', '4', '2'), 2):315.004588766,
(('4', '-1', '1', '2', '1', '-1', '0', '-1'), 3):293.407048328,
(('2', '4', '1', '2', '0', '1', '2', '4'), 1):96.4103015799,
(('0', '4', '1', '2', '0', '4', '0', '2'), 2):10.0,
(('1', '-1', '1', '0', '0', '-1', '1', '-1'), 2):253.777884618,
(('4', '2', '1', '2', '1', '0', '0', '0'), 0):153.118909298,
(('4', '1', '0', '1', '1', '0', '4', '0'), 0):-20,
(('4', '1', '4', '1', '4', '0', '1', '0'), 0):50,
(('0', '0', '0', '4', '0', '0', '1', '1'), 1):-10.0,
(('2', '2', '1', '2', '1', '1', '0', '0'), 2):290.789105227,
(('0', '1', '1', '4', '1', '0', '0', '0'), 1):75.5047113188,
(('4', '-1', '0', '2', '1', '-1', '0', '-1'), 3):59.1365549675,
(('-1', '0', '1', '4', '-1', '1', '-1', '0'), 1):135.418605737,
(('4', '2', '2', '2', '4', '2', '0', '0'), 0):183.495114426,
(('0', '2', '2', '-1', '0', '0', '-1', '-1'), 2):516.882633343,
(('1', '-1', '4', '2', '1', '-1', '1', '-1'), 2):280.240504155,
(('1', '1', '4', '0', '1', '4', '1', '0'), 0):10,
(('1', '0', '-1', '4', '-1', '-1', '0', '0'), 3):222.485719552,
(('0', '1', '1', '0', '1', '0', '0', '4'), 2):0,
(('1', '0', '4', '1', '1', '4', '0', '0'), 2):33.3722885842,
(('2', '2', '1', '2', '0', '4', '1', '1'), 1):22.0,
(('4', '2', '2', '4', '1', '0', '4', '0'), 3):-8.66064820154,
(('0', '2', '0', '-1', '1', '4', '-1', '-1'), 2):189.15336582,
(('0', '-1', '2', '2', '0', '-1', '4', '-1'), 2):10,
(('2', '-1', '0', '2', '2', '-1', '1', '-1'), 1):350.879719807,
(('2', '2', '4', '2', '4', '0', '2', '0'), 1):245.345182128,
(('1', '4', '1', '0', '0', '0', '0', '0'), 1):194.627763894,
(('0', '0', '-1', '1', '-1', '-1', '0', '1'), 2):261.505964271,
(('1', '-1', '0', '1', '1', '-1', '4', '-1'), 2):113.289961684,
(('4', '0', '1', '0', '1', '1', '0', '0'), 3):220.360658817,
(('4', '2', '-1', '2', '-1', '-1', '1', '4'), 1):30,
(('4', '1', '1', '4', '0', '0', '0', '0'), 3):94.9964664576,
(('-1', '1', '4', '1', '-1', '4', '-1', '0'), 1):91.0675053429,
(('4', '-1', '-1', '4', '-1', '-1', '0', '-1'), 0):10,
(('1', '0', '0', '4', '1', '0', '1', '0'), 3):200.337042941,
(('4', '4', '0', '2', '0', '1', '0', '4'), 0):10,
(('2', '2', '1', '2', '1', '0', '4', '4'), 1):152.957539881,
(('2', '2', '1', '4', '0', '1', '0', '0'), 1):96.2141327949,
(('4', '2', '0', '2', '0', '1', '1', '0'), 2):10,
(('4', '2', '1', '-1', '4', '1', '-1', '-1'), 2):168.451278246,
(('-1', '4', '4', '1', '-1', '4', '-1', '0'), 1):0,
(('0', '1', '1', '4', '0', '0', '0', '1'), 2):0,
(('4', '-1', '0', '0', '4', '-1', '0', '-1'), 0):4.74477092337,
(('1', '4', '0', '4', '1', '0', '1', '4'), 1):0,
(('1', '2', '0', '2', '0', '0', '0', '4'), 1):158.339753734,
(('1', '-1', '-1', '4', '-1', '-1', '4', '-1'), 1):215.715211338,
(('4', '-1', '2', '2', '0', '-1', '0', '-1'), 3):-119.306752166,
(('1', '2', '-1', '4', '-1', '-1', '1', '0'), 2):78.0602607734,
(('2', '-1', '2', '2', '0', '-1', '4', '-1'), 0):10,
(('4', '-1', '1', '1', '0', '-1', '4', '-1'), 0):51.4866459246,
(('4', '1', '-1', '1', '-1', '-1', '1', '0'), 0):210.12304428,
(('1', '2', '1', '4', '1', '0', '1', '0'), 0):81.7407163289,
(('2', '2', '2', '2', '1', '1', '1', '0'), 3):153.417420207,
(('0', '2', '0', '2', '0', '1', '0', '0'), 2):230.097286725,
(('2', '2', '-1', '2', '-1', '-1', '1', '4'), 2):100.254205529,
(('1', '4', '4', '1', '0', '0', '1', '0'), 2):10,
(('0', '0', '0', '1', '0', '0', '0', '4'), 2):153.974777707,
(('4', '1', '-1', '0', '-1', '-1', '4', '1'), 1):98.5414216406,
(('0', '2', '1', '4', '1', '2', '0', '0'), 0):188.053265658,
(('1', '2', '1', '2', '1', '4', '0', '0'), 2):145.939397397,
(('1', '4', '1', '1', '1', '0', '1', '0'), 3):204.743887584,
(('4', '1', '0', '1', '0', '1', '4', '0'), 0):0,
(('-1', '2', '0', '2', '-1', '4', '-1', '1'), 2):247.256850077,
(('2', '4', '1', '-1', '2', '4', '-1', '-1'), 1):177.133379469,
(('-1', '2', '2', '-1', '-1', '4', '-1', '-1'), 2):10,
(('1', '2', '0', '2', '0', '2', '1', '1'), 0):402.002270699,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '0'), 3):262.545371853,
(('4', '-1', '0', '1', '4', '-1', '0', '-1'), 3):35.1475665214,
(('0', '2', '2', '2', '0', '0', '2', '0'), 3):317.783922331,
(('0', '4', '0', '1', '0', '0', '0', '0'), 2):198.969476183,
(('1', '4', '1', '1', '1', '0', '1', '4'), 2):35.7022288615,
(('0', '4', '0', '1', '0', '4', '1', '4'), 0):-10,
(('4', '0', '1', '1', '0', '0', '0', '0'), 0):82.1850225481,
(('1', '1', '4', '0', '1', '4', '0', '0'), 1):10,
(('-1', '4', '0', '0', '-1', '4', '-1', '0'), 3):12.1477434543,
(('4', '0', '4', '0', '1', '4', '0', '0'), 3):10,
(('0', '2', '1', '2', '1', '1', '2', '1'), 0):10,
(('0', '2', '4', '2', '4', '4', '0', '0'), 3):60.0557245039,
(('0', '1', '-1', '0', '-1', '-1', '4', '0'), 3):224.358408397,
(('2', '2', '2', '2', '2', '4', '2', '0'), 2):10,
(('1', '1', '1', '1', '0', '1', '0', '4'), 0):0,
(('0', '1', '0', '4', '0', '1', '4', '4'), 3):0,
(('0', '2', '4', '2', '1', '1', '0', '1'), 0):168.054680641,
(('0', '2', '2', '2', '2', '1', '0', '4'), 3):249.941204469,
(('0', '-1', '0', '2', '0', '-1', '0', '-1'), 0):245.971865225,
(('1', '1', '0', '0', '0', '1', '4', '0'), 0):0,
(('0', '2', '1', '2', '0', '0', '0', '0'), 3):254.058556546,
(('2', '4', '1', '2', '1', '1', '0', '4'), 1):193.643609246,
(('4', '2', '0', '2', '4', '0', '4', '1'), 2):197.75424447,
(('1', '4', '2', '2', '0', '2', '0', '4'), 3):10,
(('0', '2', '-1', '4', '-1', '-1', '1', '2'), 0):10,
(('4', '2', '0', '2', '0', '0', '4', '1'), 2):232.547882214,
(('1', '0', '-1', '0', '-1', '-1', '0', '1'), 3):166.039072764,
(('1', '2', '4', '-1', '1', '4', '-1', '-1'), 0):281.771208436,
(('2', '2', '2', '2', '2', '1', '0', '0'), 0):168.133852775,
(('0', '2', '1', '2', '4', '1', '1', '1'), 3):48.0724684438,
(('0', '0', '1', '1', '1', '1', '1', '0'), 3):94.403514695,
(('1', '4', '0', '2', '0', '0', '1', '0'), 2):-27.5435935076,
(('1', '1', '0', '4', '1', '0', '4', '4'), 2):45.3939073679,
(('0', '-1', '-1', '0', '-1', '-1', '1', '-1'), 2):268.451127191,
(('0', '1', '1', '4', '0', '1', '4', '0'), 1):90.209383665,
(('4', '2', '1', '2', '0', '1', '1', '1'), 2):73.1248251082,
(('4', '0', '1', '-1', '0', '1', '-1', '-1'), 1):70.0034041897,
(('0', '4', '2', '2', '2', '0', '0', '4'), 3):138.816732648,
(('0', '2', '1', '2', '4', '0', '0', '0'), 1):10,
(('1', '1', '-1', '0', '-1', '-1', '1', '0'), 2):234.296625552,
(('1', '2', '1', '2', '1', '1', '1', '4'), 2):63.5155392077,
(('0', '4', '0', '1', '0', '0', '0', '4'), 3):138.873135873,
(('1', '2', '2', '2', '1', '1', '0', '0'), 2):97.2706725646,
(('1', '2', '1', '2', '1', '4', '2', '4'), 2):45.7621888755,
(('4', '2', '1', '-1', '1', '1', '-1', '-1'), 1):237.905603494,
(('2', '4', '0', '2', '0', '0', '2', '1'), 1):295.980188493,
(('0', '0', '1', '-1', '1', '4', '-1', '-1'), 2):178.121328712,
(('-1', '4', '1', '1', '-1', '4', '-1', '1'), 2):47.2456804815,
(('0', '1', '1', '4', '0', '1', '4', '1'), 1):112.096516778,
(('1', '2', '1', '4', '1', '0', '1', '2'), 0):57.8168475295,
(('1', '1', '1', '-1', '4', '0', '-1', '-1'), 0):174.419600752,
(('4', '1', '1', '0', '0', '0', '4', '0'), 1):8.0,
(('4', '1', '1', '0', '4', '1', '4', '1'), 1):10,
(('1', '0', '1', '1', '4', '0', '0', '0'), 1):29.9388745598,
(('1', '-1', '2', '2', '2', '-1', '2', '-1'), 0):384.976398791,
(('0', '2', '1', '2', '2', '0', '2', '2'), 0):263.738138531,
(('4', '0', '1', '4', '4', '0', '4', '0'), 0):-10,
(('0', '2', '4', '2', '1', '4', '1', '1'), 2):20,
(('0', '-1', '1', '2', '2', '-1', '2', '-1'), 0):10,
(('1', '4', '0', '2', '0', '4', '1', '0'), 1):38.79402514,
(('1', '2', '2', '2', '2', '2', '1', '0'), 0):358.963076035,
(('1', '1', '4', '1', '1', '1', '0', '0'), 1):-1.00204443262,
(('1', '0', '4', '1', '0', '0', '1', '0'), 0):216.562628365,
(('2', '2', '0', '-1', '2', '1', '-1', '-1'), 2):391.842354034,
(('0', '1', '1', '1', '1', '4', '0', '0'), 0):10,
(('1', '1', '4', '0', '4', '4', '1', '0'), 0):0,
(('2', '4', '0', '2', '2', '4', '2', '0'), 2):49.0750848845,
(('1', '4', '1', '1', '0', '0', '1', '0'), 3):0,
(('0', '4', '0', '-1', '0', '4', '-1', '-1'), 3):0,
(('1', '2', '0', '2', '1', '2', '1', '4'), 0):79.3503935035,
(('1', '2', '1', '2', '4', '0', '0', '0'), 2):-4.43076477145,
(('4', '1', '1', '1', '1', '0', '1', '0'), 0):0,
(('2', '2', '2', '2', '4', '0', '0', '0'), 2):0,
(('0', '4', '1', '2', '0', '1', '0', '1'), 2):91.7022101839,
(('0', '-1', '0', '-1', '0', '-1', '-1', '-1'), 0):272.795826261,
(('1', '1', '0', '1', '1', '0', '1', '4'), 1):140.92654915,
(('1', '0', '1', '1', '0', '0', '1', '1'), 1):212.313602286,
(('0', '4', '0', '1', '0', '1', '0', '4'), 3):10,
(('1', '-1', '1', '1', '4', '-1', '0', '-1'), 2):102.167167981,
(('0', '0', '1', '0', '0', '1', '0', '0'), 3):227.249263031,
(('1', '2', '1', '2', '1', '1', '0', '4'), 1):171.150433616,
(('1', '-1', '0', '1', '0', '-1', '1', '-1'), 1):260.278769053,
(('4', '2', '1', '2', '1', '0', '2', '1'), 2):10,
(('2', '2', '2', '2', '0', '4', '1', '0'), 3):89.3489811969,
(('0', '2', '1', '2', '0', '1', '0', '4'), 1):0,
(('2', '4', '0', '2', '0', '4', '2', '4'), 1):139.854572825,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '1'), 2):231.055061638,
(('0', '2', '2', '2', '1', '0', '1', '1'), 3):247.635105042,
(('2', '4', '-1', '2', '-1', '-1', '2', '4'), 2):55.0526358095,
(('0', '4', '4', '-1', '0', '0', '-1', '-1'), 0):-10,
(('-1', '4', '0', '0', '-1', '4', '-1', '0'), 0):60.0412236951,
(('1', '0', '4', '1', '1', '0', '1', '1'), 2):189.125998728,
(('0', '1', '0', '-1', '4', '1', '-1', '-1'), 3):113.957832883,
(('-1', '4', '1', '0', '-1', '1', '-1', '0'), 0):194.686057156,
(('-1', '2', '2', '2', '-1', '2', '-1', '0'), 2):322.914551022,
(('0', '2', '0', '2', '2', '2', '0', '4'), 0):51.2314491085,
(('1', '2', '-1', '2', '-1', '-1', '2', '1'), 0):10,
(('2', '2', '1', '2', '1', '1', '2', '4'), 1):285.710487384,
(('1', '1', '0', '0', '0', '0', '1', '4'), 3):10,
(('2', '2', '1', '2', '2', '2', '0', '0'), 0):446.077827471,
(('1', '2', '4', '2', '4', '0', '1', '2'), 3):34.0300378038,
(('4', '-1', '4', '2', '4', '-1', '4', '-1'), 2):97.771538679,
(('4', '2', '2', '2', '0', '2', '1', '2'), 0):10,
(('1', '1', '4', '0', '0', '0', '0', '0'), 2):0,
(('1', '4', '1', '2', '1', '0', '0', '4'), 3):10,
(('0', '2', '4', '-1', '2', '2', '-1', '-1'), 0):10,
(('4', '2', '0', '2', '0', '0', '4', '2'), 2):266.146956782,
(('0', '0', '0', '-1', '1', '0', '-1', '-1'), 1):296.713543027,
(('1', '0', '1', '0', '1', '0', '1', '0'), 1):233.744893181,
(('0', '-1', '-1', '2', '-1', '-1', '0', '-1'), 0):306.696459279,
(('-1', '2', '4', '2', '-1', '0', '-1', '2'), 3):11.8,
(('1', '1', '1', '0', '1', '1', '1', '1'), 2):187.541756851,
(('0', '0', '1', '0', '1', '1', '4', '0'), 1):33.097548903,
(('1', '1', '1', '1', '1', '1', '0', '0'), 2):209.677438769,
(('4', '0', '1', '1', '1', '0', '1', '1'), 0):-10,
(('1', '4', '1', '1', '0', '0', '1', '1'), 3):68.3027209982,
(('0', '4', '2', '2', '0', '2', '0', '4'), 3):211.733560299,
(('0', '1', '0', '1', '0', '0', '0', '1'), 1):219.736305108,
(('-1', '2', '0', '2', '-1', '0', '-1', '4'), 0):209.109377595,
(('1', '-1', '1', '-1', '1', '-1', '-1', '-1'), 2):286.173761327,
(('0', '2', '2', '2', '0', '1', '2', '1'), 3):64.7285274993,
(('0', '2', '2', '2', '0', '0', '4', '2'), 3):272.712869455,
(('2', '4', '2', '2', '0', '0', '0', '1'), 3):97.9715675607,
(('2', '4', '-1', '2', '-1', '-1', '1', '4'), 3):10,
(('4', '2', '0', '4', '0', '2', '4', '0'), 0):139.018168814,
(('0', '-1', '1', '1', '4', '-1', '1', '-1'), 3):35.016889899,
(('2', '2', '0', '2', '2', '4', '0', '0'), 1):216.60791549,
(('1', '1', '1', '1', '0', '0', '0', '1'), 1):196.703456399,
(('2', '2', '2', '2', '1', '0', '1', '0'), 0):220.481474294,
(('1', '2', '0', '-1', '0', '0', '-1', '-1'), 3):270.07221771,
(('0', '4', '1', '0', '0', '4', '0', '0'), 1):34.2939483319,
(('1', '4', '1', '-1', '0', '0', '-1', '-1'), 1):124.011428897,
(('4', '2', '2', '2', '1', '1', '4', '4'), 3):10,
(('1', '2', '1', '2', '1', '1', '1', '0'), 2):279.866006054,
(('1', '2', '1', '-1', '2', '0', '-1', '-1'), 2):270,
(('1', '4', '0', '2', '1', '0', '1', '0'), 1):170.377405793,
(('2', '2', '1', '4', '1', '1', '2', '1'), 1):28.0,
(('4', '2', '1', '2', '4', '0', '0', '0'), 0):121.509178155,
(('2', '2', '1', '2', '0', '4', '2', '4'), 1):79.3265233328,
(('-1', '0', '0', '0', '-1', '0', '-1', '0'), 2):220.151984261,
(('4', '2', '0', '2', '1', '1', '0', '0'), 0):0,
(('0', '2', '1', '2', '1', '2', '2', '2'), 0):319.709478663,
(('0', '-1', '4', '1', '1', '-1', '0', '-1'), 2):-19.3074368336,
(('4', '2', '1', '2', '4', '2', '0', '1'), 0):10,
(('0', '0', '0', '1', '1', '0', '1', '0'), 0):81.8713029456,
(('1', '4', '2', '4', '1', '2', '1', '4'), 3):83.1741399704,
(('0', '1', '1', '1', '0', '1', '1', '1'), 1):174.275713176,
(('1', '0', '1', '1', '1', '0', '1', '0'), 1):224.65612428,
(('-1', '0', '0', '0', '-1', '4', '-1', '0'), 3):16.9833482846,
(('1', '2', '4', '2', '1', '2', '1', '2'), 3):130,
(('4', '-1', '1', '0', '1', '-1', '0', '-1'), 3):276.386257467,
(('4', '1', '0', '1', '0', '0', '1', '1'), 0):194.058922204,
(('4', '-1', '1', '1', '1', '-1', '1', '-1'), 2):153.625109862,
(('2', '2', '2', '2', '2', '4', '0', '0'), 3):193.666607244,
(('2', '2', '4', '-1', '4', '1', '-1', '-1'), 3):60,
(('-1', '2', '0', '2', '-1', '4', '-1', '2'), 0):241.458450591,
(('2', '2', '2', '2', '2', '2', '1', '4'), 3):139.142543891,
(('1', '1', '1', '4', '1', '0', '0', '0'), 3):67.3569085194,
(('2', '2', '1', '2', '0', '1', '2', '1'), 2):314.4586426,
(('0', '1', '-1', '4', '-1', '-1', '4', '4'), 2):114.438766111,
(('-1', '0', '4', '1', '-1', '4', '-1', '1'), 1):44.7259404108,
(('0', '0', '0', '0', '0', '1', '4', '0'), 1):10,
(('1', '2', '2', '2', '0', '0', '0', '2'), 0):312.830096184,
(('1', '1', '1', '0', '1', '1', '4', '0'), 3):211.20651874,
(('1', '4', '4', '1', '4', '4', '0', '1'), 2):50,
(('1', '1', '1', '1', '0', '0', '1', '4'), 3):117.265332736,
(('0', '2', '1', '2', '4', '1', '0', '4'), 2):0,
(('4', '2', '0', '2', '0', '1', '0', '1'), 0):162.912229526,
(('-1', '4', '1', '0', '-1', '1', '-1', '4'), 3):174.519084489,
(('4', '2', '2', '4', '0', '1', '4', '4'), 3):62.8832094623,
(('-1', '2', '4', '2', '-1', '2', '-1', '0'), 0):60.7459181309,
(('2', '4', '0', '2', '0', '1', '2', '1'), 1):10,
(('2', '4', '0', '2', '2', '0', '2', '1'), 2):10,
(('-1', '1', '1', '1', '-1', '4', '-1', '1'), 3):106.51011489,
(('0', '1', '1', '1', '0', '1', '1', '0'), 0):174.7120899,
(('1', '0', '1', '0', '1', '0', '1', '1'), 3):82.8820460393,
(('2', '2', '2', '2', '0', '2', '0', '1'), 2):380.49461109,
(('0', '2', '1', '2', '2', '2', '0', '0'), 2):202.657393861,
(('-1', '2', '1', '2', '-1', '2', '-1', '2'), 0):403.140383407,
(('1', '1', '1', '4', '0', '1', '1', '0'), 2):-10,
(('4', '2', '1', '2', '2', '1', '0', '1'), 1):10,
(('0', '4', '4', '2', '0', '4', '2', '4'), 2):10,
(('1', '0', '0', '1', '1', '1', '0', '0'), 1):10,
(('4', '2', '4', '2', '0', '0', '1', '0'), 3):10,
(('0', '4', '4', '2', '4', '4', '2', '4'), 2):81.7537378041,
(('2', '2', '0', '2', '0', '0', '2', '2'), 1):390.810751707,
(('1', '0', '0', '1', '4', '0', '0', '0'), 0):28.5048516989,
(('4', '1', '1', '1', '1', '1', '4', '1'), 3):100.764788901,
(('0', '1', '4', '0', '0', '0', '0', '0'), 3):185.98753711,
(('2', '2', '0', '2', '1', '0', '0', '4'), 1):187.86550855,
(('-1', '1', '4', '0', '-1', '0', '-1', '1'), 3):98.6773341682,
(('2', '4', '1', '2', '2', '1', '1', '1'), 1):140,
(('4', '1', '0', '1', '1', '0', '1', '1'), 1):-4.2,
(('4', '4', '4', '0', '4', '4', '0', '0'), 3):0,
(('1', '-1', '1', '2', '0', '-1', '1', '-1'), 0):263.840984169,
(('0', '2', '2', '2', '4', '1', '0', '1'), 3):223.485101362,
(('1', '4', '-1', '1', '-1', '-1', '1', '4'), 0):204.527494398,
(('-1', '0', '0', '-1', '-1', '4', '-1', '-1'), 1):88.5713582262,
(('4', '1', '1', '-1', '0', '0', '-1', '-1'), 0):181.219745522,
(('1', '0', '4', '0', '0', '1', '0', '0'), 1):10,
(('4', '0', '1', '0', '1', '0', '1', '0'), 3):10,
(('2', '4', '0', '2', '1', '0', '0', '0'), 2):10,
(('1', '2', '4', '4', '2', '0', '1', '4'), 3):80,
(('-1', '1', '1', '4', '-1', '1', '-1', '1'), 3):231.842252368,
(('2', '2', '1', '2', '4', '1', '4', '0'), 1):10,
(('2', '-1', '2', '2', '2', '-1', '2', '-1'), 2):316.414600062,
(('0', '0', '4', '-1', '0', '4', '-1', '-1'), 2):148.193246834,
(('4', '2', '2', '2', '0', '1', '0', '0'), 3):242.535578479,
(('0', '-1', '1', '1', '4', '-1', '0', '-1'), 3):161.82506186,
(('0', '1', '1', '0', '0', '1', '4', '0'), 1):101.72666259,
(('0', '1', '0', '4', '0', '0', '0', '0'), 2):175.956873569,
(('1', '2', '0', '2', '0', '4', '1', '2'), 2):180.150578441,
(('2', '-1', '4', '2', '2', '-1', '2', '-1'), 3):71.3354658131,
(('1', '1', '0', '1', '0', '1', '1', '0'), 2):159.064468241,
(('0', '-1', '1', '2', '4', '-1', '0', '-1'), 0):227.566953988,
(('2', '2', '0', '4', '1', '0', '1', '1'), 1):10,
(('4', '1', '-1', '1', '-1', '-1', '4', '0'), 3):64.215741512,
(('0', '0', '4', '0', '0', '0', '0', '0'), 1):192.066542023,
(('1', '4', '1', '4', '0', '4', '0', '4'), 1):-1000,
(('-1', '2', '2', '-1', '-1', '1', '-1', '-1'), 2):331.772157695,
(('4', '2', '0', '2', '4', '2', '4', '0'), 2):63.8891835736,
(('2', '2', '2', '2', '2', '2', '2', '0'), 1):441.254621287,
(('2', '2', '2', '2', '0', '2', '1', '0'), 0):226.887542062,
(('1', '0', '0', '4', '0', '0', '0', '4'), 2):-10,
(('-1', '2', '2', '2', '-1', '0', '-1', '4'), 1):128.544023228,
(('0', '4', '0', '0', '0', '4', '1', '0'), 3):53.3493511552,
(('1', '0', '1', '0', '4', '1', '0', '0'), 0):82.5749230398,
(('4', '2', '1', '4', '0', '0', '4', '0'), 1):-60,
(('2', '2', '1', '2', '2', '1', '2', '2'), 0):496.451630914,
(('0', '-1', '-1', '0', '-1', '-1', '0', '-1'), 3):260.71779402,
(('2', '2', '0', '2', '0', '2', '2', '2'), 0):293.861482369,
(('4', '2', '1', '2', '0', '0', '4', '1'), 2):51.5812888483,
(('4', '1', '4', '0', '4', '0', '0', '0'), 3):10,
(('2', '4', '2', '2', '1', '2', '1', '4'), 1):10,
(('2', '2', '1', '-1', '4', '1', '-1', '-1'), 1):274.963998611,
(('4', '2', '2', '-1', '4', '1', '-1', '-1'), 1):73.3611606364,
(('4', '-1', '0', '2', '0', '-1', '4', '-1'), 1):172.211731886,
(('0', '2', '1', '-1', '0', '1', '-1', '-1'), 1):269.784109159,
(('4', '0', '0', '1', '4', '0', '1', '0'), 1):0,
(('0', '0', '0', '-1', '0', '1', '-1', '-1'), 0):242.91397952,
(('2', '4', '2', '2', '2', '0', '2', '0'), 3):31.1887900796,
(('0', '2', '2', '-1', '0', '4', '-1', '-1'), 2):10,
(('2', '2', '4', '-1', '0', '4', '-1', '-1'), 2):57.1897145975,
(('0', '2', '2', '2', '0', '0', '0', '4'), 0):117.142996937,
(('4', '0', '1', '1', '0', '0', '1', '0'), 2):100.551009083,
(('2', '2', '2', '4', '1', '1', '0', '1'), 3):50,
(('0', '2', '2', '2', '1', '2', '0', '4'), 3):234.043120945,
(('0', '4', '2', '2', '1', '1', '0', '4'), 3):165.169937447,
(('1', '2', '2', '4', '1', '2', '4', '2'), 0):61.2364303526,
(('-1', '0', '4', '0', '-1', '4', '-1', '0'), 0):-94.949627399,
(('1', '0', '0', '1', '0', '1', '1', '0'), 3):132.640295973,
(('0', '0', '4', '1', '4', '0', '1', '1'), 2):50.6592308798,
(('4', '1', '0', '1', '0', '0', '0', '0'), 3):130.668463826,
(('1', '-1', '0', '0', '1', '-1', '1', '-1'), 1):274.314021954,
(('4', '0', '0', '1', '1', '1', '1', '1'), 2):10,
(('1', '1', '1', '4', '1', '1', '0', '0'), 2):139.487808345,
(('1', '2', '-1', '2', '-1', '-1', '1', '0'), 1):321.260409817,
(('1', '4', '1', '0', '0', '1', '0', '1'), 0):10,
(('1', '0', '0', '1', '0', '0', '1', '0'), 2):211.717959601,
(('2', '2', '-1', '2', '-1', '-1', '2', '0'), 3):397.003531539,
(('0', '1', '4', '0', '1', '0', '0', '0'), 3):85.3005520539,
(('1', '-1', '4', '0', '4', '-1', '1', '-1'), 2):14.1848621226,
(('1', '0', '4', '1', '4', '4', '0', '0'), 3):10,
(('2', '2', '1', '2', '4', '0', '1', '0'), 1):156.136848775,
(('0', '1', '-1', '1', '-1', '-1', '1', '0'), 1):242.708468986,
(('0', '2', '4', '2', '1', '0', '2', '0'), 2):284.324697209,
(('-1', '1', '0', '1', '-1', '4', '-1', '0'), 3):18.5983580927,
(('2', '4', '4', '2', '0', '4', '0', '2'), 1):65.8448094259,
(('-1', '4', '1', '0', '-1', '1', '-1', '0'), 1):236.256937325,
(('1', '2', '0', '2', '1', '0', '4', '4'), 1):82.6976484475,
(('0', '1', '1', '0', '1', '0', '0', '0'), 1):254.694867737,
(('0', '-1', '0', '1', '1', '-1', '0', '-1'), 2):254.486685761,
(('0', '-1', '0', '1', '4', '-1', '1', '-1'), 1):10,
(('4', '2', '0', '2', '4', '1', '0', '4'), 0):10,
(('4', '2', '2', '2', '2', '0', '0', '2'), 2):10,
(('-1', '1', '4', '0', '-1', '1', '-1', '0'), 2):10,
(('4', '-1', '-1', '0', '-1', '-1', '0', '-1'), 1):386.523439695,
(('2', '2', '0', '2', '0', '0', '1', '0'), 2):256.195626513,
(('1', '2', '1', '2', '4', '1', '2', '0'), 2):51.0526517894,
(('4', '0', '4', '1', '4', '4', '0', '0'), 2):10,
(('2', '2', '2', '2', '4', '0', '0', '1'), 3):40,
(('1', '2', '0', '2', '0', '1', '1', '1'), 0):237.710954633,
(('1', '0', '0', '1', '4', '1', '1', '0'), 0):0,
(('0', '2', '1', '2', '1', '2', '0', '2'), 2):388.588070544,
(('4', '1', '0', '0', '1', '0', '0', '0'), 2):-10,
(('0', '-1', '4', '2', '0', '-1', '1', '-1'), 0):230.93546208,
(('2', '4', '2', '2', '2', '0', '0', '4'), 1):10,
(('0', '2', '2', '4', '0', '0', '4', '1'), 3):104.841957834,
(('0', '4', '0', '0', '0', '0', '0', '1'), 0):61.8136104388,
(('4', '-1', '2', '2', '2', '-1', '0', '-1'), 3):63.3754187789,
(('0', '0', '0', '0', '0', '0', '4', '0'), 1):95.5802254962,
(('1', '2', '0', '2', '1', '0', '1', '1'), 0):253.03506284,
(('1', '-1', '0', '2', '0', '-1', '0', '-1'), 3):282.053817109,
(('2', '2', '4', '-1', '2', '4', '-1', '-1'), 2):12.1817651529,
(('2', '2', '1', '2', '2', '0', '4', '4'), 2):10,
(('0', '1', '0', '4', '1', '0', '4', '0'), 3):0,
(('0', '2', '2', '-1', '2', '2', '-1', '-1'), 3):418.302864859,
(('1', '1', '4', '0', '1', '4', '0', '0'), 2):10,
(('2', '2', '2', '2', '1', '1', '0', '2'), 2):357.759665177,
(('2', '4', '0', '2', '1', '0', '2', '0'), 2):10,
(('0', '-1', '2', '2', '2', '-1', '2', '-1'), 3):387.531773533,
(('1', '-1', '0', '-1', '0', '-1', '-1', '-1'), 1):282.026628104,
(('4', '-1', '0', '1', '4', '-1', '1', '-1'), 2):-10,
(('1', '0', '1', '1', '4', '0', '1', '0'), 1):179.870730592,
(('2', '4', '1', '-1', '2', '0', '-1', '-1'), 2):237.8606767,
(('0', '2', '1', '2', '0', '0', '0', '2'), 0):282.965773856,
(('2', '2', '2', '2', '0', '4', '0', '1'), 3):114.896319263,
(('2', '2', '2', '2', '4', '0', '1', '0'), 1):10,
(('0', '1', '-1', '0', '-1', '-1', '0', '0'), 0):251.828397705,
(('1', '4', '1', '0', '1', '0', '1', '4'), 2):18.8617480543,
(('-1', '1', '1', '1', '-1', '1', '-1', '1'), 0):225.151347044,
(('-1', '1', '0', '4', '-1', '1', '-1', '4'), 1):10,
(('4', '1', '-1', '0', '-1', '-1', '4', '0'), 1):146.633193759,
(('0', '0', '1', '1', '1', '4', '0', '0'), 2):42.2036099754,
(('-1', '2', '4', '2', '-1', '4', '-1', '1'), 0):167.643455022,
(('0', '2', '4', '2', '0', '1', '1', '0'), 2):10,
(('4', '2', '0', '2', '4', '2', '1', '2'), 0):85.7644152862,
(('1', '2', '2', '2', '0', '0', '1', '2'), 2):209.296068372,
(('2', '2', '0', '2', '2', '1', '0', '4'), 1):257.232881739,
(('2', '2', '2', '-1', '0', '2', '-1', '-1'), 2):301.270354759,
(('4', '2', '2', '2', '2', '1', '0', '1'), 3):113.567247132,
(('1', '1', '4', '0', '4', '4', '0', '0'), 0):16.9193975387,
(('0', '0', '0', '4', '1', '0', '4', '0'), 2):10,
(('-1', '4', '1', '1', '-1', '1', '-1', '1'), 1):138.824381877,
(('0', '1', '1', '1', '0', '4', '0', '0'), 2):132.319528286,
(('0', '1', '1', '0', '1', '1', '4', '1'), 2):9.8,
(('1', '1', '4', '0', '1', '0', '1', '0'), 1):0,
(('0', '4', '1', '-1', '0', '1', '-1', '-1'), 3):279.713064774,
(('1', '2', '2', '2', '2', '0', '0', '2'), 2):371.748197795,
(('1', '-1', '1', '1', '1', '-1', '4', '-1'), 1):158.791855281,
(('2', '2', '2', '2', '0', '1', '2', '0'), 3):247.097322762,
(('1', '-1', '4', '-1', '1', '-1', '-1', '-1'), 3):260.670938159,
(('0', '0', '4', '1', '0', '4', '1', '0'), 3):3.8,
(('0', '2', '0', '2', '1', '0', '0', '2'), 2):385.065706559,
(('1', '1', '4', '1', '4', '0', '1', '1'), 1):35.2313730549,
(('4', '2', '2', '2', '2', '0', '0', '0'), 2):61.1074055398,
(('0', '0', '4', '1', '4', '4', '0', '0'), 1):47.2649194626,
(('1', '2', '4', '2', '4', '4', '1', '0'), 3):17.5886201081,
(('1', '2', '2', '2', '1', '0', '4', '4'), 0):10,
(('4', '2', '-1', '2', '-1', '-1', '4', '1'), 3):270.275994587,
(('0', '4', '1', '0', '1', '0', '0', '0'), 2):159.478980171,
(('-1', '4', '1', '4', '-1', '4', '-1', '4'), 2):0,
(('1', '1', '0', '0', '1', '0', '1', '0'), 0):234.222272872,
(('2', '2', '1', '2', '4', '0', '0', '0'), 1):176.477519479,
(('-1', '0', '4', '1', '-1', '0', '-1', '0'), 0):202.149820597,
(('4', '2', '1', '2', '1', '2', '4', '2'), 0):100.741672764,
(('4', '1', '0', '0', '0', '1', '0', '0'), 0):103.30193633,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '0'), 1):0,
(('4', '-1', '1', '-1', '4', '-1', '-1', '-1'), 0):198.828044038,
(('-1', '1', '4', '1', '-1', '4', '-1', '1'), 3):115.038687553,
(('1', '2', '2', '4', '2', '0', '0', '0'), 0):10,
(('1', '4', '2', '2', '2', '1', '1', '0'), 3):10,
(('-1', '0', '0', '1', '-1', '1', '-1', '0'), 2):175.182307081,
(('-1', '2', '1', '2', '-1', '2', '-1', '0'), 2):401.690267777,
(('0', '1', '0', '1', '0', '1', '1', '1'), 1):210.765709647,
(('1', '0', '0', '1', '1', '1', '0', '0'), 2):97.997501991,
(('0', '-1', '2', '2', '0', '-1', '2', '-1'), 2):354.626450913,
(('2', '-1', '2', '2', '0', '-1', '0', '-1'), 2):153.024927145,
(('1', '4', '2', '2', '2', '0', '0', '4'), 3):92.0627355015,
(('1', '0', '4', '1', '1', '4', '1', '0'), 3):60.8289189815,
(('1', '1', '1', '1', '1', '4', '1', '0'), 1):110.730877679,
(('0', '2', '2', '2', '2', '2', '0', '4'), 0):221.147367552,
(('-1', '2', '1', '2', '-1', '4', '-1', '0'), 0):202.374270787,
(('4', '0', '-1', '1', '-1', '-1', '4', '0'), 3):165.740085804,
(('0', '2', '0', '2', '0', '2', '0', '4'), 2):68.9353299306,
(('0', '1', '4', '1', '0', '1', '1', '1'), 1):172.695930795,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '1'), 2):241.887588508,
(('1', '4', '1', '0', '1', '0', '0', '0'), 3):201.264727007,
(('0', '2', '4', '2', '1', '1', '0', '0'), 0):128.820642671,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '2'), 3):327.456250096,
(('1', '4', '0', '1', '0', '0', '1', '0'), 1):186.133561594,
(('2', '2', '0', '2', '2', '0', '2', '4'), 2):251.355589597,
(('1', '0', '0', '-1', '1', '4', '-1', '-1'), 2):101.217298759,
(('0', '1', '0', '0', '0', '1', '1', '0'), 1):10,
(('1', '1', '4', '1', '1', '4', '0', '1'), 2):-34.33672678,
(('4', '0', '1', '1', '1', '1', '1', '0'), 2):-10.0,
(('2', '2', '1', '2', '2', '0', '2', '0'), 1):432.560843678,
(('-1', '1', '0', '4', '-1', '1', '-1', '1'), 2):42.3360614039,
(('0', '4', '2', '2', '2', '2', '0', '4'), 3):77.6531881467,
(('4', '0', '-1', '4', '-1', '-1', '0', '4'), 3):-10,
(('2', '-1', '0', '-1', '1', '-1', '-1', '-1'), 0):320.833985834,
(('0', '-1', '1', '0', '1', '-1', '1', '-1'), 2):0,
(('2', '-1', '4', '2', '2', '-1', '2', '-1'), 2):81.0152068798,
(('1', '0', '1', '4', '1', '0', '1', '4'), 3):128.345963259,
(('4', '2', '1', '2', '1', '1', '4', '1'), 0):103.259057048,
(('1', '1', '4', '1', '0', '1', '1', '1'), 0):150.773570062,
(('1', '1', '4', '0', '0', '4', '0', '1'), 1):20.0156305229,
(('1', '0', '1', '0', '4', '0', '1', '0'), 3):122.61605052,
(('1', '4', '-1', '1', '-1', '-1', '0', '4'), 1):127.579039093,
(('2', '-1', '4', '2', '0', '-1', '0', '-1'), 1):205.671454233,
(('0', '2', '2', '-1', '1', '1', '-1', '-1'), 3):331.116574537,
(('2', '2', '2', '2', '0', '0', '1', '2'), 0):179.898017961,
(('1', '0', '1', '4', '1', '1', '1', '0'), 0):154.59385947,
(('0', '0', '0', '0', '0', '4', '0', '0'), 3):64.6382029674,
(('1', '1', '1', '1', '1', '4', '0', '1'), 2):31.1539388495,
(('1', '2', '2', '2', '0', '2', '0', '2'), 2):420.257629378,
(('1', '2', '1', '2', '1', '1', '2', '0'), 0):213.73658998,
(('0', '2', '0', '2', '1', '4', '0', '1'), 0):10,
(('2', '2', '0', '2', '0', '2', '2', '0'), 2):109.464358112,
(('2', '2', '0', '-1', '0', '2', '-1', '-1'), 2):321.682519871,
(('-1', '2', '1', '2', '-1', '4', '-1', '1'), 2):104.827969912,
(('0', '1', '1', '1', '4', '1', '1', '1'), 0):140.292039809,
(('2', '2', '2', '2', '2', '0', '0', '4'), 1):184.330189741,
(('1', '-1', '4', '0', '1', '-1', '0', '-1'), 2):222.298493096,
(('0', '2', '1', '2', '1', '1', '0', '1'), 1):185.786885474,
(('0', '1', '1', '4', '0', '0', '1', '1'), 3):-10,
(('4', '1', '-1', '1', '-1', '-1', '4', '0'), 2):60.1937603176,
(('1', '1', '-1', '1', '-1', '-1', '4', '1'), 3):154.413807073,
(('4', '0', '0', '1', '0', '0', '0', '1'), 2):186.438545775,
(('4', '1', '1', '4', '0', '1', '0', '0'), 0):50,
(('0', '2', '1', '2', '1', '4', '0', '0'), 0):228.923532085,
(('1', '2', '0', '2', '1', '2', '0', '2'), 0):487.196945417,
(('1', '0', '4', '1', '1', '0', '1', '0'), 1):226.59747409,
(('0', '1', '4', '1', '1', '1', '0', '0'), 2):50,
(('1', '1', '1', '1', '1', '1', '4', '0'), 3):77.951229769,
(('1', '1', '4', '-1', '4', '1', '-1', '-1'), 3):46.2944945396,
(('0', '-1', '0', '-1', '1', '-1', '-1', '-1'), 3):306.307333625,
(('0', '4', '1', '0', '0', '0', '0', '4'), 3):168.912146691,
(('0', '1', '0', '0', '0', '0', '0', '4'), 1):87.759017557,
(('4', '1', '1', '1', '0', '0', '4', '0'), 2):50.2742899547,
(('-1', '2', '1', '4', '-1', '2', '-1', '0'), 0):117.986985369,
(('1', '2', '1', '2', '1', '2', '2', '0'), 2):178.11990363,
(('1', '1', '1', '1', '4', '1', '1', '0'), 0):58.0892802642,
(('4', '0', '-1', '1', '-1', '-1', '1', '0'), 2):250.359134105,
(('1', '2', '2', '2', '1', '1', '2', '2'), 2):96.8601003,
(('0', '-1', '0', '4', '4', '-1', '4', '-1'), 0):10,
(('1', '2', '4', '2', '4', '0', '0', '2'), 0):78.2370735054,
(('0', '2', '0', '2', '0', '0', '4', '2'), 2):252.229640571,
(('1', '0', '-1', '4', '-1', '-1', '4', '0'), 2):103.307377706,
(('4', '2', '-1', '4', '-1', '-1', '4', '0'), 3):133.72019157,
(('4', '1', '1', '0', '0', '0', '0', '1'), 3):74.0425358918,
(('1', '1', '1', '0', '0', '1', '0', '1'), 2):199.812950964,
(('2', '2', '4', '2', '0', '4', '1', '0'), 1):153.370676106,
(('0', '2', '-1', '2', '-1', '-1', '4', '4'), 3):222.28119163,
(('0', '-1', '1', '-1', '4', '-1', '-1', '-1'), 0):226.58009308,
(('1', '0', '4', '-1', '0', '4', '-1', '-1'), 1):146.573778226,
(('2', '2', '4', '2', '0', '2', '0', '1'), 1):213.687694051,
(('1', '0', '4', '-1', '0', '0', '-1', '-1'), 1):269.1764823,
(('4', '2', '0', '2', '0', '2', '2', '0'), 1):10,
(('4', '2', '1', '2', '1', '0', '0', '0'), 3):222.946163665,
(('4', '2', '-1', '2', '-1', '-1', '4', '2'), 3):-74.0282409346,
(('4', '-1', '1', '2', '1', '-1', '0', '-1'), 0):242.54502591,
(('2', '2', '2', '2', '1', '2', '4', '0'), 1):37.3604603061,
(('2', '4', '2', '-1', '2', '1', '-1', '-1'), 1):186.454239827,
(('1', '-1', '2', '2', '2', '-1', '1', '-1'), 2):457.579984239,
(('4', '2', '4', '2', '4', '0', '4', '2'), 3):10,
(('2', '2', '1', '2', '2', '0', '2', '4'), 1):197.735986934,
(('0', '2', '1', '4', '0', '1', '0', '0'), 3):155.550200737,
(('1', '1', '1', '4', '0', '0', '1', '1'), 0):10,
(('1', '2', '1', '-1', '1', '4', '-1', '-1'), 3):251.711967878,
(('4', '-1', '0', '2', '1', '-1', '0', '-1'), 2):121.949571303,
(('4', '-1', '0', '-1', '0', '-1', '-1', '-1'), 2):230.378237638,
(('1', '2', '-1', '2', '-1', '-1', '0', '2'), 0):379.228470726,
(('0', '0', '0', '0', '0', '1', '0', '0'), 2):215.510908946,
(('4', '2', '2', '2', '4', '2', '0', '0'), 3):196.794139633,
(('4', '2', '2', '-1', '0', '0', '-1', '-1'), 2):10,
(('0', '2', '2', '-1', '0', '0', '-1', '-1'), 3):306.92190782,
(('-1', '4', '0', '2', '-1', '0', '-1', '0'), 2):134.881154424,
(('0', '0', '4', '1', '0', '0', '0', '0'), 2):201.576955369,
(('1', '1', '4', '0', '1', '4', '1', '0'), 3):10,
(('1', '0', '-1', '4', '-1', '-1', '0', '0'), 2):175.526303331,
(('4', '2', '2', '2', '0', '0', '4', '2'), 1):10,
(('1', '0', '4', '1', '1', '4', '0', '0'), 3):23.1683850182,
(('0', '2', '1', '2', '0', '1', '0', '0'), 1):240.692836772,
(('2', '4', '0', '2', '2', '0', '2', '0'), 2):117.715500442,
(('0', '-1', '2', '2', '0', '-1', '4', '-1'), 3):224.813782194,
(('2', '-1', '0', '2', '2', '-1', '1', '-1'), 0):290,
(('0', '2', '0', '2', '0', '2', '4', '1'), 0):280.672251534,
(('0', '2', '4', '2', '0', '0', '0', '0'), 0):214.000513586,
(('0', '2', '0', '4', '0', '1', '4', '4'), 3):10,
(('1', '4', '1', '0', '0', '0', '0', '0'), 0):-10,
(('4', '0', '0', '0', '4', '0', '0', '0'), 1):51.2466612384,
(('2', '-1', '2', '2', '4', '-1', '1', '-1'), 0):-1000,
(('0', '0', '-1', '1', '-1', '-1', '0', '1'), 3):246.222190346,
(('2', '2', '1', '2', '2', '1', '2', '2'), 1):572.505156737,
(('1', '2', '0', '2', '0', '0', '4', '2'), 0):203.914549699,
(('1', '1', '1', '0', '1', '0', '4', '0'), 3):98.543102538,
(('2', '-1', '0', '2', '2', '-1', '4', '-1'), 1):238.186745521,
(('0', '2', '4', '2', '4', '0', '0', '2'), 0):237.190446936,
(('0', '-1', '4', '2', '1', '-1', '1', '-1'), 0):59.3817423351,
(('1', '0', '0', '4', '1', '0', '1', '0'), 0):19.0730363738,
(('1', '-1', '2', '2', '4', '-1', '1', '-1'), 0):169.789547888,
(('2', '2', '0', '2', '0', '1', '4', '1'), 1):159.211220802,
(('2', '2', '0', '4', '1', '0', '1', '0'), 1):229.846855876,
(('4', '2', '1', '-1', '4', '1', '-1', '-1'), 3):100.859824023,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '0'), 2):287.269082041,
(('0', '4', '0', '1', '0', '1', '1', '0'), 3):0,
(('1', '1', '1', '0', '0', '4', '1', '0'), 0):0,
(('4', '2', '1', '2', '0', '0', '4', '1'), 3):10,
(('0', '1', '1', '4', '0', '0', '0', '1'), 3):97.2262048889,
(('4', '-1', '0', '0', '4', '-1', '0', '-1'), 1):34.1518999698,
(('4', '1', '4', '4', '0', '4', '0', '0'), 2):50,
(('1', '-1', '-1', '4', '-1', '-1', '4', '-1'), 0):255.984556129,
(('4', '-1', '2', '2', '0', '-1', '0', '-1'), 0):121.440881025,
(('1', '2', '-1', '4', '-1', '-1', '1', '0'), 3):64.6311403196,
(('2', '2', '1', '2', '0', '1', '2', '4'), 1):242.909201208,
(('2', '-1', '2', '2', '0', '-1', '4', '-1'), 1):132.262540674,
(('1', '0', '0', '1', '1', '1', '1', '1'), 2):142.56244199,
(('4', '-1', '1', '1', '0', '-1', '4', '-1'), 1):0,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '1'), 3):131.673221611,
(('-1', '4', '2', '2', '-1', '0', '-1', '4'), 1):50,
(('1', '1', '-1', '4', '-1', '-1', '0', '1'), 3):203.53910431,
(('0', '2', '0', '2', '0', '1', '0', '0'), 3):231.462998469,
(('1', '2', '1', '-1', '1', '4', '-1', '-1'), 2):167.594019031,
(('0', '1', '0', '0', '4', '1', '0', '0'), 2):76.8476755497,
(('2', '2', '2', '2', '2', '0', '0', '0'), 3):293.091610594,
(('0', '2', '2', '-1', '0', '2', '-1', '-1'), 2):343.765264014,
(('0', '-1', '1', '2', '2', '-1', '0', '-1'), 2):870,
(('2', '-1', '0', '2', '0', '-1', '0', '-1'), 2):270.686268668,
(('1', '2', '1', '2', '1', '4', '0', '0'), 3):199.97000037,
(('1', '4', '1', '1', '1', '0', '1', '0'), 0):105.537184715,
(('1', '0', '4', '1', '0', '0', '0', '1'), 2):10,
(('0', '2', '0', '2', '4', '0', '0', '2'), 2):255.023741164,
(('-1', '1', '1', '4', '-1', '1', '-1', '1'), 2):221.872169127,
(('-1', '2', '2', '-1', '-1', '4', '-1', '-1'), 3):210.548434926,
(('1', '1', '1', '4', '0', '1', '4', '1'), 3):-3.95137209974,
(('2', '4', '2', '2', '2', '1', '2', '1'), 2):10,
(('1', '2', '1', '4', '1', '2', '1', '4'), 0):110,
(('4', '-1', '0', '1', '4', '-1', '0', '-1'), 2):12.3678289523,
(('0', '0', '1', '-1', '0', '4', '-1', '-1'), 1):69.6983462147,
(('1', '1', '0', '1', '4', '0', '1', '0'), 0):10.3512298127,
(('0', '4', '2', '-1', '1', '1', '-1', '-1'), 3):289.603343991,
(('0', '2', '4', '2', '1', '1', '0', '0'), 3):128.769065679,
(('4', '0', '4', '1', '4', '0', '4', '0'), 3):-10,
(('4', '0', '1', '1', '0', '0', '0', '0'), 3):130.942114022,
(('2', '2', '0', '2', '2', '4', '0', '4'), 2):10,
(('0', '4', '0', '0', '0', '1', '1', '0'), 0):10,
(('4', '1', '0', '1', '0', '1', '0', '1'), 2):185.01265657,
(('0', '1', '-1', '0', '-1', '-1', '4', '0'), 2):170.613237999,
(('2', '2', '4', '2', '4', '1', '2', '1'), 2):90,
(('0', '2', '2', '2', '2', '1', '0', '4'), 0):10,
(('0', '-1', '0', '2', '0', '-1', '0', '-1'), 1):258.400701732,
(('0', '0', '0', '1', '1', '0', '1', '1'), 3):66.3655238123,
(('1', '-1', '0', '4', '1', '-1', '0', '-1'), 3):101.903952944,
(('0', '2', '1', '2', '0', '0', '0', '0'), 0):241.33688968,
(('0', '4', '0', '2', '0', '1', '0', '4'), 2):39.3548192352,
(('4', '1', '4', '1', '4', '0', '0', '1'), 0):54.6482325598,
(('4', '2', '0', '2', '0', '0', '4', '1'), 3):10,
(('1', '0', '-1', '0', '-1', '-1', '0', '1'), 0):96.5693761607,
(('1', '2', '0', '2', '1', '4', '1', '0'), 2):232.988020291,
(('0', '2', '1', '2', '4', '1', '1', '1'), 2):124.940387007,
(('4', '2', '0', '2', '4', '0', '0', '0'), 1):133.59212352,
(('2', '2', '0', '2', '4', '0', '1', '1'), 2):52.6002717137,
(('0', '1', '4', '1', '4', '0', '0', '1'), 0):102.287059997,
(('1', '1', '0', '4', '1', '0', '4', '4'), 3):0,
(('0', '-1', '-1', '0', '-1', '-1', '1', '-1'), 1):282.234560239,
(('2', '2', '4', '-1', '4', '4', '-1', '-1'), 2):10,
(('4', '2', '0', '-1', '1', '2', '-1', '-1'), 2):10,
(('4', '2', '0', '2', '1', '2', '4', '0'), 0):196.611919846,
(('0', '-1', '0', '2', '1', '-1', '4', '-1'), 2):71.8390991432,
(('4', '-1', '1', '2', '4', '-1', '0', '-1'), 0):147.067042363,
(('0', '2', '-1', '4', '-1', '-1', '4', '0'), 3):96.8595541801,
(('0', '1', '4', '1', '4', '1', '0', '1'), 2):106.782227563,
(('1', '2', '2', '2', '2', '0', '2', '0'), 0):171.666013949,
(('1', '2', '1', '2', '1', '1', '1', '4'), 3):61.2839575581,
(('0', '4', '0', '1', '0', '0', '0', '4'), 0):33.6974335982,
(('1', '2', '2', '2', '1', '1', '0', '0'), 3):264.204557548,
(('4', '2', '2', '4', '1', '1', '4', '4'), 3):20,
(('4', '2', '1', '-1', '1', '1', '-1', '-1'), 0):284.982634552,
(('2', '2', '-1', '4', '-1', '-1', '1', '0'), 1):280.252915909,
(('0', '0', '1', '-1', '1', '4', '-1', '-1'), 3):10,
(('1', '1', '4', '0', '4', '1', '0', '1'), 2):-2.0,
(('0', '2', '2', '4', '2', '0', '2', '0'), 3):118.265061863,
(('0', '1', '1', '4', '0', '1', '4', '1'), 0):2.0,
(('0', '1', '1', '0', '1', '1', '0', '1'), 0):233.990257842,
(('1', '1', '1', '1', '0', '0', '1', '0'), 0):206.219056157,
(('4', '1', '1', '0', '0', '0', '4', '0'), 0):59.7628664686,
(('2', '2', '0', '2', '2', '2', '2', '2'), 2):344.179369376,
(('1', '0', '4', '1', '0', '4', '1', '1'), 1):10,
(('2', '2', '2', '-1', '2', '4', '-1', '-1'), 3):242.558199455,
(('0', '1', '4', '-1', '0', '4', '-1', '-1'), 2):218.960120701,
(('0', '0', '1', '4', '0', '0', '4', '0'), 3):75.6214321785,
(('0', '1', '-1', '4', '-1', '-1', '1', '0'), 2):48.1769892853,
(('1', '2', '2', '2', '2', '2', '1', '0'), 3):425.517614709,
(('1', '2', '0', '2', '0', '0', '1', '4'), 3):10,
(('1', '0', '4', '1', '0', '0', '1', '0'), 1):212.522235692,
(('2', '2', '0', '-1', '2', '1', '-1', '-1'), 1):452.260371091,
(('0', '1', '-1', '0', '-1', '-1', '4', '1'), 0):211.617687329,
(('1', '4', '1', '1', '0', '0', '1', '0'), 2):47.5930560298,
(('4', '2', '2', '4', '0', '0', '0', '4'), 3):50,
(('-1', '2', '1', '4', '-1', '1', '-1', '4'), 3):15.4,
(('0', '0', '4', '0', '0', '4', '0', '0'), 1):103.309711901,
(('0', '-1', '0', '2', '2', '-1', '1', '-1'), 0):11.8,
(('1', '2', '1', '2', '4', '0', '0', '0'), 1):38.3188770556,
(('0', '2', '2', '2', '0', '2', '2', '0'), 3):495.565016728,
(('1', '2', '4', '2', '2', '4', '1', '0'), 3):170.394242982,
(('2', '4', '2', '2', '2', '2', '0', '0'), 3):79.514114355,
(('2', '2', '2', '2', '4', '2', '0', '0'), 2):141.273136201,
(('0', '4', '1', '2', '0', '1', '0', '1'), 3):57.1891769457,
(('0', '2', '4', '-1', '4', '0', '-1', '-1'), 2):223.396132759,
(('4', '2', '-1', '2', '-1', '-1', '0', '2'), 2):359.968571387,
(('1', '0', '1', '1', '0', '0', '1', '1'), 2):209.589837064,
(('0', '4', '0', '1', '0', '1', '0', '4'), 2):10,
(('2', '2', '0', '2', '0', '4', '2', '2'), 2):67.9104759918,
(('1', '-1', '1', '1', '4', '-1', '0', '-1'), 1):37.5098600608,
(('0', '0', '1', '0', '0', '1', '0', '0'), 2):216.013941545,
(('-1', '1', '0', '4', '-1', '1', '-1', '0'), 2):0,
(('1', '2', '1', '2', '1', '1', '0', '4'), 0):140.547559169,
(('1', '1', '1', '4', '0', '1', '1', '4'), 1):47.1026733533,
(('1', '-1', '0', '1', '0', '-1', '1', '-1'), 0):257.954060052,
(('4', '2', '4', '2', '4', '2', '4', '0'), 3):10,
(('2', '4', '2', '-1', '0', '1', '-1', '-1'), 1):103.630533104,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '1'), 3):223.164670355,
(('0', '2', '2', '2', '1', '0', '1', '1'), 0):80.9231660029,
(('2', '4', '-1', '2', '-1', '-1', '2', '4'), 3):183.093784469,
(('1', '0', '1', '1', '4', '0', '1', '0'), 0):133.060832158,
(('1', '2', '1', '2', '0', '0', '0', '1'), 0):75.8790894144,
(('1', '0', '4', '1', '1', '0', '1', '1'), 3):165.524130357,
(('0', '1', '0', '-1', '4', '1', '-1', '-1'), 0):163.044993125,
(('-1', '2', '2', '2', '-1', '2', '-1', '0'), 3):324.9615913,
(('-1', '4', '0', '0', '-1', '0', '-1', '4'), 0):101.836362941,
(('0', '1', '-1', '4', '-1', '-1', '0', '0'), 1):223.404121657,
(('1', '0', '-1', '1', '-1', '-1', '4', '1'), 1):127.885824068,
(('2', '2', '1', '2', '2', '2', '0', '0'), 1):443.452031627,
(('0', '1', '0', '1', '0', '0', '4', '4'), 3):8.70911851492,
(('1', '2', '4', '2', '4', '0', '1', '2'), 2):315.153150311,
(('1', '1', '4', '0', '0', '0', '0', '0'), 1):40.8533293713,
(('4', '2', '2', '2', '1', '2', '1', '1'), 0):10,
(('4', '2', '0', '2', '4', '1', '2', '2'), 0):10,
(('1', '2', '0', '2', '0', '0', '2', '0'), 2):358.347379913,
(('4', '2', '0', '2', '0', '0', '4', '2'), 1):10,
(('0', '0', '0', '-1', '1', '0', '-1', '-1'), 0):305.424702706,
(('1', '1', '4', '1', '0', '0', '0', '1'), 3):0,
(('0', '2', '0', '2', '0', '0', '2', '0'), 2):386.401719382,
(('1', '0', '1', '0', '1', '0', '1', '0'), 0):247.970530642,
(('0', '-1', '-1', '2', '-1', '-1', '0', '-1'), 1):283.889641343,
(('4', '2', '0', '2', '0', '0', '1', '1'), 1):213.440773406,
(('1', '1', '1', '0', '1', '1', '1', '1'), 3):225.362211996,
(('0', '2', '2', '2', '4', '0', '0', '0'), 0):117.320993404,
(('4', '-1', '1', '-1', '1', '-1', '-1', '-1'), 0):269.040825884,
(('2', '4', '1', '2', '0', '1', '1', '0'), 1):10,
(('1', '0', '1', '1', '0', '0', '1', '0'), 3):220.771551392,
(('-1', '2', '0', '2', '-1', '0', '-1', '4'), 1):228.689496399,
(('4', '2', '0', '2', '0', '1', '4', '2'), 0):164.143157739,
(('2', '4', '-1', '2', '-1', '-1', '1', '4'), 2):10,
(('1', '0', '4', '0', '4', '0', '1', '0'), 1):11.8,
(('0', '-1', '1', '1', '4', '-1', '1', '-1'), 2):86.499896832,
(('1', '2', '4', '-1', '0', '4', '-1', '-1'), 0):142.841717194,
(('0', '1', '0', '-1', '0', '4', '-1', '-1'), 1):229.11378377,
(('0', '1', '4', '1', '0', '0', '1', '1'), 1):208.384482081,
(('4', '2', '1', '2', '0', '1', '2', '2'), 0):10,
(('4', '4', '-1', '4', '-1', '-1', '4', '4'), 0):-10,
(('0', '2', '2', '2', '2', '4', '1', '1'), 3):24.5135558615,
(('1', '2', '0', '-1', '0', '0', '-1', '-1'), 2):287.880208022,
(('0', '-1', '1', '0', '1', '-1', '0', '-1'), 0):259.103171366,
(('1', '4', '1', '-1', '0', '0', '-1', '-1'), 2):84.9669730621,
(('1', '2', '1', '2', '1', '1', '1', '0'), 3):248.510177967,
(('1', '2', '4', '2', '4', '1', '0', '2'), 2):10,
(('4', '2', '1', '2', '4', '0', '0', '0'), 1):12.0,
(('-1', '0', '0', '0', '-1', '0', '-1', '0'), 3):252.550468297,
(('2', '2', '2', '2', '0', '0', '4', '1'), 3):191.720077229,
(('2', '-1', '2', '4', '2', '-1', '4', '-1'), 3):10,
(('1', '-1', '-1', '1', '-1', '-1', '1', '-1'), 2):255.079955656,
(('0', '0', '0', '1', '1', '0', '1', '0'), 1):151.040449305,
(('-1', '4', '0', '2', '-1', '0', '-1', '4'), 1):-77.6206383563,
(('0', '1', '1', '4', '1', '1', '4', '4'), 2):-10,
(('0', '0', '1', '1', '0', '0', '1', '1'), 1):142.11898821,
(('2', '2', '2', '2', '1', '1', '1', '1'), 1):125.318754449,
(('0', '1', '1', '1', '0', '1', '1', '1'), 0):198.582325521,
(('0', '0', '-1', '0', '-1', '-1', '1', '1'), 1):10,
(('4', '1', '0', '1', '0', '0', '1', '1'), 3):166.226966735,
(('1', '4', '0', '2', '2', '0', '2', '1'), 2):720,
(('1', '1', '4', '0', '0', '0', '0', '1'), 0):33.7276947082,
(('4', '-1', '1', '1', '1', '-1', '1', '-1'), 3):154.707404175,
(('1', '-1', '-1', '1', '-1', '-1', '0', '-1'), 2):162.041514261,
(('2', '2', '2', '2', '2', '4', '0', '0'), 2):76.5101749959,
(('1', '1', '1', '0', '1', '4', '1', '0'), 3):10,
(('0', '1', '1', '0', '0', '0', '4', '0'), 1):0,
(('-1', '2', '0', '2', '-1', '4', '-1', '2'), 1):363.04941219,
(('1', '1', '1', '4', '1', '0', '0', '0'), 2):23.3706862424,
(('0', '1', '0', '0', '1', '0', '0', '4'), 3):13.6,
(('0', '0', '0', '1', '0', '1', '1', '1'), 0):103.81605387,
(('2', '2', '1', '-1', '2', '4', '-1', '-1'), 2):172.250947544,
(('1', '4', '-1', '2', '-1', '-1', '1', '1'), 1):178.44397223,
(('2', '2', '0', '2', '0', '4', '1', '1'), 2):10,
(('0', '4', '1', '0', '0', '0', '0', '1'), 1):10,
(('-1', '1', '0', '1', '-1', '4', '-1', '1'), 2):217.428065796,
(('2', '2', '2', '2', '0', '4', '2', '0'), 3):336.295897772,
(('4', '2', '0', '2', '0', '1', '1', '2'), 2):10,
(('2', '2', '0', '2', '4', '1', '2', '0'), 1):-262.160368022,
(('2', '2', '2', '2', '4', '2', '0', '2'), 1):140,
(('1', '-1', '2', '-1', '0', '-1', '-1', '-1'), 0):316.690615304,
(('-1', '4', '1', '0', '-1', '1', '-1', '4'), 0):-10,
(('-1', '2', '4', '2', '-1', '2', '-1', '0'), 1):200.405040615,
(('0', '0', '0', '1', '0', '0', '1', '0'), 1):245.287255071,
(('-1', '1', '1', '1', '-1', '4', '-1', '1'), 0):117.997915308,
(('0', '1', '1', '1', '0', '1', '1', '0'), 1):181.037274914,
(('0', '4', '0', '1', '0', '4', '1', '0'), 1):10,
(('2', '2', '2', '4', '0', '0', '0', '0'), 1):10,
(('1', '1', '1', '0', '1', '1', '4', '0'), 1):174.831971718,
(('1', '2', '2', '4', '2', '2', '1', '0'), 3):20,
(('1', '0', '0', '1', '1', '0', '0', '0'), 3):274.2434821,
(('4', '0', '1', '0', '4', '0', '1', '0'), 0):10,
(('1', '4', '1', '0', '0', '0', '1', '0'), 3):83.1145323746,
(('4', '1', '0', '1', '0', '1', '4', '1'), 1):46.2387944341,
(('0', '1', '0', '1', '1', '1', '1', '1'), 1):98.7314357552,
(('4', '1', '1', '1', '1', '1', '4', '1'), 2):83.8680012981,
(('0', '1', '4', '0', '0', '0', '0', '0'), 0):207.369222022,
(('-1', '1', '4', '0', '-1', '0', '-1', '1'), 0):92.491567165,
(('1', '2', '-1', '4', '-1', '-1', '4', '0'), 3):130.913112167,
(('1', '1', '1', '0', '0', '1', '4', '0'), 3):75.2183751797,
(('1', '-1', '1', '2', '0', '-1', '1', '-1'), 3):282.649451985,
(('0', '0', '0', '0', '0', '1', '1', '0'), 3):0,
(('1', '4', '-1', '1', '-1', '-1', '1', '4'), 3):176.636664906,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '4'), 1):195.382688099,
(('4', '2', '2', '2', '4', '2', '4', '4'), 3):11.8,
(('2', '4', '1', '-1', '1', '0', '-1', '-1'), 1):226.026138737,
(('2', '2', '1', '4', '1', '0', '0', '0'), 1):124.13983122,
(('1', '4', '4', '1', '0', '0', '1', '1'), 1):10,
(('4', '1', '1', '1', '1', '1', '1', '0'), 2):50,
(('-1', '2', '2', '2', '-1', '1', '-1', '1'), 0):331.11185785,
(('1', '4', '1', '1', '0', '1', '1', '1'), 1):10,
(('-1', '1', '1', '4', '-1', '1', '-1', '1'), 0):214.952657585,
(('2', '-1', '2', '2', '2', '-1', '2', '-1'), 3):433.993091649,
(('0', '2', '1', '2', '4', '1', '1', '2'), 2):110.61613136,
(('0', '0', '4', '-1', '0', '4', '-1', '-1'), 3):44.2768649237,
(('4', '1', '0', '1', '1', '0', '1', '0'), 0):-10,
(('-1', '1', '0', '1', '-1', '4', '-1', '0'), 2):56.6468837752,
(('0', '-1', '1', '1', '4', '-1', '0', '-1'), 0):128.404699177,
(('0', '1', '0', '4', '0', '0', '0', '0'), 3):194.779349647,
(('0', '2', '1', '2', '1', '1', '2', '2'), 2):631.283136683,
(('2', '2', '0', '2', '0', '4', '0', '0'), 1):187.175548815,
(('2', '4', '0', '2', '1', '0', '0', '4'), 1):149.584572398,
(('4', '-1', '2', '2', '1', '-1', '4', '-1'), 0):10,
(('0', '4', '4', '2', '4', '4', '0', '4'), 2):33.0439048202,
(('4', '0', '-1', '4', '-1', '-1', '4', '0'), 2):-75.1513737587,
(('-1', '1', '1', '4', '-1', '0', '-1', '1'), 0):50.2918410402,
(('1', '1', '0', '1', '0', '1', '1', '0'), 3):155.587435534,
(('0', '2', '1', '2', '0', '1', '0', '2'), 2):377.189957311,
(('0', '0', '1', '0', '1', '1', '1', '0'), 0):145.206973838,
(('1', '2', '1', '-1', '4', '0', '-1', '-1'), 2):88.3865227405,
(('0', '0', '4', '0', '0', '0', '0', '0'), 0):164.834560674,
(('0', '0', '-1', '1', '-1', '-1', '1', '0'), 0):301.333477662,
(('1', '4', '1', '0', '0', '1', '0', '0'), 1):104.519046503,
(('2', '2', '2', '2', '2', '2', '2', '0'), 0):419.146773428,
(('2', '2', '2', '2', '0', '2', '1', '0'), 1):249.357649863,
(('1', '0', '0', '4', '0', '0', '0', '4'), 3):92.1819127983,
(('2', '4', '1', '2', '1', '0', '1', '4'), 1):71.7095331276,
(('1', '2', '0', '2', '0', '1', '4', '0'), 0):45.8151931333,
(('4', '0', '0', '1', '4', '0', '1', '1'), 3):10,
(('0', '1', '-1', '1', '-1', '-1', '0', '4'), 0):242.85406152,
(('4', '2', '1', '2', '1', '2', '0', '0'), 0):306.122857093,
(('0', '2', '0', '2', '0', '2', '2', '2'), 0):282.32868268,
(('0', '-1', '0', '1', '1', '-1', '0', '-1'), 1):253.418970962,
(('0', '2', '0', '2', '1', '1', '1', '1'), 0):89.0197935128,
(('4', '1', '4', '0', '4', '0', '0', '0'), 0):89.5618092174,
(('4', '2', '0', '2', '2', '2', '4', '0'), 2):10,
(('4', '1', '1', '1', '1', '0', '0', '1'), 0):58.6451324254,
(('4', '-1', '0', '2', '0', '-1', '4', '-1'), 2):216.735129624,
(('4', '4', '4', '1', '4', '4', '4', '0'), 1):50.9184846753,
(('4', '0', '0', '1', '4', '0', '1', '0'), 0):57.773988294,
(('4', '2', '2', '2', '2', '1', '4', '1'), 3):77.7730091392,
(('0', '0', '0', '-1', '0', '1', '-1', '-1'), 3):272.925240496,
(('2', '4', '2', '-1', '0', '0', '-1', '-1'), 3):30,
(('0', '4', '1', '-1', '1', '0', '-1', '-1'), 3):242.399475964,
(('0', '2', '2', '4', '2', '1', '4', '0'), 3):77.7849871128,
(('1', '0', '1', '1', '4', '0', '1', '1'), 0):14.7655981037,
(('4', '0', '4', '1', '4', '4', '4', '0'), 3):10,
(('1', '2', '-1', '2', '-1', '-1', '0', '1'), 2):263.487895493,
(('4', '0', '1', '1', '0', '0', '1', '0'), 3):39.9341019496,
(('0', '2', '1', '2', '4', '1', '4', '1'), 2):0,
(('1', '4', '4', '0', '1', '1', '0', '0'), 1):50,
(('1', '2', '2', '2', '1', '2', '1', '4'), 3):287.928215423,
(('0', '0', '4', '1', '0', '0', '1', '1'), 0):45.815946991,
(('-1', '0', '4', '0', '-1', '4', '-1', '0'), 1):80.1503887761,
(('1', '4', '0', '2', '0', '4', '1', '2'), 2):94.2148288886,
(('2', '2', '0', '2', '0', '4', '0', '4'), 1):46.2305661817,
(('0', '1', '1', '0', '1', '1', '0', '4'), 3):173.284350675,
(('0', '4', '1', '2', '1', '0', '0', '1'), 3):10,
(('4', '1', '0', '1', '0', '0', '0', '0'), 2):182.043345851,
(('1', '0', '1', '4', '0', '0', '4', '4'), 1):0,
(('1', '-1', '0', '0', '1', '-1', '1', '-1'), 0):278.67953568,
(('1', '2', '4', '2', '1', '4', '0', '0'), 3):10,
(('4', '2', '0', '4', '0', '0', '4', '0'), 0):148.996669389,
(('4', '-1', '-1', '2', '-1', '-1', '1', '-1'), 1):266.940101956,
(('4', '1', '4', '1', '4', '0', '4', '1'), 2):-10,
(('1', '2', '1', '2', '1', '4', '1', '1'), 1):90.8755252391,
(('2', '2', '4', '2', '4', '1', '1', '1'), 1):34.0,
(('1', '0', '0', '1', '0', '0', '1', '0'), 3):244.539697493,
(('0', '1', '1', '1', '4', '0', '0', '0'), 2):50.7382602134,
(('1', '-1', '0', '2', '0', '-1', '2', '-1'), 2):333.100982911,
(('1', '-1', '4', '0', '4', '-1', '1', '-1'), 3):0,
(('2', '-1', '1', '2', '1', '-1', '0', '-1'), 0):289.810203245,
(('-1', '1', '0', '1', '-1', '4', '-1', '0'), 0):122.234397428,
(('1', '2', '0', '4', '1', '0', '1', '4'), 1):19.1810276419,
(('0', '-1', '0', '0', '4', '-1', '0', '-1'), 1):0,
(('1', '-1', '1', '4', '0', '-1', '1', '-1'), 1):-10,
(('0', '1', '1', '0', '1', '0', '0', '0'), 2):245.685218169,
(('0', '-1', '0', '1', '1', '-1', '0', '-1'), 3):226.81134012,
(('2', '2', '2', '2', '1', '2', '2', '0'), 3):201.028504004,
(('2', '2', '1', '2', '1', '0', '2', '1'), 2):171.879739543,
(('1', '1', '0', '1', '1', '0', '0', '1'), 3):183.414274814,
(('1', '2', '0', '4', '0', '0', '1', '2'), 0):1642.72119034,
(('4', '2', '4', '2', '0', '4', '0', '1'), 2):-192.0,
(('-1', '1', '4', '0', '-1', '1', '-1', '0'), 3):57.6590081652,
(('4', '-1', '-1', '0', '-1', '-1', '0', '-1'), 2):276.496315,
(('1', '1', '1', '1', '0', '4', '1', '0'), 3):0,
(('4', '-1', '1', '0', '4', '-1', '0', '-1'), 1):-0.2,
(('0', '2', '0', '2', '1', '0', '0', '0'), 0):269.000169595,
(('1', '4', '2', '-1', '2', '1', '-1', '-1'), 3):70,
(('1', '2', '2', '2', '1', '0', '1', '4'), 0):210.567985842,
(('2', '4', '0', '2', '0', '0', '2', '4'), 2):10.0,
(('0', '1', '4', '-1', '1', '0', '-1', '-1'), 2):141.029020327,
(('4', '1', '1', '0', '4', '1', '4', '0'), 2):81.8111077307,
(('4', '1', '0', '0', '1', '0', '0', '0'), 1):10,
(('4', '0', '-1', '1', '-1', '-1', '1', '1'), 3):250.282741622,
(('0', '4', '1', '1', '0', '4', '1', '0'), 0):0,
(('0', '4', '0', '0', '0', '0', '0', '1'), 1):104.894560545,
(('1', '2', '0', '2', '1', '1', '1', '0'), 3):87.4530623115,
(('2', '2', '1', '2', '2', '1', '0', '1'), 2):297.289559338,
(('0', '0', '0', '0', '0', '0', '4', '0'), 0):-3.02252432507,
(('0', '2', '1', '2', '0', '1', '4', '1'), 2):146.805197047,
(('1', '2', '0', '2', '1', '0', '1', '1'), 3):218.256787709,
(('1', '-1', '0', '2', '0', '-1', '0', '-1'), 2):267.051940755,
(('2', '2', '4', '-1', '2', '4', '-1', '-1'), 3):188.646390229,
(('0', '-1', '1', '1', '0', '-1', '0', '-1'), 2):229.959955256,
(('0', '2', '2', '-1', '2', '2', '-1', '-1'), 0):376.495094982,
(('1', '2', '2', '4', '2', '0', '1', '1'), 3):60,
(('1', '-1', '-1', '2', '-1', '-1', '4', '-1'), 1):277.525470605,
(('0', '-1', '2', '2', '2', '-1', '2', '-1'), 0):308.64094987,
(('1', '-1', '0', '-1', '0', '-1', '-1', '-1'), 0):269.507511998,
(('2', '2', '0', '2', '0', '1', '4', '0'), 1):76.3535263959,
(('0', '1', '4', '1', '4', '0', '1', '0'), 1):52.9996283839,
(('1', '1', '1', '4', '0', '0', '1', '4'), 0):-10,
(('2', '2', '0', '2', '2', '2', '1', '0'), 2):10,
(('2', '2', '2', '2', '1', '0', '0', '0'), 0):161.484145652,
(('4', '2', '2', '4', '2', '2', '4', '0'), 0):25.7282041124,
(('0', '2', '2', '2', '2', '1', '0', '2'), 0):10,
(('4', '2', '2', '2', '4', '1', '4', '0'), 3):144.50173331,
(('-1', '1', '1', '1', '-1', '1', '-1', '1'), 3):199.197470478,
(('0', '0', '1', '1', '1', '4', '0', '0'), 3):10,
(('1', '0', '1', '4', '1', '0', '4', '0'), 0):160.72045955,
(('0', '-1', '4', '1', '1', '-1', '0', '-1'), 0):0,
(('1', '-1', '0', '2', '1', '-1', '1', '-1'), 3):271.895572414,
(('1', '0', '0', '1', '1', '4', '1', '0'), 3):87.3882701211,
(('4', '2', '2', '2', '4', '1', '0', '0'), 1):10,
(('0', '2', '0', '4', '0', '2', '0', '1'), 0):96.2384468952,
(('0', '1', '-1', '4', '-1', '-1', '4', '0'), 3):30.9339069535,
(('1', '1', '1', '4', '0', '1', '4', '4'), 3):40.0,
(('0', '1', '1', '1', '0', '4', '0', '0'), 3):51.4830094751,
(('1', '2', '2', '4', '0', '2', '1', '4'), 3):70.4473735043,
(('0', '2', '1', '2', '1', '2', '0', '1'), 0):274.293978932,
(('0', '1', '1', '0', '1', '1', '4', '1'), 3):28.5866302687,
(('0', '4', '1', '-1', '0', '1', '-1', '-1'), 0):166.143413209,
(('0', '1', '4', '0', '1', '1', '0', '1'), 0):44.8742313504,
(('4', '2', '0', '2', '0', '1', '2', '2'), 1):10,
(('0', '0', '1', '1', '0', '0', '1', '4'), 2):42.4129976833,
(('0', '0', '-1', '0', '-1', '-1', '4', '0'), 3):155.369333199,
(('1', '2', '4', '2', '4', '0', '2', '2'), 2):81.6327853595,
(('0', '1', '4', '1', '4', '4', '1', '1'), 2):50,
(('0', '0', '0', '1', '0', '4', '0', '0'), 0):123.636804765,
(('4', '2', '4', '2', '4', '1', '4', '2'), 2):56.0486838531,
(('2', '-1', '2', '-1', '1', '-1', '-1', '-1'), 2):260.325460251,
(('1', '-1', '4', '-1', '1', '-1', '-1', '-1'), 0):262.796295611,
(('4', '1', '1', '0', '1', '1', '4', '0'), 0):170.389486274,
(('1', '-1', '4', '2', '1', '-1', '0', '-1'), 1):193.102964926,
(('1', '1', '4', '1', '4', '0', '1', '1'), 2):134.924712815,
(('0', '4', '0', '2', '0', '1', '0', '0'), 0):114.865634281,
(('4', '2', '1', '2', '0', '1', '4', '1'), 0):94.4448270875,
(('2', '2', '0', '2', '1', '0', '1', '2'), 2):142.509954732,
(('0', '2', '1', '2', '1', '1', '1', '2'), 2):309.782092183,
(('4', '2', '-1', '2', '-1', '-1', '4', '1'), 2):236.690960303,
(('0', '4', '1', '0', '1', '0', '0', '0'), 1):193.42679625,
(('0', '-1', '4', '2', '4', '-1', '0', '-1'), 0):-23.2601702446,
(('1', '1', '0', '0', '1', '0', '1', '0'), 3):225.238940504,
(('0', '4', '1', '1', '1', '1', '1', '1'), 0):-10,
(('4', '2', '2', '-1', '4', '0', '-1', '-1'), 3):215.525472202,
(('-1', '0', '4', '1', '-1', '0', '-1', '0'), 3):226.967369195,
(('1', '2', '2', '2', '0', '4', '0', '0'), 2):10,
(('0', '2', '4', '2', '1', '0', '0', '1'), 2):30.4389635704,
(('4', '1', '0', '0', '0', '1', '0', '0'), 3):185.721370417,
(('0', '2', '1', '4', '1', '0', '4', '0'), 3):11.8,
(('4', '-1', '1', '-1', '4', '-1', '-1', '-1'), 3):191.789756607,
(('-1', '1', '4', '1', '-1', '4', '-1', '1'), 2):128.443583669,
(('0', '2', '0', '2', '0', '0', '4', '1'), 2):212.605094405,
(('-1', '2', '1', '2', '-1', '2', '-1', '0'), 1):271.319211548,
(('0', '2', '1', '2', '4', '1', '4', '0'), 0):10,
(('1', '0', '1', '0', '0', '4', '0', '0'), 3):33.2352268874,
(('0', '-1', '2', '2', '0', '-1', '2', '-1'), 3):285.595236269,
(('2', '-1', '2', '2', '0', '-1', '0', '-1'), 3):281.889046246,
(('1', '0', '-1', '1', '-1', '-1', '4', '1'), 2):35.4128463394,
(('2', '2', '0', '2', '0', '1', '2', '1'), 2):312.578047107,
(('1', '1', '1', '1', '1', '4', '1', '0'), 0):129.617536574,
(('0', '2', '2', '2', '2', '0', '2', '0'), 3):378.85515995,
(('-1', '2', '1', '2', '-1', '4', '-1', '0'), 3):196.813558821,
(('4', '2', '0', '2', '0', '0', '0', '4'), 2):10,
(('-1', '4', '0', '2', '-1', '4', '-1', '1'), 2):66.776717355,
(('0', '2', '2', '-1', '4', '2', '-1', '-1'), 0):194.765304538,
(('4', '0', '-1', '1', '-1', '-1', '4', '0'), 2):162.524134589,
(('1', '4', '4', '-1', '4', '0', '-1', '-1'), 3):10,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '1'), 3):200.481769292,
(('1', '4', '1', '0', '1', '0', '0', '0'), 0):188.244394549,
(('1', '0', '0', '1', '1', '0', '0', '0'), 1):270.560469887,
(('2', '2', '0', '2', '1', '2', '1', '2'), 0):85.3331675677,
(('1', '0', '0', '1', '1', '0', '1', '1'), 3):232.732016608,
(('-1', '4', '0', '1', '-1', '0', '-1', '4'), 1):146.611916107,
(('4', '2', '1', '2', '1', '0', '1', '0'), 3):128.135003935,
(('2', '2', '0', '4', '2', '0', '4', '0'), 1):93.3633042783,
(('4', '2', '1', '2', '1', '0', '1', '1'), 1):56.3379307373,
(('2', '2', '0', '2', '2', '0', '2', '4'), 1):167.471304363,
(('0', '0', '0', '0', '0', '0', '0', '4'), 2):87.8199629819,
(('1', '2', '2', '4', '1', '1', '0', '1'), 3):52.8808555817,
(('0', '2', '-1', '2', '-1', '-1', '0', '0'), 0):304.386804029,
(('2', '2', '1', '2', '2', '0', '2', '0'), 2):376.723601373,
(('0', '-1', '1', '-1', '2', '-1', '-1', '-1'), 2):310,
(('4', '0', '1', '4', '1', '1', '4', '0'), 1):50,
(('2', '2', '2', '2', '4', '4', '2', '0'), 3):79.6620800785,
(('0', '2', '1', '2', '1', '0', '4', '0'), 1):10,
(('0', '2', '2', '-1', '2', '2', '-1', '-1'), 2):423.238414342,
(('0', '-1', '1', '0', '1', '-1', '1', '-1'), 1):21.1830767739,
(('1', '0', '1', '4', '1', '0', '1', '4'), 2):85.7323595737,
(('0', '1', '1', '1', '1', '0', '0', '1'), 0):212.727011866,
(('1', '0', '-1', '4', '-1', '-1', '1', '1'), 2):10,
(('0', '4', '0', '0', '0', '0', '4', '0'), 1):0,
(('1', '2', '4', '2', '0', '2', '1', '1'), 0):210,
(('1', '2', '4', '2', '0', '0', '2', '0'), 2):185.613952671,
(('2', '2', '0', '2', '4', '1', '0', '0'), 1):90,
(('1', '2', '1', '4', '1', '0', '4', '0'), 3):59.5349695684,
(('2', '2', '2', '2', '0', '0', '1', '2'), 1):335.491833058,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '2'), 0):137.016738832,
(('1', '0', '1', '4', '1', '1', '1', '0'), 1):115.090678954,
(('1', '4', '0', '2', '0', '1', '1', '4'), 2):10,
(('4', '2', '-1', '2', '-1', '-1', '2', '1'), 2):78.1293111893,
(('1', '2', '2', '2', '0', '2', '0', '2'), 3):447.108209471,
(('1', '4', '1', '-1', '1', '1', '-1', '-1'), 2):271.033197604,
(('2', '2', '0', '2', '0', '2', '2', '0'), 1):767.119231693,
(('1', '-1', '1', '2', '1', '-1', '4', '-1'), 0):228.513808635,
(('1', '-1', '0', '2', '1', '-1', '0', '-1'), 0):322.971342476,
(('0', '1', '4', '1', '0', '1', '1', '0'), 2):-20,
(('4', '2', '0', '2', '1', '1', '4', '0'), 0):62.5116454499,
(('-1', '2', '1', '2', '-1', '4', '-1', '1'), 3):24.5422079777,
(('1', '-1', '0', '-1', '0', '-1', '-1', '-1'), 2):258.615515669,
(('0', '2', '1', '2', '1', '1', '1', '4'), 3):29.4039653303,
(('1', '-1', '4', '0', '1', '-1', '0', '-1'), 3):127.33355645,
(('0', '2', '1', '2', '1', '1', '0', '1'), 0):212.907623257,
(('2', '2', '0', '2', '4', '0', '2', '0'), 1):256.245581604,
(('-1', '4', '1', '2', '-1', '0', '-1', '4'), 1):10,
(('1', '1', '1', '1', '0', '4', '0', '0'), 2):42.6340322027,
(('1', '1', '-1', '1', '-1', '-1', '4', '1'), 0):148.045305686,
(('0', '1', '1', '1', '0', '1', '4', '0'), 0):5.20366790956,
(('0', '2', '4', '2', '0', '0', '4', '0'), 2):20,
(('1', '2', '2', '-1', '4', '0', '-1', '-1'), 0):247.414706179,
(('1', '0', '4', '1', '1', '0', '1', '0'), 0):206.466220576,
(('0', '1', '4', '1', '1', '1', '0', '0'), 1):0,
(('4', '1', '1', '4', '1', '1', '4', '0'), 0):60.8601953449,
(('1', '1', '0', '4', '1', '1', '1', '1'), 2):-10,
(('4', '0', '1', '4', '0', '0', '0', '4'), 1):-10,
(('2', '2', '2', '2', '0', '1', '2', '4'), 2):190,
(('1', '1', '4', '-1', '4', '1', '-1', '-1'), 2):43.1995330221,
(('0', '-1', '0', '-1', '1', '-1', '-1', '-1'), 2):320.710730536,
(('4', '-1', '1', '0', '4', '-1', '0', '-1'), 2):57.8056118825,
(('0', '0', '4', '1', '0', '4', '0', '1'), 2):147.184987491,
(('2', '2', '0', '4', '0', '1', '4', '1'), 1):80,
(('-1', '2', '0', '2', '-1', '2', '-1', '1'), 2):250.037854074,
(('1', '2', '2', '2', '1', '4', '1', '4'), 3):77.5605087101,
(('4', '0', '-1', '1', '-1', '-1', '1', '0'), 3):236.305338162,
(('0', '1', '0', '-1', '1', '4', '-1', '-1'), 3):0,
(('1', '1', '-1', '4', '-1', '-1', '1', '0'), 1):221.687178727,
(('2', '2', '0', '4', '1', '1', '2', '1'), 1):10,
(('2', '2', '1', '2', '0', '2', '2', '0'), 1):506.521412626,
(('4', '2', '-1', '4', '-1', '-1', '4', '0'), 0):124.881382643,
(('4', '0', '1', '-1', '0', '0', '-1', '-1'), 1):168.784518975,
(('1', '0', '1', '1', '0', '0', '1', '0'), 0):220.893485801,
(('1', '1', '1', '0', '0', '1', '0', '1'), 3):212.045330464,
(('2', '2', '2', '2', '2', '0', '1', '4'), 0):10.0,
(('2', '2', '0', '2', '1', '0', '2', '1'), 2):233.566981862,
(('-1', '0', '4', '0', '-1', '0', '-1', '1'), 0):10,
(('1', '2', '2', '4', '0', '0', '4', '0'), 3):132.49661942,
(('0', '2', '0', '4', '0', '1', '0', '4'), 0):119.286880698,
(('0', '-1', '1', '-1', '4', '-1', '-1', '-1'), 3):237.70086434,
(('1', '0', '4', '-1', '0', '0', '-1', '-1'), 0):263.365020459,
(('1', '0', '0', '1', '1', '0', '4', '1'), 3):9.8,
(('2', '2', '2', '2', '0', '4', '0', '2'), 3):110.912043849,
(('4', '2', '1', '2', '1', '0', '0', '0'), 2):215.547274664,
(('4', '2', '-1', '2', '-1', '-1', '4', '2'), 0):311.353669346,
(('4', '-1', '1', '2', '1', '-1', '0', '-1'), 1):242.684055351,
(('2', '2', '1', '2', '1', '1', '4', '0'), 2):64.0635155128,
(('0', '4', '1', '1', '1', '4', '0', '4'), 1):0,
(('1', '-1', '1', '0', '0', '-1', '1', '-1'), 0):261.382022877,
(('0', '1', '-1', '0', '-1', '-1', '1', '1'), 1):218.382302107,
(('1', '-1', '2', '2', '2', '-1', '1', '-1'), 3):113.223536061,
(('0', '2', '0', '2', '4', '0', '4', '2'), 2):10,
(('4', '2', '4', '2', '4', '0', '4', '2'), 2):125.231795139,
(('2', '2', '1', '2', '2', '0', '2', '4'), 2):-192.0,
(('2', '2', '2', '2', '0', '2', '2', '4'), 0):55.4998717879,
(('2', '2', '1', '2', '1', '1', '0', '0'), 0):211.682035053,
(('0', '1', '1', '4', '1', '0', '0', '0'), 3):10,
(('4', '-1', '0', '-1', '0', '-1', '-1', '-1'), 3):232.551213926,
(('1', '2', '0', '2', '4', '2', '0', '0'), 0):32.6347813607,
(('0', '0', '0', '0', '0', '1', '0', '0'), 3):-27.1180133052,
(('0', '1', '1', '1', '1', '0', '4', '0'), 3):0,
(('1', '2', '1', '2', '4', '0', '2', '2'), 2):220,
(('0', '2', '2', '-1', '0', '0', '-1', '-1'), 0):366.805569239,
(('2', '4', '1', '2', '2', '4', '2', '0'), 1):10,
(('1', '2', '4', '2', '1', '0', '1', '0'), 0):220.114917543,
(('0', '0', '4', '1', '0', '0', '0', '0'), 3):174.022708731,
(('2', '2', '2', '2', '0', '0', '0', '4'), 3):89.6539367924,
(('1', '2', '2', '2', '0', '2', '4', '0'), 3):247.221414138,
(('1', '0', '1', '1', '0', '4', '1', '1'), 0):-30,
(('0', '2', '1', '2', '0', '1', '0', '0'), 0):247.400215397,
(('0', '2', '0', '2', '0', '0', '1', '1'), 2):246.015128953,
(('1', '2', '2', '2', '4', '0', '0', '0'), 0):179.778535372,
(('4', '0', '0', '1', '0', '0', '4', '1'), 3):107.938559143,
(('0', '2', '4', '2', '0', '0', '0', '0'), 3):230.616758248,
(('1', '2', '0', '2', '0', '0', '2', '2'), 2):357.025701359,
(('1', '2', '1', '2', '1', '4', '0', '4'), 3):0,
(('1', '1', '4', '1', '0', '0', '1', '1'), 0):204.364842294,
(('4', '0', '0', '0', '4', '0', '0', '0'), 0):68.0811730659,
(('1', '2', '4', '2', '1', '0', '0', '0'), 1):233.750329367,
(('4', '1', '-1', '4', '-1', '-1', '4', '4'), 3):9.33057064337,
(('4', '1', '-1', '4', '-1', '-1', '0', '4'), 3):10,
(('4', '2', '0', '4', '0', '0', '4', '2'), 0):200.680497589,
(('1', '2', '2', '-1', '0', '2', '-1', '-1'), 3):428.990940448,
(('1', '0', '0', '4', '1', '0', '1', '0'), 1):185.032441863,
(('-1', '0', '1', '4', '-1', '0', '-1', '0'), 2):166.945093174,
(('0', '2', '0', '4', '1', '0', '0', '0'), 3):70.8367828277,
(('0', '1', '4', '0', '0', '1', '0', '1'), 2):210.962876986,
(('2', '2', '4', '-1', '4', '2', '-1', '-1'), 1):74.2970834428,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '0'), 3):284.652227616,
(('0', '2', '1', '4', '0', '1', '4', '0'), 3):11.8,
(('4', '2', '4', '-1', '0', '4', '-1', '-1'), 2):58.6897319673,
(('0', '1', '1', '4', '0', '0', '0', '1'), 0):-10,
(('2', '2', '4', '2', '0', '0', '2', '4'), 1):77.9654987291,
(('1', '-1', '1', '2', '1', '-1', '0', '-1'), 1):302.689662915,
(('4', '-1', '2', '2', '0', '-1', '0', '-1'), 1):40,
(('1', '2', '4', '2', '0', '1', '1', '0'), 0):48.959660866,
(('2', '-1', '2', '2', '0', '-1', '4', '-1'), 2):10,
(('1', '2', '2', '4', '1', '2', '4', '4'), 0):500,
(('2', '2', '2', '4', '0', '0', '2', '0'), 3):131.46998578,
(('4', '-1', '-1', '2', '-1', '-1', '2', '-1'), 1):75.414311399,
(('0', '2', '0', '2', '0', '1', '0', '0'), 0):231.172802326,
(('4', '2', '0', '2', '4', '0', '4', '0'), 1):10,
(('2', '2', '2', '2', '2', '0', '0', '0'), 2):327.246655946,
(('0', '2', '2', '-1', '0', '2', '-1', '-1'), 3):330.836496944,
(('4', '2', '1', '2', '0', '1', '2', '0'), 2):100,
(('1', '2', '1', '2', '1', '4', '0', '0'), 0):159.879896125,
(('1', '4', '1', '1', '1', '0', '1', '0'), 1):189.671038293,
(('1', '1', '1', '0', '1', '1', '4', '1'), 1):13.7088504442,
(('0', '1', '0', '0', '0', '1', '1', '1'), 3):85.8005797806,
(('-1', '2', '2', '-1', '-1', '4', '-1', '-1'), 0):49.1418981767,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '0'), 1):249.023471841,
(('2', '2', '1', '2', '1', '1', '1', '0'), 1):267.546657701,
(('0', '0', '1', '-1', '0', '4', '-1', '-1'), 0):127.936782653,
(('1', '0', '0', '1', '1', '4', '1', '0'), 1):168.454369969,
(('0', '4', '0', '1', '0', '0', '0', '0'), 0):201.90703126,
(('0', '2', '4', '2', '1', '1', '0', '0'), 2):132.536114383,
(('1', '4', '1', '1', '1', '0', '1', '4'), 0):93.1628281232,
(('4', '2', '-1', '4', '-1', '-1', '0', '4'), 3):50,
(('4', '0', '1', '1', '0', '0', '0', '0'), 2):101.438711619,
(('0', '2', '1', '2', '1', '1', '2', '1'), 2):315.257223647,
(('1', '2', '1', '4', '1', '1', '1', '0'), 0):10,
(('0', '1', '-1', '0', '-1', '-1', '4', '0'), 1):144.291725078,
(('0', '4', '0', '1', '0', '0', '1', '0'), 1):113.333363826,
(('4', '2', '2', '2', '0', '1', '4', '4'), 3):10,
(('0', '2', '4', '2', '1', '1', '0', '1'), 2):194.260407054,
(('2', '2', '1', '2', '0', '4', '2', '0'), 1):177.505129926,
(('1', '2', '2', '2', '2', '0', '2', '4'), 2):115.56254828,
(('0', '-1', '0', '2', '0', '-1', '0', '-1'), 2):251.889138435,
(('4', '2', '1', '2', '0', '1', '4', '0'), 1):10,
(('1', '-1', '0', '4', '1', '-1', '0', '-1'), 0):41.1217767217,
(('0', '2', '1', '2', '0', '0', '0', '0'), 1):242.193844859,
(('1', '4', '0', '1', '0', '0', '1', '1'), 3):200.339594134,
(('4', '2', '0', '2', '4', '0', '4', '1'), 0):172.028076204,
(('2', '4', '0', '2', '0', '0', '2', '2'), 1):187.295722554,
(('4', '2', '0', '2', '0', '0', '4', '1'), 0):232.471679022,
(('1', '0', '-1', '0', '-1', '-1', '0', '1'), 1):250.760185325,
(('1', '0', '-1', '1', '-1', '-1', '4', '0'), 2):206.067285971,
(('0', '2', '4', '2', '4', '0', '0', '2'), 2):219.870335905,
(('1', '4', '0', '4', '0', '0', '1', '4'), 3):0,
(('2', '2', '0', '2', '4', '0', '1', '1'), 1):205.275881012,
(('4', '2', '2', '2', '1', '2', '0', '0'), 0):155.603619542,
(('-1', '4', '2', '2', '-1', '0', '-1', '4'), 3):-127.73396683,
(('2', '2', '0', '2', '0', '0', '2', '0'), 2):321.264363534,
(('1', '0', '4', '1', '0', '0', '0', '1'), 0):0,
(('1', '1', '0', '4', '1', '0', '4', '4'), 0):23.3242705754,
(('0', '-1', '-1', '0', '-1', '-1', '1', '-1'), 0):263.683845854,
(('0', '2', '0', '2', '1', '0', '1', '0'), 3):42.3040120883,
(('2', '2', '4', '-1', '4', '4', '-1', '-1'), 3):10,
(('0', '4', '-1', '4', '-1', '-1', '0', '0'), 0):73.59123429,
(('2', '2', '1', '4', '2', '1', '0', '1'), 1):33.8196504556,
(('1', '2', '1', '2', '0', '4', '1', '2'), 2):27.3984677499,
(('0', '4', '0', '1', '0', '1', '0', '0'), 1):47.3155509324,
(('1', '1', '4', '0', '1', '1', '1', '0'), 2):0,
(('1', '2', '1', '2', '1', '1', '1', '4'), 0):55.5180876355,
(('0', '4', '0', '1', '0', '0', '0', '4'), 1):139.695992748,
(('4', '2', '1', '-1', '1', '1', '-1', '-1'), 3):291.292697268,
(('0', '1', '1', '4', '0', '1', '4', '1'), 3):28.8827906678,
(('1', '2', '2', '2', '1', '1', '4', '0'), 3):180.480574629,
(('4', '2', '4', '2', '4', '4', '1', '0'), 2):2.0,
(('1', '1', '1', '1', '0', '0', '1', '0'), 1):208.265003077,
(('4', '1', '1', '0', '0', '0', '4', '0'), 3):10,
(('2', '2', '0', '2', '2', '2', '2', '2'), 1):708.568473532,
(('-1', '0', '0', '1', '-1', '4', '-1', '0'), 1):100.042041579,
(('4', '2', '4', '-1', '0', '1', '-1', '-1'), 2):10,
(('2', '2', '2', '-1', '2', '4', '-1', '-1'), 0):10,
(('0', '2', '1', '2', '2', '0', '2', '2'), 2):472.079611118,
(('4', '-1', '0', '1', '0', '-1', '0', '-1'), 1):188.224483596,
(('0', '2', '1', '2', '1', '0', '1', '1'), 2):218.01708422,
(('1', '4', '0', '2', '0', '4', '0', '0'), 1):77.0183161278,
(('1', '2', '0', '2', '0', '0', '1', '4'), 2):195.155075279,
(('1', '0', '4', '1', '0', '0', '1', '0'), 2):209.061221996,
(('2', '2', '0', '-1', '2', '1', '-1', '-1'), 0):399.861792233,
(('4', '1', '0', '1', '0', '1', '0', '0'), 2):80.0809785703,
(('1', '1', '4', '0', '4', '4', '1', '0'), 2):-10,
(('-1', '1', '4', '1', '-1', '1', '-1', '0'), 1):27.4924634364,
(('0', '1', '-1', '0', '-1', '-1', '4', '1'), 1):166.509993646,
(('1', '4', '1', '1', '0', '0', '1', '0'), 1):85.9536208361,
(('0', '0', '4', '0', '0', '4', '0', '0'), 0):32.3044229614,
(('2', '2', '4', '2', '2', '1', '2', '1'), 1):10,
(('1', '2', '1', '2', '4', '0', '0', '0'), 0):64.8368832358,
(('0', '2', '0', '2', '1', '4', '0', '0'), 2):10,
(('4', '1', '1', '1', '1', '0', '1', '0'), 2):-10,
(('-1', '4', '1', '0', '-1', '4', '-1', '4'), 1):10,
(('2', '2', '2', '2', '4', '2', '0', '0'), 1):255.947464191,
(('1', '0', '-1', '0', '-1', '-1', '4', '0'), 1):255.884981682,
(('0', '2', '4', '-1', '4', '0', '-1', '-1'), 3):163.185160841,
(('4', '2', '-1', '2', '-1', '-1', '0', '2'), 3):293.534366408,
(('1', '0', '1', '1', '0', '0', '1', '1'), 3):202.868816099,
(('1', '2', '1', '2', '0', '1', '4', '0'), 0):60,
(('2', '2', '0', '2', '0', '4', '2', '2'), 1):187.574283069,
(('1', '-1', '1', '1', '4', '-1', '0', '-1'), 0):50.5564816642,
(('1', '-1', '1', '4', '0', '-1', '1', '-1'), 3):31.9315848739,
(('-1', '1', '0', '4', '-1', '1', '-1', '0'), 3):10.0,
(('1', '2', '1', '2', '1', '1', '0', '4'), 3):199.475298184,
(('2', '2', '2', '2', '0', '4', '1', '0'), 1):70,
(('2', '4', '2', '2', '2', '2', '0', '4'), 1):10,
(('1', '-1', '-1', '2', '-1', '-1', '4', '-1'), 3):273.001920764,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '1'), 0):242.326845266,
(('0', '2', '4', '2', '4', '2', '0', '1'), 3):204.739316195,
(('2', '4', '1', '2', '1', '1', '2', '0'), 2):177.762681222,
(('0', '2', '1', '4', '1', '1', '0', '4'), 3):100.345937448,
(('0', '1', '0', '4', '1', '0', '0', '0'), 1):9.8,
(('2', '2', '4', '2', '2', '2', '2', '0'), 0):10,
(('1', '2', '1', '2', '0', '0', '0', '1'), 1):86.7903466258,
(('0', '2', '1', '2', '1', '1', '1', '1'), 3):227.566995292,
(('0', '1', '0', '-1', '4', '1', '-1', '-1'), 1):127.909029523,
(('-1', '2', '2', '2', '-1', '2', '-1', '0'), 0):328.572299989,
(('-1', '4', '0', '2', '-1', '1', '-1', '0'), 0):10,
(('0', '1', '-1', '4', '-1', '-1', '0', '0'), 0):226.344360331,
(('2', '2', '2', '2', '1', '1', '0', '1'), 1):209.135196672,
(('2', '2', '1', '2', '2', '2', '0', '0'), 2):10,
(('0', '1', '0', '1', '0', '0', '4', '4'), 2):10,
(('0', '1', '0', '1', '1', '0', '1', '0'), 3):63.9276437928,
(('1', '1', '4', '0', '0', '0', '0', '0'), 0):73.8075399289,
(('0', '-1', '-1', '4', '-1', '-1', '4', '-1'), 1):96.827020151,
(('0', '1', '0', '1', '0', '0', '0', '0'), 1):215.686924131,
(('4', '2', '0', '2', '0', '0', '4', '2'), 0):258.998719791,
(('1', '0', '1', '1', '0', '1', '1', '4'), 2):0,
(('0', '4', '1', '2', '1', '4', '0', '4'), 3):27.1705444198,
(('1', '0', '1', '0', '1', '0', '1', '0'), 3):243.627520162,
(('1', '2', '0', '2', '4', '1', '0', '2'), 0):134.658442537,
(('4', '2', '0', '2', '0', '0', '1', '1'), 0):234.750422466,
(('1', '1', '1', '0', '1', '1', '1', '1'), 0):227.08748385,
(('4', '1', '0', '0', '0', '0', '4', '0'), 2):39.2567835797,
(('4', '-1', '1', '-1', '1', '-1', '-1', '-1'), 1):303.776559282,
(('2', '2', '1', '2', '2', '1', '1', '0'), 2):10,
(('1', '0', '1', '1', '0', '0', '1', '0'), 2):213.888525541,
(('0', '1', '1', '1', '1', '4', '0', '1'), 0):76.49564926,
(('1', '2', '4', '2', '0', '4', '0', '2'), 0):10,
(('2', '2', '2', '2', '0', '0', '0', '4'), 1):160.20377523,
(('4', '2', '0', '2', '0', '1', '4', '2'), 1):10,
(('2', '4', '-1', '2', '-1', '-1', '1', '4'), 1):251.550799588,
(('1', '0', '4', '0', '4', '0', '1', '0'), 0):76.7755400944,
(('4', '-1', '0', '2', '1', '-1', '1', '-1'), 2):234.776033489,
(('0', '0', '4', '1', '0', '4', '1', '0'), 0):0,
(('0', '1', '4', '1', '0', '0', '1', '1'), 0):171.75216773,
(('-1', '4', '4', '1', '-1', '4', '-1', '1'), 1):53.7553707037,
(('1', '1', '0', '4', '0', '0', '1', '0'), 1):130.592226081,
(('0', '2', '1', '4', '0', '0', '0', '1'), 3):10,
(('0', '-1', '1', '0', '1', '-1', '0', '-1'), 1):287.997714086,
(('1', '4', '1', '-1', '0', '0', '-1', '-1'), 3):75.9111085651,
(('0', '2', '0', '2', '4', '4', '0', '1'), 2):10,
(('1', '2', '1', '2', '1', '1', '1', '0'), 0):313.840904327,
(('0', '2', '1', '4', '0', '2', '4', '4'), 0):11.8,
(('-1', '0', '0', '0', '-1', '0', '-1', '0'), 0):239.826825461,
(('2', '2', '2', '2', '0', '0', '4', '1'), 0):50,
(('0', '2', '1', '2', '1', '2', '2', '2'), 2):378.844220895,
(('0', '0', '0', '1', '1', '0', '1', '0'), 2):165.255613103,
(('1', '4', '0', '0', '1', '0', '0', '4'), 3):30.4226412786,
(('0', '0', '1', '1', '0', '0', '1', '1'), 0):172.91054759,
(('1', '0', '1', '4', '0', '0', '4', '0'), 3):1.08671369513,
(('0', '1', '1', '1', '0', '1', '1', '1'), 3):182.103786308,
(('4', '1', '0', '1', '0', '0', '1', '1'), 2):212.440352829,
(('0', '0', '1', '4', '1', '0', '0', '4'), 1):0,
(('1', '-1', '-1', '1', '-1', '-1', '0', '-1'), 3):248.685447725,
(('2', '2', '2', '2', '2', '4', '0', '0'), 1):262.082073622,
(('0', '1', '1', '0', '0', '0', '4', '0'), 0):66.2624242631,
(('-1', '2', '0', '2', '-1', '4', '-1', '2'), 2):323.548326852,
(('2', '2', '2', '2', '2', '2', '1', '4'), 1):108.461942588,
(('4', '0', '-1', '1', '-1', '-1', '0', '0'), 3):181.797429693,
(('0', '1', '0', '0', '1', '0', '0', '4'), 2):10,
(('-1', '2', '2', '-1', '-1', '2', '-1', '-1'), 0):301.512055566,
(('-1', '2', '1', '2', '-1', '0', '-1', '4'), 1):118.913736545,
(('2', '2', '1', '2', '2', '1', '0', '0'), 1):324.924272131,
(('1', '2', '2', '2', '0', '0', '0', '2'), 2):347.485518547,
(('4', '2', '0', '2', '1', '0', '2', '0'), 2):76.4011546126,
(('2', '2', '2', '2', '0', '4', '2', '0'), 2):25.5012928011,
(('0', '2', '2', '2', '4', '0', '0', '1'), 3):186.505718746,
(('4', '-1', '1', '1', '0', '-1', '0', '-1'), 2):179.193400497,
(('4', '2', '0', '2', '0', '1', '0', '1'), 2):218.415208765,
(('2', '2', '2', '2', '4', '2', '0', '2'), 0):-1000,
(('1', '-1', '2', '-1', '0', '-1', '-1', '-1'), 3):312.964689712,
(('-1', '4', '1', '0', '-1', '1', '-1', '4'), 1):63.3534542819,
(('0', '1', '1', '1', '4', '1', '1', '0'), 2):-10,
(('2', '2', '1', '2', '2', '1', '2', '1'), 1):372.450692518,
(('2', '4', '0', '4', '0', '4', '4', '4'), 1):10,
(('0', '4', '1', '1', '1', '1', '0', '4'), 3):58.550391822,
(('0', '0', '0', '1', '0', '0', '1', '0'), 0):231.080889301,
(('-1', '1', '1', '1', '-1', '4', '-1', '1'), 1):159.676827343,
(('2', '2', '4', '2', '1', '4', '2', '4'), 1):10,
(('2', '2', '2', '2', '2', '0', '4', '0'), 2):-1000,
(('0', '4', '2', '4', '2', '4', '0', '4'), 3):10,
(('-1', '2', '1', '2', '-1', '2', '-1', '2'), 2):435.516115986,
(('2', '4', '0', '-1', '2', '1', '-1', '-1'), 1):163.833344534,
(('0', '4', '4', '-1', '1', '1', '-1', '-1'), 2):50,
(('4', '2', '4', '2', '0', '0', '1', '0'), 1):10,
(('1', '1', '0', '0', '1', '0', '1', '0'), 1):257.099060126,
(('4', '1', '0', '1', '0', '1', '4', '1'), 0):143.573777091,
(('1', '0', '1', '0', '1', '0', '4', '0'), 2):140.851380688,
(('1', '2', '0', '4', '1', '0', '1', '0'), 3):10,
(('4', '4', '0', '4', '0', '0', '4', '4'), 2):10,
(('0', '1', '4', '0', '0', '0', '0', '0'), 1):185.490564949,
(('0', '2', '2', '4', '1', '1', '4', '0'), 3):61.4505299857,
(('2', '2', '4', '2', '0', '0', '0', '1'), 1):230.108425249,
(('-1', '1', '4', '0', '-1', '0', '-1', '1'), 1):0,
(('1', '0', '-1', '4', '-1', '-1', '1', '4'), 2):69.6318778496,
(('4', '1', '0', '1', '1', '0', '1', '1'), 3):10,
(('0', '4', '1', '0', '0', '0', '0', '0'), 0):139.357281887,
(('1', '-1', '1', '2', '0', '-1', '1', '-1'), 2):259.72162685,
(('1', '4', '-1', '1', '-1', '-1', '1', '4'), 2):201.47315883,
(('1', '0', '0', '0', '1', '4', '0', '0'), 1):42.0866823553,
(('1', '2', '1', '2', '0', '0', '0', '2'), 0):191.794456121,
(('2', '2', '4', '2', '0', '4', '2', '2'), 2):10,
(('4', '-1', '0', '0', '1', '-1', '0', '-1'), 2):131.739026969,
(('-1', '0', '1', '-1', '-1', '0', '-1', '-1'), 1):240.968166907,
(('-1', '2', '2', '2', '-1', '1', '-1', '1'), 1):308.406556852,
(('-1', '1', '1', '4', '-1', '1', '-1', '1'), 1):189.263448411,
(('1', '4', '-1', '1', '-1', '-1', '1', '0'), 3):241.325609241,
(('0', '0', '1', '0', '0', '1', '4', '0'), 0):8.0,
(('-1', '2', '4', '2', '-1', '0', '-1', '1'), 1):240.494730983,
(('4', '0', '-1', '0', '-1', '-1', '1', '0'), 3):227.890005426,
(('4', '2', '1', '2', '1', '1', '0', '1'), 2):175.553490279,
(('0', '-1', '1', '1', '4', '-1', '0', '-1'), 1):182.735990896,
(('1', '1', '1', '1', '0', '4', '0', '1'), 0):0,
(('1', '0', '1', '0', '4', '0', '0', '0'), 3):138.290234586,
(('0', '1', '-1', '1', '-1', '-1', '0', '4'), 3):199.977182851,
(('0', '1', '0', '4', '0', '0', '0', '0'), 0):192.81776341,
(('0', '4', '0', '2', '0', '4', '2', '2'), 2):26.6612253945,
(('2', '-1', '4', '2', '2', '-1', '2', '-1'), 1):69.4316895743,
(('0', '2', '2', '2', '4', '1', '1', '1'), 0):10,
(('2', '2', '0', '2', '2', '0', '0', '2'), 0):466.939395415,
(('-1', '2', '2', '2', '-1', '4', '-1', '2'), 3):231.038080745,
(('2', '2', '2', '2', '2', '0', '1', '2'), 2):368.380369604,
(('1', '2', '1', '-1', '4', '0', '-1', '-1'), 3):227.154136975,
(('0', '0', '4', '0', '0', '0', '0', '0'), 3):173.733778888,
(('4', '-1', '2', '2', '1', '-1', '0', '-1'), 3):298.647176811,
(('0', '0', '-1', '1', '-1', '-1', '1', '0'), 1):253.888343891,
(('1', '4', '1', '0', '0', '1', '0', '0'), 2):102.785660256,
(('4', '2', '0', '2', '4', '2', '4', '0'), 0):180.485134701,
(('1', '4', '0', '2', '0', '4', '0', '4'), 1):10,
(('1', '-1', '0', '2', '0', '-1', '4', '-1'), 1):222.62381406,
(('1', '1', '4', '1', '4', '4', '1', '1'), 0):83.7042437861,
(('4', '0', '1', '1', '4', '0', '0', '1'), 0):0,
(('1', '4', '0', '2', '1', '4', '0', '4'), 1):10,
(('0', '1', '4', '-1', '4', '1', '-1', '-1'), 3):99.8256072586,
(('1', '0', '1', '0', '4', '1', '0', '0'), 2):73.9375841409,
(('1', '1', '0', '1', '0', '0', '0', '0'), 3):209.92300708,
(('0', '-1', '0', '2', '4', '-1', '1', '-1'), 2):196.752388174,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '1'), 0):54.8761091529,
(('2', '2', '0', '2', '0', '2', '2', '2'), 2):393.450355698,
(('4', '-1', '1', '1', '0', '-1', '1', '-1'), 1):105.771278814,
(('0', '4', '2', '2', '2', '2', '1', '4'), 3):10,
(('4', '1', '4', '0', '4', '0', '0', '0'), 1):0,
(('2', '-1', '2', '-1', '1', '-1', '-1', '-1'), 1):306.868775084,
(('0', '2', '2', '2', '2', '2', '0', '2'), 0):360.33961138,
(('4', '2', '2', '-1', '4', '1', '-1', '-1'), 3):112.16865671,
(('4', '0', '0', '1', '4', '0', '1', '0'), 3):1.8,
(('0', '0', '0', '-1', '0', '1', '-1', '-1'), 2):245.240928966,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '1'), 1):220.820304413,
(('2', '4', '2', '2', '2', '0', '2', '0'), 1):10,
(('4', '0', '4', '1', '4', '4', '4', '0'), 0):56.8849261186,
(('4', '2', '2', '4', '0', '2', '4', '4'), 3):10,
(('1', '2', '-1', '2', '-1', '-1', '0', '1'), 3):268.660482258,
(('4', '0', '1', '1', '0', '0', '1', '0'), 0):45.9061534175,
(('1', '2', '2', '2', '1', '2', '1', '4'), 0):215.657679769,
(('0', '0', '4', '1', '0', '0', '1', '1'), 1):89.3474999842,
(('1', '-1', '0', '1', '1', '-1', '0', '-1'), 1):284.034510798,
(('0', '1', '1', '0', '1', '1', '0', '4'), 2):103.984119977,
(('1', '1', '0', '0', '1', '1', '0', '1'), 0):142.152418185,
(('0', '4', '2', '2', '2', '4', '0', '1'), 3):10,
(('2', '2', '4', '-1', '2', '0', '-1', '-1'), 1):264.603297873,
(('1', '-1', '0', '0', '1', '-1', '1', '-1'), 3):276.277945033,
(('4', '2', '0', '2', '4', '0', '4', '2'), 2):305.338468497,
(('1', '2', '4', '2', '1', '4', '0', '0'), 2):51.6600201337,
(('1', '0', '4', '1', '1', '0', '0', '0'), 2):167.142781322,
(('4', '-1', '-1', '2', '-1', '-1', '1', '-1'), 0):306.719996793,
(('1', '1', '1', '1', '0', '4', '1', '0'), 2):38.9661840331,
(('2', '4', '0', '-1', '1', '4', '-1', '-1'), 1):208.54853671,
(('1', '0', '0', '4', '1', '0', '4', '0'), 0):25.3677420251,
(('2', '-1', '0', '2', '4', '-1', '0', '-1'), 1):168.398623305,
(('1', '0', '-1', '4', '-1', '-1', '1', '0'), 2):259.362067539,
(('2', '2', '2', '2', '1', '2', '1', '1'), 3):71.582907596,
(('0', '1', '4', '0', '1', '0', '0', '0'), 1):-10,
(('1', '0', '4', '1', '4', '4', '0', '0'), 1):42.2569367641,
(('2', '2', '0', '2', '2', '1', '0', '0'), 1):116.050092013,
(('1', '1', '0', '-1', '1', '1', '-1', '-1'), 2):219.838239046,
(('2', '-1', '1', '2', '1', '-1', '0', '-1'), 1):299.05516714,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '4'), 2):203.303272326,
(('-1', '1', '0', '1', '-1', '4', '-1', '0'), 1):66.2852629865,
(('0', '4', '-1', '4', '-1', '-1', '4', '4'), 2):-10,
(('1', '2', '0', '4', '1', '0', '1', '4'), 2):10,
(('2', '2', '0', '2', '1', '4', '0', '0'), 1):214.810590346,
(('2', '2', '0', '2', '0', '4', '2', '4'), 1):264.933449415,
(('0', '0', '1', '1', '0', '1', '0', '0'), 2):184.602109512,
(('1', '0', '0', '1', '0', '4', '0', '0'), 2):106.230067864,
(('-1', '1', '4', '0', '-1', '1', '-1', '0'), 0):163.847019091,
(('4', '-1', '-1', '0', '-1', '-1', '0', '-1'), 3):240.855322374,
(('4', '0', '4', '1', '4', '4', '0', '0'), 0):10,
(('2', '2', '1', '2', '4', '0', '2', '0'), 1):100.576964085,
(('0', '2', '0', '2', '1', '0', '0', '0'), 1):260.710991097,
(('2', '4', '0', '2', '0', '0', '2', '4'), 1):274.386092854,
(('0', '2', '1', '2', '1', '2', '0', '2'), 0):341.590697158,
(('4', '1', '0', '-1', '1', '0', '-1', '-1'), 0):119.465144708,
(('4', '1', '1', '0', '4', '1', '4', '0'), 3):109.639404431,
(('4', '1', '0', '0', '1', '0', '0', '0'), 0):86.5122886601,
(('1', '2', '0', '2', '0', '2', '4', '2'), 0):126.729669391,
(('4', '2', '0', '2', '4', '4', '4', '1'), 0):20,
(('2', '2', '2', '2', '2', '2', '2', '1'), 0):431.894785547,
(('0', '4', '0', '-1', '0', '0', '-1', '-1'), 1):268.232334702,
(('1', '4', '0', '2', '2', '0', '2', '4'), 2):10,
(('1', '1', '0', '1', '1', '0', '0', '4'), 0):10,
(('1', '0', '4', '1', '1', '4', '1', '0'), 0):31.6544159931,
(('0', '2', '1', '2', '1', '4', '0', '4'), 3):95.3919134434,
(('0', '0', '0', '0', '0', '0', '4', '0'), 3):138.787403417,
(('1', '2', '0', '2', '1', '0', '1', '1'), 2):254.266318079,
(('0', '4', '-1', '2', '-1', '-1', '1', '4'), 1):10,
(('0', '-1', '1', '4', '1', '-1', '1', '-1'), 3):-10,
(('1', '0', '1', '1', '4', '1', '0', '0'), 2):67.9694825882,
(('4', '-1', '0', '1', '1', '-1', '1', '-1'), 3):0,
(('0', '-1', '1', '1', '0', '-1', '0', '-1'), 3):240.588828896,
(('0', '1', '1', '4', '0', '1', '1', '0'), 0):10,
(('1', '1', '1', '4', '1', '1', '1', '0'), 1):182.201428681,
(('2', '2', '0', '2', '0', '0', '2', '4'), 1):285.209760164,
(('4', '2', '1', '4', '1', '0', '4', '0'), 3):10,
(('1', '0', '4', '1', '4', '1', '1', '1'), 0):-10,
(('0', '2', '1', '2', '0', '0', '0', '2'), 2):349.264106147,
(('2', '2', '2', '2', '0', '4', '0', '1'), 1):191.653647056,
(('1', '1', '0', '4', '1', '0', '1', '0'), 0):96.2791766481,
(('2', '4', '0', '4', '0', '0', '1', '4'), 1):30,
(('2', '2', '2', '2', '1', '0', '0', '0'), 1):208.666875081,
(('2', '4', '4', '2', '1', '4', '1', '4'), 1):10,
(('1', '0', '1', '4', '0', '0', '1', '0'), 3):110.025509172,
(('-1', '1', '1', '1', '-1', '1', '-1', '1'), 2):216.035494634,
(('2', '4', '1', '2', '1', '1', '0', '0'), 1):261.174129059,
(('-1', '2', '4', '2', '-1', '0', '-1', '0'), 2):253.497022353,
(('2', '-1', '4', '2', '2', '-1', '1', '-1'), 1):10,
(('-1', '2', '4', '2', '-1', '4', '-1', '1'), 2):230.360305057,
(('4', '0', '4', '0', '0', '0', '4', '0'), 3):50,
(('1', '-1', '0', '2', '1', '-1', '1', '-1'), 2):292.671787802,
(('1', '2', '2', '2', '0', '0', '1', '2'), 0):128.0,
(('0', '1', '0', '4', '1', '1', '0', '1'), 3):-20,
(('2', '2', '2', '2', '4', '0', '1', '1'), 3):151.242349225,
(('4', '-1', '0', '2', '4', '-1', '2', '-1'), 1):74.0,
(('0', '1', '-1', '4', '-1', '-1', '4', '0'), 2):10,
(('1', '2', '0', '4', '1', '0', '4', '0'), 3):0,
(('1', '2', '2', '-1', '1', '4', '-1', '-1'), 3):279.72620851,
(('0', '1', '1', '1', '0', '4', '0', '0'), 0):-10,
(('0', '4', '1', '-1', '0', '1', '-1', '-1'), 1):215.104549039,
(('1', '2', '2', '2', '2', '0', '0', '2'), 0):103.754239257,
(('2', '4', '1', '2', '1', '4', '2', '0'), 2):50,
(('2', '-1', '1', '2', '2', '-1', '4', '-1'), 2):0,
(('1', '2', '4', '2', '1', '4', '1', '4'), 2):10,
(('1', '0', '1', '0', '1', '1', '0', '1'), 1):83.0230297562,
(('0', '4', '1', '0', '0', '1', '0', '1'), 3):115.814833635,
(('1', '-1', '4', '-1', '1', '-1', '-1', '-1'), 1):245.492578484,
(('0', '1', '1', '1', '0', '0', '4', '0'), 2):23.9793785793,
(('2', '4', '2', '2', '0', '1', '0', '2'), 2):0,
(('0', '2', '0', '2', '1', '0', '0', '2'), 0):433.553823889,
(('1', '1', '4', '1', '4', '0', '1', '1'), 3):0,
(('0', '0', '0', '0', '1', '0', '0', '1'), 1):10,
(('4', '0', '1', '-1', '1', '0', '-1', '-1'), 0):131.939708228,
(('-1', '0', '1', '1', '-1', '0', '-1', '4'), 3):35.5818801746,
(('2', '2', '0', '2', '1', '0', '1', '2'), 1):88.1798480935,
(('4', '2', '-1', '2', '-1', '-1', '4', '1'), 1):234.035225149,
(('0', '4', '1', '0', '1', '0', '0', '0'), 0):121.469643184,
(('2', '-1', '4', '-1', '2', '-1', '-1', '-1'), 0):-95.5813476407,
(('1', '0', '0', '1', '0', '4', '1', '1'), 2):49.1069740593,
(('1', '1', '0', '0', '1', '0', '1', '0'), 2):203.496012502,
(('1', '2', '1', '2', '1', '1', '0', '2'), 0):341.414960874,
(('1', '1', '1', '1', '1', '0', '1', '1'), 2):193.628882756,
(('0', '2', '1', '4', '0', '0', '0', '4'), 3):159.710036629,
(('-1', '0', '0', '4', '-1', '0', '-1', '1'), 1):95.8402727633,
(('4', '2', '4', '2', '4', '0', '0', '2'), 0):-619.976832491,
(('0', '2', '2', '2', '4', '1', '1', '1'), 3):94.9396465127,
(('1', '4', '0', '0', '0', '4', '0', '0'), 1):92.2084601318,
(('4', '2', '0', '2', '4', '1', '4', '2'), 0):101.412660066,
(('1', '2', '1', '2', '0', '0', '1', '4'), 2):10,
(('-1', '2', '1', '2', '-1', '2', '-1', '0'), 0):366.233651623,
(('1', '2', '2', '4', '2', '2', '4', '0'), 0):67.0944183045,
(('2', '2', '4', '2', '2', '0', '2', '0'), 1):152.675380883,
(('0', '4', '0', '0', '0', '1', '0', '4'), 1):10,
(('0', '1', '1', '-1', '1', '4', '-1', '-1'), 3):236.46514067,
(('1', '0', '1', '0', '0', '4', '0', '0'), 2):-140.312322995,
(('2', '2', '1', '2', '2', '4', '2', '2'), 2):410,
(('4', '2', '1', '2', '0', '1', '0', '2'), 2):299.31338583,
(('2', '2', '2', '2', '4', '0', '2', '2'), 0):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '0'), 2):245.649311868,
(('2', '2', '2', '2', '2', '0', '4', '1'), 1):10,
(('4', '2', '0', '2', '0', '4', '0', '2'), 2):59.0863801256,
(('1', '1', '1', '1', '1', '4', '1', '0'), 3):51.9063503114,
(('-1', '2', '1', '2', '-1', '4', '-1', '0'), 2):266.615989185,
(('0', '2', '2', '4', '0', '1', '4', '2'), 3):10,
(('4', '0', '-1', '1', '-1', '-1', '4', '0'), 1):190.738076848,
(('2', '2', '-1', '4', '-1', '-1', '2', '1'), 1):402.179252975,
(('1', '2', '0', '2', '1', '2', '4', '2'), 0):76.8116533641,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '1'), 0):254.673239981,
(('1', '4', '1', '0', '1', '0', '0', '0'), 1):201.303261338,
(('1', '0', '4', '-1', '1', '1', '-1', '-1'), 0):94.1230918822,
(('1', '0', '-1', '1', '-1', '-1', '1', '4'), 1):260.750506081,
(('0', '2', '2', '2', '1', '1', '1', '0'), 3):282.764694086,
(('-1', '4', '0', '1', '-1', '0', '-1', '4'), 0):107.919281391,
(('4', '0', '4', '1', '0', '4', '4', '1'), 0):0,
(('4', '2', '2', '4', '0', '0', '4', '0'), 3):10,
(('0', '2', '2', '2', '0', '1', '4', '1'), 0):75.0366634518,
(('1', '1', '4', '-1', '4', '4', '-1', '-1'), 3):67.0775964917,
(('2', '4', '0', '-1', '0', '4', '-1', '-1'), 1):207.574365685,
(('2', '2', '2', '4', '0', '2', '0', '4'), 1):109.878520503,
(('0', '2', '-1', '2', '-1', '-1', '0', '0'), 1):292.217405694,
(('1', '1', '4', '0', '0', '4', '0', '0'), 1):97.7895368893,
(('1', '-1', '0', '4', '1', '-1', '1', '-1'), 1):109.182682982,
(('4', '0', '1', '4', '1', '1', '4', '0'), 2):50,
(('1', '1', '1', '0', '0', '1', '1', '4'), 0):10,
(('1', '2', '2', '2', '2', '1', '0', '0'), 3):281.225822358,
(('2', '2', '2', '2', '4', '4', '2', '0'), 2):10,
(('2', '-1', '0', '-1', '1', '-1', '-1', '-1'), 2):309.774818874,
(('0', '0', '0', '1', '0', '0', '0', '4'), 1):164.782018394,
(('0', '0', '1', '1', '4', '1', '0', '0'), 2):40.6202510601,
(('4', '2', '0', '2', '4', '0', '1', '0'), 2):193.453578219,
(('0', '1', '1', '1', '1', '0', '0', '1'), 1):176.971935827,
(('0', '2', '0', '2', '1', '0', '2', '2'), 0):356.17891934,
(('1', '0', '-1', '1', '-1', '-1', '0', '4'), 1):70.8361176198,
(('4', '-1', '2', '-1', '4', '-1', '-1', '-1'), 1):590,
(('2', '2', '0', '2', '4', '1', '0', '0'), 2):10,
(('1', '4', '2', '2', '0', '0', '1', '1'), 3):182.901909407,
(('2', '2', '1', '2', '2', '1', '0', '2'), 2):152.383903519,
(('2', '2', '2', '2', '0', '0', '1', '2'), 2):182.618194735,
(('0', '2', '2', '2', '0', '2', '2', '2'), 3):413.928191438,
(('0', '2', '2', '4', '2', '1', '0', '4'), 3):191.259378233,
(('1', '4', '1', '-1', '1', '1', '-1', '-1'), 3):275.176569155,
(('2', '2', '0', '2', '0', '2', '2', '0'), 0):82.9958372195,
(('0', '2', '1', '2', '0', '4', '0', '2'), 0):211.489972751,
(('1', '-1', '0', '2', '1', '-1', '0', '-1'), 1):321.309187164,
(('4', '1', '1', '4', '1', '1', '4', '1'), 3):18.3964697074,
(('2', '2', '2', '2', '0', '2', '2', '2'), 1):489.989587945,
(('-1', '2', '1', '2', '-1', '4', '-1', '1'), 0):131.529121401,
(('0', '1', '1', '1', '4', '1', '1', '1'), 2):129.932392735,
(('2', '2', '0', '2', '1', '1', '2', '2'), 1):226.021889619,
(('0', '2', '1', '2', '1', '1', '1', '4'), 2):10,
(('0', '1', '0', '1', '4', '0', '0', '0'), 3):10.3646757288,
(('1', '2', '2', '4', '0', '0', '1', '0'), 3):169.636996315,
(('1', '0', '-1', '1', '-1', '-1', '0', '0'), 3):255.984739371,
(('0', '1', '4', '4', '4', '4', '0', '0'), 2):10,
(('1', '2', '4', '2', '2', '0', '1', '0'), 3):62.4390739521,
(('1', '1', '-1', '1', '-1', '-1', '4', '1'), 1):193.111620085,
(('1', '2', '0', '2', '1', '2', '0', '2'), 2):550.743676062,
(('1', '4', '-1', '1', '-1', '-1', '0', '0'), 2):225.110887149,
(('1', '0', '4', '1', '1', '0', '1', '0'), 3):221.244565901,
(('2', '2', '2', '-1', '4', '1', '-1', '-1'), 3):45.8452769979,
(('1', '0', '1', '1', '4', '0', '0', '1'), 2):0,
(('1', '4', '1', '0', '1', '4', '0', '0'), 2):92.0123996931,
(('0', '2', '0', '2', '1', '4', '1', '2'), 0):10,
(('1', '1', '4', '-1', '4', '1', '-1', '-1'), 1):156.227322268,
(('0', '-1', '0', '-1', '1', '-1', '-1', '-1'), 1):280.216473371,
(('0', '4', '1', '0', '0', '0', '0', '4'), 1):81.9297620512,
(('2', '2', '1', '2', '2', '4', '2', '1'), 2):170,
(('1', '0', '4', '1', '0', '1', '1', '0'), 0):0,
(('0', '2', '1', '4', '0', '1', '4', '4'), 0):65.4053617896,
(('0', '0', '0', '4', '0', '0', '0', '0'), 3):234.293255589,
(('4', '1', '1', '1', '0', '0', '4', '0'), 0):30.8972992652,
(('1', '0', '0', '1', '0', '0', '4', '0'), 3):96.6855190854,
(('1', '2', '1', '2', '1', '2', '2', '0'), 0):590.436400702,
(('-1', '1', '0', '1', '-1', '1', '-1', '0'), 1):204.699571567,
(('0', '2', '0', '2', '0', '2', '0', '1'), 0):269.7232272,
(('1', '1', '4', '0', '4', '0', '0', '0'), 1):8.46837688895,
(('0', '2', '1', '2', '1', '0', '4', '0'), 3):195.286189275,
(('1', '1', '-1', '4', '-1', '-1', '1', '0'), 0):238.313081492,
(('1', '0', '1', '2', '1', '1', '1', '0'), 2):10,
(('4', '0', '1', '0', '1', '1', '1', '0'), 1):42.933346449,
(('4', '2', '2', '2', '4', '1', '4', '4'), 1):10,
(('0', '2', '0', '2', '0', '0', '4', '2'), 0):304.707113902,
(('2', '2', '0', '2', '2', '4', '2', '2'), 2):74.3784948768,
(('4', '2', '2', '2', '0', '0', '4', '1'), 3):195.02931005,
(('4', '0', '1', '-1', '0', '0', '-1', '-1'), 0):226.678341494,
(('2', '2', '2', '2', '2', '0', '1', '4'), 1):10,
(('2', '2', '0', '2', '1', '0', '2', '1'), 1):286.965825379,
(('2', '2', '4', '2', '0', '4', '1', '0'), 3):10,
(('0', '-1', '1', '-1', '4', '-1', '-1', '-1'), 2):257.705603257,
(('1', '4', '0', '2', '1', '1', '2', '0'), 2):10,
(('1', '2', '0', '4', '1', '0', '1', '2'), 0):413.629023197,
(('1', '1', '0', '4', '1', '1', '1', '1'), 3):-10,
(('0', '1', '0', '1', '4', '0', '0', '1'), 2):212.691080306,
(('1', '2', '1', '2', '0', '0', '0', '0'), 2):237.285043841,
(('4', '2', '-1', '2', '-1', '-1', '4', '2'), 1):69.2004141077,
(('2', '2', '2', '2', '2', '0', '1', '0'), 0):128.944743528,
(('-1', '4', '1', '2', '-1', '1', '-1', '2'), 2):10,
(('1', '1', '0', '4', '1', '0', '1', '0'), 1):10,
(('1', '-1', '2', '2', '2', '-1', '1', '-1'), 0):414.925265354,
(('0', '1', '0', '4', '0', '0', '4', '0'), 0):99.5090137934,
(('0', '4', '-1', '4', '-1', '-1', '0', '4'), 1):-10,
(('4', '4', '4', '-1', '4', '0', '-1', '-1'), 0):-10,
(('2', '2', '1', '2', '1', '1', '0', '0'), 1):268.591114629,
(('4', '2', '1', '2', '1', '1', '4', '1'), 1):10,
(('4', '-1', '0', '-1', '0', '-1', '-1', '-1'), 0):224.335665116,
(('0', '2', '0', '-1', '0', '1', '-1', '-1'), 3):287.828167101,
(('0', '0', '0', '0', '0', '1', '0', '0'), 0):220.464839435,
(('0', '1', '-1', '1', '-1', '-1', '4', '4'), 2):0.0,
(('0', '1', '1', '1', '1', '0', '4', '0'), 2):0,
(('1', '1', '1', '1', '4', '0', '0', '0'), 3):0,
(('1', '1', '0', '4', '1', '1', '4', '1'), 3):-10,
(('0', '0', '4', '1', '0', '0', '0', '0'), 0):193.200956095,
(('4', '2', '1', '-1', '0', '0', '-1', '-1'), 3):296.386271693,
(('1', '1', '1', '4', '0', '1', '1', '0'), 3):10,
(('4', '0', '1', '0', '1', '1', '0', '1'), 0):0,
(('1', '4', '1', '2', '1', '1', '0', '4'), 3):54.9857431995,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '1'), 0):80.3051928586,
(('4', '2', '2', '2', '0', '0', '4', '2'), 3):240.593628069,
(('1', '0', '4', '1', '1', '4', '0', '0'), 1):39.1865706143,
(('0', '-1', '4', '0', '0', '-1', '0', '-1'), 2):215.412531477,
(('0', '2', '1', '2', '0', '1', '0', '0'), 3):247.17192797,
(('0', '4', '-1', '0', '-1', '-1', '0', '0'), 0):239.498877767,
(('4', '0', '0', '1', '0', '0', '4', '1'), 2):81.066051345,
(('0', '2', '0', '2', '0', '2', '4', '1'), 2):10,
(('0', '2', '4', '2', '0', '0', '0', '0'), 2):234.54823952,
(('0', '1', '1', '0', '0', '0', '0', '4'), 1):26.6275128549,
(('0', '0', '1', '0', '1', '1', '4', '0'), 0):19.6728150357,
(('1', '1', '4', '1', '0', '0', '1', '1'), 1):163.013566955,
(('1', '4', '4', '1', '1', '0', '1', '0'), 3):10,
(('1', '2', '4', '2', '1', '0', '0', '0'), 0):70.9566092783,
(('1', '2', '0', '2', '1', '0', '1', '4'), 0):105.511716231,
(('4', '1', '-1', '4', '-1', '-1', '4', '4'), 2):2.8498193939,
(('0', '1', '1', '0', '1', '1', '1', '1'), 2):-10,
(('-1', '2', '2', '2', '-1', '4', '-1', '0'), 1):183.730922457,
(('0', '1', '4', '1', '1', '0', '0', '1'), 3):19.5891692817,
(('2', '2', '1', '2', '1', '0', '4', '4'), 2):10,
(('0', '1', '4', '0', '0', '1', '0', '1'), 3):202.025870301,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '0'), 0):288.557554913,
(('4', '2', '0', '2', '0', '1', '0', '0'), 0):214.021472189,
(('0', '1', '1', '4', '0', '0', '0', '1'), 1):90.6148509317,
(('0', '2', '0', '2', '0', '1', '4', '4'), 0):10,
(('0', '4', '2', '4', '0', '0', '0', '4'), 3):10,
(('1', '-1', '1', '2', '1', '-1', '0', '-1'), 0):316.922038884,
(('1', '2', '1', '2', '0', '0', '2', '0'), 0):100,
(('2', '2', '0', '2', '4', '0', '2', '1'), 1):303.495125476,
(('4', '-1', '2', '2', '0', '-1', '1', '-1'), 3):265.473355764,
(('0', '-1', '0', '2', '2', '-1', '2', '-1'), 0):125.802772122,
(('4', '2', '1', '2', '1', '2', '0', '1'), 0):10,
(('-1', '0', '0', '1', '-1', '0', '-1', '1'), 1):259.412109273,
(('0', '0', '4', '1', '1', '0', '0', '0'), 3):39.7828186778,
(('1', '2', '0', '-1', '2', '0', '-1', '-1'), 2):318.513019877,
(('4', '2', '0', '2', '4', '0', '2', '2'), 2):276.302097877,
(('1', '4', '1', '4', '0', '1', '4', '0'), 3):0,
(('4', '2', '0', '2', '4', '0', '4', '0'), 0):139.421652769,
(('2', '2', '2', '2', '2', '0', '0', '0'), 1):298.605802923,
(('2', '-1', '0', '2', '0', '-1', '0', '-1'), 0):247.511192035,
(('1', '2', '1', '2', '1', '4', '0', '0'), 1):188.557693629,
(('1', '0', '0', '0', '1', '0', '1', '1'), 3):72.7711646807,
(('1', '1', '1', '0', '1', '1', '4', '1'), 0):148.500873773,
(('0', '2', '0', '2', '4', '0', '0', '2'), 0):277.854449934,
(('0', '2', '1', '-1', '4', '4', '-1', '-1'), 3):10,
(('-1', '2', '2', '-1', '-1', '4', '-1', '-1'), 1):237.16680626,
(('2', '2', '1', '2', '1', '1', '1', '0'), 0):120,
(('0', '0', '1', '-1', '0', '4', '-1', '-1'), 3):142.458651764,
(('0', '2', '2', '2', '0', '2', '2', '2'), 0):358.986355318,
(('0', '4', '0', '1', '0', '0', '0', '0'), 1):198.689839972,
(('1', '1', '1', '0', '0', '1', '1', '1'), 3):133.282165852,
(('0', '2', '4', '2', '1', '1', '0', '0'), 1):48.4242913382,
(('1', '4', '1', '1', '1', '0', '1', '4'), 1):110.136781246,
(('1', '4', '0', '1', '0', '0', '1', '0'), 0):189.4604811,
(('0', '0', '1', '4', '1', '1', '4', '4'), 0):0,
(('0', '0', '4', '1', '4', '4', '0', '1'), 2):31.0899775395,
(('0', '-1', '4', '0', '4', '-1', '0', '-1'), 0):74.0519205896,
(('0', '0', '4', '1', '0', '4', '0', '0'), 3):4.66301999942,
(('0', '1', '-1', '0', '-1', '-1', '4', '0'), 0):169.537369793,
(('0', '4', '0', '1', '0', '0', '1', '0'), 0):59.8771975093,
(('0', '1', '4', '0', '0', '1', '0', '0'), 1):199.600837631,
(('0', '1', '1', '4', '0', '0', '0', '4'), 0):60.0932745109,
(('0', '2', '4', '2', '1', '1', '0', '1'), 3):10,
(('4', '2', '0', '4', '0', '0', '4', '1'), 1):50,
(('0', '-1', '0', '2', '0', '-1', '0', '-1'), 3):255.271567862,
(('4', '2', '1', '2', '0', '1', '4', '0'), 0):189.424852427,
(('1', '-1', '0', '4', '1', '-1', '0', '-1'), 1):60.7653253191,
(('1', '4', '0', '1', '0', '0', '1', '1'), 2):218.906515688,
(('4', '2', '0', '2', '4', '0', '4', '1'), 1):20,
(('4', '2', '0', '2', '0', '0', '4', '1'), 1):156.527055798,
(('1', '0', '-1', '1', '-1', '-1', '4', '0'), 3):195.319470466,
(('1', '2', '0', '2', '1', '4', '1', '0'), 0):179.768773848,
(('4', '2', '1', '4', '0', '0', '0', '4'), 3):10,
(('4', '2', '0', '2', '0', '1', '4', '1'), 0):189.567867754,
(('0', '2', '2', '-1', '0', '1', '-1', '-1'), 0):330.630276846,
(('0', '1', '1', '0', '1', '0', '0', '4'), 3):10,
(('0', '2', '0', '2', '4', '0', '1', '2'), 0):215.675796511,
(('0', '2', '0', '2', '1', '0', '1', '0'), 2):258.044012055,
(('1', '2', '0', '2', '1', '0', '2', '2'), 0):420.036787312,
(('0', '4', '-1', '4', '-1', '-1', '0', '0'), 1):0,
(('1', '0', '4', '0', '1', '0', '1', '0'), 1):181.150854099,
(('0', '-1', '1', '4', '0', '-1', '4', '-1'), 3):-61.5314434062,
(('1', '-1', '1', '2', '1', '-1', '4', '-1'), 2):166.382121836,
(('4', '4', '1', '0', '1', '1', '0', '0'), 0):10,
(('0', '4', '0', '1', '0', '1', '0', '0'), 0):40.20452282,
(('1', '2', '1', '2', '1', '1', '1', '4'), 1):88.2720859596,
(('4', '2', '1', '4', '1', '2', '4', '2'), 0):240,
(('4', '1', '1', '4', '0', '1', '4', '1'), 1):0,
(('4', '2', '1', '-1', '1', '1', '-1', '-1'), 2):293.881868933,
(('4', '-1', '0', '-1', '1', '-1', '-1', '-1'), 3):-6.0,
(('1', '1', '4', '0', '4', '1', '0', '1'), 0):10,
(('0', '1', '1', '4', '0', '1', '4', '1'), 2):65.1213860232,
(('1', '2', '4', '-1', '4', '4', '-1', '-1'), 1):101.536945058,
(('1', '1', '1', '1', '0', '0', '1', '0'), 2):194.244620448,
(('1', '2', '4', '2', '0', '1', '1', '0'), 1):44.1910643561,
(('4', '2', '1', '2', '2', '2', '4', '0'), 0):10,
(('2', '2', '0', '2', '2', '2', '2', '2'), 0):714.098876818,
(('4', '1', '0', '-1', '1', '1', '-1', '-1'), 3):0,
(('-1', '0', '0', '1', '-1', '4', '-1', '0'), 0):36.6754450836,
(('2', '2', '2', '-1', '2', '4', '-1', '-1'), 1):300.511452761,
(('0', '0', '-1', '0', '-1', '-1', '1', '1'), 0):0,
(('0', '0', '1', '4', '0', '0', '4', '0'), 1):41.9448072321,
(('4', '-1', '0', '1', '0', '-1', '0', '-1'), 0):192.805682337,
(('4', '0', '1', '4', '0', '1', '4', '0'), 3):10,
(('1', '1', '1', '1', '1', '0', '0', '1'), 1):204.849355111,
(('1', '4', '0', '2', '0', '4', '1', '0'), 2):65.4402316707,
(('1', '4', '0', '0', '1', '0', '0', '0'), 0):91.0365377038,
(('1', '2', '0', '2', '0', '0', '1', '4'), 1):216.100105334,
(('1', '0', '4', '1', '0', '0', '1', '0'), 3):213.939236442,
(('0', '1', '-1', '0', '-1', '-1', '4', '1'), 2):180.788730217,
(('1', '4', '1', '1', '0', '0', '1', '0'), 0):0,
(('0', '0', '4', '0', '0', '4', '0', '0'), 3):80.6303600715,
(('0', '1', '1', '1', '4', '1', '1', '1'), 1):156.188035704,
(('4', '1', '1', '1', '1', '0', '1', '0'), 3):-10,
(('4', '0', '1', '0', '4', '1', '0', '0'), 3):49.2034982531,
(('1', '2', '1', '2', '4', '2', '1', '2'), 0):110.062625397,
(('1', '0', '-1', '0', '-1', '-1', '4', '0'), 0):217.467260957,
(('4', '2', '-1', '2', '-1', '-1', '0', '2'), 0):264.57261325,
(('4', '1', '-1', '4', '-1', '-1', '1', '4'), 3):50,
(('2', '2', '2', '4', '0', '2', '4', '0'), 1):196.946098608,
(('1', '2', '1', '2', '0', '1', '4', '0'), 1):-160,
(('2', '2', '0', '2', '0', '4', '2', '2'), 0):82.2422637083,
(('-1', '2', '1', '-1', '-1', '0', '-1', '-1'), 1):269.238736163,
(('-1', '1', '0', '4', '-1', '1', '-1', '0'), 0):39.6139260867,
(('2', '2', '1', '2', '1', '0', '1', '1'), 2):10,
(('2', '2', '1', '2', '0', '4', '0', '1'), 1):56.3151441092,
(('0', '2', '4', '2', '4', '2', '0', '2'), 0):-45.8145739924,
(('1', '-1', '-1', '2', '-1', '-1', '4', '-1'), 2):288.053898811,
(('-1', '0', '-1', '1', '-1', '-1', '-1', '1'), 1):252.372603533,
(('0', '2', '1', '4', '1', '1', '0', '4'), 0):165.964538292,
(('2', '4', '-1', '2', '-1', '-1', '2', '4'), 1):250.209602458,
(('0', '2', '1', '4', '1', '0', '0', '0'), 0):163.017469889,
(('1', '0', '4', '1', '1', '0', '1', '1'), 1):216.066755149,
(('1', '4', '0', '1', '0', '0', '1', '4'), 0):45.7820541007,
(('-1', '2', '2', '2', '-1', '2', '-1', '0'), 1):314.359166155,
(('2', '2', '2', '2', '1', '1', '0', '1'), 2):10,
(('-1', '1', '4', '0', '-1', '4', '-1', '1'), 0):0,
(('0', '2', '4', '2', '1', '1', '0', '2'), 0):104.409847809,
(('4', '2', '2', '2', '0', '2', '1', '2'), 3):270.578074098,
(('0', '0', '-1', '1', '-1', '-1', '0', '0'), 3):242.264491015,
(('0', '4', '4', '1', '4', '4', '0', '4'), 1):8.6436,
(('1', '0', '4', '0', '1', '4', '0', '0'), 1):145.973882959,
(('0', '1', '0', '1', '0', '0', '0', '0'), 0):213.127779557,
(('1', '2', '0', '2', '0', '0', '2', '0'), 0):346.605844584,
(('1', '2', '4', '-1', '1', '2', '-1', '-1'), 2):130,
(('1', '1', '-1', '1', '-1', '-1', '4', '1'), 2):177.809200452,
(('0', '2', '0', '2', '0', '0', '2', '0'), 0):299.093506775,
(('1', '2', '0', '2', '0', '4', '1', '4'), 1):14.4191958701,
(('1', '0', '1', '0', '1', '0', '1', '0'), 2):246.569217108,
(('1', '4', '1', '2', '1', '4', '1', '0'), 1):10,
(('1', '1', '1', '0', '1', '1', '1', '1'), 1):214.271355381,
(('-1', '2', '4', '2', '-1', '4', '-1', '0'), 2):267.460756362,
(('4', '-1', '1', '-1', '1', '-1', '-1', '-1'), 2):256.634824846,
(('4', '1', '1', '4', '1', '1', '4', '4'), 2):18.4403172081,
(('1', '0', '1', '1', '0', '0', '1', '0'), 1):227.732084513,
(('1', '1', '4', '0', '0', '0', '1', '0'), 0):10,
(('1', '0', '1', '1', '4', '1', '1', '1'), 2):-10,
(('0', '4', '2', '-1', '2', '0', '-1', '-1'), 0):10,
(('1', '2', '1', '2', '0', '1', '2', '0'), 2):246.867074328,
(('4', '0', '1', '1', '1', '1', '1', '0'), 1):-6.0,
(('4', '2', '0', '2', '0', '1', '4', '2'), 2):232.974532851,
(('4', '0', '-1', '0', '-1', '-1', '4', '0'), 1):216.940623293,
(('1', '2', '4', '-1', '0', '4', '-1', '-1'), 2):177.278062906,
(('0', '1', '4', '1', '0', '0', '1', '1'), 3):82.1568378711,
(('2', '2', '1', '4', '2', '0', '1', '0'), 1):10,
(('0', '0', '1', '1', '1', '0', '1', '1'), 2):10,
(('0', '-1', '1', '0', '1', '-1', '0', '-1'), 2):277.771671395,
(('2', '2', '1', '2', '0', '0', '4', '0'), 1):137.64135947,
(('1', '2', '1', '2', '1', '1', '1', '0'), 1):279.618360138,
(('2', '2', '4', '2', '0', '0', '2', '0'), 3):215.516890375,
(('2', '2', '1', '2', '4', '1', '0', '1'), 1):176.712323345,
(('-1', '0', '0', '0', '-1', '0', '-1', '0'), 1):233.643905802,
(('2', '2', '2', '2', '0', '0', '4', '1'), 1):54.9770533427,
(('4', '-1', '0', '0', '0', '-1', '4', '-1'), 2):0,
(('1', '2', '2', '2', '2', '1', '0', '1'), 3):218.204920145,
(('1', '1', '1', '0', '1', '4', '0', '0'), 0):155.228941774,
(('4', '2', '4', '2', '4', '0', '2', '2'), 0):10,
(('1', '1', '1', '1', '1', '1', '1', '4'), 3):45.2478885251,
(('0', '0', '0', '1', '1', '0', '1', '0'), 3):101.191368685,
(('1', '2', '4', '2', '0', '1', '0', '1'), 0):10,
(('0', '0', '1', '1', '0', '0', '1', '1'), 3):194.205212305,
(('2', '2', '4', '2', '0', '0', '1', '2'), 1):10,
(('2', '2', '2', '2', '1', '1', '0', '4'), 1):94.2540550659,
(('1', '0', '1', '4', '0', '0', '4', '0'), 2):47.9374373856,
(('0', '1', '1', '1', '0', '1', '1', '1'), 2):198.399896767,
(('1', '4', '0', '0', '0', '0', '0', '0'), 0):135.923184762,
(('0', '2', '0', '2', '4', '1', '2', '1'), 2):41.353572366,
(('1', '1', '0', '0', '1', '1', '1', '1'), 3):81.7966471329,
(('2', '2', '1', '2', '2', '4', '0', '1'), 1):78.3527424342,
(('1', '-1', '-1', '4', '-1', '-1', '0', '-1'), 1):259.161142765,
(('0', '0', '1', '0', '0', '1', '0', '4'), 2):0,
(('1', '2', '0', '4', '0', '1', '0', '1'), 0):10,
(('1', '-1', '-1', '1', '-1', '-1', '0', '-1'), 0):235.942706359,
(('0', '1', '1', '4', '1', '0', '4', '1'), 3):10,
(('0', '1', '1', '0', '0', '0', '4', '0'), 3):49.3679196067,
(('0', '2', '1', '2', '1', '1', '2', '0'), 2):552.060891432,
(('4', '0', '-1', '1', '-1', '-1', '0', '0'), 2):256.541856788,
(('2', '2', '1', '2', '0', '1', '2', '1'), 1):340.400444684,
(('2', '2', '1', '-1', '0', '1', '-1', '-1'), 2):342.595038326,
(('-1', '2', '2', '-1', '-1', '2', '-1', '-1'), 1):346.501396962,
(('2', '2', '2', '2', '2', '4', '1', '1'), 1):10,
(('-1', '2', '1', '2', '-1', '0', '-1', '4'), 0):35.4380891716,
(('1', '1', '1', '1', '1', '1', '1', '0'), 2):183.701486472,
(('2', '2', '1', '2', '2', '1', '0', '0'), 0):43.1272251067,
(('1', '2', '2', '2', '0', '0', '0', '2'), 3):301.574937425,
(('0', '4', '4', '-1', '0', '4', '-1', '-1'), 2):50,
(('0', '2', '1', '4', '0', '1', '0', '4'), 3):-57.6723638238,
(('4', '2', '0', '2', '1', '0', '0', '0'), 2):183.077182546,
(('4', '-1', '1', '1', '0', '-1', '0', '-1'), 3):90.4286741196,
(('1', '2', '-1', '4', '-1', '-1', '1', '1'), 2):59.2364127962,
(('1', '-1', '2', '-1', '0', '-1', '-1', '-1'), 2):283.337520951,
(('2', '2', '1', '2', '2', '1', '2', '1'), 2):446.490932425,
(('-1', '2', '4', '2', '-1', '2', '-1', '0'), 3):10,
(('0', '1', '1', '1', '1', '0', '4', '1'), 0):0,
(('4', '2', '0', '2', '4', '2', '4', '2'), 0):181.597128377,
(('0', '0', '0', '1', '0', '0', '1', '0'), 3):233.246411159,
(('2', '4', '0', '2', '2', '0', '2', '1'), 1):497.927392384,
(('2', '2', '1', '2', '0', '2', '0', '2'), 0):61.7175285862,
(('2', '2', '4', '2', '1', '4', '2', '4'), 2):10,
(('4', '-1', '4', '2', '1', '-1', '1', '-1'), 0):40,
(('0', '1', '0', '0', '0', '1', '4', '1'), 1):0,
(('4', '1', '4', '1', '1', '4', '1', '1'), 0):50,
(('4', '1', '1', '1', '1', '1', '0', '1'), 3):185.145510561,
(('0', '2', '0', '2', '0', '0', '2', '4'), 2):266.67248385,
(('4', '1', '0', '1', '0', '1', '4', '1'), 3):111.950584825,
(('4', '0', '1', '0', '1', '0', '4', '0'), 3):106.068117714,
(('1', '0', '1', '0', '1', '0', '4', '0'), 3):183.017800427,
(('2', '-1', '1', '2', '0', '-1', '1', '-1'), 1):254.973751957,
(('4', '1', '1', '1', '1', '1', '4', '1'), 0):48.0689942921,
(('2', '2', '0', '2', '1', '1', '0', '4'), 1):116.775067773,
(('1', '1', '0', '0', '4', '0', '1', '0'), 3):53.0627516665,
(('0', '4', '2', '2', '2', '1', '0', '0'), 3):131.787565244,
(('-1', '2', '2', '4', '-1', '0', '-1', '1'), 3):61.6417022221,
(('0', '4', '1', '2', '0', '0', '2', '4'), 2):10,
(('1', '0', '0', '0', '1', '4', '0', '0'), 0):41.1095862257,
(('0', '2', '2', '4', '0', '2', '0', '4'), 3):290.525202177,
(('2', '2', '-1', '4', '-1', '-1', '2', '4'), 3):72.133961133,
(('-1', '2', '0', '4', '-1', '0', '-1', '4'), 0):85.9074485096,
(('4', '1', '1', '1', '1', '1', '1', '0'), 0):39.0039725558,
(('2', '2', '0', '2', '4', '4', '4', '0'), 1):30,
(('-1', '0', '1', '-1', '-1', '0', '-1', '-1'), 0):254.14853456,
(('2', '4', '1', '-1', '1', '4', '-1', '-1'), 1):225.892953884,
(('-1', '4', '1', '2', '-1', '1', '-1', '4'), 0):0,
(('0', '0', '1', '-1', '4', '1', '-1', '-1'), 3):212.124971422,
(('-1', '2', '4', '2', '-1', '0', '-1', '1'), 0):251.844255469,
(('0', '0', '4', '-1', '0', '4', '-1', '-1'), 1):56.6568972122,
(('0', '0', '0', '1', '4', '0', '0', '0'), 2):156.676489687,
(('4', '0', '-1', '0', '-1', '-1', '1', '0'), 2):154.986136798,
(('4', '2', '1', '2', '1', '1', '0', '1'), 1):68.2661745156,
(('0', '2', '1', '-1', '2', '1', '-1', '-1'), 2):431.901916359,
(('4', '2', '0', '2', '0', '0', '0', '1'), 2):228.850440545,
(('1', '0', '1', '0', '4', '0', '0', '0'), 2):120.48805422,
(('2', '2', '0', '2', '1', '4', '4', '0'), 1):10,
(('1', '2', '0', '-1', '0', '2', '-1', '-1'), 0):559.210992777,
(('2', '2', '4', '-1', '0', '0', '-1', '-1'), 2):119.227903016,
(('0', '2', '0', '2', '0', '1', '1', '0'), 1):10,
(('1', '-1', '1', '2', '1', '-1', '0', '-1'), 3):316.946355907,
(('0', '2', '1', '2', '0', '1', '0', '2'), 0):337.74287594,
(('1', '2', '1', '-1', '4', '0', '-1', '-1'), 0):150.699021454,
(('0', '0', '4', '0', '0', '0', '0', '0'), 2):193.696009386,
(('0', '0', '-1', '1', '-1', '-1', '1', '0'), 2):333.07466692,
(('1', '4', '1', '0', '0', '1', '0', '0'), 3):37.6991796737,
(('1', '0', '-1', '0', '-1', '-1', '0', '4'), 1):93.4918714676,
(('2', '2', '2', '2', '0', '2', '1', '0'), 3):348.679172572,
(('1', '2', '4', '2', '1', '1', '1', '1'), 2):64.6561420085,
(('4', '2', '4', '2', '4', '4', '0', '2'), 1):10,
(('1', '4', '0', '2', '0', '0', '0', '0'), 2):75.6820450035,
(('1', '1', '4', '1', '4', '4', '1', '1'), 1):126.88891441,
(('1', '4', '4', '0', '4', '4', '0', '0'), 0):10,
(('0', '1', '4', '-1', '4', '1', '-1', '-1'), 0):209.446510088,
(('0', '1', '1', '4', '0', '0', '0', '4'), 2):38.2674878789,
(('2', '2', '1', '2', '1', '0', '1', '2'), 0):107.051289359,
(('4', '2', '4', '4', '0', '4', '0', '0'), 0):50,
(('4', '2', '2', '2', '4', '2', '4', '2'), 3):67.6,
(('4', '-1', '1', '1', '0', '-1', '1', '-1'), 0):112.676745224,
(('2', '2', '1', '2', '1', '0', '2', '4'), 2):95.5036647475,
(('0', '2', '2', '2', '2', '2', '0', '2'), 3):401.204486952,
(('0', '2', '2', '2', '0', '4', '0', '2'), 3):218.782342356,
(('1', '1', '1', '1', '1', '1', '1', '4'), 2):60.07446954,
(('0', '2', '0', '2', '0', '1', '0', '1'), 1):124.977267897,
(('2', '4', '2', '2', '2', '4', '0', '4'), 1):10,
(('4', '0', '0', '1', '4', '0', '1', '0'), 2):148.739179281,
(('4', '1', '4', '0', '4', '0', '4', '0'), 0):0,
(('1', '4', '2', '2', '2', '0', '0', '0'), 3):162.138889544,
(('4', '-1', '4', '-1', '4', '-1', '-1', '-1'), 1):40.6908852311,
(('1', '1', '0', '1', '1', '0', '1', '1'), 1):210.930036977,
(('4', '2', '1', '2', '4', '1', '0', '2'), 2):225.025341761,
(('2', '2', '4', '-1', '0', '4', '-1', '-1'), 1):44.1274421266,
(('2', '4', '2', '2', '2', '0', '2', '4'), 3):10,
(('1', '0', '1', '1', '4', '1', '1', '0'), 1):10,
(('1', '2', '-1', '2', '-1', '-1', '0', '1'), 0):267.705548727,
(('4', '0', '1', '1', '0', '0', '1', '0'), 1):47.8011294943,
(('4', '2', '2', '2', '1', '1', '1', '1'), 3):10,
(('2', '4', '0', '2', '0', '1', '2', '0'), 1):10,
(('-1', '2', '2', '2', '-1', '1', '-1', '4'), 3):264.756294113,
(('1', '-1', '0', '1', '1', '-1', '0', '-1'), 0):270.122339129,
(('0', '1', '1', '0', '1', '1', '0', '4'), 1):153.023795102,
(('0', '0', '4', '1', '4', '0', '1', '1'), 1):0,
(('1', '4', '1', '2', '1', '0', '1', '0'), 3):135.689952582,
(('2', '2', '4', '-1', '2', '0', '-1', '-1'), 2):161.707463082,
(('1', '-1', '0', '0', '1', '-1', '1', '-1'), 2):236.754155976,
(('2', '2', '4', '2', '1', '1', '1', '1'), 1):50.6040439624,
(('4', '2', '1', '2', '1', '0', '0', '2'), 0):93.3361495769,
(('4', '2', '0', '2', '4', '0', '4', '2'), 1):88.3198383509,
(('1', '2', '0', '2', '2', '0', '2', '0'), 0):141.860032238,
(('1', '0', '4', '1', '1', '0', '0', '0'), 3):81.4524510202,
(('4', '-1', '-1', '2', '-1', '-1', '1', '-1'), 3):267.950656435,
(('4', '2', '2', '-1', '0', '2', '-1', '-1'), 1):82.8579838351,
(('0', '4', '4', '2', '4', '4', '2', '0'), 2):11.8,
(('1', '0', '-1', '4', '-1', '-1', '1', '0'), 3):270.364792909,
(('0', '1', '1', '1', '4', '0', '0', '0'), 0):0,
(('1', '-1', '0', '2', '0', '-1', '2', '-1'), 0):370.247916731,
(('1', '0', '4', '1', '4', '4', '0', '0'), 0):-0.4,
(('1', '1', '0', '-1', '1', '1', '-1', '-1'), 3):241.76199394,
(('2', '2', '0', '4', '2', '0', '4', '4'), 1):79.9651257616,
(('0', '2', '0', '2', '1', '2', '2', '2'), 0):368.557883849,
(('0', '-1', '0', '2', '1', '-1', '2', '-1'), 2):338.905497932,
(('2', '-1', '1', '2', '1', '-1', '0', '-1'), 2):300.869039076,
(('0', '4', '2', '-1', '0', '1', '-1', '-1'), 3):262.797594677,
(('4', '2', '1', '2', '0', '1', '0', '1'), 2):209.534368815,
(('-1', '0', '1', '0', '-1', '0', '-1', '0'), 1):233.761730061,
(('1', '4', '2', '-1', '2', '0', '-1', '-1'), 3):199.293885298,
(('0', '0', '1', '1', '0', '1', '0', '0'), 3):239.840897848,
(('1', '0', '0', '1', '0', '4', '0', '0'), 1):15.6370371237,
(('1', '2', '-1', '4', '-1', '-1', '0', '4'), 1):81.8969375731,
(('0', '-1', '0', '-1', '4', '-1', '-1', '-1'), 2):167.0313679,
(('2', '2', '2', '4', '2', '0', '0', '4'), 1):10,
(('4', '0', '4', '1', '4', '4', '0', '0'), 1):2.23250968709,
(('0', '2', '0', '2', '1', '0', '0', '0'), 2):275.631751355,
(('1', '4', '0', '2', '1', '4', '1', '4'), 1):10,
(('4', '1', '1', '0', '4', '1', '4', '0'), 0):43.9615081738,
(('4', '2', '2', '2', '1', '2', '4', '2'), 3):10,
(('1', '2', '4', '-1', '4', '1', '-1', '-1'), 2):30,
(('2', '2', '2', '2', '2', '2', '2', '1'), 1):480.039278863,
(('1', '-1', '2', '2', '0', '-1', '2', '-1'), 3):514.369251445,
(('0', '2', '-1', '2', '-1', '-1', '4', '4'), 2):10,
(('0', '0', '0', '0', '0', '0', '4', '0'), 2):67.4654100728,
(('0', '0', '-1', '0', '-1', '-1', '0', '1'), 3):229.565003846,
(('1', '1', '4', '1', '0', '4', '0', '0'), 1):38.3466254878,
(('0', '2', '4', '2', '0', '1', '0', '4'), 0):0,
(('4', '-1', '0', '1', '1', '-1', '1', '-1'), 2):108.216024191,
(('0', '-1', '1', '1', '0', '-1', '0', '-1'), 0):230.391841185,
(('2', '2', '-1', '2', '-1', '-1', '4', '2'), 0):10,
(('1', '2', '0', '2', '0', '2', '1', '2'), 2):347.390298952,
(('0', '1', '1', '1', '4', '0', '0', '0'), 1):33.116297412,
(('-1', '1', '0', '0', '-1', '0', '-1', '1'), 2):238.915481688,
(('1', '1', '1', '4', '1', '1', '1', '0'), 0):199.780005826,
(('2', '2', '0', '2', '0', '0', '2', '4'), 0):11.8,
(('1', '1', '0', '4', '1', '0', '1', '0'), 3):95.7227540147,
(('0', '2', '4', '2', '4', '1', '0', '1'), 3):49.6180047805,
(('0', '2', '1', '2', '1', '0', '0', '2'), 0):331.174580918,
(('2', '2', '2', '2', '1', '0', '0', '0'), 2):190.568214184,
(('1', '2', '1', '2', '0', '1', '1', '1'), 0):223.986578069,
(('2', '2', '1', '2', '4', '1', '2', '2'), 2):56.4330163594,
(('0', '2', '2', '2', '2', '1', '0', '2'), 2):108.731539273,
(('0', '2', '1', '4', '1', '1', '4', '0'), 3):11.8,
(('0', '2', '1', '2', '0', '0', '1', '1'), 2):229.20928478,
(('-1', '2', '4', '2', '-1', '0', '-1', '0'), 3):208.86716381,
(('4', '2', '2', '2', '1', '2', '1', '2'), 0):450,
(('1', '-1', '0', '2', '1', '-1', '1', '-1'), 1):292.01047684,
(('0', '-1', '4', '-1', '1', '-1', '-1', '-1'), 2):211.578280441,
(('0', '1', '-1', '4', '-1', '-1', '4', '0'), 1):59.1375202276,
(('0', '1', '0', '4', '0', '1', '4', '1'), 2):13.4459410749,
(('1', '2', '2', '-1', '1', '4', '-1', '-1'), 0):224.844402715,
(('0', '1', '1', '1', '0', '4', '0', '0'), 1):111.946331811,
(('1', '1', '0', '1', '1', '1', '0', '0'), 1):88.7599276844,
(('1', '4', '1', '2', '1', '1', '2', '2'), 2):754.167375911,
(('0', '1', '1', '0', '0', '4', '0', '0'), 0):153.442960942,
(('0', '2', '2', '2', '2', '2', '0', '1'), 0):350.707685109,
(('1', '2', '2', '2', '0', '1', '1', '2'), 3):10,
(('0', '4', '1', '1', '0', '0', '1', '0'), 2):52.9085060328,
(('1', '0', '1', '0', '4', '1', '4', '0'), 0):10,
(('0', '2', '2', '2', '2', '0', '1', '4'), 3):295.043415635,
(('4', '2', '1', '2', '4', '2', '0', '0'), 0):186.924156749,
(('0', '1', '1', '1', '0', '0', '4', '0'), 3):90.9202074891,
(('2', '4', '1', '2', '1', '1', '1', '1'), 1):58.4851969974,
(('1', '-1', '4', '2', '1', '-1', '0', '-1'), 3):103.171827518,
(('-1', '1', '0', '1', '-1', '1', '-1', '4'), 2):10,
(('4', '0', '1', '-1', '1', '0', '-1', '-1'), 1):266.830770114,
(('-1', '0', '1', '1', '-1', '0', '-1', '4'), 0):60.5098354278,
(('2', '2', '0', '2', '1', '0', '1', '2'), 0):128.083644149,
(('0', '1', '1', '1', '0', '0', '1', '4'), 3):66.0186235132,
(('1', '4', '0', '1', '0', '0', '0', '1'), 2):54.5250622625,
(('2', '2', '0', '2', '0', '4', '2', '4'), 2):10,
(('4', '2', '-1', '2', '-1', '-1', '4', '1'), 0):264.658399236,
(('-1', '0', '1', '1', '-1', '0', '-1', '1'), 1):226.336981921,
(('1', '0', '0', '1', '0', '4', '1', '1'), 1):57.692449378,
(('1', '2', '0', '2', '0', '4', '2', '2'), 0):143.929802219,
(('4', '2', '2', '-1', '4', '0', '-1', '-1'), 1):10,
(('1', '1', '1', '1', '1', '0', '1', '1'), 3):193.090560454,
(('0', '1', '0', '0', '1', '0', '4', '0'), 2):-10,
(('-1', '4', '1', '0', '-1', '0', '-1', '0'), 1):211.680511095,
(('0', '2', '0', '2', '0', '0', '4', '1'), 0):227.661378615,
(('1', '2', '0', '2', '1', '0', '2', '0'), 2):311.448254758,
(('0', '0', '0', '4', '0', '1', '0', '4'), 1):10,
(('4', '4', '4', '1', '4', '4', '4', '1'), 0):0,
(('1', '0', '0', '0', '0', '4', '0', '0'), 0):-10,
(('2', '2', '2', '2', '2', '0', '2', '2'), 1):390.853161993,
(('1', '0', '4', '-1', '4', '0', '-1', '-1'), 0):174.180471882,
(('0', '2', '-1', '4', '-1', '-1', '1', '0'), 1):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '0'), 3):259.032519686,
(('0', '1', '4', '1', '4', '0', '0', '0'), 0):131.474992912,
(('1', '1', '1', '4', '1', '0', '0', '1'), 1):60.0338243687,
(('1', '2', '2', '2', '0', '1', '1', '1'), 3):211.678145847,
(('1', '1', '1', '1', '1', '4', '1', '0'), 2):150.745956621,
(('1', '2', '0', '2', '4', '0', '2', '0'), 2):225.219724501,
(('0', '2', '1', '2', '0', '1', '1', '4'), 2):10,
(('0', '2', '2', '-1', '4', '2', '-1', '-1'), 2):-192.0,
(('4', '0', '-1', '1', '-1', '-1', '4', '0'), 0):133.089158038,
(('0', '4', '1', '0', '0', '0', '0', '1'), 0):10,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '1'), 1):230.79556183,
(('2', '2', '1', '-1', '4', '4', '-1', '-1'), 1):59.6101683676,
(('4', '0', '1', '0', '1', '0', '0', '0'), 3):214.989808622,
(('1', '0', '-1', '1', '-1', '-1', '1', '4'), 0):212.789549465,
(('0', '2', '2', '2', '1', '1', '1', '0'), 0):10,
(('1', '0', '1', '4', '0', '0', '1', '4'), 1):10.1321928753,
(('-1', '4', '0', '1', '-1', '0', '-1', '4'), 3):140.93464983,
(('4', '2', '2', '2', '4', '0', '4', '1'), 3):57.3521235361,
(('0', '4', '1', '1', '0', '4', '0', '0'), 1):35.6217383202,
(('0', '2', '2', '4', '4', '2', '0', '4'), 3):10,
(('2', '4', '0', '-1', '0', '4', '-1', '-1'), 2):10,
(('2', '2', '1', '2', '0', '0', '2', '0'), 2):403.911830828,
(('1', '1', '1', '4', '0', '1', '0', '1'), 1):65.4669014237,
(('0', '2', '-1', '2', '-1', '-1', '0', '0'), 2):328.085742834,
(('0', '2', '4', '2', '1', '0', '1', '0'), 3):10.0,
(('1', '-1', '0', '4', '1', '-1', '1', '-1'), 0):166.722738951,
(('4', '0', '1', '4', '1', '1', '4', '0'), 3):10,
(('4', '2', '0', '2', '4', '1', '4', '0'), 0):24.509535475,
(('2', '2', '4', '2', '0', '1', '0', '2'), 3):10,
(('0', '2', '0', '2', '4', '4', '4', '0'), 2):10,
(('0', '2', '0', '2', '1', '4', '0', '1'), 2):10,
(('1', '2', '2', '2', '0', '2', '1', '4'), 3):512.781427396,
(('0', '0', '1', '1', '4', '1', '0', '0'), 3):50.8256224492,
(('4', '2', '1', '2', '1', '2', '0', '2'), 2):133.340266668,
(('0', '1', '1', '1', '1', '0', '0', '1'), 2):210.194080767,
(('0', '2', '1', '2', '1', '0', '4', '0'), 0):146.888379174,
(('2', '2', '1', '2', '2', '2', '0', '2'), 2):113.179816624,
(('1', '2', '0', '4', '0', '1', '1', '0'), 3):10,
(('1', '4', '1', '-1', '4', '1', '-1', '-1'), 1):10,
(('4', '2', '2', '4', '4', '2', '0', '4'), 0):50,
(('0', '2', '1', '2', '1', '2', '2', '1'), 2):10,
(('0', '-1', '1', '2', '0', '-1', '1', '-1'), 1):98.6443644892,
(('1', '2', '0', '2', '1', '1', '2', '0'), 2):314.596763904,
(('2', '2', '1', '2', '2', '1', '0', '2'), 1):301.19101839,
(('2', '2', '2', '2', '0', '0', '1', '2'), 3):10,
(('-1', '4', '0', '1', '-1', '1', '-1', '1'), 1):-10,
(('4', '2', '0', '2', '4', '2', '1', '1'), 0):94.0888839245,
(('1', '2', '2', '2', '2', '1', '4', '0'), 3):40.8565571063,
(('0', '2', '2', '2', '0', '2', '2', '2'), 2):416.354505061,
(('2', '2', '2', '2', '0', '1', '4', '0'), 2):10,
(('2', '2', '1', '2', '0', '1', '0', '4'), 2):0,
(('1', '4', '1', '-1', '1', '1', '-1', '-1'), 0):239.657463878,
(('1', '1', '0', '4', '0', '1', '0', '1'), 1):29.7822554989,
(('1', '-1', '0', '2', '1', '-1', '0', '-1'), 2):262.167156765,
(('1', '1', '4', '0', '0', '1', '0', '0'), 3):84.5403085209,
(('-1', '2', '1', '2', '-1', '4', '-1', '1'), 1):108.455734559,
(('2', '2', '0', '2', '1', '1', '2', '2'), 0):29.5625474049,
(('1', '2', '0', '2', '0', '0', '1', '2'), 2):326.932187312,
(('4', '0', '1', '1', '1', '1', '0', '0'), 3):10,
(('1', '0', '-1', '1', '-1', '-1', '0', '0'), 0):276.759370602,
(('0', '4', '2', '2', '0', '0', '2', '4'), 3):10,
(('-1', '4', '0', '2', '-1', '0', '-1', '0'), 1):97.0098657066,
(('0', '0', '0', '1', '0', '1', '4', '0'), 0):0,
(('2', '2', '1', '2', '0', '1', '1', '1'), 1):265.478058616,
(('1', '4', '-1', '1', '-1', '-1', '0', '0'), 3):123.167888004,
(('4', '4', '1', '-1', '0', '1', '-1', '-1'), 3):50,
(('1', '0', '4', '1', '1', '0', '1', '0'), 2):231.320950977,
(('1', '4', '0', '2', '1', '4', '1', '2'), 2):47.4983494943,
(('2', '2', '2', '-1', '4', '1', '-1', '-1'), 2):81.6958731355,
(('1', '4', '1', '0', '1', '4', '0', '0'), 3):89.2970432967,
(('1', '1', '4', '-1', '4', '1', '-1', '-1'), 0):97.480503615,
(('1', '2', '4', '-1', '0', '2', '-1', '-1'), 0):10,
(('0', '-1', '0', '-1', '1', '-1', '-1', '-1'), 0):318.743208854,
(('1', '4', '0', '2', '1', '4', '1', '4'), 2):48.9841730807,
(('2', '2', '1', '2', '2', '4', '2', '1'), 1):10,
(('4', '2', '2', '2', '4', '1', '4', '2'), 0):10,
(('-1', '2', '0', '2', '-1', '2', '-1', '1'), 0):314.315785701,
(('-1', '1', '4', '1', '-1', '0', '-1', '0'), 2):74.2822707591,
(('1', '0', '0', '1', '0', '0', '4', '0'), 2):140.903197198,
(('0', '2', '4', '2', '0', '4', '2', '1'), 0):56.8258646149,
(('-1', '1', '0', '1', '-1', '1', '-1', '0'), 0):236.852906189,
(('0', '2', '1', '2', '1', '0', '1', '0'), 0):295.798589725,
(('-1', '1', '0', '0', '-1', '0', '-1', '4'), 1):64.1781301107,
(('2', '2', '2', '-1', '1', '2', '-1', '-1'), 2):291.883218362,
(('0', '2', '1', '-1', '4', '1', '-1', '-1'), 0):262.295231928,
(('1', '2', '0', '2', '0', '1', '2', '2'), 2):394.924822959,
(('1', '1', '-1', '4', '-1', '-1', '1', '0'), 3):194.408741351,
(('1', '2', '2', '4', '2', '1', '4', '4'), 3):830,
(('1', '2', '0', '2', '1', '0', '4', '1'), 2):10,
(('0', '2', '0', '2', '0', '0', '4', '1'), 3):10,
(('1', '1', '1', '-1', '0', '0', '-1', '-1'), 3):233.747650345,
(('0', '2', '1', '2', '0', '1', '2', '0'), 2):420.581952606,
(('4', '0', '1', '-1', '0', '0', '-1', '-1'), 3):224.855371145,
(('1', '2', '0', '2', '1', '0', '1', '4'), 3):10,
(('0', '0', '4', '1', '4', '0', '0', '0'), 2):77.4985034404,
(('0', '-1', '4', '2', '4', '-1', '2', '-1'), 2):201.722194861,
(('2', '2', '2', '2', '1', '2', '0', '1'), 1):242.731888136,
(('0', '1', '0', '1', '4', '0', '0', '1'), 3):167.769500667,
(('2', '2', '2', '2', '0', '4', '0', '2'), 1):-732.244720926,
(('-1', '1', '0', '-1', '-1', '4', '-1', '-1'), 2):123.836326787,
(('0', '1', '4', '1', '4', '1', '0', '0'), 2):16.5868083065,
(('2', '2', '2', '2', '2', '0', '1', '0'), 1):301.065062999,
(('0', '1', '1', '4', '1', '1', '4', '1'), 0):65.26863257,
(('0', '2', '2', '2', '1', '2', '1', '1'), 0):150.359323924,
(('0', '1', '-1', '0', '-1', '-1', '0', '4'), 2):194.222984552,
(('0', '-1', '1', '2', '1', '-1', '0', '-1'), 1):287.852633882,
(('4', '0', '1', '0', '4', '0', '1', '0'), 2):50,
(('0', '2', '0', '2', '0', '0', '0', '0'), 1):221.821419111,
(('0', '2', '2', '2', '1', '2', '2', '0'), 3):10,
(('1', '0', '1', '-1', '0', '1', '-1', '-1'), 3):248.905817665,
(('4', '-1', '0', '-1', '0', '-1', '-1', '-1'), 1):250.631470041,
(('0', '2', '0', '-1', '0', '1', '-1', '-1'), 2):295.330594817,
(('0', '0', '0', '0', '0', '1', '0', '0'), 1):222.725119139,
(('4', '0', '0', '1', '0', '0', '4', '1'), 1):19.4821339948,
(('1', '2', '1', '2', '4', '0', '2', '2'), 0):150,
(('1', '1', '1', '1', '4', '0', '0', '0'), 2):59.704983279,
(('0', '0', '4', '1', '0', '0', '0', '0'), 1):211.270169864,
(('4', '2', '1', '-1', '0', '0', '-1', '-1'), 2):114.520126212,
(('1', '2', '2', '4', '0', '0', '4', '4'), 0):0,
(('-1', '1', '4', '1', '-1', '1', '-1', '0'), 3):0,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '1'), 3):50.8122865194,
(('0', '-1', '4', '0', '0', '-1', '0', '-1'), 3):208.266240654,
(('0', '2', '1', '2', '0', '1', '0', '0'), 2):233.077811531,
(('0', '0', '-1', '1', '-1', '-1', '4', '0'), 3):152.823087931,
(('0', '4', '1', '4', '0', '0', '1', '4'), 3):0,
(('0', '1', '1', '0', '0', '0', '0', '4'), 0):0,
(('1', '2', '1', '2', '1', '4', '0', '4'), 1):15.7811592979,
(('0', '0', '4', '-1', '0', '1', '-1', '-1'), 1):56.0032990827,
(('4', '1', '0', '0', '4', '0', '4', '0'), 3):79.9396454972,
(('1', '1', '4', '1', '0', '0', '1', '1'), 2):201.92652006,
(('4', '0', '0', '0', '4', '0', '0', '0'), 2):21.3579790379,
(('-1', '2', '4', '2', '-1', '1', '-1', '0'), 1):160.102020808,
(('0', '1', '-1', '4', '-1', '-1', '1', '1'), 3):-10,
(('1', '2', '4', '2', '1', '0', '0', '0'), 3):234.159270776,
(('-1', '1', '0', '1', '-1', '4', '-1', '4'), 2):0,
(('4', '1', '-1', '4', '-1', '-1', '4', '4'), 1):50,
(('-1', '0', '1', '4', '-1', '0', '-1', '4'), 3):81.0511690186,
(('-1', '2', '2', '2', '-1', '4', '-1', '0'), 2):130,
(('2', '2', '4', '-1', '0', '2', '-1', '-1'), 1):199.503147239,
(('0', '1', '1', '4', '0', '0', '4', '0'), 0):0,
(('4', '2', '0', '4', '0', '0', '4', '2'), 2):10,
(('0', '1', '4', '1', '1', '0', '0', '1'), 2):36.7700739282,
(('1', '-1', '2', '2', '4', '-1', '1', '-1'), 3):272.773875365,
(('4', '0', '0', '1', '0', '0', '4', '0'), 2):172.819056651,
(('0', '4', '0', '1', '0', '4', '0', '0'), 3):95.6758172748,
(('-1', '1', '0', '4', '-1', '0', '-1', '0'), 1):174.776968174,
(('1', '2', '2', '2', '4', '0', '1', '0'), 0):181.761616674,
(('0', '1', '4', '0', '0', '1', '0', '1'), 0):180.399361221,
(('2', '2', '0', '2', '2', '2', '0', '1'), 0):26.6645015087,
(('-1', '4', '4', '-1', '-1', '0', '-1', '-1'), 3):50,
(('-1', '2', '-1', '2', '-1', '-1', '-1', '0'), 1):40.1855711322,
(('4', '-1', '0', '1', '0', '-1', '1', '-1'), 3):202.293253938,
(('2', '2', '2', '2', '1', '0', '2', '2'), 3):396.501094643,
(('0', '2', '2', '2', '4', '1', '4', '0'), 3):10.0,
(('2', '2', '2', '2', '2', '1', '1', '1'), 0):10,
(('0', '-1', '4', '1', '4', '-1', '1', '-1'), 0):44.2888915436,
(('1', '0', '0', '0', '1', '4', '1', '0'), 0):10,
(('4', '-1', '1', '0', '4', '-1', '4', '-1'), 0):10,
(('1', '4', '4', '-1', '1', '4', '-1', '-1'), 2):110.322477046,
(('0', '0', '4', '1', '1', '0', '0', '0'), 2):104.527352611,
(('2', '2', '2', '2', '2', '0', '0', '0'), 0):333.69627323,
(('2', '-1', '0', '2', '0', '-1', '0', '-1'), 1):270.339952526,
(('1', '1', '1', '0', '1', '1', '4', '1'), 3):69.1794220176,
(('4', '2', '0', '2', '4', '0', '2', '1'), 1):33.6206745077,
(('4', '1', '4', '4', '4', '0', '4', '0'), 0):-4.2,
(('4', '1', '1', '0', '0', '0', '0', '1'), 0):0,
(('0', '0', '1', '-1', '0', '4', '-1', '-1'), 2):93.8146626005,
(('4', '1', '1', '1', '4', '0', '1', '0'), 0):-10,
(('1', '2', '4', '2', '1', '0', '0', '1'), 2):76.2852309288,
(('1', '1', '1', '0', '0', '1', '1', '1'), 2):149.591393345,
(('0', '2', '1', '-1', '2', '0', '-1', '-1'), 2):469.291438381,
(('2', '2', '2', '2', '1', '4', '0', '2'), 3):10,
(('1', '2', '0', '2', '1', '2', '4', '1'), 0):19.0981819987,
(('0', '-1', '4', '1', '0', '-1', '1', '-1'), 2):133.834581365,
(('0', '0', '4', '1', '0', '4', '0', '0'), 0):72.6979291511,
(('0', '4', '0', '1', '0', '0', '1', '0'), 3):109.586467311,
(('0', '1', '4', '0', '0', '1', '0', '0'), 0):228.750467649,
(('-1', '1', '4', '0', '-1', '1', '-1', '1'), 0):66.6759720903,
(('2', '2', '2', '2', '1', '2', '0', '2'), 3):75.0876087993,
(('0', '1', '1', '1', '1', '1', '4', '1'), 3):110.172818451,
(('4', '2', '1', '2', '0', '1', '4', '0'), 3):163.2922636,
(('2', '2', '1', '-1', '1', '4', '-1', '-1'), 0):10,
(('0', '2', '2', '4', '2', '2', '0', '4'), 0):10,
(('1', '4', '0', '1', '0', '0', '1', '1'), 1):226.523997533,
(('1', '2', '1', '4', '1', '1', '0', '1'), 3):10,
(('2', '2', '4', '2', '1', '0', '2', '2'), 0):347.030083631,
(('1', '2', '-1', '2', '-1', '-1', '0', '0'), 1):275.301448624,
(('1', '0', '-1', '1', '-1', '-1', '4', '0'), 0):227.224211233,
(('1', '2', '0', '2', '1', '4', '1', '0'), 1):201.688720152,
(('0', '0', '4', '1', '4', '4', '0', '1'), 1):74.2086855442,
(('4', '1', '0', '4', '0', '1', '4', '1'), 2):10,
(('4', '2', '0', '2', '0', '1', '4', '1'), 3):0,
(('1', '2', '0', '2', '0', '0', '2', '1'), 2):272.622765716,
(('0', '2', '2', '-1', '0', '1', '-1', '-1'), 3):282.228585213,
(('0', '2', '4', '-1', '1', '1', '-1', '-1'), 2):255.616526907,
(('2', '4', '-1', '2', '-1', '-1', '1', '0'), 2):40,
(('0', '2', '0', '2', '1', '0', '1', '0'), 1):181.489939475,
(('2', '2', '4', '-1', '4', '4', '-1', '-1'), 1):183.056993689,
(('0', '2', '2', '2', '2', '1', '1', '4'), 3):10.0,
(('2', '2', '4', '-1', '4', '1', '-1', '-1'), 2):140,
(('2', '2', '4', '2', '2', '0', '2', '2'), 2):10,
(('0', '4', '0', '1', '0', '1', '0', '0'), 3):-10,
(('2', '2', '4', '2', '2', '4', '2', '0'), 3):43.504754644,
(('2', '2', '4', '-1', '1', '1', '-1', '-1'), 1):278.870967327,
(('4', '-1', '0', '-1', '1', '-1', '-1', '-1'), 2):-6.14851322792,
(('1', '2', '2', '2', '1', '4', '0', '0'), 2):10,
(('0', '2', '-1', '2', '-1', '-1', '1', '0'), 3):384.756891335,
(('0', '0', '4', '1', '1', '0', '0', '1'), 1):0,
(('1', '2', '2', '2', '0', '1', '0', '2'), 3):127.346286162,
(('4', '2', '4', '2', '4', '4', '1', '0'), 0):23.764,
(('1', '1', '1', '1', '0', '0', '1', '0'), 3):208.91374445,
(('2', '2', '4', '2', '0', '4', '2', '0'), 1):245.498930375,
(('0', '1', '4', '0', '4', '4', '0', '1'), 0):42.073391014,
(('2', '2', '0', '2', '0', '1', '4', '2'), 1):41.9772796008,
(('4', '1', '0', '-1', '1', '1', '-1', '-1'), 2):0,
(('-1', '0', '0', '1', '-1', '4', '-1', '0'), 3):113.529648801,
(('4', '2', '4', '-1', '0', '1', '-1', '-1'), 0):67.3032885486,
(('-1', '0', '4', '1', '-1', '4', '-1', '0'), 3):77.8748439665,
(('2', '2', '0', '2', '2', '2', '4', '4'), 1):10,
(('4', '-1', '0', '1', '0', '-1', '0', '-1'), 3):176.616608211,
(('1', '1', '1', '1', '1', '0', '0', '1'), 0):193.335048225,
(('0', '2', '0', '2', '4', '2', '1', '0'), 0):10,
(('1', '2', '0', '2', '0', '0', '1', '4'), 0):223.490140004,
(('1', '0', '1', '1', '0', '1', '0', '4'), 1):0,
(('1', '4', '2', '2', '2', '2', '1', '0'), 3):80.7377034333,
(('0', '1', '-1', '0', '-1', '-1', '4', '1'), 3):204.027985358,
(('0', '2', '-1', '4', '-1', '-1', '0', '1'), 0):262.130081466,
(('0', '1', '0', '0', '1', '1', '0', '1'), 0):201.417288981,
(('0', '0', '4', '0', '0', '4', '0', '0'), 2):160.831109017,
(('2', '2', '0', '2', '2', '1', '1', '0'), 1):236.065984755,
(('0', '2', '1', '2', '2', '1', '2', '0'), 0):530,
(('0', '2', '2', '2', '0', '2', '2', '0'), 0):940,
(('1', '2', '1', '2', '0', '1', '2', '1'), 2):262.008941266,
(('4', '-1', '1', '1', '4', '-1', '1', '-1'), 1):-10,
(('1', '0', '-1', '0', '-1', '-1', '4', '0'), 3):198.868635784,
(('4', '2', '-1', '2', '-1', '-1', '0', '2'), 1):192.995429351,
(('2', '2', '0', '2', '1', '1', '2', '0'), 2):160.481949749,
(('1', '2', '2', '2', '1', '0', '2', '0'), 3):128.535638352,
(('-1', '1', '0', '4', '-1', '1', '-1', '0'), 1):73.628326539,
(('2', '2', '2', '2', '2', '0', '2', '0'), 1):397.207361852,
(('4', '1', '1', '1', '4', '0', '1', '1'), 3):10,
(('-1', '4', '0', '2', '-1', '4', '-1', '0'), 3):50,
(('1', '0', '-1', '4', '-1', '-1', '0', '1'), 0):40.0939204285,
(('4', '2', '0', '2', '0', '0', '2', '2'), 1):10,
(('0', '2', '1', '4', '1', '1', '0', '4'), 1):10,
(('4', '2', '1', '2', '4', '1', '2', '2'), 1):10,
(('1', '2', '2', '2', '0', '1', '4', '0'), 3):49.9874958284,
(('1', '2', '1', '2', '0', '0', '0', '1'), 3):10,
(('1', '4', '0', '1', '0', '0', '1', '4'), 1):163.46471263,
(('1', '2', '2', '2', '2', '0', '4', '4'), 3):229.843377108,
(('0', '0', '4', '1', '0', '4', '1', '0'), 1):42.5140252424,
(('2', '2', '2', '2', '1', '1', '0', '1'), 3):263.688025927,
(('2', '4', '0', '2', '0', '4', '2', '2'), 2):10,
(('2', '2', '1', '-1', '2', '1', '-1', '-1'), 0):520.593342814,
(('4', '2', '2', '2', '1', '2', '1', '1'), 3):214.042959607,
(('0', '1', '0', '1', '0', '0', '0', '0'), 3):204.950438781,
(('1', '2', '1', '2', '0', '1', '0', '4'), 3):10,
(('1', '0', '0', '0', '4', '0', '1', '0'), 2):83.9827995258,
(('1', '2', '4', '2', '1', '1', '0', '2'), 0):43.870348175,
(('4', '2', '0', '2', '0', '0', '1', '1'), 2):231.853103846,
(('-1', '2', '4', '2', '-1', '4', '-1', '0'), 3):168.782795265,
(('4', '-1', '1', '-1', '1', '-1', '-1', '-1'), 3):294.361269354,
(('1', '0', '1', '4', '1', '1', '4', '4'), 1):44.7844581436,
(('0', '2', '2', '2', '0', '1', '0', '0'), 3):243.492026082,
(('0', '-1', '2', '2', '2', '-1', '0', '-1'), 0):327.563503259,
(('4', '2', '0', '-1', '0', '1', '-1', '-1'), 0):283.569447972,
(('1', '0', '0', '4', '0', '0', '0', '0'), 2):132.648402615,
(('1', '1', '4', '0', '0', '0', '1', '0'), 1):0,
(('0', '1', '1', '1', '1', '4', '0', '1'), 2):-8.2,
(('2', '2', '2', '2', '0', '2', '4', '0'), 3):81.4084132945,
(('1', '0', '1', '1', '0', '0', '0', '1'), 1):168.624300585,
(('4', '1', '1', '1', '1', '0', '0', '1'), 2):50,
(('4', '0', '-1', '0', '-1', '-1', '4', '0'), 2):146.46161959,
(('4', '2', '0', '4', '0', '1', '4', '0'), 0):10,
(('0', '2', '0', '2', '4', '1', '1', '2'), 2):10,
(('0', '1', '4', '1', '0', '0', '1', '1'), 2):165.621110891,
(('2', '2', '0', '2', '4', '0', '2', '1'), 2):10,
(('4', '1', '0', '1', '0', '0', '4', '1'), 1):153.693250188,
(('0', '-1', '1', '0', '1', '-1', '0', '-1'), 3):286.816151669,
(('2', '2', '1', '2', '0', '0', '4', '0'), 2):50.0,
(('0', '2', '4', '2', '4', '4', '0', '4'), 1):19.0,
(('1', '2', '0', '2', '4', '1', '0', '1'), 0):51.1634195416,
(('2', '2', '1', '2', '4', '1', '0', '1'), 2):138.30942712,
(('1', '1', '1', '4', '0', '0', '0', '4'), 3):-1000,
(('1', '0', '0', '4', '0', '0', '1', '1'), 1):10,
(('-1', '0', '1', '0', '-1', '0', '-1', '4'), 2):0,
(('4', '-1', '0', '0', '0', '-1', '4', '-1'), 3):31.8045657076,
(('2', '2', '2', '2', '2', '2', '0', '4'), 1):271.499821071,
(('1', '2', '4', '2', '0', '1', '0', '1'), 1):44.7744815829,
(('1', '2', '0', '2', '0', '0', '1', '0'), 2):259.711403422,
(('0', '0', '1', '1', '0', '0', '1', '1'), 2):215.925761311,
(('4', '1', '1', '0', '0', '1', '0', '1'), 1):98.9948280427,
(('-1', '4', '0', '0', '-1', '1', '-1', '4'), 2):10,
(('4', '2', '0', '2', '1', '1', '4', '2'), 2):10,
(('2', '2', '2', '2', '1', '2', '4', '1'), 1):10,
(('4', '0', '4', '1', '4', '0', '1', '1'), 2):-10,
(('1', '4', '1', '1', '0', '4', '0', '4'), 1):1.8,
(('1', '4', '0', '0', '0', '0', '0', '0'), 1):183.240147916,
(('0', '1', '0', '1', '0', '1', '0', '1'), 3):212.686108388,
(('4', '1', '-1', '0', '-1', '-1', '4', '1'), 3):86.0664450464,
(('1', '-1', '-1', '1', '-1', '-1', '0', '-1'), 1):245.258188662,
(('1', '4', '0', '2', '0', '0', '1', '1'), 0):10,
(('0', '1', '1', '0', '0', '0', '4', '0'), 2):0,
(('4', '-1', '0', '2', '4', '-1', '0', '-1'), 0):170.695804973,
(('4', '0', '-1', '1', '-1', '-1', '0', '0'), 1):221.927181524,
(('0', '1', '0', '0', '1', '0', '0', '4'), 0):10,
(('0', '2', '4', '2', '1', '0', '0', '0'), 1):101.704440466,
(('-1', '2', '2', '-1', '-1', '2', '-1', '-1'), 2):197.321217083,
(('-1', '2', '1', '2', '-1', '0', '-1', '4'), 3):186.56600097,
(('2', '2', '1', '4', '1', '1', '1', '0'), 1):196.523749712,
(('1', '1', '1', '1', '1', '1', '1', '0'), 3):207.363993429,
(('-1', '0', '0', '1', '-1', '0', '-1', '1'), 2):235.061669263,
(('0', '4', '4', '-1', '0', '4', '-1', '-1'), 3):49.8623298775,
(('0', '2', '1', '2', '1', '1', '0', '4'), 0):241.787461238,
(('0', '4', '-1', '0', '-1', '-1', '1', '0'), 2):10,
(('-1', '4', '1', '0', '-1', '0', '-1', '1'), 1):41.1096064262,
(('4', '-1', '1', '1', '0', '-1', '0', '-1'), 0):102.67127798,
(('4', '1', '0', '0', '0', '1', '4', '1'), 2):10,
(('1', '2', '-1', '4', '-1', '-1', '1', '1'), 1):37.5993586336,
(('2', '2', '2', '2', '4', '2', '0', '2'), 2):10,
(('4', '2', '1', '2', '1', '1', '1', '0'), 3):112.022937614,
(('1', '2', '2', '-1', '2', '1', '-1', '-1'), 0):98.250134485,
(('-1', '2', '2', '2', '-1', '0', '-1', '1'), 2):174.965967552,
(('0', '1', '1', '1', '1', '0', '4', '1'), 1):-10,
(('0', '4', '1', '1', '1', '1', '0', '4'), 1):0.0,
(('0', '0', '0', '1', '0', '0', '1', '0'), 2):234.864987624,
(('2', '2', '1', '2', '0', '2', '0', '2'), 1):393.210186789,
(('1', '1', '0', '1', '0', '0', '1', '0'), 2):215.838894442,
(('0', '2', '2', '2', '2', '2', '1', '1'), 3):378.01801253,
(('4', '2', '0', '2', '0', '0', '2', '1'), 1):197.990654446,
(('1', '2', '2', '4', '2', '2', '1', '0'), 0):125.914109263,
(('1', '2', '2', '4', '2', '2', '1', '4'), 3):83.0800721113,
(('4', '1', '1', '1', '1', '1', '0', '1'), 2):183.257137839,
(('4', '1', '0', '1', '0', '1', '4', '1'), 2):89.6573030794,
(('1', '0', '1', '0', '1', '0', '4', '0'), 0):197.982375115,
(('0', '0', '1', '1', '0', '4', '0', '1'), 2):0,
(('0', '2', '2', '4', '0', '2', '1', '4'), 3):10,
(('0', '2', '1', '2', '0', '1', '2', '4'), 2):11.8,
(('1', '-1', '1', '2', '4', '-1', '2', '-1'), 2):10,
(('0', '1', '1', '0', '0', '1', '0', '1'), 1):218.253659924,
(('4', '2', '4', '2', '4', '0', '4', '0'), 0):60.1211256591,
(('0', '4', '4', '0', '0', '4', '0', '1'), 0):-10,
(('4', '2', '0', '2', '0', '0', '4', '4'), 0):-10,
(('1', '0', '0', '0', '1', '4', '0', '0'), 3):0,
(('1', '2', '1', '2', '0', '0', '0', '2'), 2):208.066980716,
(('1', '0', '0', '-1', '0', '1', '-1', '-1'), 0):180.085884489,
(('1', '2', '2', '2', '2', '2', '1', '1'), 3):362.607400445,
(('1', '1', '0', '4', '0', '1', '1', '4'), 3):-10,
(('0', '-1', '2', '4', '2', '-1', '1', '-1'), 3):361.572867136,
(('-1', '0', '1', '-1', '-1', '0', '-1', '-1'), 3):250.626017487,
(('-1', '2', '2', '2', '-1', '1', '-1', '1'), 3):353.3007493,
(('0', '4', '-1', '0', '-1', '-1', '0', '1'), 3):178.522508429,
(('0', '0', '1', '-1', '4', '1', '-1', '-1'), 0):120.17936006,
(('-1', '2', '4', '2', '-1', '0', '-1', '1'), 3):231.995704069,
(('4', '0', '-1', '0', '-1', '-1', '1', '0'), 1):218.106699842,
(('4', '2', '1', '2', '1', '1', '0', '1'), 0):200.357995553,
(('1', '4', '0', '1', '1', '4', '1', '4'), 1):103.574160151,
(('4', '0', '4', '-1', '4', '0', '-1', '-1'), 3):-10.0,
(('0', '4', '0', '1', '0', '4', '0', '4'), 0):29.8219256751,
(('1', '0', '1', '0', '4', '0', '0', '0'), 1):55.1086910412,
(('4', '2', '2', '2', '4', '4', '0', '0'), 1):10,
(('0', '1', '-1', '4', '-1', '-1', '0', '1'), 0):232.746109608,
(('2', '2', '4', '-1', '0', '0', '-1', '-1'), 3):0,
(('0', '2', '1', '2', '0', '2', '4', '2'), 2):117.368563392,
(('-1', '2', '0', '-1', '-1', '4', '-1', '-1'), 0):275.885727365,
(('0', '2', '4', '2', '1', '1', '4', '0'), 0):10,
(('1', '1', '1', '4', '0', '1', '4', '1'), 2):-3.51364429576,
(('2', '2', '2', '2', '1', '1', '2', '2'), 2):120.996221259,
(('0', '0', '0', '1', '1', '0', '0', '4'), 3):0,
(('1', '4', '1', '1', '1', '0', '1', '4'), 3):135.372285676,
(('1', '2', '1', '-1', '4', '0', '-1', '-1'), 1):178.890558135,
(('2', '-1', '1', '4', '1', '-1', '1', '-1'), 1):49.6193350697,
(('0', '0', '-1', '1', '-1', '-1', '1', '0'), 3):271.148601248,
(('1', '0', '-1', '0', '-1', '-1', '0', '4'), 0):10,
(('1', '4', '0', '2', '1', '0', '2', '0'), 2):146.950280683,
(('1', '2', '4', '2', '4', '0', '0', '1'), 2):10,
(('1', '1', '4', '1', '4', '4', '1', '1'), 2):61.371951404,
(('1', '2', '1', '2', '4', '0', '2', '0'), 2):136.205718555,
(('2', '4', '1', '2', '0', '4', '0', '0'), 1):237.148213058,
(('1', '4', '4', '0', '4', '4', '0', '0'), 1):2.0,
(('0', '1', '4', '-1', '4', '1', '-1', '-1'), 1):81.675589247,
(('2', '2', '1', '2', '1', '0', '1', '2'), 1):206.069453752,
(('-1', '2', '4', '-1', '-1', '4', '-1', '-1'), 3):167.361165479,
(('1', '1', '1', '-1', '1', '4', '-1', '-1'), 2):190.155761889,
(('0', '-1', '0', '2', '4', '-1', '1', '-1'), 0):195.560064301,
(('4', '2', '2', '2', '4', '2', '4', '2'), 2):43.8,
(('4', '-1', '1', '1', '0', '-1', '1', '-1'), 3):148.323987057,
(('4', '1', '1', '1', '4', '1', '4', '0'), 1):54.4189862485,
(('0', '2', '0', '4', '0', '0', '0', '0'), 3):10,
(('2', '2', '1', '2', '1', '0', '2', '4'), 1):267.029559097,
(('0', '2', '2', '2', '2', '2', '0', '2'), 2):402.107925343,
(('-1', '1', '0', '0', '-1', '0', '-1', '0'), 0):240.313455104,
(('2', '-1', '1', '4', '2', '-1', '0', '-1'), 1):70.6456916195,
(('0', '4', '1', '1', '0', '0', '0', '0'), 1):120.17689504,
(('2', '2', '4', '-1', '1', '4', '-1', '-1'), 3):65.258924654,
(('1', '1', '0', '1', '1', '0', '1', '1'), 0):222.962523424,
(('2', '2', '4', '2', '0', '0', '0', '2'), 1):173.955061651,
(('1', '2', '1', '2', '0', '2', '0', '2'), 2):76.7429434348,
(('1', '0', '1', '1', '4', '1', '1', '0'), 2):10,
(('1', '2', '-1', '2', '-1', '-1', '0', '1'), 1):243.9941695,
(('2', '2', '2', '2', '1', '2', '1', '1'), 2):77.4691681294,
(('-1', '2', '2', '2', '-1', '1', '-1', '4'), 2):10,
(('2', '4', '1', '2', '2', '4', '4', '0'), 2):10,
(('1', '-1', '0', '1', '1', '-1', '0', '-1'), 3):250.713706882,
(('0', '1', '1', '0', '1', '1', '0', '4'), 0):137.497312638,
(('4', '0', '4', '1', '4', '0', '4', '0'), 2):10,
(('-1', '1', '0', '-1', '-1', '1', '-1', '-1'), 3):246.578454784,
(('2', '2', '4', '-1', '2', '0', '-1', '-1'), 3):10,
(('1', '1', '4', '0', '4', '0', '0', '1'), 0):10,
(('4', '1', '4', '4', '4', '0', '4', '0'), 2):10.324,
(('4', '2', '0', '2', '4', '0', '4', '2'), 0):256.402008316,
(('2', '2', '2', '2', '0', '1', '1', '0'), 1):175.456530592,
(('1', '0', '4', '1', '1', '0', '0', '0'), 0):136.066573396,
(('4', '-1', '-1', '2', '-1', '-1', '1', '-1'), 2):267.000064249,
(('4', '-1', '1', '2', '0', '-1', '0', '-1'), 3):190.536903846,
(('0', '1', '1', '4', '0', '1', '0', '1'), 1):203.344164409,
(('1', '0', '-1', '4', '-1', '-1', '1', '0'), 0):248.705272829,
(('2', '2', '2', '2', '1', '2', '1', '1'), 1):319.92503447,
(('1', '1', '0', '-1', '1', '1', '-1', '-1'), 0):256.509555994,
(('0', '2', '2', '4', '0', '1', '4', '1'), 3):99.2698474049,
(('0', '1', '4', '1', '0', '4', '0', '0'), 2):108.832229335,
(('0', '1', '1', '1', '0', '1', '0', '0'), 0):221.851175441,
(('2', '2', '2', '2', '1', '0', '2', '0'), 2):91.4675934046,
(('4', '2', '1', '2', '0', '1', '0', '1'), 3):152.038247373,
(('1', '2', '1', '2', '4', '0', '1', '1'), 3):10,
(('2', '2', '0', '-1', '4', '1', '-1', '-1'), 1):219.83175723,
(('-1', '0', '1', '0', '-1', '0', '-1', '0'), 0):234.730507576,
(('0', '0', '1', '1', '0', '1', '0', '0'), 0):209.883310131,
(('1', '0', '0', '1', '0', '4', '0', '0'), 0):61.8987647574,
(('0', '-1', '0', '-1', '4', '-1', '-1', '-1'), 3):46.3870085862,
(('0', '2', '4', '-1', '0', '1', '-1', '-1'), 3):247.367681095,
(('0', '2', '0', '2', '1', '0', '0', '0'), 3):274.989080848,
(('1', '0', '0', '4', '1', '0', '0', '0'), 1):132.522168351,
(('1', '2', '2', '2', '1', '0', '1', '4'), 3):251.417949515,
(('1', '2', '2', '-1', '1', '0', '-1', '-1'), 2):332.411885118,
(('4', '1', '0', '-1', '1', '0', '-1', '-1'), 2):6.80892677017,
(('4', '1', '1', '0', '4', '1', '4', '0'), 1):54.3820671423,
(('1', '2', '0', '2', '0', '2', '4', '2'), 2):10,
(('0', '2', '2', '2', '2', '2', '1', '4'), 3):273.874319759,
(('2', '2', '2', '2', '2', '2', '2', '1'), 2):525.333764116,
(('4', '1', '0', '1', '0', '1', '0', '1'), 3):160.892659463,
(('4', '1', '0', '4', '1', '0', '4', '0'), 1):-10,
(('1', '0', '0', '4', '0', '0', '0', '0'), 3):189.967665129,
(('2', '2', '1', '2', '2', '1', '0', '1'), 1):289.535865251,
(('0', '2', '4', '2', '0', '2', '0', '1'), 0):159.211229731,
(('0', '0', '-1', '0', '-1', '-1', '0', '1'), 2):238.526747606,
(('1', '1', '4', '1', '0', '4', '0', '0'), 2):21.0184845839,
(('1', '1', '4', '1', '0', '1', '1', '0'), 0):26.5024619703,
(('0', '4', '-1', '2', '-1', '-1', '1', '4'), 3):112.991012861,
(('2', '2', '4', '-1', '1', '4', '-1', '-1'), 0):10,
(('0', '1', '0', '1', '1', '0', '1', '1'), 0):150.919896484,
(('4', '-1', '0', '1', '1', '-1', '1', '-1'), 1):51.6483709404,
(('0', '-1', '1', '1', '0', '-1', '0', '-1'), 1):227.546858617,
(('2', '2', '-1', '2', '-1', '-1', '4', '2'), 1):305.835279656,
(('1', '4', '0', '-1', '1', '0', '-1', '-1'), 3):268.079238206,
(('-1', '1', '0', '0', '-1', '0', '-1', '1'), 3):235.061669263,
(('1', '1', '1', '4', '1', '1', '1', '0'), 3):170.501047256,
(('0', '2', '0', '2', '0', '1', '1', '2'), 2):279.89296546,
(('1', '2', '1', '2', '2', '1', '2', '2'), 2):90.1789165221,
(('4', '2', '1', '2', '0', '0', '0', '2'), 0):103.681465918,
(('0', '2', '4', '2', '0', '0', '0', '0'), 1):102.836254592,
(('1', '0', '4', '1', '4', '1', '1', '1'), 2):-10.0,
(('1', '0', '1', '0', '0', '1', '0', '1'), 3):-10,
(('2', '-1', '4', '2', '4', '-1', '0', '-1'), 1):154.817530426,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '4'), 1):58.2873644241,
(('1', '2', '1', '2', '0', '1', '0', '2'), 2):281.477445014,
(('4', '2', '1', '2', '0', '1', '0', '0'), 1):239.051316895,
(('0', '4', '0', '0', '0', '0', '1', '0'), 0):-10,
(('2', '2', '2', '2', '1', '0', '0', '0'), 3):292.982553376,
(('1', '-1', '0', '0', '0', '-1', '4', '-1'), 3):-10,
(('1', '2', '1', '2', '0', '1', '1', '1'), 1):159.195036289,
(('2', '2', '1', '2', '4', '1', '2', '2'), 1):145.357352158,
(('0', '2', '2', '2', '2', '1', '0', '2'), 3):150.982450243,
(('4', '2', '4', '2', '4', '0', '0', '0'), 2):20.538630979,
(('0', '2', '1', '4', '1', '1', '4', '0'), 0):14.3118995278,
(('4', '1', '1', '0', '4', '0', '4', '0'), 3):0,
(('-1', '2', '4', '2', '-1', '0', '-1', '0'), 0):242.862250652,
(('1', '-1', '0', '2', '1', '-1', '1', '-1'), 0):276.104629163,
(('1', '2', '4', '2', '0', '0', '1', '0'), 3):197.347674187,
(('0', '-1', '4', '-1', '1', '-1', '-1', '-1'), 1):136.705986234,
(('0', '1', '-1', '4', '-1', '-1', '4', '0'), 0):132.868557187,
(('0', '1', '0', '4', '0', '1', '4', '1'), 3):32.3940385789,
(('1', '2', '0', '4', '1', '0', '4', '0'), 1):10,
(('1', '1', '1', '4', '0', '1', '4', '4'), 0):8.25602075078,
(('0', '1', '1', '4', '0', '1', '0', '0'), 2):186.572892589,
(('1', '-1', '4', '1', '4', '-1', '1', '-1'), 3):29.5125473202,
(('1', '4', '-1', '0', '-1', '-1', '1', '4'), 3):82.8586815266,
(('0', '0', '1', '1', '0', '0', '1', '4'), 1):10,
(('1', '-1', '0', '4', '1', '-1', '0', '-1'), 2):91.5033737249,
(('0', '4', '1', '1', '0', '0', '1', '0'), 3):52.0768248388,
(('4', '2', '4', '2', '4', '0', '2', '2'), 2):10,
(('1', '2', '1', '4', '0', '1', '0', '0'), 1):10,
(('0', '0', '1', '1', '1', '1', '0', '1'), 0):159.985987139,
(('0', '2', '2', '2', '2', '0', '1', '4'), 0):163.26511641,
(('4', '2', '2', '4', '1', '1', '4', '0'), 3):10,
(('0', '1', '1', '1', '0', '0', '4', '0'), 0):34.1642144671,
(('2', '2', '2', '2', '1', '1', '2', '1'), 2):137.820729593,
(('4', '0', '1', '-1', '1', '0', '-1', '-1'), 2):210.731792348,
(('-1', '0', '1', '1', '-1', '0', '-1', '4'), 1):103.387268188,
(('2', '2', '-1', '4', '-1', '-1', '1', '4'), 1):260.663040711,
(('0', '1', '1', '1', '0', '0', '1', '4'), 2):0,
(('2', '2', '1', '2', '1', '0', '2', '2'), 1):500.468199748,
(('1', '1', '0', '-1', '4', '1', '-1', '-1'), 3):109.662128751,
(('-1', '0', '1', '1', '-1', '0', '-1', '1'), 0):221.568887718,
(('1', '0', '0', '1', '0', '4', '1', '1'), 0):62.0136477793,
(('0', '2', '0', '2', '0', '0', '4', '1'), 1):56.2994357235,
(('0', '1', '0', '1', '1', '0', '0', '1'), 3):177.458046144,
(('4', '1', '0', '4', '0', '0', '0', '1'), 0):50,
(('1', '1', '1', '1', '1', '0', '1', '1'), 0):195.611594832,
(('-1', '0', '0', '4', '-1', '0', '-1', '1'), 3):0,
(('-1', '4', '1', '0', '-1', '0', '-1', '0'), 0):48.5909184641,
(('0', '1', '1', '4', '1', '1', '4', '4'), 0):59.8156812788,
(('4', '2', '0', '2', '4', '1', '4', '2'), 2):179.573534999,
(('4', '-1', '1', '0', '4', '-1', '0', '-1'), 0):158.229670877,
(('0', '0', '1', '4', '0', '0', '1', '0'), 1):0,
(('1', '0', '0', '0', '0', '4', '0', '0'), 1):97.2971903821,
(('2', '2', '2', '2', '2', '0', '2', '2'), 0):417.226168807,
(('0', '2', '1', '2', '1', '2', '4', '2'), 2):119.040749898,
(('4', '2', '1', '2', '0', '1', '0', '2'), 0):230.573664321,
(('-1', '2', '1', '2', '-1', '1', '-1', '0'), 0):260.582334914,
(('2', '2', '2', '2', '2', '0', '4', '1'), 3):110,
(('2', '2', '4', '2', '1', '0', '0', '0'), 2):206.184598001,
(('2', '2', '-1', '4', '-1', '-1', '4', '0'), 1):167.040201018,
(('1', '1', '4', '1', '1', '1', '1', '0'), 2):29.9725535509,
(('4', '2', '0', '2', '0', '4', '0', '2'), 0):10,
(('0', '4', '0', '0', '0', '4', '0', '1'), 2):41.4734109173,
(('1', '0', '4', '1', '0', '0', '1', '1'), 2):77.6356618956,
(('0', '2', '2', '2', '2', '0', '2', '0'), 0):230.666342227,
(('-1', '4', '2', '2', '-1', '1', '-1', '4'), 1):40.752425049,
(('1', '2', '1', '2', '1', '1', '4', '1'), 3):10.0,
(('0', '2', '2', '-1', '4', '2', '-1', '-1'), 3):275.073073692,
(('1', '2', '1', '2', '1', '0', '4', '2'), 0):122.505207625,
(('1', '2', '2', '2', '4', '2', '1', '1'), 2):10,
(('1', '2', '2', '-1', '2', '4', '-1', '-1'), 2):47.7489708347,
(('1', '1', '0', '0', '0', '0', '1', '1'), 3):159.968982068,
(('4', '0', '1', '0', '1', '0', '0', '0'), 2):142.050232119,
(('1', '0', '-1', '1', '-1', '-1', '1', '4'), 3):258.932818894,
(('0', '2', '0', '2', '0', '2', '4', '2'), 0):211.775586741,
(('-1', '4', '0', '1', '-1', '0', '-1', '4'), 2):109.103413038,
(('1', '0', '0', '0', '0', '0', '0', '1'), 2):10,
(('4', '0', '4', '1', '0', '4', '4', '1'), 2):10,
(('0', '4', '1', '1', '0', '4', '0', '0'), 0):-10,
(('0', '4', '-1', '1', '-1', '-1', '1', '1'), 3):192.361497207,
(('1', '1', '0', '-1', '4', '1', '-1', '-1'), 2):132.197833099,
(('4', '-1', '0', '-1', '4', '-1', '-1', '-1'), 2):191.014632017,
(('1', '1', '1', '4', '0', '1', '0', '1'), 2):0,
(('0', '2', '-1', '2', '-1', '-1', '0', '0'), 3):317.014013787,
(('1', '1', '1', '0', '1', '0', '0', '4'), 1):3.8,
(('1', '-1', '0', '4', '1', '-1', '1', '-1'), 3):144.278905897,
(('-1', '2', '2', '2', '-1', '2', '-1', '2'), 0):266.435948022,
(('4', '1', '4', '1', '4', '0', '4', '1'), 0):16.6228209339,
(('2', '2', '2', '2', '4', '4', '2', '0'), 0):10,
(('1', '0', '4', '1', '1', '1', '1', '0'), 2):-10.0,
(('2', '2', '4', '-1', '4', '0', '-1', '-1'), 2):55.8256709025,
(('1', '1', '1', '1', '4', '0', '1', '0'), 0):112.77568407,
(('4', '2', '0', '2', '4', '0', '1', '0'), 0):164.042023299,
(('0', '1', '1', '1', '1', '0', '0', '1'), 3):189.015511788,
(('1', '4', '1', '0', '1', '1', '0', '1'), 0):31.1779618136,
(('-1', '2', '2', '4', '-1', '1', '-1', '4'), 3):198.716500221,
(('0', '2', '4', '2', '4', '4', '2', '0'), 2):193.720533127,
(('0', '2', '0', '2', '1', '0', '2', '2'), 2):363.297808531,
(('2', '2', '2', '-1', '1', '2', '-1', '-1'), 3):396.888706298,
(('4', '-1', '2', '-1', '4', '-1', '-1', '-1'), 3):380.267130889,
(('0', '2', '0', '2', '0', '1', '1', '4'), 0):60.8230783743,
(('2', '2', '1', '2', '2', '1', '0', '2'), 0):359.187136316,
(('-1', '2', '1', '4', '-1', '1', '-1', '1'), 3):77.3719460621,
(('-1', '4', '0', '1', '-1', '1', '-1', '1'), 0):10,
(('1', '2', '4', '2', '1', '2', '0', '0'), 0):10,
(('0', '2', '2', '2', '0', '4', '0', '0'), 0):10,
(('0', '0', '0', '1', '0', '4', '1', '0'), 2):116.31101799,
(('2', '2', '1', '2', '0', '1', '0', '4'), 1):242.415117515,
(('1', '4', '1', '-1', '1', '1', '-1', '-1'), 1):262.813794026,
(('1', '2', '1', '2', '1', '1', '4', '0'), 1):190.964782271,
(('4', '2', '1', '-1', '0', '2', '-1', '-1'), 0):254.8877611,
(('0', '2', '1', '2', '0', '4', '0', '2'), 2):316.189334707,
(('1', '-1', '0', '2', '1', '-1', '0', '-1'), 3):298.745210255,
(('2', '2', '0', '2', '0', '0', '4', '1'), 1):224.302514449,
(('0', '4', '4', '1', '4', '0', '0', '4'), 1):1.87620825473,
(('1', '1', '0', '-1', '4', '1', '-1', '-1'), 1):-156.460889958,
(('4', '0', '-1', '4', '-1', '-1', '0', '0'), 2):-1.0,
(('0', '2', '1', '2', '1', '1', '1', '4'), 0):53.5896639703,
(('1', '1', '0', '0', '0', '4', '1', '0'), 0):-10,
(('4', '0', '1', '1', '1', '1', '0', '0'), 2):108.176826327,
(('2', '2', '0', '2', '4', '0', '2', '0'), 2):225.315441229,
(('-1', '0', '4', '0', '-1', '0', '-1', '0'), 2):221.312124191,
(('1', '2', '2', '-1', '4', '2', '-1', '-1'), 0):286.617830122,
(('0', '2', '2', '2', '2', '0', '2', '1'), 3):449.311453362,
(('0', '4', '1', '2', '0', '4', '0', '0'), 3):62.2854638937,
(('1', '2', '0', '4', '1', '0', '0', '4'), 3):10,
(('2', '2', '4', '2', '4', '0', '2', '0'), 3):10,
(('0', '2', '1', '2', '2', '2', '0', '2'), 2):362.607539173,
(('4', '1', '-1', '1', '-1', '-1', '0', '0'), 0):241.165678537,
(('2', '2', '1', '4', '2', '1', '1', '0'), 1):10,
(('2', '2', '2', '-1', '4', '1', '-1', '-1'), 1):258.222217776,
(('-1', '0', '1', '1', '-1', '0', '-1', '4'), 2):13.40803668,
(('1', '4', '1', '0', '1', '4', '0', '0'), 0):76.3745057218,
(('0', '2', '0', '2', '1', '4', '1', '2'), 2):10,
(('1', '4', '-1', '0', '-1', '-1', '0', '4'), 2):118.347879869,
(('0', '2', '1', '4', '1', '1', '0', '1'), 0):166.741794377,
(('2', '4', '2', '2', '0', '1', '1', '4'), 1):10,
(('-1', '1', '4', '1', '-1', '0', '-1', '0'), 3):49.0587862764,
(('1', '0', '0', '1', '0', '0', '4', '0'), 1):123.520903615,
(('2', '4', '2', '2', '2', '0', '1', '1'), 1):64.3920327974,
(('2', '2', '1', '2', '0', '0', '0', '1'), 1):247.348905835,
(('2', '4', '0', '-1', '1', '1', '-1', '-1'), 1):78.0602073581,
(('4', '2', '4', '2', '4', '4', '4', '1'), 2):60.3904078708,
(('0', '2', '1', '2', '1', '0', '1', '0'), 1):143.502064504,
(('0', '2', '0', '2', '0', '2', '0', '1'), 2):204.878636531,
(('4', '-1', '0', '2', '1', '-1', '1', '-1'), 0):179.859203882,
(('1', '1', '-1', '4', '-1', '-1', '1', '0'), 2):207.365422333,
(('1', '1', '-1', '4', '-1', '-1', '1', '4'), 1):146.561053489,
(('4', '-1', '0', '2', '4', '-1', '0', '-1'), 1):49.4754107465,
(('1', '1', '1', '-1', '0', '0', '-1', '-1'), 2):238.158141979,
(('0', '2', '2', '2', '1', '0', '1', '0'), 0):98.6504211028,
(('4', '0', '1', '-1', '0', '0', '-1', '-1'), 2):250.450473655,
(('0', '2', '1', '2', '4', '1', '0', '1'), 2):233.824403428,
(('2', '2', '2', '2', '2', '0', '1', '4'), 3):197.997904379,
(('0', '2', '0', '4', '0', '1', '0', '4'), 3):50,
(('0', '0', '4', '1', '4', '0', '0', '0'), 3):74.6386799569,
(('0', '1', '1', '0', '4', '1', '0', '1'), 1):206.107045865,
(('1', '4', '-1', '4', '-1', '-1', '1', '1'), 1):122.874280952,
(('2', '4', '0', '2', '1', '0', '2', '1'), 1):80,
(('0', '0', '0', '1', '4', '0', '0', '1'), 0):95.683190726,
(('0', '1', '0', '1', '4', '0', '0', '1'), 0):167.116699626,
(('2', '2', '2', '2', '2', '0', '1', '0'), 2):10,
(('0', '2', '1', '2', '0', '4', '1', '0'), 1):10,
(('0', '1', '1', '4', '1', '1', '4', '1'), 1):-10.9942993062,
(('2', '2', '1', '2', '1', '1', '4', '0'), 1):223.184939181,
(('0', '-1', '2', '2', '1', '-1', '0', '-1'), 3):275.660630596,
(('0', '2', '4', '2', '0', '1', '0', '1'), 0):169.332604009,
(('0', '0', '4', '0', '0', '4', '1', '0'), 3):0,
(('0', '2', '0', '2', '1', '0', '0', '1'), 3):175.633967383,
(('0', '2', '0', '2', '0', '0', '0', '0'), 0):252.736969765,
(('2', '2', '2', '2', '2', '4', '0', '2'), 1):0,
(('1', '0', '1', '-1', '0', '1', '-1', '-1'), 2):251.469814407,
(('0', '1', '0', '4', '1', '0', '0', '1'), 1):-10,
(('0', '2', '4', '2', '0', '1', '0', '2'), 0):284.516456186,
(('0', '2', '0', '-1', '0', '1', '-1', '-1'), 1):213.217381523,
(('4', '1', '4', '1', '0', '4', '0', '0'), 2):-10,
(('0', '1', '1', '1', '1', '0', '4', '0'), 0):10,
(('1', '1', '1', '1', '4', '0', '0', '0'), 1):0,
(('4', '2', '1', '-1', '0', '0', '-1', '-1'), 1):265.930555032,
(('4', '2', '2', '4', '0', '2', '0', '4'), 0):72.6017273433,
(('1', '2', '2', '2', '2', '0', '2', '2'), 0):277.847218973,
(('4', '4', '1', '4', '0', '1', '4', '4'), 3):50,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '1'), 2):41.805009442,
(('0', '1', '1', '4', '1', '1', '4', '0'), 1):6.04318835128,
(('0', '-1', '4', '0', '0', '-1', '0', '-1'), 0):206.683927671,
(('1', '0', '1', '1', '0', '4', '1', '1'), 3):0,
(('2', '2', '2', '4', '0', '0', '0', '4'), 3):10,
(('1', '0', '0', '0', '4', '0', '1', '1'), 0):0,
(('0', '1', '0', '1', '4', '1', '1', '1'), 0):10,
(('2', '-1', '1', '4', '1', '-1', '0', '-1'), 1):249.750226413,
(('2', '2', '2', '2', '2', '0', '2', '1'), 2):78.8196352973,
(('0', '0', '4', '-1', '0', '1', '-1', '-1'), 0):0,
(('0', '0', '1', '0', '1', '1', '4', '0'), 2):0,
(('1', '1', '4', '1', '0', '0', '1', '1'), 3):203.049555202,
(('1', '1', '0', '4', '0', '0', '0', '1'), 0):51.1082430946,
(('-1', '2', '4', '2', '-1', '1', '-1', '0'), 0):-13.2534570552,
(('1', '1', '0', '1', '1', '4', '1', '1'), 2):119.588543389,
(('1', '2', '4', '2', '1', '0', '0', '0'), 2):244.9778021,
(('4', '1', '-1', '4', '-1', '-1', '4', '4'), 0):122.574901449,
(('0', '2', '0', '2', '4', '0', '4', '1'), 0):10,
(('-1', '2', '2', '2', '-1', '4', '-1', '0'), 3):164.493129848,
(('1', '2', '0', '2', '4', '0', '1', '1'), 0):222.480352469,
(('4', '4', '4', '1', '4', '4', '1', '4'), 3):-10,
(('4', '0', '1', '1', '4', '0', '1', '1'), 2):0,
(('0', '2', '4', '2', '0', '1', '2', '2'), 2):46.7840003719,
(('2', '2', '1', '4', '1', '1', '0', '4'), 1):31.2624011098,
(('0', '1', '0', '-1', '0', '4', '-1', '-1'), 0):244.593253004,
(('2', '2', '2', '4', '2', '1', '0', '1'), 1):139.688950412,
(('4', '0', '0', '1', '0', '0', '4', '0'), 3):100.041703691,
(('1', '-1', '4', '2', '4', '-1', '1', '-1'), 1):45.5125473202,
(('1', '1', '1', '1', '1', '4', '1', '1'), 3):114.220814347,
(('1', '2', '2', '2', '4', '0', '1', '0'), 3):177.128486495,
(('0', '1', '4', '0', '0', '1', '0', '1'), 1):204.423517871,
(('1', '2', '0', '2', '0', '2', '0', '1'), 0):124.807216851,
(('0', '2', '1', '2', '0', '1', '1', '1'), 0):220.361544652,
(('-1', '4', '4', '-1', '-1', '0', '-1', '-1'), 0):10,
(('4', '-1', '0', '1', '0', '-1', '1', '-1'), 0):230.959073646,
(('1', '2', '0', '2', '0', '4', '0', '2'), 0):10,
(('0', '0', '0', '0', '0', '0', '1', '0'), 2):210.281869261,
(('1', '4', '-1', '0', '-1', '-1', '1', '0'), 2):239.071953114,
(('2', '2', '1', '2', '1', '0', '2', '1'), 1):265.061655357,
(('0', '4', '2', '-1', '1', '2', '-1', '-1'), 3):10,
(('1', '4', '4', '-1', '1', '4', '-1', '-1'), 3):-10,
(('0', '0', '4', '1', '1', '0', '0', '0'), 1):51.3062308338,
(('1', '2', '0', '-1', '2', '0', '-1', '-1'), 0):537.908117905,
(('0', '1', '1', '1', '0', '0', '0', '0'), 2):217.338348463,
(('4', '2', '0', '2', '4', '0', '4', '0'), 2):184.644785066,
(('1', '-1', '1', '0', '1', '-1', '1', '-1'), 2):255.97374955,
(('1', '4', '1', '4', '1', '1', '1', '0'), 1):50,
(('1', '1', '1', '0', '1', '1', '4', '1'), 2):-10,
(('2', '2', '2', '-1', '2', '4', '-1', '-1'), 2):223.66854462,
(('4', '-1', '0', '2', '4', '-1', '0', '-1'), 3):51.4325974314,
(('0', '2', '0', '4', '1', '2', '0', '0'), 0):124.819958009,
(('2', '2', '1', '2', '1', '1', '1', '0'), 2):296.892365728,
(('0', '-1', '0', '2', '0', '-1', '4', '-1'), 0):249.026818349,
(('2', '2', '1', '2', '0', '1', '4', '1'), 1):79.4130767143,
(('1', '4', '2', '2', '1', '0', '1', '1'), 3):43.3437248532,
(('1', '1', '1', '0', '0', '1', '1', '1'), 1):188.91030456,
(('1', '4', '0', '1', '0', '0', '1', '0'), 2):217.659344004,
(('1', '1', '1', '0', '0', '0', '1', '1'), 0):69.013281164,
(('4', '2', '0', '2', '0', '1', '1', '1'), 1):49.9478460236,
(('2', '4', '0', '4', '1', '0', '0', '4'), 1):57.6977251326,
(('0', '2', '2', '4', '0', '0', '0', '1'), 3):226.268385221,
(('1', '2', '0', '2', '1', '0', '4', '0'), 1):220.551454778,
(('0', '-1', '4', '1', '0', '-1', '1', '-1'), 3):179.233013597,
(('0', '0', '4', '1', '0', '4', '0', '0'), 1):94.916330333,
(('0', '4', '0', '1', '0', '0', '1', '0'), 2):-69.0964092205,
(('4', '-1', '0', '1', '0', '-1', '4', '-1'), 2):158.180004947,
(('0', '1', '4', '0', '0', '1', '0', '0'), 3):186.981139574,
(('0', '1', '1', '1', '1', '1', '4', '1'), 2):29.1651800009,
(('2', '2', '2', '2', '2', '4', '0', '2'), 3):10,
(('2', '2', '1', '-1', '1', '4', '-1', '-1'), 1):273.80807466,
(('0', '2', '2', '4', '2', '2', '0', '4'), 3):99.2007453023,
(('1', '4', '0', '1', '0', '0', '1', '1'), 0):215.560565392,
(('0', '1', '4', '-1', '1', '4', '-1', '-1'), 2):54.2019912175,
(('1', '2', '-1', '2', '-1', '-1', '0', '0'), 0):259.238567219,
(('1', '0', '-1', '1', '-1', '-1', '4', '0'), 1):246.245710459,
(('0', '1', '0', '4', '0', '1', '0', '0'), 1):102.41153251,
(('0', '0', '0', '4', '0', '0', '4', '1'), 2):10,
(('2', '2', '2', '2', '1', '0', '0', '2'), 3):10,
(('4', '2', '0', '2', '0', '1', '4', '1'), 2):175.153702402,
(('0', '2', '2', '-1', '0', '1', '-1', '-1'), 2):235.877509056,
(('0', '2', '4', '2', '1', '4', '2', '2'), 2):252.010076246,
(('0', '2', '4', '-1', '1', '1', '-1', '-1'), 3):198.247155978,
(('2', '4', '-1', '2', '-1', '-1', '1', '0'), 1):284.925851199,
(('0', '2', '0', '2', '1', '0', '1', '0'), 0):254.307737283,
(('-1', '1', '1', '4', '-1', '1', '-1', '4'), 1):141.124344128,
(('0', '2', '1', '2', '0', '4', '2', '0'), 2):189.826816005,
(('4', '0', '1', '-1', '4', '0', '-1', '-1'), 1):5.11388922493,
(('4', '1', '1', '1', '4', '0', '4', '1'), 0):30.9132545578,
(('0', '2', '0', '2', '4', '0', '0', '1'), 2):225.876018109,
(('0', '4', '0', '1', '0', '1', '0', '0'), 2):10,
(('4', '1', '1', '0', '1', '1', '1', '0'), 2):10,
(('2', '2', '4', '2', '2', '4', '2', '0'), 2):70.0815334274,
(('2', '4', '4', '2', '4', '4', '0', '0'), 1):10,
(('0', '1', '0', '4', '0', '0', '4', '1'), 0):77.6707064722,
(('-1', '2', '2', '4', '-1', '2', '-1', '1'), 3):176.668227324,
(('4', '2', '4', '2', '4', '1', '4', '0'), 0):10,
(('0', '-1', '4', '2', '0', '-1', '0', '-1'), 0):245.032236028,
(('0', '2', '-1', '2', '-1', '-1', '1', '0'), 2):386.938849704,
(('0', '0', '4', '1', '1', '0', '0', '1'), 2):10,
(('0', '2', '0', '2', '0', '0', '1', '4'), 2):225.247931155,
(('1', '2', '2', '2', '0', '1', '0', '2'), 2):242.271911291,
(('2', '2', '4', '2', '0', '4', '2', '0'), 0):83.738059506,
(('0', '1', '4', '0', '4', '4', '0', '1'), 3):65.7446775674,
(('0', '0', '0', '4', '0', '0', '1', '0'), 2):111.814275955,
(('1', '2', '1', '2', '4', '2', '0', '0'), 2):10,
(('-1', '0', '0', '1', '-1', '4', '-1', '0'), 2):98.6024956261,
(('0', '-1', '0', '4', '0', '-1', '4', '-1'), 2):0,
(('0', '2', '0', '4', '1', '0', '0', '0'), 0):10,
(('4', '-1', '0', '1', '0', '-1', '0', '-1'), 2):213.672710108,
(('1', '1', '1', '1', '1', '0', '0', '1'), 3):186.360284023,
(('4', '0', '1', '1', '4', '1', '1', '0'), 0):-10,
(('4', '2', '2', '2', '0', '2', '4', '1'), 3):238.486935069,
(('4', '2', '1', '2', '4', '1', '4', '0'), 1):87.93575529,
(('4', '0', '4', '0', '0', '0', '0', '0'), 0):10,
(('0', '2', '-1', '4', '-1', '-1', '0', '1'), 3):377.236053671,
(('4', '-1', '1', '2', '4', '-1', '2', '-1'), 2):89.1519517802,
(('0', '2', '0', '2', '1', '0', '2', '0'), 2):299.126250397,
(('1', '4', '1', '1', '1', '1', '0', '0'), 2):197.582062574,
(('2', '2', '2', '2', '1', '4', '1', '0'), 3):10,
(('4', '-1', '1', '1', '4', '-1', '1', '-1'), 0):-131.913988347,
(('1', '0', '-1', '0', '-1', '-1', '4', '0'), 2):213.112433879,
(('2', '2', '2', '2', '1', '0', '1', '2'), 3):87.0316090793,
(('2', '2', '1', '2', '1', '0', '1', '4'), 1):210.464427632,
(('1', '2', '1', '2', '0', '1', '4', '0'), 3):49.8479842215,
(('2', '2', '0', '2', '1', '1', '2', '0'), 1):287.261009126,
(('1', '2', '2', '2', '1', '0', '2', '0'), 2):358.216377958,
(('2', '-1', '2', '2', '4', '-1', '1', '-1'), 3):203.428573567,
(('2', '2', '2', '2', '2', '0', '2', '0'), 0):408.763229591,
(('0', '-1', '4', '1', '4', '-1', '0', '-1'), 2):102.79165266,
(('1', '-1', '4', '1', '4', '-1', '0', '-1'), 0):-141.765974563,
(('4', '1', '0', '4', '1', '0', '4', '4'), 2):-10,
(('1', '-1', '-1', '2', '-1', '-1', '4', '-1'), 0):318.365445222,
(('2', '2', '0', '4', '2', '1', '0', '1'), 1):142.779658123,
(('4', '2', '0', '2', '0', '0', '2', '2'), 0):267.560239186,
(('2', '4', '1', '2', '1', '1', '2', '0'), 1):298.307188236,
(('4', '2', '1', '2', '4', '1', '2', '2'), 0):10,
(('1', '2', '0', '2', '4', '0', '4', '2'), 0):0,
(('2', '2', '4', '2', '1', '1', '0', '0'), 1):129.783655055,
(('1', '4', '0', '1', '0', '0', '1', '4'), 2):101.285210757,
(('0', '1', '0', '1', '0', '0', '4', '1'), 2):206.474293267,
(('0', '2', '4', '2', '1', '1', '0', '2'), 2):156.706416228,
(('2', '2', '1', '-1', '2', '1', '-1', '-1'), 1):383.99883165,
(('0', '1', '1', '1', '1', '1', '4', '0'), 2):4.13391035931,
(('1', '1', '4', '1', '0', '0', '0', '0'), 1):66.6837041486,
(('2', '2', '0', '2', '4', '0', '1', '0'), 1):257.667357903,
(('0', '1', '0', '1', '0', '0', '0', '0'), 2):213.977479648,
(('1', '2', '0', '2', '1', '0', '0', '1'), 2):210.709229413,
(('1', '2', '2', '4', '1', '0', '0', '0'), 0):10.0,
(('1', '0', '0', '0', '4', '0', '1', '0'), 1):191.329670925,
(('0', '0', '0', '0', '0', '4', '0', '0'), 1):101.030917345,
(('0', '-1', '2', '-1', '4', '-1', '-1', '-1'), 0):171.332775143,
(('0', '1', '0', '1', '4', '4', '0', '1'), 3):0,
(('-1', '2', '4', '2', '-1', '4', '-1', '0'), 0):214.921860879,
(('0', '2', '0', '2', '1', '4', '0', '2'), 2):121.100895748,
(('2', '2', '1', '2', '2', '1', '1', '0'), 1):283.500999733,
(('1', '1', '4', '-1', '0', '4', '-1', '-1'), 1):143.257026192,
(('2', '2', '1', '-1', '1', '2', '-1', '-1'), 2):74.9109467933,
(('1', '1', '4', '0', '0', '0', '1', '0'), 2):-10,
(('0', '1', '1', '1', '1', '4', '0', '1'), 3):-10,
(('1', '0', '1', '1', '0', '0', '0', '1'), 0):170.449621159,
(('2', '2', '0', '2', '1', '0', '0', '0'), 2):290.059312059,
(('0', '0', '4', '0', '4', '0', '0', '0'), 0):25.8565859019,
(('0', '1', '1', '4', '1', '1', '1', '4'), 3):0,
(('4', '0', '-1', '0', '-1', '-1', '4', '0'), 3):157.584045002,
(('-1', '4', '1', '1', '-1', '1', '-1', '4'), 1):70.5073043667,
(('0', '4', '1', '2', '4', '0', '0', '1'), 2):10,
(('-1', '4', '2', '2', '-1', '2', '-1', '1'), 3):60.4439154089,
(('1', '0', '1', '0', '1', '1', '1', '1'), 1):111.195479138,
(('1', '2', '2', '2', '0', '2', '1', '2'), 0):443.546328169,
(('4', '-1', '0', '0', '0', '-1', '4', '-1'), 0):72.3644833295,
(('2', '2', '2', '2', '2', '2', '0', '4'), 0):15.4512882502,
(('4', '2', '2', '2', '1', '1', '0', '0'), 1):10,
(('1', '0', '-1', '1', '-1', '-1', '0', '0'), 1):271.807911754,
(('1', '2', '4', '2', '0', '1', '0', '1'), 2):50.6163245164,
(('0', '1', '4', '0', '4', '1', '0', '1'), 0):12.1922940444,
(('2', '2', '0', '2', '1', '0', '1', '1'), 1):221.060789111,
(('1', '1', '4', '1', '4', '0', '0', '0'), 0):11.5203642808,
(('0', '0', '1', '0', '1', '1', '0', '4'), 1):0,
(('2', '-1', '2', '2', '1', '-1', '4', '-1'), 1):10,
(('0', '2', '1', '-1', '2', '2', '-1', '-1'), 2):506.714145549,
(('1', '4', '0', '0', '0', '0', '0', '0'), 2):87.8413836851,
(('2', '2', '1', '2', '1', '0', '1', '1'), 1):254.013231825,
(('0', '4', '0', '0', '0', '4', '0', '0'), 0):60.1055363603,
(('4', '1', '0', '0', '4', '1', '0', '0'), 0):25.1848476176,
(('0', '4', '2', '2', '1', '1', '0', '1'), 3):-109.175587982,
(('0', '2', '1', '2', '1', '1', '2', '0'), 0):318.684640696,
(('4', '0', '-1', '1', '-1', '-1', '0', '0'), 0):233.705804445,
(('2', '2', '1', '-1', '0', '1', '-1', '-1'), 0):167.422039586,
(('-1', '2', '2', '-1', '-1', '2', '-1', '-1'), 3):325.525741596,
(('1', '2', '2', '2', '4', '2', '2', '0'), 3):10,
(('-1', '2', '1', '2', '-1', '0', '-1', '4'), 2):155.310526021,
(('0', '2', '-1', '4', '-1', '-1', '1', '0'), 0):105.74593915,
(('1', '1', '1', '1', '1', '1', '1', '0'), 0):200.879876138,
(('2', '2', '1', '2', '2', '1', '0', '0'), 2):334.728685608,
(('0', '1', '-1', '1', '-1', '-1', '0', '1'), 3):249.444018281,
(('1', '0', '-1', '4', '-1', '-1', '1', '4'), 3):241.008759781,
(('0', '4', '4', '-1', '0', '4', '-1', '-1'), 0):11.9052811248,
(('1', '-1', '0', '2', '4', '-1', '0', '-1'), 1):137.654533714,
(('0', '0', '1', '0', '0', '1', '4', '0'), 3):41.337425501,
(('4', '2', '0', '2', '1', '0', '2', '0'), 1):10,
(('4', '-1', '1', '1', '0', '-1', '0', '-1'), 1):130.875854255,
(('1', '2', '-1', '4', '-1', '-1', '1', '1'), 0):112.042100364,
(('1', '1', '4', '-1', '1', '0', '-1', '-1'), 1):224.771033987,
(('4', '2', '1', '2', '1', '1', '1', '0'), 2):10.0,
(('1', '2', '2', '4', '1', '1', '4', '4'), 3):10,
(('1', '0', '0', '0', '0', '0', '4', '0'), 2):8.78874879948,
(('2', '2', '1', '-1', '1', '0', '-1', '-1'), 1):304.982431008,
(('4', '2', '0', '2', '4', '2', '4', '2'), 2):141.426160948,
(('0', '-1', '-1', '0', '-1', '-1', '4', '-1'), 3):155.926499806,
(('1', '1', '1', '4', '1', '1', '0', '0'), 3):170.936274593,
(('4', '2', '0', '2', '0', '0', '2', '1'), 2):149.316349428,
(('1', '2', '0', '2', '0', '4', '4', '4'), 2):10,
(('2', '2', '2', '4', '2', '2', '0', '4'), 1):133.043505353,
(('4', '1', '1', '1', '1', '1', '0', '1'), 1):186.950200472,
(('0', '2', '0', '2', '0', '0', '2', '4'), 0):10,
(('2', '2', '2', '2', '2', '1', '2', '1'), 1):386.876787502,
(('1', '2', '4', '2', '4', '1', '1', '0'), 2):36.4214233482,
(('1', '2', '1', '2', '1', '0', '1', '0'), 1):266.517178925,
(('1', '1', '4', '1', '0', '1', '0', '0'), 2):0,
(('1', '0', '1', '0', '1', '0', '4', '0'), 1):168.898371903,
(('0', '2', '2', '4', '0', '2', '4', '0'), 3):172.925866127,
(('0', '0', '1', '1', '0', '4', '0', '1'), 3):54.9189988022,
(('0', '0', '1', '1', '0', '1', '1', '1'), 1):38.7696034163,
(('1', '0', '4', '0', '1', '4', '1', '0'), 2):93.8400871958,
(('1', '0', '4', '0', '0', '0', '0', '0'), 0):161.892120743,
(('0', '2', '1', '2', '4', '1', '2', '2'), 0):21.4411904316,
(('2', '2', '0', '2', '4', '1', '0', '2'), 0):60,
(('0', '1', '1', '0', '0', '1', '0', '1'), 0):215.379829965,
(('0', '2', '1', '2', '2', '0', '2', '4'), 2):10,
(('1', '0', '0', '0', '1', '4', '0', '0'), 2):10,
(('1', '0', '0', '-1', '0', '1', '-1', '-1'), 1):200.619026715,
(('1', '2', '2', '2', '2', '2', '1', '1'), 0):444.288366226,
(('1', '-1', '4', '2', '0', '-1', '1', '-1'), 2):253.412018121,
(('1', '0', '1', '1', '4', '0', '1', '1'), 3):118.639912001,
(('-1', '2', '1', '2', '-1', '4', '-1', '4'), 1):62.3179992693,
(('0', '2', '1', '4', '0', '2', '0', '4'), 0):54.3495705268,
(('-1', '0', '1', '-1', '-1', '0', '-1', '-1'), 2):263.405871615,
(('0', '1', '0', '0', '0', '1', '0', '4'), 1):91.8291106254,
(('0', '4', '-1', '0', '-1', '-1', '0', '1'), 2):57.8528495074,
(('0', '0', '1', '-1', '4', '1', '-1', '-1'), 1):103.514558677,
(('1', '1', '0', '1', '0', '1', '0', '0'), 1):176.268625695,
(('-1', '2', '4', '2', '-1', '0', '-1', '1'), 2):262.118112455,
(('4', '-1', '1', '-1', '0', '-1', '-1', '-1'), 1):224.01909345,
(('0', '4', '4', '2', '4', '0', '2', '4'), 2):10,
(('4', '0', '-1', '0', '-1', '-1', '1', '0'), 0):207.440527728,
(('1', '4', '1', '-1', '1', '4', '-1', '-1'), 3):225.080804795,
(('0', '1', '1', '0', '1', '0', '1', '0'), 2):40.8694264847,
(('0', '2', '1', '-1', '2', '1', '-1', '-1'), 0):295.527633446,
(('4', '2', '2', '2', '0', '0', '4', '0'), 3):105.044413342,
(('4', '2', '0', '2', '4', '2', '2', '2'), 2):10,
(('1', '0', '1', '0', '4', '0', '0', '0'), 0):81.6854879983,
(('0', '1', '-1', '4', '-1', '-1', '0', '1'), 1):247.995073468,
(('1', '0', '1', '4', '0', '0', '0', '0'), 2):0,
(('1', '-1', '1', '1', '0', '-1', '4', '-1'), 1):60.4578863476,
(('1', '2', '0', '2', '0', '1', '1', '1'), 3):105.377860399,
(('0', '2', '1', '-1', '4', '4', '-1', '-1'), 2):10,
(('4', '2', '2', '2', '2', '2', '4', '2'), 0):84.9876071602,
(('2', '2', '4', '2', '1', '4', '1', '0'), 1):202.540840704,
(('0', '0', '1', '4', '1', '1', '4', '4'), 1):0,
(('0', '1', '1', '-1', '0', '1', '-1', '-1'), 1):236.016437404,
(('0', '2', '2', '2', '0', '2', '1', '1'), 0):347.448967013,
(('4', '-1', '2', '2', '1', '-1', '0', '-1'), 0):168.043910963,
(('1', '0', '-1', '0', '-1', '-1', '0', '4'), 3):87.4801382349,
(('4', '1', '4', '1', '4', '1', '0', '1'), 1):-10,
(('1', '2', '4', '2', '1', '1', '1', '1'), 0):85.6874111636,
(('1', '1', '4', '1', '4', '4', '1', '1'), 3):-10,
(('1', '4', '1', '4', '1', '0', '4', '4'), 2):0,
(('1', '4', '4', '0', '4', '4', '0', '0'), 2):10,
(('4', '2', '1', '2', '0', '2', '0', '2'), 2):110.960375021,
(('0', '2', '1', '4', '1', '0', '0', '0'), 3):112.916215958,
(('0', '4', '0', '1', '0', '4', '0', '4'), 2):-1.44895499463,
(('0', '0', '-1', '1', '-1', '-1', '0', '0'), 2):296.180241028,
(('1', '0', '4', '1', '4', '0', '1', '1'), 0):34.4285238288,
(('1', '2', '0', '-1', '4', '1', '-1', '-1'), 0):156.294141611,
(('0', '1', '-1', '4', '-1', '-1', '0', '0'), 2):237.154537547,
(('4', '-1', '1', '1', '0', '-1', '1', '-1'), 2):119.112443152,
(('0', '2', '0', '4', '0', '0', '0', '0'), 2):60.4952306678,
(('-1', '1', '0', '0', '-1', '0', '-1', '0'), 3):229.99302631,
(('1', '0', '0', '0', '1', '1', '0', '0'), 0):81.1931622994,
(('0', '4', '1', '1', '0', '0', '0', '0'), 0):179.207964435,
(('2', '2', '4', '-1', '1', '4', '-1', '-1'), 2):274.34675294,
(('1', '1', '0', '1', '1', '0', '1', '1'), 3):203.798368678,
(('0', '0', '4', '1', '0', '0', '0', '1'), 1):191.555322816,
(('4', '2', '2', '4', '0', '2', '4', '4'), 0):10,
(('0', '4', '2', '-1', '4', '0', '-1', '-1'), 3):10,
(('0', '1', '-1', '4', '-1', '-1', '1', '4'), 0):-566.917766419,
(('-1', '2', '2', '2', '-1', '1', '-1', '4'), 1):65.7068220025,
(('0', '1', '0', '0', '1', '1', '0', '1'), 3):148.739120695,
(('1', '-1', '0', '1', '1', '-1', '0', '-1'), 2):275.909792868,
(('-1', '4', '1', '-1', '-1', '0', '-1', '-1'), 1):155.509041853,
(('-1', '1', '0', '-1', '-1', '1', '-1', '-1'), 0):252.571849472,
(('0', '2', '0', '4', '1', '2', '4', '0'), 0):39.6367870259,
(('1', '2', '0', '2', '2', '0', '2', '0'), 2):395.820629763,
(('1', '0', '4', '1', '1', '0', '0', '0'), 1):109.453606288,
(('4', '-1', '1', '2', '0', '-1', '0', '-1'), 2):215.868899808,
(('1', '0', '4', '1', '0', '4', '1', '1'), 2):25.1003123113,
(('2', '4', '0', '-1', '1', '4', '-1', '-1'), 2):30,
(('1', '2', '0', '2', '4', '0', '1', '0'), 3):17.5416749716,
(('0', '1', '1', '4', '0', '1', '0', '1'), 0):198.537261303,
(('1', '0', '-1', '4', '-1', '-1', '1', '0'), 1):263.508484753,
(('1', '4', '-1', '1', '-1', '-1', '0', '0'), 0):104.588188673,
(('4', '2', '1', '4', '0', '0', '4', '4'), 0):10,
(('1', '1', '0', '-1', '1', '1', '-1', '-1'), 1):268.955164856,
(('2', '2', '2', '2', '2', '2', '1', '0'), 2):365.414431821,
(('1', '2', '1', '2', '1', '2', '0', '1'), 2):80,
(('0', '-1', '0', '2', '1', '-1', '2', '-1'), 0):460.876796355,
(('0', '2', '2', '2', '4', '4', '0', '0'), 3):10,
(('0', '4', '1', '1', '0', '0', '1', '1'), 3):10,
(('2', '2', '1', '2', '2', '0', '0', '0'), 2):350.639460197,
(('4', '2', '1', '2', '0', '1', '0', '1'), 0):182.306626349,
(('1', '2', '4', '2', '4', '0', '2', '0'), 2):121.776099455,
(('-1', '0', '1', '0', '-1', '0', '-1', '0'), 3):245.017090972,
(('2', '2', '0', '2', '1', '4', '2', '2'), 2):11.8,
(('2', '2', '4', '2', '0', '0', '2', '1'), 3):170,
(('1', '0', '4', '0', '0', '0', '0', '0'), 2):168.127391318,
(('0', '0', '1', '1', '0', '1', '0', '0'), 1):211.427116561,
(('0', '-1', '0', '-1', '4', '-1', '-1', '-1'), 0):210.860872195,
(('4', '1', '4', '-1', '0', '4', '-1', '-1'), 1):0,
(('0', '2', '4', '-1', '0', '1', '-1', '-1'), 2):257.620322232,
(('2', '2', '2', '4', '2', '0', '0', '4'), 3):500.963734045,
(('1', '-1', '1', '0', '4', '-1', '0', '-1'), 0):187.953150508,
(('1', '0', '0', '4', '1', '0', '0', '0'), 0):117.924178829,
(('1', '-1', '1', '1', '4', '-1', '1', '-1'), 0):143.171352757,
(('1', '2', '2', '-1', '1', '0', '-1', '-1'), 3):323.43373547,
(('4', '1', '0', '-1', '1', '0', '-1', '-1'), 3):42.3880052155,
(('1', '2', '4', '-1', '4', '1', '-1', '-1'), 0):58.3749191907,
(('2', '2', '2', '2', '2', '2', '2', '1'), 3):644.031241275,
(('0', '2', '1', '2', '1', '4', '0', '4'), 0):71.3075480246,
(('2', '4', '1', '2', '0', '0', '0', '2'), 0):-1000,
(('0', '0', '-1', '0', '-1', '-1', '0', '1'), 1):181.960683187,
(('4', '1', '4', '0', '0', '0', '4', '0'), 0):50,
(('0', '4', '-1', '2', '-1', '-1', '1', '4'), 2):203.731150028,
(('1', '0', '-1', '0', '-1', '-1', '1', '1'), 1):219.436446299,
(('0', '-1', '1', '4', '1', '-1', '1', '-1'), 0):50.7136268812,
(('1', '1', '1', '4', '1', '1', '4', '1'), 1):44.2457193211,
(('0', '1', '0', '1', '1', '0', '1', '1'), 1):129.297672926,
(('4', '0', '1', '1', '4', '0', '1', '0'), 3):10,
(('4', '-1', '0', '1', '1', '-1', '1', '-1'), 0):77.4147208652,
(('0', '0', '1', '-1', '0', '1', '-1', '-1'), 2):246.832297286,
(('1', '1', '-1', '1', '-1', '-1', '1', '0'), 1):253.622689091,
(('1', '2', '0', '2', '0', '2', '1', '2'), 0):485.086652185,
(('-1', '1', '0', '0', '-1', '0', '-1', '1'), 0):237.348313698,
(('1', '1', '1', '4', '1', '1', '1', '0'), 2):144.590945976,
(('4', '2', '-1', '2', '-1', '-1', '1', '1'), 0):305.749327471,
(('0', '2', '4', '4', '0', '0', '0', '0'), 0):10,
(('2', '2', '0', '2', '0', '0', '2', '4'), 2):185.024258421,
(('4', '1', '0', '0', '4', '4', '4', '0'), 0):0,
(('1', '2', '4', '2', '1', '4', '0', '0'), 0):50.3652022481,
(('4', '0', '1', '1', '0', '0', '4', '0'), 1):8.97285276631,
(('4', '1', '1', '0', '0', '1', '0', '1'), 2):178.328290654,
(('1', '1', '0', '0', '4', '1', '0', '0'), 0):-10.0,
(('1', '2', '1', '2', '1', '2', '1', '2'), 2):378.03209454,
(('1', '0', '1', '1', '1', '0', '1', '1'), 1):233.425152271,
(('4', '2', '1', '2', '0', '1', '0', '0'), 0):204.025548882,
(('0', '2', '1', '2', '1', '0', '0', '2'), 2):430.381432584,
(('1', '-1', '0', '0', '0', '-1', '4', '-1'), 2):10,
(('1', '2', '1', '2', '0', '1', '1', '1'), 2):198.611127052,
(('2', '4', '2', '-1', '4', '0', '-1', '-1'), 3):10,
(('0', '0', '-1', '4', '-1', '-1', '0', '4'), 1):47.714452818,
(('1', '4', '1', '0', '0', '4', '1', '0'), 0):10,
(('-1', '2', '4', '2', '-1', '0', '-1', '0'), 1):208.896006072,
(('0', '1', '1', '0', '1', '4', '0', '1'), 3):10,
(('1', '2', '4', '2', '0', '0', '1', '0'), 2):230.209456009,
(('0', '-1', '4', '-1', '1', '-1', '-1', '-1'), 0):262.28332956,
(('2', '4', '2', '2', '0', '2', '0', '4'), 1):10,
(('0', '0', '1', '1', '1', '0', '4', '0'), 0):-0.2,
(('0', '1', '0', '4', '0', '1', '4', '1'), 0):50,
(('1', '2', '0', '4', '1', '0', '4', '0'), 0):10,
(('0', '1', '1', '4', '0', '1', '0', '0'), 3):178.088216604,
(('1', '4', '4', '4', '0', '4', '1', '4'), 1):10,
(('2', '2', '1', '2', '1', '0', '4', '0'), 1):225.778264949,
(('1', '-1', '4', '1', '4', '-1', '1', '-1'), 2):192.069854852,
(('-1', '4', '0', '4', '-1', '0', '-1', '4'), 3):26.7753438228,
(('1', '2', '2', '2', '1', '0', '4', '4'), 3):61.2507817049,
(('0', '2', '1', '2', '1', '2', '0', '4'), 0):256.773921719,
(('-1', '1', '0', '1', '-1', '1', '-1', '0'), 3):237.970119201,
(('0', '0', '4', '1', '1', '4', '0', '1'), 3):10,
(('0', '1', '1', '0', '1', '1', '1', '0'), 0):176.662251749,
(('0', '0', '1', '1', '1', '1', '0', '1'), 1):155.788574322,
(('2', '2', '0', '2', '0', '0', '2', '1'), 0):10,
(('1', '0', '1', '4', '0', '0', '0', '4'), 3):0,
(('1', '2', '2', '2', '1', '1', '1', '2'), 3):330.390732382,
(('4', '0', '1', '-1', '1', '0', '-1', '-1'), 3):256.026164686,
(('1', '2', '4', '2', '0', '4', '0', '2'), 2):10,
(('4', '1', '0', '4', '4', '1', '4', '1'), 2):-150,
(('2', '2', '1', '2', '1', '0', '2', '2'), 0):432.603877034,
(('0', '2', '0', '2', '1', '2', '4', '0'), 2):10,
(('1', '4', '2', '-1', '1', '2', '-1', '-1'), 3):10,
(('-1', '0', '1', '1', '-1', '0', '-1', '1'), 3):225.170810863,
(('1', '2', '0', '2', '0', '4', '2', '2'), 2):-59.1724590977,
(('0', '0', '1', '1', '0', '1', '4', '0'), 2):37.4993176952,
(('0', '1', '0', '1', '1', '0', '0', '1'), 2):194.127025526,
(('1', '1', '1', '1', '1', '0', '1', '1'), 1):212.027101245,
(('0', '1', '4', '4', '0', '1', '1', '4'), 3):10,
(('-1', '4', '0', '2', '-1', '4', '-1', '0'), 1):24.0075674842,
(('-1', '4', '1', '0', '-1', '0', '-1', '0'), 3):145.229329058,
(('1', '4', '0', '1', '0', '4', '1', '4'), 2):49.3435531495,
(('1', '0', '4', '0', '4', '0', '1', '0'), 2):37.636718535,
(('1', '2', '0', '2', '1', '0', '2', '0'), 0):337.216579602,
(('4', '2', '4', '2', '0', '4', '1', '1'), 2):50,
(('1', '2', '2', '4', '2', '2', '4', '0'), 3):10,
(('1', '0', '0', '0', '0', '4', '0', '0'), 2):67.1838789588,
(('1', '2', '1', '2', '0', '1', '0', '0'), 0):229.371479073,
(('4', '4', '0', '4', '0', '4', '0', '4'), 3):50,
(('2', '2', '1', '2', '2', '4', '2', '2'), 1):52.9999817882,
(('-1', '2', '1', '4', '-1', '1', '-1', '1'), 1):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '0'), 1):262.857405962,
(('1', '2', '4', '-1', '0', '4', '-1', '-1'), 1):226.981419402,
(('2', '4', '2', '2', '0', '0', '2', '4'), 3):134.379476822,
(('4', '2', '0', '2', '0', '2', '4', '1'), 0):224.285870988,
(('1', '0', '4', '1', '0', '0', '1', '1'), 1):131.556821837,
(('0', '1', '4', '1', '4', '1', '0', '1'), 1):64.2360836101,
(('0', '-1', '0', '4', '0', '-1', '1', '-1'), 0):164.992535276,
(('0', '2', '2', '2', '1', '0', '1', '0'), 3):312.773491883,
(('1', '4', '4', '2', '4', '4', '1', '2'), 2):10,
(('2', '2', '0', '4', '0', '0', '0', '4'), 1):148.351889257,
(('1', '1', '0', '0', '0', '0', '1', '1'), 2):121.871226027,
(('4', '0', '1', '0', '1', '0', '0', '0'), 1):216.761221142,
(('1', '0', '-1', '1', '-1', '-1', '1', '4'), 2):251.860658398,
(('1', '4', '0', '2', '0', '0', '2', '0'), 2):177.587891806,
(('-1', '4', '1', '1', '-1', '0', '-1', '0'), 2):79.2731349582,
(('2', '2', '2', '2', '0', '0', '1', '4'), 3):218.244551096,
(('1', '2', '4', '2', '1', '1', '2', '0'), 2):42.0362691317,
(('2', '2', '2', '2', '1', '0', '2', '1'), 1):98.1431211167,
(('0', '4', '1', '1', '0', '4', '0', '0'), 3):10,
(('0', '4', '-1', '1', '-1', '-1', '1', '1'), 2):247.533831232,
(('1', '2', '-1', '2', '-1', '-1', '2', '4'), 2):269.812606982,
(('0', '1', '0', '0', '4', '0', '0', '0'), 2):214.413988225,
(('4', '-1', '0', '-1', '4', '-1', '-1', '-1'), 3):0,
(('1', '1', '1', '4', '0', '1', '0', '1'), 3):21.7323624329,
(('-1', '2', '0', '4', '-1', '1', '-1', '1'), 0):39.4817273551,
(('1', '1', '1', '0', '1', '0', '0', '4'), 0):0,
(('1', '-1', '0', '4', '1', '-1', '1', '-1'), 2):125.659841402,
(('-1', '2', '2', '2', '-1', '2', '-1', '2'), 1):336.503191849,
(('0', '1', '1', '-1', '1', '1', '-1', '-1'), 0):264.401116512,
(('2', '-1', '0', '2', '0', '-1', '4', '-1'), 1):249.01474336,
(('2', '2', '0', '2', '2', '2', '0', '0'), 2):607.894869294,
(('0', '0', '1', '1', '4', '1', '0', '0'), 1):10,
(('0', '0', '0', '1', '1', '1', '0', '0'), 3):0,
(('4', '2', '0', '2', '4', '0', '1', '0'), 1):90.4665567676,
(('1', '0', '4', '1', '4', '0', '1', '0'), 3):-10,
(('1', '4', '1', '0', '1', '1', '0', '1'), 1):-110.715199805,
(('0', '1', '0', '1', '0', '0', '4', '1'), 3):190.226438617,
(('4', '2', '2', '2', '2', '0', '2', '0'), 3):10,
(('0', '0', '0', '0', '0', '4', '0', '0'), 0):102.705315536,
(('0', '1', '1', '1', '1', '0', '1', '0'), 1):85.8529965346,
(('0', '4', '0', '2', '0', '4', '1', '4'), 0):10,
(('1', '4', '1', '1', '0', '0', '0', '1'), 0):0,
(('0', '2', '1', '4', '0', '1', '4', '1'), 0):-100,
(('4', '2', '1', '2', '1', '0', '1', '1'), 2):10,
(('2', '2', '1', '4', '1', '1', '2', '4'), 1):116.042193841,
(('1', '4', '0', '2', '0', '4', '1', '4'), 1):32.8587706613,
(('1', '2', '1', '2', '1', '1', '4', '0'), 0):210.428082312,
(('4', '2', '2', '-1', '1', '2', '-1', '-1'), 0):273.422516475,
(('4', '1', '4', '1', '0', '0', '1', '1'), 0):0,
(('2', '2', '0', '2', '1', '1', '2', '2'), 2):252.791022009,
(('1', '1', '0', '0', '0', '0', '0', '1'), 2):206.574860287,
(('1', '1', '0', '0', '0', '4', '1', '0'), 1):0,
(('0', '-1', '1', '4', '0', '-1', '0', '-1'), 2):147.363486362,
(('2', '4', '1', '2', '1', '1', '0', '1'), 1):52.9146218528,
(('-1', '0', '4', '0', '-1', '0', '-1', '0'), 3):171.252113275,
(('1', '2', '2', '-1', '4', '2', '-1', '-1'), 3):388.334015067,
(('0', '2', '1', '2', '4', '2', '0', '0'), 0):243.099678804,
(('2', '2', '4', '2', '0', '0', '0', '0'), 2):50.0,
(('1', '4', '0', '1', '0', '0', '0', '0'), 3):116.731432935,
(('1', '2', '1', '2', '1', '4', '2', '2'), 2):492.897257085,
(('0', '2', '0', '2', '2', '2', '1', '0'), 0):64.9499366641,
(('1', '4', '-1', '1', '-1', '-1', '0', '0'), 1):129.515196084,
(('4', '1', '-1', '1', '-1', '-1', '0', '0'), 1):204.056816999,
(('2', '2', '1', '2', '4', '0', '4', '0'), 1):20,
(('1', '4', '1', '0', '1', '4', '0', '0'), 1):4.23615925294,
(('0', '-1', '1', '0', '4', '-1', '0', '-1'), 1):177.972091014,
(('0', '2', '1', '4', '1', '1', '0', '1'), 3):125.137402644,
(('0', '2', '1', '4', '0', '1', '1', '0'), 3):10,
(('-1', '1', '4', '1', '-1', '0', '-1', '0'), 0):180.07984065,
(('1', '0', '0', '1', '0', '0', '4', '0'), 0):163.956116748,
(('0', '2', '2', '2', '0', '2', '0', '2'), 3):334.534252205,
(('-1', '1', '0', '1', '-1', '1', '-1', '0'), 2):223.886095401,
(('1', '2', '1', '2', '1', '0', '2', '0'), 2):329.329137836,
(('2', '2', '4', '2', '1', '4', '0', '1'), 1):56.2806520346,
(('-1', '4', '0', '2', '-1', '4', '-1', '0'), 2):21.8055679422,
(('1', '2', '4', '2', '1', '1', '1', '2'), 2):193.963632222,
(('1', '2', '1', '2', '0', '4', '0', '0'), 1):11.44,
(('1', '2', '0', '2', '0', '1', '2', '2'), 0):153.984411721,
(('4', '0', '1', '1', '1', '0', '0', '1'), 3):-10,
(('0', '4', '-1', '2', '-1', '-1', '0', '2'), 2):342.448566205,
(('2', '4', '0', '4', '2', '0', '1', '4'), 1):10,
(('1', '1', '0', '0', '0', '0', '4', '0'), 3):81.6870128886,
(('1', '1', '-1', '4', '-1', '-1', '1', '4'), 0):176.968427634,
(('1', '2', '0', '2', '1', '0', '4', '1'), 0):36.0344203981,
(('1', '1', '1', '-1', '0', '0', '-1', '-1'), 1):244.210313435,
(('0', '2', '1', '2', '4', '1', '0', '1'), 3):206.175454939,
(('1', '1', '0', '1', '0', '4', '0', '0'), 1):3.8,
(('2', '2', '4', '2', '2', '1', '0', '0'), 1):149.305203661,
(('0', '1', '0', '4', '0', '0', '1', '4'), 1):0,
(('2', '4', '2', '-1', '1', '1', '-1', '-1'), 1):66.4958292895,
(('1', '4', '1', '2', '0', '4', '1', '0'), 1):10,
(('1', '-1', '-1', '1', '-1', '-1', '1', '-1'), 3):255.339231917,
(('4', '-1', '1', '4', '1', '-1', '4', '-1'), 1):50,
(('0', '0', '4', '1', '4', '0', '0', '0'), 0):-487.078401147,
(('1', '2', '4', '2', '0', '4', '1', '0'), 3):30.6577920484,
(('0', '1', '1', '0', '4', '1', '0', '1'), 0):176.473234716,
(('0', '1', '1', '0', '4', '0', '0', '1'), 0):21.4863564707,
(('2', '2', '2', '2', '0', '2', '1', '1'), 1):335.526413541,
(('0', '1', '1', '1', '0', '0', '4', '1'), 1):0,
(('1', '2', '0', '2', '1', '0', '2', '4'), 2):159.628756905,
(('1', '1', '4', '0', '1', '1', '0', '1'), 0):-10,
(('0', '1', '0', '1', '4', '0', '0', '1'), 1):171.126685233,
(('0', '1', '4', '1', '4', '1', '0', '0'), 0):10,
(('2', '2', '2', '2', '2', '0', '1', '0'), 3):338.889235405,
(('1', '2', '2', '2', '2', '4', '2', '0'), 0):10,
(('0', '-1', '2', '2', '1', '-1', '0', '-1'), 2):326.834415891,
(('0', '2', '4', '2', '0', '1', '0', '1'), 3):224.088174893,
(('4', '1', '1', '0', '0', '1', '0', '0'), 2):206.870187783,
(('0', '2', '0', '2', '1', '0', '0', '1'), 2):222.869265477,
(('0', '2', '0', '2', '0', '0', '0', '0'), 3):243.123777477,
(('4', '2', '1', '2', '4', '0', '1', '0'), 1):10,
(('1', '0', '1', '-1', '0', '1', '-1', '-1'), 1):270.69147719,
(('2', '4', '1', '2', '2', '0', '2', '2'), 2):10,
(('0', '1', '4', '0', '0', '4', '0', '1'), 3):25.7422207527,
(('0', '2', '0', '-1', '0', '1', '-1', '-1'), 0):294.845027004,
(('1', '1', '1', '1', '4', '0', '0', '0'), 0):-10,
(('4', '0', '0', '0', '1', '0', '4', '0'), 2):10,
(('4', '2', '1', '-1', '0', '0', '-1', '-1'), 0):241.678444686,
(('1', '4', '0', '1', '1', '0', '1', '4'), 1):169.429812703,
(('1', '2', '2', '2', '2', '4', '2', '0'), 3):11.8,
(('0', '-1', '4', '0', '0', '-1', '0', '-1'), 1):218.412022478,
(('4', '1', '1', '-1', '0', '0', '-1', '-1'), 2):54.674437538,
(('2', '2', '0', '-1', '1', '4', '-1', '-1'), 2):94.5391243317,
(('1', '2', '-1', '2', '-1', '-1', '2', '1'), 2):461.209702745,
(('0', '1', '0', '1', '4', '1', '1', '1'), 1):0,
(('2', '2', '2', '2', '2', '0', '2', '1'), 3):378.931637007,
(('1', '2', '4', '2', '4', '4', '1', '2'), 2):260.402664488,
(('0', '0', '1', '0', '1', '1', '4', '0'), 3):10,
(('4', '2', '4', '2', '4', '0', '1', '2'), 0):58.9128325494,
(('1', '1', '0', '4', '0', '0', '0', '1'), 1):144.082608882,
(('-1', '2', '4', '2', '-1', '1', '-1', '0'), 3):109.390981172,
(('-1', '4', '4', '-1', '-1', '4', '-1', '-1'), 2):-10,
(('1', '2', '0', '2', '4', '0', '1', '1'), 1):199.47148616,
(('0', '4', '2', '2', '0', '1', '0', '1'), 3):10,
(('0', '1', '1', '4', '0', '0', '4', '0'), 2):0,
(('4', '2', '4', '2', '1', '0', '0', '0'), 1):10,
(('1', '1', '1', '4', '0', '1', '0', '4'), 3):0,
(('4', '4', '1', '0', '4', '1', '4', '0'), 0):10,
(('0', '1', '4', '1', '4', '4', '0', '1'), 2):130.674870199,
(('2', '4', '-1', '2', '-1', '-1', '0', '0'), 1):275.551455569,
(('4', '0', '0', '1', '0', '0', '4', '0'), 0):155.095356843,
(('4', '2', '2', '2', '0', '2', '4', '0'), 3):155.691347507,
(('4', '2', '2', '2', '4', '2', '2', '0'), 3):1310,
(('0', '2', '1', '2', '0', '1', '1', '1'), 3):222.276785458,
(('1', '1', '0', '0', '1', '1', '1', '0'), 2):10,
(('0', '4', '-1', '2', '-1', '-1', '2', '1'), 2):372.027865551,
(('4', '-1', '0', '1', '0', '-1', '1', '-1'), 1):228.629354231,
(('4', '2', '0', '2', '4', '2', '0', '2'), 0):-33.8279084284,
(('1', '-1', '0', '4', '0', '-1', '0', '-1'), 3):152.487441104,
(('0', '0', '-1', '0', '-1', '-1', '0', '4'), 0):0,
(('1', '4', '-1', '0', '-1', '-1', '1', '0'), 3):250.119560397,
(('0', '4', '1', '2', '1', '0', '0', '0'), 1):10,
(('1', '2', '0', '2', '4', '2', '1', '0'), 0):119.257490661,
(('4', '2', '1', '2', '1', '1', '4', '4'), 1):10,
(('2', '2', '2', '2', '2', '2', '4', '1'), 3):133.927508126,
(('2', '2', '1', '2', '1', '4', '0', '2'), 2):10,
(('0', '0', '4', '1', '1', '0', '0', '0'), 0):0,
(('0', '1', '1', '1', '0', '0', '0', '0'), 3):221.414699991,
(('1', '-1', '1', '0', '1', '-1', '1', '-1'), 3):297.929456063,
(('0', '-1', '0', '2', '1', '-1', '1', '-1'), 3):106.663594417,
(('1', '0', '4', '1', '4', '0', '1', '0'), 0):108.888012077,
(('1', '1', '0', '4', '0', '0', '1', '4'), 0):5.57732708638,
(('0', '-1', '0', '2', '0', '-1', '4', '-1'), 1):84.6420034212,
(('2', '2', '1', '2', '0', '1', '4', '1'), 2):70,
(('4', '1', '1', '1', '4', '0', '1', '0'), 2):-10,
(('1', '2', '4', '2', '1', '0', '0', '1'), 0):66.5923523359,
(('0', '2', '0', '2', '0', '2', '0', '4'), 0):180.32663533,
(('0', '1', '0', '0', '1', '0', '0', '0'), 3):222.01860505,
(('1', '4', '0', '1', '0', '0', '1', '0'), 3):213.280419646,
(('2', '2', '-1', '2', '-1', '-1', '4', '1'), 1):167.178823569,
(('1', '1', '1', '0', '0', '0', '1', '1'), 1):108.775815212,
(('1', '1', '1', '-1', '0', '1', '-1', '-1'), 0):226.852478168,
(('1', '4', '0', '2', '1', '0', '1', '2'), 2):146.169450465,
(('0', '-1', '4', '1', '0', '-1', '1', '-1'), 0):199.400681095,
(('0', '1', '0', '1', '1', '1', '0', '1'), 0):194.350042071,
(('0', '1', '0', '1', '1', '1', '4', '1'), 3):10,
(('1', '0', '4', '0', '1', '0', '1', '0'), 2):237.779835892,
(('1', '1', '1', '1', '0', '1', '0', '4'), 1):82.4785746821,
(('0', '1', '4', '0', '0', '1', '0', '0'), 2):194.773887414,
(('0', '1', '1', '1', '1', '1', '4', '1'), 1):99.4888089249,
(('2', '2', '1', '-1', '1', '4', '-1', '-1'), 2):229.251488941,
(('1', '1', '0', '1', '1', '4', '1', '1'), 3):133.170337944,
(('1', '2', '-1', '2', '-1', '-1', '0', '0'), 3):262.172108048,
(('0', '1', '-1', '4', '-1', '-1', '4', '1'), 0):215.375056155,
(('0', '1', '0', '4', '0', '1', '0', '0'), 0):104.63209362,
(('2', '2', '2', '2', '2', '1', '0', '0'), 1):318.920390212,
(('1', '2', '-1', '4', '-1', '-1', '0', '2'), 0):10,
(('1', '0', '1', '1', '0', '4', '1', '0'), 2):49.3051506357,
(('0', '2', '1', '2', '0', '1', '1', '1'), 1):10,
(('0', '2', '4', '-1', '1', '1', '-1', '-1'), 0):238.429144691,
(('-1', '4', '1', '0', '-1', '4', '-1', '0'), 1):66.4465377479,
(('-1', '1', '1', '4', '-1', '1', '-1', '4'), 0):154.080387359,
(('1', '4', '4', '1', '1', '0', '1', '4'), 2):50,
(('1', '1', '0', '1', '4', '1', '1', '1'), 3):78.3722331347,
(('4', '0', '1', '-1', '4', '0', '-1', '-1'), 0):-582.0,
(('4', '1', '1', '1', '4', '0', '4', '1'), 3):0.483655567123,
(('0', '4', '1', '2', '1', '4', '0', '0'), 3):53.3172187644,
(('2', '2', '4', '2', '2', '4', '2', '0'), 1):85.830124342,
(('4', '1', '0', '1', '0', '0', '4', '4'), 3):0,
(('1', '0', '4', '0', '1', '1', '0', '0'), 2):10,
(('4', '1', '1', '4', '0', '1', '4', '1'), 2):50,
(('4', '-1', '0', '-1', '1', '-1', '-1', '-1'), 0):211.367137001,
(('0', '2', '-1', '4', '-1', '-1', '0', '2'), 0):235.819767802,
(('0', '-1', '4', '2', '0', '-1', '0', '-1'), 1):62.6496281398,
(('0', '2', '-1', '2', '-1', '-1', '1', '0'), 1):276.11664789,
(('2', '2', '0', '4', '0', '0', '2', '2'), 1):10,
(('2', '2', '4', '2', '0', '4', '2', '0'), 3):54.9888011211,
(('0', '1', '4', '0', '4', '4', '0', '1'), 2):47.5944652857,
(('0', '0', '0', '4', '0', '0', '1', '0'), 3):61.0060872704,
(('4', '1', '0', '-1', '1', '1', '-1', '-1'), 0):0,
(('0', '0', '-1', '0', '-1', '-1', '1', '1'), 3):10,
(('-1', '1', '0', '1', '-1', '4', '-1', '1'), 3):208.700910397,
(('0', '-1', '0', '4', '0', '-1', '4', '-1'), 3):9.64,
(('1', '1', '0', '1', '0', '0', '4', '0'), 0):116.401677737,
(('1', '1', '1', '1', '1', '0', '0', '1'), 2):183.457702563,
(('1', '1', '1', '4', '1', '1', '4', '0'), 2):15.3027045944,
(('4', '2', '1', '2', '4', '1', '4', '0'), 0):116.151256747,
(('1', '1', '1', '0', '0', '1', '4', '0'), 1):-10,
(('1', '1', '0', '1', '1', '1', '0', '0'), 2):78.1090212231,
(('0', '4', '0', '-1', '1', '1', '-1', '-1'), 1):10,
(('0', '2', '-1', '4', '-1', '-1', '0', '1'), 2):257.953516869,
(('-1', '2', '4', '-1', '-1', '1', '-1', '-1'), 1):152.76015969,
(('-1', '0', '4', '1', '-1', '4', '-1', '0'), 0):51.8649775337,
(('0', '2', '1', '2', '2', '1', '2', '0'), 2):542.761183136,
(('1', '4', '1', '1', '1', '1', '0', '0'), 3):102.228274656,
(('2', '2', '2', '2', '0', '4', '1', '1'), 3):10,
(('0', '1', '1', '1', '0', '1', '0', '4'), 1):170.194450878,
(('4', '-1', '1', '1', '4', '-1', '1', '-1'), 3):61.6160914047,
(('0', '1', '4', '1', '1', '1', '0', '1'), 3):70.8830409898,
(('0', '-1', '1', '0', '0', '-1', '1', '-1'), 2):158.589018563,
(('1', '2', '-1', '2', '-1', '-1', '1', '1'), 1):313.011712024,
(('4', '1', '1', '0', '1', '0', '0', '1'), 2):44.3606309576,
(('2', '-1', '0', '-1', '2', '-1', '-1', '-1'), 1):350.40411433,
(('4', '1', '4', '1', '0', '4', '0', '1'), 2):49.3431808228,
(('2', '-1', '2', '2', '1', '-1', '1', '-1'), 3):308.356292009,
(('2', '2', '2', '2', '2', '0', '2', '0'), 3):376.168877995,
(('1', '-1', '4', '1', '4', '-1', '0', '-1'), 1):0,
(('1', '4', '2', '2', '1', '4', '1', '4'), 3):90.3224035387,
(('2', '2', '4', '2', '1', '0', '0', '1'), 1):52.1437529905,
(('1', '4', '0', '1', '0', '0', '1', '4'), 3):186.059018019,
(('4', '4', '0', '2', '4', '0', '4', '4'), 0):10,
(('2', '2', '0', '2', '2', '1', '1', '1'), 1):377.294107463,
(('1', '4', '0', '1', '0', '1', '1', '4'), 2):43.2740435349,
(('1', '1', '4', '-1', '1', '1', '-1', '-1'), 2):169.917527532,
(('0', '4', '1', '2', '0', '0', '0', '0'), 3):181.854322423,
(('0', '1', '1', '0', '0', '0', '0', '4'), 3):121.113046918,
(('2', '2', '1', '-1', '2', '1', '-1', '-1'), 2):451.466751218,
(('4', '2', '2', '4', '1', '2', '4', '2'), 0):10,
(('2', '2', '2', '2', '0', '2', '4', '1'), 1):301.421748667,
(('1', '2', '2', '2', '2', '2', '0', '0'), 2):334.958462509,
(('1', '2', '0', '2', '1', '0', '0', '1'), 3):8.0,
(('1', '2', '2', '4', '1', '0', '0', '0'), 3):191.466993028,
(('1', '0', '0', '0', '4', '0', '1', '0'), 0):112.370510407,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '1'), 2):239.629184589,
(('2', '2', '1', '2', '2', '2', '0', '1'), 1):10,
(('4', '1', '0', '1', '1', '0', '4', '0'), 2):-10,
(('1', '1', '1', '0', '1', '1', '0', '0'), 2):202.08059278,
(('1', '2', '4', '2', '1', '1', '0', '2'), 2):10.0,
(('0', '-1', '0', '2', '1', '-1', '0', '-1'), 1):307.201179549,
(('2', '2', '0', '4', '0', '1', '2', '4'), 1):10,
(('-1', '2', '4', '2', '-1', '4', '-1', '0'), 1):225.187174604,
(('4', '-1', '0', '2', '4', '-1', '4', '-1'), 2):166.844904627,
(('4', '1', '4', '-1', '4', '4', '-1', '-1'), 0):87.6705330214,
(('1', '0', '0', '1', '1', '0', '0', '0'), 2):277.918283663,
(('0', '-1', '2', '2', '2', '-1', '0', '-1'), 2):287.660761515,
(('0', '-1', '-1', '4', '-1', '-1', '1', '-1'), 3):280.052578594,
(('2', '2', '2', '2', '0', '2', '4', '0'), 1):120.692650199,
(('0', '0', '4', '0', '4', '0', '0', '0'), 3):24.6071515724,
(('4', '1', '1', '4', '0', '0', '4', '1'), 2):0,
(('4', '2', '2', '2', '4', '2', '2', '2'), 2):39.8129198538,
(('0', '2', '0', '2', '4', '1', '1', '2'), 0):10,
(('2', '2', '0', '4', '0', '1', '0', '1'), 1):52.3710387394,
(('4', '2', '2', '2', '1', '0', '0', '1'), 3):10,
(('4', '1', '4', '1', '4', '1', '4', '1'), 0):50,
(('0', '-1', '2', '4', '0', '-1', '1', '-1'), 3):13.6,
(('-1', '4', '1', '1', '-1', '1', '-1', '4'), 0):36.9972371939,
(('0', '0', '1', '0', '0', '0', '1', '0'), 1):117.592522456,
(('1', '2', '2', '2', '0', '2', '1', '2'), 3):527.160773368,
(('0', '1', '4', '-1', '1', '0', '-1', '-1'), 3):61.0649912967,
(('4', '1', '0', '4', '0', '0', '4', '0'), 2):3.07830875544,
(('0', '2', '2', '2', '0', '1', '4', '2'), 3):10,
(('1', '4', '1', '4', '1', '0', '1', '0'), 0):10,
(('4', '-1', '0', '0', '0', '-1', '4', '-1'), 1):64.841214045,
(('2', '2', '1', '4', '1', '0', '4', '0'), 1):10,
(('2', '2', '2', '2', '2', '2', '0', '4'), 3):-179.010071633,
(('4', '2', '1', '2', '1', '2', '4', '2'), 2):218.422509858,
(('4', '2', '2', '2', '1', '1', '0', '0'), 0):57.066161599,
(('1', '2', '4', '2', '0', '1', '0', '1'), 3):10,
(('0', '-1', '2', '-1', '2', '-1', '-1', '-1'), 2):334.28887679,
(('4', '1', '1', '1', '0', '1', '4', '0'), 0):11.9313057843,
(('4', '2', '4', '2', '4', '4', '4', '0'), 2):17.704,
(('1', '4', '0', '0', '0', '0', '0', '0'), 3):170.494283052,
(('2', '2', '2', '4', '0', '0', '1', '1'), 3):60,
(('0', '2', '4', '2', '0', '0', '0', '2'), 2):269.967080399,
(('4', '1', '0', '0', '4', '1', '0', '0'), 3):10,
(('2', '2', '2', '2', '0', '1', '0', '2'), 0):-192.0,
(('2', '2', '1', '-1', '0', '1', '-1', '-1'), 1):338.097381999,
(('1', '0', '0', '1', '0', '0', '1', '1'), 3):218.813969574,
(('0', '2', '-1', '4', '-1', '-1', '1', '0'), 3):205.259256315,
(('1', '1', '1', '1', '1', '1', '1', '0'), 1):210.285583572,
(('0', '1', '-1', '1', '-1', '-1', '0', '1'), 2):252.548443572,
(('1', '0', '-1', '4', '-1', '-1', '1', '4'), 0):153.998823995,
(('0', '0', '1', '0', '1', '0', '0', '4'), 0):38.4979477081,
(('1', '1', '1', '0', '1', '1', '4', '0'), 0):226.024239147,
(('1', '-1', '0', '2', '4', '-1', '0', '-1'), 0):226.582970059,
(('0', '2', '1', '2', '1', '1', '0', '4'), 2):84.9799757011,
(('0', '2', '1', '4', '0', '1', '0', '4'), 0):158.505543717,
(('2', '2', '0', '2', '0', '0', '0', '2'), 1):319.587471611,
(('1', '2', '0', '2', '1', '0', '1', '2'), 0):318.888975327,
(('1', '0', '1', '1', '1', '4', '0', '1'), 3):10,
(('4', '1', '0', '0', '0', '1', '4', '1'), 0):72.9174740464,
(('1', '2', '2', '-1', '0', '1', '-1', '-1'), 0):147.361656422,
(('1', '1', '4', '-1', '1', '0', '-1', '-1'), 0):223.265934289,
(('2', '2', '1', '-1', '2', '4', '-1', '-1'), 1):322.484969116,
(('1', '2', '-1', '2', '-1', '-1', '1', '4'), 2):286.699011593,
(('0', '1', '1', '1', '1', '0', '4', '1'), 3):0,
(('1', '1', '1', '4', '1', '1', '0', '0'), 0):203.057583688,
(('1', '4', '2', '2', '0', '4', '0', '4'), 3):20,
(('1', '-1', '1', '1', '1', '-1', '0', '-1'), 2):255.952995861,
(('4', '1', '0', '4', '0', '1', '4', '0'), 2):0,
(('1', '2', '4', '2', '4', '4', '1', '0'), 0):93.9209021168,
(('0', '2', '2', '2', '1', '0', '0', '0'), 2):192.140648197,
(('1', '1', '0', '0', '4', '0', '1', '1'), 0):-10,
(('0', '1', '1', '1', '4', '0', '0', '1'), 2):26.9173582828,
(('1', '1', '0', '0', '1', '0', '1', '4'), 0):10,
(('4', '1', '1', '1', '1', '1', '0', '1'), 0):184.268054231,
(('1', '1', '4', '1', '0', '4', '0', '1'), 1):75.8665349637,
(('1', '0', '0', '1', '1', '1', '0', '0'), 0):20.8406410319,
(('4', '2', '0', '2', '0', '2', '4', '2'), 0):169.223576891,
(('0', '2', '1', '2', '1', '0', '2', '0'), 0):242.865034939,
(('-1', '0', '1', '-1', '-1', '4', '-1', '-1'), 1):108.891517215,
(('1', '-1', '4', '0', '0', '-1', '0', '-1'), 2):10,
(('4', '0', '0', '1', '4', '0', '4', '0'), 1):29.5759922378,
(('4', '-1', '1', '0', '0', '-1', '4', '-1'), 3):61.0424166644,
(('0', '1', '4', '0', '4', '0', '0', '1'), 1):0,
(('1', '0', '4', '0', '0', '0', '0', '0'), 1):180.814127514,
(('0', '1', '4', '0', '0', '0', '1', '1'), 1):0,
(('-1', '4', '2', '2', '-1', '1', '-1', '0'), 1):58.6,
(('2', '2', '0', '2', '4', '1', '0', '2'), 1):77.3078560943,
(('2', '-1', '4', '-1', '0', '-1', '-1', '-1'), 0):10,
(('0', '1', '1', '0', '0', '1', '0', '1'), 3):219.026581991,
(('0', '0', '1', '1', '1', '0', '1', '1'), 0):39.0571013456,
(('1', '1', '-1', '0', '-1', '-1', '4', '1'), 1):56.5613340691,
(('4', '2', '2', '2', '0', '2', '4', '0'), 0):150.931987558,
(('4', '2', '0', '2', '0', '0', '4', '4'), 2):13.9808550199,
(('1', '0', '0', '-1', '0', '1', '-1', '-1'), 2):169.706048543,
(('2', '2', '0', '2', '1', '0', '1', '4'), 2):10,
(('0', '2', '-1', '4', '-1', '-1', '1', '1'), 2):106.849119377,
(('1', '0', '4', '0', '1', '4', '0', '0'), 0):24.4606138983,
(('2', '4', '1', '4', '0', '0', '0', '4'), 1):10,
(('1', '0', '1', '0', '1', '1', '1', '4'), 1):76.8886521191,
(('-1', '1', '0', '4', '-1', '1', '-1', '4'), 2):0,
(('1', '2', '2', '2', '2', '0', '1', '1'), 2):100,
(('0', '1', '0', '0', '0', '1', '0', '4'), 0):0,
(('0', '4', '-1', '0', '-1', '-1', '0', '1'), 1):163.015452521,
(('0', '-1', '1', '-1', '1', '-1', '-1', '-1'), 0):296.845468114,
(('0', '2', '1', '2', '2', '2', '0', '4'), 0):78.1512556485,
(('2', '-1', '0', '4', '1', '-1', '1', '-1'), 1):169.816351773,
(('4', '-1', '1', '-1', '0', '-1', '-1', '-1'), 0):253.08469021,
(('2', '2', '0', '2', '2', '2', '0', '1'), 1):602.144955629,
(('1', '4', '2', '4', '2', '0', '1', '4'), 3):10,
(('0', '1', '1', '0', '1', '0', '1', '0'), 1):10,
(('4', '0', '4', '-1', '4', '0', '-1', '-1'), 1):-10,
(('4', '2', '0', '-1', '4', '2', '-1', '-1'), 2):181.240675749,
(('4', '1', '1', '0', '1', '1', '0', '0'), 3):225.946694909,
(('0', '1', '-1', '4', '-1', '-1', '0', '1'), 2):257.434952403,
(('2', '2', '4', '-1', '0', '0', '-1', '-1'), 1):296.025413049,
(('2', '2', '1', '2', '2', '0', '0', '2'), 0):265.723937136,
(('0', '2', '4', '2', '0', '2', '0', '2'), 0):120.202029977,
(('0', '2', '1', '2', '0', '2', '4', '2'), 0):312.350216109,
(('1', '1', '0', '4', '0', '4', '4', '4'), 3):0,
(('1', '4', '1', '2', '1', '0', '0', '0'), 3):128.297222125,
(('2', '2', '1', '4', '0', '0', '4', '4'), 1):10,
(('2', '4', '0', '2', '0', '0', '0', '2'), 1):140.40161902,
(('1', '0', '1', '4', '1', '1', '4', '4'), 0):86.2548564578,
(('0', '1', '1', '-1', '0', '1', '-1', '-1'), 0):253.083092405,
(('0', '2', '2', '2', '2', '2', '2', '0'), 3):446.151243931,
(('0', '2', '4', '2', '4', '4', '1', '1'), 0):95.0514776406,
(('4', '-1', '0', '1', '4', '-1', '1', '-1'), 1):10,
(('2', '-1', '2', '2', '4', '-1', '0', '-1'), 1):104.476641951,
(('1', '1', '0', '1', '0', '1', '0', '1'), 0):164.277268318,
(('2', '2', '4', '2', '0', '1', '0', '0'), 1):197.802164568,
(('1', '4', '0', '2', '0', '0', '0', '0'), 1):137.710368222,
(('-1', '2', '2', '2', '-1', '0', '-1', '4'), 2):26.2901475576,
(('1', '-1', '1', '-1', '0', '-1', '-1', '-1'), 1):231.650365766,
(('1', '0', '1', '0', '1', '4', '0', '0'), 2):135.529822011,
(('0', '-1', '1', '2', '4', '-1', '1', '-1'), 1):10,
(('1', '1', '1', '-1', '1', '4', '-1', '-1'), 0):210.938345777,
(('1', '-1', '4', '0', '0', '-1', '1', '-1'), 0):-10,
(('4', '2', '2', '2', '4', '2', '4', '2'), 0):73.2860943793,
(('1', '2', '-1', '4', '-1', '-1', '4', '1'), 0):10,
(('0', '2', '0', '4', '0', '0', '0', '0'), 1):56.2243085305,
(('1', '1', '1', '1', '1', '1', '1', '4'), 1):90.5691932259,
(('0', '4', '0', '1', '0', '0', '0', '1'), 3):237.206184791,
(('0', '2', '0', '4', '0', '0', '0', '4'), 2):10,
(('0', '-1', '0', '1', '1', '-1', '1', '-1'), 3):153.213080353,
(('2', '2', '1', '4', '1', '0', '0', '1'), 1):10,
(('0', '4', '1', '1', '0', '0', '0', '0'), 3):131.123602002,
(('0', '2', '4', '4', '0', '0', '0', '0'), 3):10,
(('2', '2', '4', '-1', '1', '4', '-1', '-1'), 1):288.499991176,
(('1', '1', '0', '1', '1', '0', '1', '1'), 2):219.4670539,
(('0', '2', '1', '4', '0', '0', '0', '0'), 0):174.189836645,
(('0', '0', '4', '1', '0', '0', '0', '1'), 0):130.072546039,
(('1', '2', '1', '2', '0', '2', '0', '2'), 0):80.6560459824,
(('1', '-1', '0', '2', '4', '-1', '1', '-1'), 2):259.122047467,
(('0', '0', '-1', '1', '-1', '-1', '4', '4'), 3):10,
(('1', '4', '2', '2', '2', '4', '1', '4'), 3):10,
(('0', '1', '-1', '4', '-1', '-1', '1', '4'), 1):-10,
(('-1', '2', '2', '2', '-1', '1', '-1', '4'), 0):129.077106453,
(('1', '1', '0', '1', '0', '4', '1', '0'), 3):44.2142537356,
(('0', '4', '0', '0', '1', '0', '0', '0'), 0):65.0047711761,
(('-1', '4', '1', '-1', '-1', '0', '-1', '-1'), 0):161.036650646,
(('-1', '1', '0', '-1', '-1', '1', '-1', '-1'), 1):260.712974549,
(('1', '1', '1', '0', '0', '1', '1', '0'), 2):192.536158496,
(('4', '2', '-1', '2', '-1', '-1', '0', '4'), 2):10,
(('2', '2', '2', '2', '0', '1', '1', '0'), 3):156.333013884,
(('1', '0', '0', '1', '4', '0', '1', '0'), 0):219.922574106,
(('0', '2', '2', '4', '2', '2', '1', '4'), 0):540,
(('1', '1', '0', '0', '1', '1', '1', '0'), 1):132.734983868,
(('1', '2', '0', '2', '4', '0', '1', '0'), 2):280.149013226,
(('0', '1', '1', '4', '0', '1', '0', '1'), 3):214.244892038,
(('-1', '0', '4', '-1', '-1', '0', '-1', '-1'), 2):238.641684535,
(('2', '2', '2', '2', '2', '2', '1', '0'), 3):368.654538467,
(('0', '1', '0', '1', '4', '1', '0', '1'), 1):102.299847311,
(('4', '1', '4', '0', '4', '4', '4', '0'), 0):19.0,
(('0', '4', '1', '1', '0', '0', '1', '1'), 2):41.1661984682,
(('2', '-1', '1', '2', '0', '-1', '0', '-1'), 1):274.138773203,
(('1', '2', '0', '2', '1', '0', '4', '4'), 0):10,
(('4', '2', '1', '2', '0', '1', '0', '1'), 1):40,
(('-1', '0', '1', '0', '-1', '0', '-1', '0'), 2):253.03930638,
(('4', '1', '1', '0', '0', '0', '4', '1'), 2):10,
(('0', '-1', '0', '-1', '4', '-1', '-1', '-1'), 1):136.644276937,
(('4', '1', '4', '-1', '0', '4', '-1', '-1'), 0):0,
(('0', '1', '1', '4', '1', '0', '0', '1'), 1):0,
(('1', '-1', '1', '0', '4', '-1', '0', '-1'), 1):180.220446429,
(('1', '1', '0', '0', '1', '1', '4', '0'), 3):0,
(('1', '1', '1', '0', '0', '0', '1', '0'), 3):217.958489312,
(('1', '0', '0', '4', '1', '0', '0', '0'), 3):155.843842059,
(('1', '-1', '1', '1', '4', '-1', '1', '-1'), 1):195.793435968,
(('1', '2', '2', '-1', '1', '0', '-1', '-1'), 0):347.291264253,
(('0', '-1', '0', '2', '1', '-1', '1', '-1'), 0):277.755322008,
(('1', '2', '4', '-1', '4', '1', '-1', '-1'), 1):10,
(('0', '0', '1', '1', '0', '0', '0', '1'), 2):233.000059661,
(('4', '2', '0', '2', '0', '0', '0', '1'), 3):88.2720400376,
(('0', '2', '0', '2', '0', '0', '4', '4'), 2):96.6332449291,
(('-1', '0', '1', '1', '-1', '1', '-1', '0'), 1):239.858756456,
(('0', '-1', '0', '-1', '0', '-1', '-1', '-1'), 2):265.415378107,
(('2', '4', '1', '2', '0', '1', '2', '1'), 1):10,
(('0', '2', '1', '2', '0', '2', '2', '2'), 0):335.01587524,
(('0', '0', '-1', '0', '-1', '-1', '0', '1'), 0):153.123180583,
(('1', '2', '2', '2', '1', '1', '4', '1'), 3):20.931614405,
(('1', '1', '4', '1', '0', '1', '0', '0'), 1):-9.39717508484,
(('2', '2', '2', '2', '0', '0', '4', '4'), 1):0,
(('1', '0', '-1', '0', '-1', '-1', '1', '1'), 0):228.461111177,
(('1', '2', '2', '2', '1', '4', '1', '0'), 0):113.951685487,
(('1', '1', '1', '4', '1', '1', '4', '1'), 0):79.2344207147,
(('0', '1', '0', '1', '1', '0', '1', '1'), 2):209.86082931,
(('0', '4', '4', '4', '4', '0', '0', '0'), 2):-10,
(('0', '2', '1', '4', '1', '0', '0', '4'), 0):82.1188337646,
(('2', '2', '-1', '2', '-1', '-1', '4', '2'), 3):-68.5828040663,
(('1', '1', '0', '1', '4', '0', '0', '0'), 0):41.0716139286,
(('-1', '1', '0', '0', '-1', '0', '-1', '1'), 1):238.125719995,
(('4', '2', '-1', '2', '-1', '-1', '1', '1'), 1):324.055749243,
(('0', '1', '0', '4', '0', '1', '4', '0'), 0):10,
(('4', '2', '1', '2', '0', '0', '0', '2'), 2):429.040326569,
(('1', '1', '0', '0', '4', '0', '1', '1'), 3):0,
(('1', '2', '0', '2', '0', '4', '0', '1'), 2):99.1155832943,
(('0', '2', '1', '2', '0', '2', '1', '2'), 0):150.416625323,
(('4', '-1', '0', '1', '1', '-1', '4', '-1'), 0):-280,
(('2', '4', '1', '-1', '1', '4', '-1', '-1'), 2):10,
(('4', '2', '2', '2', '4', '0', '0', '0'), 1):51.7401496935,
(('1', '2', '1', '2', '0', '1', '0', '2'), 0):309.645571084,
(('1', '0', '1', '1', '1', '0', '1', '1'), 0):204.700906973,
(('4', '2', '1', '2', '0', '1', '0', '0'), 3):238.574660778,
(('0', '-1', '2', '4', '2', '-1', '4', '-1'), 3):38.6377519465,
(('1', '-1', '0', '0', '0', '-1', '4', '-1'), 1):48.5121101209,
(('1', '2', '1', '2', '0', '1', '1', '1'), 3):185.940394882,
(('1', '4', '1', '2', '1', '0', '1', '4'), 2):10,
(('1', '1', '0', '4', '0', '0', '4', '1'), 0):10.0,
(('2', '2', '4', '2', '0', '0', '1', '1'), 1):181.745879782,
(('0', '1', '1', '0', '1', '4', '0', '1'), 2):0,
(('1', '2', '4', '2', '0', '0', '1', '0'), 1):224.237329324,
(('4', '2', '0', '2', '4', '0', '1', '1'), 0):134.961104467,
(('0', '1', '0', '4', '0', '1', '4', '1'), 1):-10,
(('0', '2', '1', '2', '1', '4', '1', '2'), 2):10,
(('0', '0', '4', '0', '0', '0', '0', '1'), 3):10,
(('0', '2', '2', '4', '0', '1', '0', '1'), 3):188.997275715,
(('1', '-1', '4', '1', '4', '-1', '1', '-1'), 1):102.977500226,
(('0', '4', '4', '2', '1', '4', '0', '4'), 3):10,
(('1', '0', '4', '1', '1', '1', '0', '0'), 0):50,
(('0', '2', '2', '2', '2', '2', '0', '1'), 3):338.168357636,
(('2', '-1', '2', '2', '0', '-1', '2', '-1'), 2):368.636103412,
(('0', '2', '1', '4', '0', '0', '4', '2'), 0):140,
(('0', '1', '1', '0', '1', '1', '1', '0'), 1):169.060461258,
(('0', '0', '1', '1', '1', '1', '0', '1'), 2):167.237823508,
(('1', '1', '1', '0', '0', '4', '0', '0'), 1):26.6891993349,
(('1', '2', '4', '2', '4', '1', '1', '1'), 2):10.0,
(('1', '0', '1', '0', '4', '1', '1', '0'), 0):10,
(('1', '2', '2', '2', '1', '1', '1', '2'), 2):600,
(('1', '-1', '0', '1', '4', '-1', '1', '-1'), 3):165.728122404,
(('4', '1', '0', '0', '0', '0', '1', '0'), 1):0,
(('1', '1', '-1', '1', '-1', '-1', '0', '4'), 1):171.765913782,
(('1', '2', '0', '2', '0', '1', '4', '2'), 0):109.893580138,
(('-1', '0', '1', '1', '-1', '0', '-1', '1'), 2):203.072591978,
(('0', '-1', '2', '-1', '1', '-1', '-1', '-1'), 2):325.179480805,
(('1', '1', '0', '4', '1', '0', '1', '1'), 1):0,
(('0', '2', '1', '2', '2', '0', '0', '2'), 2):1304.73559246,
(('1', '4', '2', '2', '2', '4', '0', '0'), 3):20.5613306327,
(('4', '2', '0', '2', '4', '1', '0', '2'), 2):200.273109436,
(('1', '2', '0', '2', '4', '2', '1', '2'), 0):154.508456703,
(('1', '1', '4', '0', '4', '0', '0', '0'), 2):0,
(('-1', '4', '1', '0', '-1', '0', '-1', '0'), 2):194.513370293,
(('1', '4', '0', '2', '1', '0', '1', '4'), 1):61.8695707191,
(('2', '2', '1', '4', '1', '0', '1', '1'), 1):10,
(('4', '-1', '2', '2', '0', '-1', '4', '-1'), 3):229.416021806,
(('2', '2', '2', '2', '0', '2', '1', '2'), 3):280,
(('4', '1', '1', '1', '4', '1', '1', '1'), 1):15.7086003363,
(('1', '0', '0', '0', '0', '4', '0', '0'), 3):10,
(('1', '2', '1', '2', '0', '1', '0', '0'), 1):244.511614341,
(('2', '2', '4', '2', '4', '4', '2', '4'), 1):51.1719612038,
(('2', '2', '1', '4', '2', '1', '4', '0'), 1):10,
(('2', '2', '2', '2', '4', '1', '2', '0'), 3):10,
(('2', '2', '-1', '4', '-1', '-1', '4', '0'), 3):10,
(('4', '2', '2', '2', '4', '0', '4', '2'), 3):123.84081396,
(('1', '0', '4', '1', '0', '0', '1', '1'), 0):82.016013356,
(('0', '1', '4', '1', '4', '1', '0', '1'), 0):67.7821987057,
(('-1', '4', '2', '2', '-1', '1', '-1', '4'), 3):228.058748997,
(('1', '2', '1', '2', '1', '1', '4', '1'), 1):86.6740699274,
(('0', '2', '4', '2', '0', '0', '1', '2'), 0):327.344801523,
(('1', '2', '1', '2', '1', '0', '4', '2'), 2):155.654432354,
(('2', '2', '0', '2', '2', '4', '1', '4'), 1):112.806381083,
(('1', '1', '0', '0', '0', '0', '1', '1'), 1):187.598375677,
(('4', '0', '1', '0', '1', '0', '0', '0'), 0):155.077204981,
(('-1', '4', '0', '0', '-1', '0', '-1', '4'), 2):40.0028299761,
(('0', '2', '0', '2', '0', '2', '4', '2'), 2):-272.182788219,
(('1', '1', '4', '1', '1', '0', '1', '1'), 1):202.914904561,
(('-1', '4', '1', '1', '-1', '0', '-1', '0'), 3):193.673451354,
(('1', '2', '2', '2', '1', '2', '1', '1'), 0):318.412593772,
(('0', '4', '1', '1', '0', '4', '0', '0'), 2):10.9289777242,
(('0', '4', '-1', '1', '-1', '-1', '1', '1'), 1):240.930521799,
(('2', '2', '2', '2', '1', '1', '1', '1'), 3):10,
(('1', '0', '4', '0', '1', '4', '1', '0'), 3):111.936892456,
(('4', '2', '2', '2', '1', '0', '4', '2'), 2):10,
(('4', '-1', '0', '-1', '4', '-1', '-1', '-1'), 0):184.125421448,
(('2', '2', '1', '2', '0', '0', '2', '0'), 1):344.261144867,
(('4', '-1', '2', '2', '1', '-1', '4', '-1'), 1):540,
(('1', '1', '1', '0', '1', '0', '0', '4'), 3):0,
(('1', '2', '1', '2', '1', '4', '1', '2'), 2):194.169891063,
(('-1', '2', '2', '2', '-1', '2', '-1', '2'), 2):60.2678721514,
(('1', '2', '4', '-1', '4', '0', '-1', '-1'), 3):47.4196782272,
(('0', '1', '1', '-1', '1', '1', '-1', '-1'), 1):266.683133753,
(('4', '2', '1', '4', '0', '1', '4', '4'), 0):21.9979248601,
(('1', '2', '2', '2', '0', '2', '1', '4'), 0):10,
(('1', '0', '1', '0', '4', '0', '1', '0'), 0):90.4747471302,
(('1', '1', '1', '1', '4', '0', '1', '0'), 2):76.5743664093,
(('1', '0', '1', '1', '1', '1', '1', '4'), 1):38.5756536017,
(('0', '1', '0', '1', '0', '0', '4', '1'), 0):211.66248957,
(('0', '2', '4', '2', '4', '4', '2', '0'), 0):124.133145228,
(('1', '1', '1', '0', '0', '0', '0', '0'), 0):224.159148939,
(('0', '-1', '4', '2', '1', '-1', '0', '-1'), 0):165.931868365,
(('2', '2', '2', '-1', '1', '2', '-1', '-1'), 1):411.37712247,
(('0', '4', '1', '4', '0', '0', '0', '4'), 2):-10,
(('1', '0', '0', '1', '1', '4', '1', '1'), 2):124.482402669,
(('1', '2', '4', '2', '4', '0', '1', '0'), 3):93.5385520098,
(('1', '1', '4', '1', '4', '0', '0', '0'), 2):36.113611781,
(('-1', '4', '0', '1', '-1', '1', '-1', '1'), 2):71.5929968219,
(('1', '0', '0', '1', '1', '1', '1', '0'), 2):162.553630684,
(('1', '0', '1', '1', '4', '0', '0', '0'), 2):41.6343134842,
(('-1', '0', '0', '1', '-1', '0', '-1', '0'), 0):227.743693199,
(('0', '2', '4', '-1', '0', '4', '-1', '-1'), 0):83.7143012419,
(('1', '2', '1', '2', '1', '1', '4', '0'), 3):194.272231743,
(('4', '2', '1', '-1', '0', '2', '-1', '-1'), 2):52.8997197033,
(('4', '2', '2', '-1', '1', '2', '-1', '-1'), 3):315.185346247,
(('2', '2', '1', '2', '2', '1', '1', '4'), 1):70.8441382855,
(('1', '0', '1', '4', '1', '0', '4', '0'), 2):137.021225173,
(('4', '1', '1', '0', '4', '1', '0', '1'), 0):47.0856743267,
(('1', '2', '1', '4', '1', '1', '1', '0'), 3):146.025827014,
(('1', '4', '4', '0', '1', '4', '1', '0'), 1):0,
(('0', '1', '1', '1', '1', '1', '0', '1'), 3):218.297876589,
(('-1', '0', '4', '0', '-1', '0', '-1', '0'), 0):131.082054935,
(('4', '1', '1', '0', '0', '1', '1', '0'), 2):0,
(('-1', '2', '0', '-1', '-1', '0', '-1', '-1'), 0):305.481776644,
(('2', '2', '4', '2', '0', '0', '0', '0'), 1):220.39166035,
(('1', '2', '0', '4', '1', '0', '0', '4'), 1):10,
(('4', '1', '-1', '1', '-1', '-1', '0', '0'), 2):199.210991367,
(('2', '2', '1', '4', '2', '0', '0', '0'), 1):10,
(('4', '0', '1', '1', '1', '0', '0', '0'), 0):76.0254442156,
(('0', '-1', '1', '0', '4', '-1', '0', '-1'), 0):174.919475299,
(('-1', '0', '0', '4', '-1', '0', '-1', '4'), 1):17.8124136345,
(('4', '0', '0', '-1', '1', '0', '-1', '-1'), 3):87.4961523362,
(('1', '2', '2', '2', '0', '0', '4', '4'), 3):34.5269358609,
(('1', '4', '0', '0', '1', '0', '1', '4'), 2):13.8389942755,
(('-1', '1', '4', '1', '-1', '0', '-1', '0'), 1):179.447057411,
(('0', '2', '2', '2', '0', '2', '0', '2'), 2):311.899613262,
(('4', '2', '4', '2', '4', '4', '4', '1'), 0):20,
(('0', '2', '1', '2', '1', '0', '1', '0'), 3):221.447351866,
(('0', '0', '1', '0', '1', '0', '1', '0'), 0):10,
(('0', '2', '0', '2', '0', '4', '2', '2'), 0):185.712932413,
(('-1', '1', '0', '0', '-1', '0', '-1', '4'), 2):24.1452558337,
(('1', '2', '0', '2', '0', '0', '2', '2'), 0):490.726095295,
(('0', '2', '1', '-1', '4', '1', '-1', '-1'), 3):265.873429914,
(('4', '0', '1', '1', '1', '0', '0', '1'), 2):0,
(('1', '0', '0', '1', '1', '1', '0', '1'), 2):0,
(('0', '2', '4', '2', '0', '4', '0', '0'), 0):214.04276112,
(('1', '1', '-1', '4', '-1', '-1', '1', '4'), 3):159.232766587,
(('1', '2', '0', '2', '1', '0', '4', '1'), 1):10,
(('1', '4', '0', '1', '0', '1', '1', '0'), 1):0,
(('1', '1', '1', '-1', '0', '0', '-1', '-1'), 0):247.062375304,
(('1', '2', '-1', '2', '-1', '-1', '4', '2'), 3):-317.59748563,
(('0', '2', '1', '2', '4', '1', '0', '1'), 0):224.083251062,
(('4', '1', '0', '1', '0', '0', '4', '0'), 3):54.028779767,
(('0', '0', '4', '1', '4', '0', '0', '0'), 1):54.1139313861,
(('0', '1', '1', '0', '4', '1', '0', '1'), 3):182.317835905,
(('4', '2', '0', '2', '4', '0', '0', '2'), 2):255.071473174,
(('1', '4', '-1', '4', '-1', '-1', '1', '1'), 3):50,
(('2', '2', '2', '2', '0', '2', '1', '1'), 0):213.292830072,
(('1', '2', '0', '2', '1', '4', '0', '1'), 1):10,
(('0', '0', '0', '1', '4', '0', '0', '1'), 2):32.9322107471,
(('1', '2', '0', '2', '0', '1', '4', '0'), 1):10,
(('0', '2', '1', '2', '0', '4', '1', '0'), 3):10,
(('0', '2', '2', '2', '1', '2', '1', '1'), 3):239.756451252,
(('2', '2', '2', '2', '2', '2', '1', '1'), 1):448.290384309,
(('4', '1', '4', '4', '4', '4', '4', '4'), 0):50,
(('1', '2', '2', '2', '2', '4', '1', '0'), 3):249.045937666,
(('4', '1', '1', '0', '0', '1', '0', '0'), 3):207.40443813,
(('0', '2', '0', '2', '1', '0', '0', '1'), 1):60.112223479,
(('0', '2', '0', '2', '0', '0', '0', '0'), 2):233.959878546,
(('0', '-1', '0', '2', '0', '-1', '1', '-1'), 3):96.4615101886,
(('2', '2', '4', '2', '2', '1', '2', '1'), 2):130,
(('1', '0', '1', '-1', '0', '1', '-1', '-1'), 0):251.272658495,
(('1', '4', '0', '0', '1', '0', '0', '4'), 1):10.82,
(('0', '2', '4', '2', '0', '1', '0', '2'), 2):289.837474927,
(('1', '-1', '2', '2', '0', '-1', '2', '-1'), 0):10,
(('0', '2', '1', '2', '0', '2', '0', '1'), 0):243.935297896,
(('-1', '2', '0', '2', '-1', '2', '-1', '0'), 0):248.474970394,
(('1', '2', '2', '2', '2', '0', '2', '2'), 2):203.783856362,
(('1', '2', '2', '4', '0', '0', '4', '4'), 3):122.393116283,
(('0', '2', '0', '4', '0', '1', '0', '0'), 0):181.642292825,
(('4', '2', '-1', '2', '-1', '-1', '0', '0'), 1):293.638760118,
(('1', '4', '-1', '1', '-1', '-1', '1', '0'), 1):251.814459751,
(('2', '2', '0', '2', '2', '0', '0', '2'), 2):351.558408285,
(('2', '2', '0', '-1', '1', '4', '-1', '-1'), 1):222.67631166,
(('0', '-1', '1', '1', '1', '-1', '1', '-1'), 0):210.717563859,
(('1', '1', '4', '0', '1', '0', '0', '1'), 2):-10,
(('1', '-1', '-1', '4', '-1', '-1', '1', '-1'), 2):272.430227015,
(('2', '2', '2', '2', '2', '0', '2', '1'), 0):370.356958343,
(('2', '2', '4', '2', '1', '4', '0', '0'), 2):106.178893383,
(('-1', '2', '4', '2', '-1', '1', '-1', '0'), 2):151.130840792,
(('0', '4', '4', '0', '0', '4', '0', '4'), 1):10.423379193,
(('1', '1', '0', '1', '0', '0', '0', '0'), 1):209.088832151,
(('1', '-1', '1', '1', '0', '-1', '4', '-1'), 0):104.551769523,
(('0', '2', '4', '2', '0', '4', '1', '1'), 1):11.8,
(('1', '0', '1', '1', '0', '0', '0', '4'), 1):-10,
(('1', '2', '0', '2', '4', '0', '1', '1'), 2):228.33877023,
(('0', '0', '-1', '4', '-1', '-1', '0', '0'), 0):213.615203244,
(('0', '2', '0', '2', '0', '2', '0', '2'), 0):307.661805346,
(('1', '4', '0', '0', '0', '1', '1', '0'), 2):10,
(('1', '4', '2', '2', '1', '2', '1', '4'), 3):10,
(('4', '2', '1', '2', '0', '0', '0', '1'), 3):10,
(('2', '2', '1', '2', '0', '1', '0', '2'), 1):210.181512066,
(('0', '1', '4', '1', '4', '4', '0', '1'), 3):89.9626071065,
(('2', '4', '-1', '2', '-1', '-1', '0', '0'), 2):161.137333303,
(('4', '0', '0', '1', '0', '0', '4', '0'), 1):135.366882212,
(('1', '1', '1', '1', '1', '4', '1', '1'), 1):132.720321769,
(('1', '2', '0', '2', '1', '4', '0', '4'), 1):10,
(('2', '2', '1', '2', '0', '4', '0', '2'), 0):10,
(('0', '2', '1', '2', '0', '1', '1', '1'), 2):237.044155544,
(('2', '4', '4', '-1', '0', '4', '-1', '-1'), 1):-64.4432396389,
(('2', '2', '0', '2', '1', '4', '0', '1'), 1):10,
(('1', '2', '2', '2', '4', '4', '2', '2'), 3):360,
(('0', '0', '0', '0', '0', '0', '1', '0'), 0):230.133690891,
(('1', '-1', '0', '4', '0', '-1', '0', '-1'), 2):165.285146098,
(('1', '2', '0', '2', '1', '1', '0', '1'), 1):95.3779091695,
(('0', '0', '-1', '0', '-1', '-1', '0', '4'), 1):30.4132450128,
(('1', '4', '-1', '0', '-1', '-1', '1', '0'), 0):232.05699598,
(('0', '0', '-1', '4', '-1', '-1', '1', '4'), 3):10,
(('4', '2', '2', '2', '1', '2', '0', '0'), 3):274.868410095,
(('2', '2', '2', '2', '0', '2', '0', '0'), 3):371.04761327,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '1'), 1):46.1693679142,
(('0', '2', '1', '2', '1', '1', '4', '0'), 3):215.163745158,
(('1', '4', '4', '-1', '1', '4', '-1', '-1'), 1):28.4801163881,
(('1', '2', '1', '-1', '1', '4', '-1', '-1'), 1):211.350571789,
(('0', '1', '1', '1', '0', '0', '0', '0'), 0):227.069490589,
(('0', '0', '1', '0', '0', '0', '0', '4'), 1):31.7313185571,
(('1', '-1', '1', '0', '1', '-1', '1', '-1'), 0):216.58560919,
(('2', '2', '2', '2', '0', '1', '1', '1'), 2):183.727437493,
(('1', '0', '4', '1', '4', '0', '1', '0'), 1):108.571501121,
(('2', '2', '0', '2', '0', '1', '1', '1'), 0):10,
(('1', '1', '0', '4', '0', '0', '1', '4'), 1):77.3646452843,
(('0', '-1', '0', '2', '0', '-1', '4', '-1'), 2):232.28738336,
(('0', '2', '0', '2', '4', '0', '1', '2'), 2):383.531211917,
(('0', '1', '0', '0', '1', '0', '0', '0'), 2):209.388376215,
(('4', '2', '0', '2', '4', '0', '2', '2'), 0):94.4854616821,
(('1', '1', '1', '0', '0', '0', '1', '1'), 2):35.6188616019,
(('1', '1', '1', '-1', '0', '1', '-1', '-1'), 1):211.30069221,
(('1', '0', '0', '1', '4', '0', '1', '1'), 3):194.065297046,
(('0', '-1', '4', '1', '0', '-1', '1', '-1'), 1):169.952160676,
(('1', '0', '1', '1', '1', '1', '4', '0'), 2):39.2669785274,
(('1', '-1', '1', '4', '1', '-1', '0', '-1'), 0):232.746450043,
(('2', '4', '0', '2', '2', '0', '2', '4'), 1):99.2341823172,
(('0', '2', '4', '2', '4', '1', '2', '1'), 2):186.64218251,
(('0', '2', '0', '2', '1', '0', '2', '1'), 2):233.129184816,
(('1', '0', '0', '-1', '1', '4', '-1', '-1'), 0):54.0482542132,
(('0', '2', '2', '2', '4', '2', '0', '0'), 0):202.705085498,
(('0', '1', '1', '1', '1', '1', '4', '1'), 0):109.058673629,
(('0', '0', '0', '1', '1', '0', '1', '1'), 2):120.410329915,
(('4', '1', '0', '0', '4', '0', '0', '1'), 2):10,
(('-1', '2', '1', '-1', '-1', '0', '-1', '-1'), 3):316.105360134,
(('0', '-1', '4', '0', '0', '-1', '1', '-1'), 0):0,
(('1', '2', '-1', '2', '-1', '-1', '0', '0'), 2):325.148474826,
(('2', '2', '2', '-1', '4', '2', '-1', '-1'), 2):187.810863651,
(('0', '1', '-1', '4', '-1', '-1', '4', '1'), 1):160.93092459,
(('0', '1', '0', '4', '0', '1', '0', '0'), 3):149.991007295,
(('0', '2', '2', '4', '1', '2', '4', '4'), 3):57.9293781979,
(('1', '1', '-1', '0', '-1', '-1', '1', '1'), 2):221.976336079,
(('1', '2', '1', '2', '0', '2', '0', '1'), 0):10,
(('0', '1', '0', '1', '1', '0', '0', '4'), 0):0,
(('1', '2', '4', '-1', '1', '1', '-1', '-1'), 3):84.03684343,
(('-1', '4', '1', '0', '-1', '4', '-1', '0'), 0):10,
(('-1', '1', '1', '4', '-1', '1', '-1', '4'), 3):194.54151094,
(('1', '1', '0', '1', '4', '1', '1', '1'), 2):98.1030516896,
(('4', '0', '1', '-1', '4', '0', '-1', '-1'), 3):88.2789923623,
(('4', '1', '1', '-1', '4', '1', '-1', '-1'), 1):173.400597716,
(('4', '-1', '4', '-1', '4', '-1', '-1', '-1'), 2):6.52424456172,
(('0', '2', '0', '2', '4', '0', '0', '1'), 0):232.404772499,
(('2', '4', '0', '2', '1', '1', '1', '1'), 1):10,
(('2', '2', '-1', '2', '-1', '-1', '4', '4'), 2):10,
(('0', '2', '2', '2', '0', '2', '1', '4'), 3):301.135086958,
(('1', '0', '4', '0', '1', '1', '0', '0'), 3):63.7219819402,
(('4', '-1', '-1', '0', '-1', '-1', '4', '-1'), 2):0,
(('4', '-1', '-1', '0', '-1', '-1', '4', '-1'), 0):223.710458526,
(('0', '-1', '4', '2', '0', '-1', '0', '-1'), 2):255.013278528,
(('0', '2', '-1', '2', '-1', '-1', '1', '0'), 0):391.124476491,
(('4', '0', '4', '1', '4', '4', '4', '0'), 2):8.0,
(('0', '2', '0', '2', '0', '0', '1', '4'), 0):210.325455152,
(('2', '2', '4', '2', '0', '4', '2', '0'), 2):65.1363751889,
(('0', '0', '0', '4', '0', '0', '1', '0'), 0):98.7692540618,
(('1', '2', '0', '2', '1', '1', '0', '0'), 2):256.698094014,
(('1', '0', '1', '0', '0', '1', '0', '4'), 1):11.8,
(('0', '-1', '0', '4', '0', '-1', '4', '-1'), 0):125.44984508,
(('1', '1', '0', '1', '0', '0', '4', '0'), 1):64.5688875839,
(('2', '4', '1', '2', '1', '0', '1', '1'), 1):68.6877934307,
(('0', '1', '1', '1', '0', '4', '0', '1'), 1):159.877315929,
(('4', '2', '2', '2', '2', '2', '0', '0'), 0):223.014048271,
(('1', '1', '1', '4', '1', '1', '4', '0'), 3):183.032544079,
(('4', '2', '1', '2', '4', '1', '4', '0'), 3):118.489301336,
(('1', '1', '1', '0', '0', '1', '4', '0'), 0):28.4629148059,
(('0', '2', '2', '2', '0', '1', '0', '4'), 0):10,
(('1', '1', '0', '1', '1', '1', '0', '0'), 3):109.532098244,
(('0', '2', '0', '2', '1', '0', '2', '0'), 0):334.478391006,
(('1', '4', '0', '1', '0', '0', '0', '1'), 0):138.40995486,
(('1', '4', '1', '1', '1', '1', '0', '0'), 0):67.0298342771,
(('0', '1', '1', '1', '0', '1', '0', '4'), 0):152.57994176,
(('4', '2', '0', '2', '0', '2', '0', '2'), 2):357.113752449,
(('4', '-1', '1', '1', '4', '-1', '1', '-1'), 2):175.943193102,
(('1', '2', '1', '2', '0', '0', '1', '1'), 3):195.08099603,
(('0', '2', '2', '2', '1', '1', '1', '1'), 0):143.791463262,
(('1', '2', '-1', '2', '-1', '-1', '1', '1'), 0):253.956747071,
(('1', '4', '1', '1', '0', '1', '0', '0'), 3):0,
(('0', '0', '1', '0', '1', '1', '0', '1'), 0):40.2734620155,
(('2', '2', '2', '2', '2', '0', '2', '0'), 2):408.836056571,
(('1', '-1', '4', '1', '4', '-1', '0', '-1'), 2):64.5857504323,
(('0', '2', '4', '2', '0', '2', '1', '1'), 0):58.7511301292,
(('0', '0', '0', '1', '0', '4', '0', '0'), 2):154.474652225,
(('0', '4', '0', '2', '1', '0', '1', '0'), 2):10,
(('4', '-1', '0', '-1', '1', '-1', '-1', '-1'), 1):265.104138017,
(('0', '1', '0', '1', '1', '4', '0', '1'), 2):10,
(('0', '0', '4', '1', '0', '0', '1', '1'), 3):54.2821575291,
(('4', '2', '0', '2', '0', '0', '2', '2'), 2):242.201576786,
(('1', '2', '2', '2', '1', '4', '0', '4'), 3):118.86883646,
(('4', '1', '1', '0', '0', '0', '0', '1'), 1):10,
(('0', '4', '1', '1', '0', '1', '1', '0'), 3):10,
(('4', '2', '1', '2', '4', '1', '2', '2'), 2):126.049407058,
(('0', '4', '2', '2', '2', '4', '1', '0'), 3):420,
(('1', '2', '0', '2', '1', '1', '2', '2'), 2):255.7466503,
(('4', '2', '1', '2', '4', '1', '2', '1'), 2):10.0,
(('-1', '0', '1', '4', '-1', '0', '-1', '4'), 1):0,
(('1', '1', '4', '-1', '1', '1', '-1', '-1'), 3):122.836476414,
(('1', '1', '1', '-1', '1', '0', '-1', '-1'), 2):234.71371373,
(('1', '0', '0', '0', '1', '4', '1', '0'), 2):0,
(('1', '2', '2', '2', '2', '2', '0', '0'), 3):392.353671207,
(('1', '2', '0', '2', '1', '0', '0', '1'), 0):234.115752868,
(('2', '2', '1', '4', '1', '1', '4', '0'), 1):20,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '1'), 3):257.814033986,
(('1', '1', '1', '0', '1', '1', '0', '0'), 3):215.157755861,
(('0', '-1', '0', '2', '1', '-1', '0', '-1'), 0):303.766771061,
(('0', '-1', '2', '-1', '4', '-1', '-1', '-1'), 2):77.1092030337,
(('0', '2', '4', '-1', '1', '2', '-1', '-1'), 0):105.897279354,
(('1', '1', '1', '1', '1', '1', '0', '4'), 1):58.4143394985,
(('0', '4', '4', '2', '0', '4', '0', '4'), 2):30.6183000132,
(('2', '4', '1', '2', '1', '0', '2', '2'), 2):10,
(('0', '-1', '2', '2', '2', '-1', '0', '-1'), 3):311.132018414,
(('1', '-1', '1', '0', '0', '-1', '0', '-1'), 0):254.191113781,
(('0', '-1', '-1', '4', '-1', '-1', '1', '-1'), 2):63.0042068582,
(('0', '2', '0', '2', '0', '1', '2', '1'), 0):198.485364375,
(('2', '2', '2', '2', '0', '2', '4', '0'), 0):10,
(('1', '0', '1', '4', '1', '1', '0', '0'), 1):166.240755568,
(('1', '2', '2', '2', '4', '2', '1', '1'), 0):10,
(('2', '2', '0', '2', '1', '0', '0', '0'), 0):314.775405622,
(('0', '0', '4', '0', '4', '0', '0', '0'), 2):72.3733398459,
(('4', '2', '0', '-1', '0', '1', '-1', '-1'), 2):260.386482852,
(('2', '2', '0', '4', '1', '1', '0', '0'), 1):10,
(('-1', '4', '1', '1', '-1', '1', '-1', '4'), 3):153.104311377,
(('1', '2', '1', '-1', '4', '2', '-1', '-1'), 0):253.483526912,
(('-1', '4', '2', '2', '-1', '2', '-1', '1'), 1):10,
(('0', '0', '1', '0', '0', '0', '1', '0'), 0):74.8080803361,
(('1', '0', '1', '0', '1', '1', '1', '1'), 3):96.080963576,
(('1', '2', '2', '2', '0', '2', '1', '2'), 2):502.158919657,
(('2', '2', '0', '2', '1', '0', '2', '2'), 2):348.732551627,
(('4', '1', '0', '4', '0', '0', '4', '0'), 3):0,
(('0', '-1', '-1', '1', '-1', '-1', '0', '-1'), 3):224.212749246,
(('4', '2', '0', '2', '1', '1', '1', '0'), 2):54.555290141,
(('2', '4', '0', '2', '2', '1', '2', '4'), 1):10,
(('0', '0', '1', '4', '0', '1', '0', '0'), 2):49.1438671413,
(('4', '2', '1', '2', '1', '2', '1', '0'), 0):10,
(('4', '2', '2', '2', '1', '1', '0', '0'), 3):240.487944848,
(('1', '4', '0', '0', '1', '4', '0', '0'), 2):0,
(('0', '-1', '2', '-1', '2', '-1', '-1', '-1'), 3):322.716594761,
(('1', '0', '1', '0', '0', '1', '4', '0'), 3):35.9008129428,
(('0', '0', '1', '0', '1', '1', '0', '4'), 3):10,
(('-1', '1', '1', '-1', '-1', '4', '-1', '-1'), 2):151.275526469,
(('0', '2', '1', '-1', '2', '2', '-1', '-1'), 0):403.411119234,
(('2', '2', '1', '-1', '4', '0', '-1', '-1'), 1):227.058399986,
(('2', '2', '4', '2', '4', '0', '2', '2'), 1):119.278697151,
(('1', '2', '1', '2', '0', '1', '1', '0'), 3):234.470419321,
(('0', '2', '0', '2', '1', '1', '0', '1'), 1):62.4493352824,
(('1', '1', '1', '0', '1', '4', '1', '0'), 0):107.103731727,
(('1', '2', '1', '2', '4', '0', '1', '0'), 0):147.581991006,
(('0', '2', '0', '4', '1', '0', '4', '0'), 0):10,
(('0', '2', '2', '2', '2', '1', '2', '2'), 2):93.3923453006,
(('2', '-1', '2', '2', '2', '-1', '4', '-1'), 0):53.5681453331,
(('1', '0', '0', '1', '0', '0', '1', '1'), 2):220.327276964,
(('2', '4', '0', '2', '0', '0', '1', '4'), 1):196.328973986,
(('1', '1', '1', '1', '0', '0', '1', '1'), 1):198.068203587,
(('0', '1', '-1', '1', '-1', '-1', '0', '1'), 1):251.663410844,
(('1', '0', '-1', '4', '-1', '-1', '1', '4'), 1):243.158840247,
(('1', '4', '-1', '4', '-1', '-1', '4', '4'), 1):66.9243960478,
(('0', '2', '1', '2', '1', '1', '0', '4'), 3):227.126643736,
(('4', '2', '0', '2', '0', '1', '4', '4'), 0):10,
(('2', '2', '0', '2', '0', '0', '0', '2'), 0):376.384266004,
(('0', '-1', '-1', '4', '-1', '-1', '0', '-1'), 0):220.295805346,
(('2', '-1', '4', '2', '4', '-1', '2', '-1'), 1):299.397365273,
(('4', '1', '0', '4', '0', '0', '4', '4'), 3):7.4,
(('1', '1', '4', '-1', '1', '0', '-1', '-1'), 3):159.811745734,
(('4', '2', '1', '2', '1', '1', '1', '0'), 0):175.686357691,
(('0', '2', '4', '2', '0', '0', '0', '1'), 2):242.279122999,
(('1', '2', '-1', '2', '-1', '-1', '1', '4'), 3):258.451617342,
(('1', '-1', '2', '4', '2', '-1', '4', '-1'), 0):10,
(('0', '2', '4', '4', '0', '0', '0', '4'), 0):10,
(('1', '1', '1', '4', '1', '1', '0', '0'), 1):209.99522917,
(('4', '2', '2', '2', '2', '2', '1', '1'), 3):420.496574283,
(('1', '-1', '1', '1', '1', '-1', '0', '-1'), 3):262.792232997,
(('1', '1', '0', '1', '0', '1', '1', '4'), 3):40.9821645509,
(('0', '2', '2', '2', '1', '0', '0', '0'), 3):295.713589008,
(('1', '4', '0', '2', '1', '0', '0', '4'), 2):10,
(('1', '1', '1', '0', '1', '4', '0', '0'), 3):131.187949515,
(('1', '2', '2', '4', '2', '2', '1', '4'), 0):10,
(('2', '2', '2', '2', '2', '1', '2', '1'), 3):391.794339092,
(('1', '2', '1', '2', '1', '0', '1', '0'), 3):224.015633991,
(('-1', '0', '1', '-1', '-1', '1', '-1', '-1'), 2):267.802100178,
(('1', '-1', '4', '0', '0', '-1', '0', '-1'), 1):47.4778637486,
(('1', '4', '1', '2', '0', '4', '0', '0'), 1):0,
(('0', '0', '1', '4', '0', '1', '0', '0'), 0):78.9011632997,
(('0', '2', '2', '2', '2', '0', '4', '0'), 3):191.417761083,
(('0', '2', '2', '2', '1', '1', '0', '2'), 3):388.696032143,
(('0', '1', '1', '0', '0', '1', '0', '1'), 2):222.004168971,
(('1', '2', '2', '2', '2', '2', '2', '0'), 0):556.579762398,
(('1', '1', '-1', '0', '-1', '-1', '4', '1'), 0):154.586433983,
(('0', '0', '1', '1', '4', '0', '1', '0'), 2):10,
(('-1', '4', '1', '1', '-1', '0', '-1', '4'), 3):-4.31109177772,
(('1', '0', '0', '-1', '0', '1', '-1', '-1'), 3):171.778347075,
(('1', '4', '1', '0', '1', '4', '1', '0'), 1):32.5099999784,
(('0', '2', '-1', '4', '-1', '-1', '1', '1'), 3):119.74127929,
(('1', '0', '4', '0', '1', '4', '0', '0'), 3):31.9395175492,
(('4', '1', '1', '0', '1', '1', '1', '0'), 0):21.5216798276,
(('1', '0', '4', '0', '0', '0', '0', '4'), 1):0,
(('-1', '2', '1', '2', '-1', '4', '-1', '4'), 3):10,
(('4', '1', '1', '1', '1', '0', '0', '1'), 3):50.8006497016,
(('0', '1', '0', '0', '0', '1', '0', '4'), 3):99.3918815714,
(('0', '4', '-1', '0', '-1', '-1', '0', '1'), 0):0.680965202997,
(('0', '-1', '1', '-1', '1', '-1', '-1', '-1'), 1):286.430119912,
(('4', '-1', '1', '-1', '0', '-1', '-1', '-1'), 3):218.100068368,
(('4', '1', '0', '1', '1', '0', '0', '1'), 0):-10,
(('0', '1', '1', '0', '1', '0', '1', '0'), 0):10,
(('0', '1', '-1', '4', '-1', '-1', '0', '4'), 3):233.294846735,
(('2', '4', '1', '2', '0', '0', '0', '4'), 1):106.598711944,
(('4', '2', '0', '2', '4', '2', '2', '2'), 0):10,
(('0', '4', '4', '1', '0', '4', '0', '4'), 2):-10,
(('4', '1', '1', '0', '1', '1', '0', '0'), 2):213.256223365,
(('0', '1', '-1', '4', '-1', '-1', '0', '1'), 3):239.502889963,
(('4', '4', '4', '4', '4', '0', '0', '0'), 1):50,
(('0', '2', '4', '2', '0', '2', '0', '2'), 3):118.265147468,
(('1', '0', '0', '0', '1', '0', '4', '0'), 3):126.855344858,
(('0', '2', '1', '-1', '4', '4', '-1', '-1'), 0):10,
(('0', '-1', '4', '2', '1', '-1', '2', '-1'), 2):144.958246103,
(('1', '0', '1', '4', '1', '1', '4', '4'), 3):21.8007683043,
(('0', '0', '1', '4', '1', '1', '4', '4'), 3):57.0858689106,
(('0', '2', '2', '2', '1', '1', '4', '0'), 0):106.97634643,
(('0', '1', '1', '-1', '0', '1', '-1', '-1'), 3):233.46681523,
(('0', '2', '2', '2', '2', '2', '2', '0'), 2):343.075774979,
(('-1', '1', '0', '4', '-1', '4', '-1', '4'), 1):10.0,
(('2', '2', '1', '4', '0', '1', '0', '1'), 1):40,
(('1', '4', '1', '0', '1', '4', '1', '0'), 0):43.0140872534,
(('1', '1', '0', '1', '0', '1', '0', '1'), 1):207.606606024,
(('2', '2', '4', '2', '0', '1', '0', '0'), 2):125.85067432,
(('2', '4', '0', '2', '1', '0', '2', '4'), 1):47.6217815718,
(('1', '-1', '4', '2', '4', '-1', '2', '-1'), 2):255.924464804,
(('1', '-1', '1', '-1', '0', '-1', '-1', '-1'), 2):251.344666188,
(('0', '1', '1', '4', '1', '1', '0', '4'), 3):167.986635803,
(('2', '2', '2', '2', '2', '0', '0', '1'), 1):407.507422414,
(('0', '1', '-1', '1', '-1', '-1', '0', '4'), 1):226.872892398,
(('1', '4', '0', '2', '0', '0', '1', '1'), 1):85.5502869163,
(('1', '0', '1', '0', '1', '4', '0', '0'), 3):156.037023515,
(('0', '-1', '1', '2', '4', '-1', '1', '-1'), 2):65.8539000278,
(('1', '1', '1', '-1', '1', '4', '-1', '-1'), 1):218.705541569,
(('1', '4', '1', '1', '1', '4', '1', '0'), 2):147.694287744,
(('1', '-1', '4', '0', '0', '-1', '1', '-1'), 1):102.823972171,
(('0', '2', '4', '2', '1', '0', '0', '2'), 0):228.884798344,
(('4', '0', '1', '1', '1', '0', '4', '0'), 0):10,
(('2', '2', '2', '2', '1', '0', '1', '1'), 1):230.890256408,
(('0', '2', '0', '4', '0', '0', '0', '0'), 0):118.852560864,
(('4', '2', '4', '-1', '4', '0', '-1', '-1'), 2):137.817124417,
(('0', '1', '0', '1', '0', '0', '4', '0'), 1):117.507140847,
(('1', '0', '1', '1', '1', '1', '0', '4'), 0):0,
(('1', '0', '1', '0', '1', '1', '4', '0'), 1):194.554876403,
(('0', '-1', '0', '1', '1', '-1', '1', '-1'), 2):260.824778613,
(('0', '2', '2', '2', '1', '0', '0', '1'), 3):265.908978352,
(('0', '4', '1', '1', '0', '0', '0', '0'), 2):141.021414682,
(('1', '2', '0', '2', '1', '2', '0', '0'), 2):447.560287937,
(('4', '1', '0', '1', '0', '0', '4', '0'), 0):122.270108536,
(('1', '0', '0', '1', '0', '0', '0', '1'), 0):214.241954018,
(('0', '2', '1', '4', '0', '0', '0', '0'), 1):10,
(('0', '0', '4', '1', '0', '0', '0', '1'), 3):60.0221360107,
(('2', '2', '4', '2', '0', '0', '0', '2'), 2):10,
(('0', '0', '-1', '1', '-1', '-1', '1', '4'), 1):97.7166217232,
(('2', '-1', '2', '2', '2', '-1', '4', '-1'), 1):130.485099539,
(('1', '2', '1', '2', '0', '0', '1', '0'), 0):239.293474248,
(('2', '4', '0', '-1', '1', '0', '-1', '-1'), 1):221.583287014,
(('1', '1', '0', '1', '0', '4', '1', '0'), 2):52.277967651,
(('0', '4', '0', '0', '1', '0', '0', '0'), 1):87.376973061,
(('-1', '4', '1', '-1', '-1', '0', '-1', '-1'), 3):249.505604031,
(('4', '1', '-1', '4', '-1', '-1', '1', '1'), 3):50,
(('2', '2', '2', '2', '0', '1', '1', '0'), 2):70,
(('1', '0', '0', '1', '4', '0', '1', '0'), 1):221.706332539,
(('4', '-1', '1', '2', '0', '-1', '0', '-1'), 0):226.84676101,
(('4', '1', '4', '1', '4', '0', '4', '1'), 3):10.1031958697,
(('0', '2', '0', '2', '4', '0', '1', '0'), 2):204.062273903,
(('1', '2', '0', '2', '4', '0', '1', '0'), 1):257.026179993,
(('0', '1', '1', '4', '0', '1', '0', '1'), 2):210.364629307,
(('4', '1', '4', '0', '4', '4', '4', '0'), 2):51.4154938788,
(('0', '4', '0', '0', '0', '4', '0', '4'), 0):1.8,
(('0', '2', '2', '4', '1', '1', '0', '0'), 3):87.4826171582,
(('-1', '0', '4', '-1', '-1', '0', '-1', '-1'), 3):251.394193586,
(('2', '4', '2', '-1', '1', '2', '-1', '-1'), 1):10,
(('2', '2', '2', '2', '2', '2', '1', '0'), 0):331.516375232,
(('1', '2', '1', '2', '1', '2', '0', '1'), 0):273.174168935,
(('0', '4', '4', '1', '0', '4', '0', '0'), 0):-10,
(('2', '-1', '0', '-1', '2', '-1', '-1', '-1'), 0):315.426779335,
(('0', '1', '0', '1', '4', '1', '0', '1'), 0):119.243101648,
(('2', '-1', '1', '2', '0', '-1', '0', '-1'), 0):119.616292334,
(('2', '2', '1', '2', '2', '0', '0', '0'), 0):62.836870598,
(('1', '2', '4', '2', '4', '0', '2', '0'), 0):10,
(('2', '2', '0', '-1', '4', '1', '-1', '-1'), 2):55.6917092513,
(('2', '-1', '2', '2', '1', '-1', '1', '-1'), 2):123.552842429,
(('2', '2', '4', '2', '0', '0', '2', '1'), 1):342.715535827,
(('4', '1', '4', '1', '1', '4', '0', '0'), 2):50,
(('2', '2', '0', '2', '1', '0', '4', '4'), 2):40,
(('4', '1', '4', '-1', '0', '4', '-1', '-1'), 3):10,
(('0', '2', '4', '-1', '0', '1', '-1', '-1'), 0):94.7981349871,
(('1', '-1', '1', '0', '4', '-1', '0', '-1'), 2):131.997819628,
(('1', '1', '1', '0', '0', '0', '1', '0'), 2):200.291551404,
(('1', '0', '0', '4', '1', '0', '0', '0'), 2):148.802774039,
(('0', '1', '1', '-1', '4', '0', '-1', '-1'), 2):183.64644658,
(('1', '-1', '1', '1', '4', '-1', '1', '-1'), 2):181.931707085,
(('0', '0', '1', '1', '0', '0', '0', '1'), 3):201.652288724,
(('0', '4', '0', '1', '0', '4', '0', '4'), 1):91.020823706,
(('-1', '0', '1', '1', '-1', '1', '-1', '0'), 0):204.258612308,
(('0', '-1', '0', '-1', '0', '-1', '-1', '-1'), 3):230.69181925,
(('0', '0', '0', '0', '0', '4', '0', '0'), 2):3.09988952655,
(('2', '2', '1', '4', '2', '1', '2', '4'), 1):377.668673434,
(('0', '2', '4', '2', '0', '2', '0', '1'), 3):174.297670458,
(('0', '4', '1', '2', '0', '1', '0', '4'), 2):10,
(('0', '0', '0', '1', '1', '0', '0', '1'), 1):156.249320258,
(('-1', '1', '0', '1', '-1', '4', '-1', '4'), 1):0,
(('1', '4', '1', '1', '0', '0', '1', '1'), 2):80.1104088288,
(('1', '1', '4', '1', '0', '0', '1', '0'), 3):20.9169859197,
(('1', '1', '1', '4', '1', '1', '4', '1'), 3):113.557317823,
(('0', '1', '0', '1', '1', '0', '1', '1'), 3):157.984932393,
(('0', '2', '1', '2', '4', '0', '0', '1'), 0):89.9559054175,
(('0', '0', '1', '-1', '0', '1', '-1', '-1'), 0):278.986772389,
(('1', '1', '0', '1', '4', '0', '0', '0'), 1):43.9818067635,
(('0', '1', '4', '-1', '1', '0', '-1', '-1'), 1):90.9665199648,
(('1', '2', '1', '2', '0', '1', '2', '2'), 0):10,
(('4', '2', '-1', '2', '-1', '-1', '1', '1'), 2):323.218674897,
(('1', '2', '0', '2', '2', '2', '1', '2'), 0):134.110378652,
(('1', '0', '1', '0', '1', '0', '0', '1'), 1):109.57905709,
(('0', '2', '0', '2', '4', '4', '0', '2'), 2):42.6692029229,
(('4', '0', '1', '1', '0', '0', '4', '0'), 3):21.5175064075,
(('2', '-1', '0', '4', '2', '-1', '1', '-1'), 1):10,
(('4', '-1', '0', '1', '1', '-1', '4', '-1'), 1):10,
(('1', '0', '1', '1', '1', '0', '1', '1'), 3):238.902784198,
(('4', '2', '1', '2', '0', '1', '0', '0'), 2):146.084583699,
(('1', '2', '1', '2', '2', '1', '0', '2'), 0):159.167857951,
(('1', '4', '0', '4', '1', '0', '4', '0'), 0):-10,
(('1', '-1', '0', '0', '0', '-1', '4', '-1'), 0):-3.04417232359,
(('-1', '2', '2', '2', '-1', '0', '-1', '4'), 0):10,
(('0', '2', '4', '-1', '2', '4', '-1', '-1'), 3):137.674893308,
(('0', '2', '1', '-1', '0', '1', '-1', '-1'), 0):263.973677419,
(('1', '-1', '4', '2', '1', '-1', '2', '-1'), 0):10,
(('0', '1', '0', '0', '1', '4', '0', '0'), 3):10,
(('4', '1', '1', '1', '4', '0', '4', '1'), 2):45.5366058317,
(('0', '1', '1', '0', '1', '4', '0', '1'), 1):46.6398697231,
(('1', '2', '4', '2', '0', '0', '1', '0'), 0):187.098605649,
(('1', '0', '4', '0', '0', '0', '1', '0'), 3):125.108931686,
(('1', '-1', '1', '2', '0', '-1', '4', '-1'), 3):94.0588196718,
(('0', '4', '0', '-1', '0', '1', '-1', '-1'), 1):154.263135842,
(('1', '2', '1', '4', '1', '0', '4', '0'), 0):0,
(('0', '2', '2', '2', '1', '0', '4', '1'), 3):17.1944179617,
(('0', '2', '1', '2', '0', '1', '0', '1'), 2):207.832052345,
(('1', '2', '4', '2', '1', '0', '4', '0'), 2):10,
(('0', '1', '1', '4', '0', '1', '0', '0'), 1):175.322700432,
(('0', '2', '2', '-1', '4', '1', '-1', '-1'), 0):40,
(('1', '-1', '4', '1', '4', '-1', '1', '-1'), 0):134.583242042,
(('0', '4', '0', '2', '0', '4', '0', '4'), 2):164.733620118,
(('4', '2', '1', '2', '4', '0', '2', '2'), 2):10,
(('2', '-1', '2', '2', '0', '-1', '2', '-1'), 3):354.348087312,
(('1', '1', '0', '4', '1', '0', '0', '4'), 2):0,
(('0', '1', '1', '0', '1', '1', '1', '0'), 2):191.881167784,
(('0', '0', '1', '1', '1', '1', '0', '1'), 3):192.500134536,
(('1', '4', '4', '1', '1', '1', '1', '0'), 3):50,
(('1', '1', '1', '0', '0', '4', '0', '0'), 2):-10,
(('1', '2', '2', '2', '2', '0', '1', '0'), 3):328.855361249,
(('1', '-1', '0', '1', '4', '-1', '1', '-1'), 2):209.349958631,
(('1', '4', '1', '4', '1', '4', '1', '1'), 1):50,
(('1', '1', '-1', '1', '-1', '-1', '0', '4'), 0):69.7891683296,
(('0', '4', '0', '2', '0', '0', '1', '4'), 2):116.864634923,
(('2', '2', '1', '2', '1', '0', '2', '2'), 2):427.749086971,
(('1', '0', '0', '4', '1', '0', '0', '1'), 1):10,
(('0', '2', '-1', '2', '-1', '-1', '2', '4'), 2):368.116095088,
(('2', '2', '0', '-1', '1', '0', '-1', '-1'), 1):321.019749863,
(('0', '1', '0', '1', '1', '0', '0', '1'), 0):189.413659193,
(('-1', '1', '1', '0', '-1', '1', '-1', '4'), 1):136.494270536,
(('-1', '2', '1', '2', '-1', '1', '-1', '1'), 1):271.94031325,
(('4', '1', '1', '0', '4', '0', '0', '0'), 0):40.9607074658,
(('1', '4', '0', '2', '1', '0', '1', '4'), 2):-536.62515469,
(('1', '4', '0', '1', '0', '1', '1', '4'), 3):-10,
(('4', '-1', '2', '2', '0', '-1', '4', '-1'), 0):10,
(('4', '1', '1', '1', '4', '1', '1', '1'), 0):80.0235167598,
(('0', '4', '2', '-1', '0', '4', '-1', '-1'), 3):108.653946012,
(('1', '2', '1', '2', '0', '1', '0', '0'), 2):173.490503032,
(('1', '1', '0', '-1', '4', '0', '-1', '-1'), 0):208.390758767,
(('4', '2', '2', '2', '4', '1', '1', '1'), 3):10,
(('1', '1', '0', '1', '1', '1', '0', '1'), 1):172.432590784,
(('2', '2', '4', '2', '1', '0', '0', '0'), 1):199.283175468,
(('0', '2', '2', '4', '0', '1', '0', '0'), 3):174.059296784,
(('1', '0', '0', '1', '1', '4', '1', '1'), 3):10,
(('1', '1', '0', '1', '1', '0', '1', '0'), 2):217.109534586,
(('0', '1', '4', '1', '4', '1', '0', '1'), 3):-10,
(('-1', '4', '2', '2', '-1', '1', '-1', '4'), 2):10,
(('4', '2', '2', '2', '4', '0', '1', '0'), 0):28.9852808327,
(('2', '2', '0', '2', '2', '4', '2', '0'), 2):242.959098988,
(('1', '1', '4', '1', '0', '0', '0', '0'), 3):6.29779701453,
(('0', '0', '4', '0', '0', '0', '1', '0'), 2):0,
(('1', '2', '4', '2', '1', '0', '1', '1'), 0):190.671165785,
(('1', '1', '1', '4', '0', '1', '1', '4'), 0):-10,
(('1', '1', '0', '0', '0', '0', '1', '1'), 0):189.495583886,
(('0', '2', '1', '4', '0', '0', '4', '0'), 0):10,
(('-1', '4', '0', '0', '-1', '0', '-1', '4'), 3):93.2030079386,
(('4', '2', '1', '2', '0', '0', '0', '0'), 0):213.049564862,
(('1', '1', '4', '1', '1', '0', '1', '1'), 0):188.726689988,
(('-1', '4', '1', '1', '-1', '0', '-1', '0'), 0):33.1313708888,
(('1', '2', '2', '2', '1', '2', '1', '1'), 3):332.33212725,
(('0', '4', '-1', '1', '-1', '-1', '1', '1'), 0):200.358389712,
(('-1', '4', '0', '2', '-1', '0', '-1', '4'), 0):-1000,
(('2', '2', '1', '-1', '0', '2', '-1', '-1'), 2):795.268560211,
(('1', '0', '4', '0', '1', '4', '1', '0'), 0):17.0917460737,
(('4', '2', '2', '2', '1', '0', '4', '2'), 3):10,
(('0', '2', '4', '2', '4', '1', '0', '2'), 0):266.624856309,
(('4', '-1', '0', '-1', '4', '-1', '-1', '-1'), 1):186.88895534,
(('1', '1', '1', '0', '1', '0', '0', '4'), 2):0,
(('-1', '2', '2', '2', '-1', '2', '-1', '2'), 3):315.178821449,
(('-1', '2', '2', '2', '-1', '0', '-1', '0'), 0):270.14619038,
(('0', '2', '1', '2', '0', '4', '2', '1'), 2):10,
(('0', '1', '1', '-1', '1', '1', '-1', '-1'), 2):231.979894219,
(('4', '1', '0', '0', '0', '0', '0', '1'), 1):129.137649508,
(('1', '0', '-1', '4', '-1', '-1', '4', '1'), 3):10,
(('1', '0', '4', '-1', '4', '4', '-1', '-1'), 2):111.271813065,
(('1', '1', '1', '1', '4', '0', '1', '0'), 3):52.677809228,
(('0', '2', '0', '-1', '1', '1', '-1', '-1'), 2):232.797453095,
(('2', '2', '2', '4', '0', '0', '1', '0'), 3):87.66610501,
(('1', '0', '1', '1', '1', '1', '1', '4'), 0):100.466004039,
(('4', '2', '4', '2', '0', '0', '4', '1'), 0):10,
(('0', '1', '0', '1', '0', '0', '4', '1'), 1):215.664741927,
(('1', '1', '1', '0', '0', '0', '0', '0'), 1):229.535478257,
(('0', '-1', '4', '2', '1', '-1', '0', '-1'), 3):171.285087091,
(('2', '2', '2', '-1', '1', '2', '-1', '-1'), 0):367.340381086,
(('2', '-1', '2', '2', '2', '-1', '4', '-1'), 3):207.054969153,
(('0', '4', '0', '2', '0', '4', '1', '4'), 2):60.0480451162,
(('1', '2', '0', '2', '4', '1', '0', '2'), 2):73.152395241,
(('0', '2', '1', '2', '1', '2', '0', '0'), 0):380.070886644,
(('2', '-1', '0', '4', '0', '-1', '4', '-1'), 1):75.3418010549,
(('2', '-1', '4', '2', '4', '-1', '1', '-1'), 1):168.755051864,
(('1', '2', '4', '2', '4', '0', '1', '0'), 2):164.779806322,
(('-1', '2', '1', '4', '-1', '1', '-1', '1'), 0):53.0770302526,
(('0', '1', '1', '1', '1', '1', '0', '0'), 0):224.19779734,
(('1', '0', '0', '1', '1', '1', '1', '0'), 3):84.6489315908,
(('1', '1', '4', '0', '4', '0', '1', '0'), 1):10,
(('1', '2', '1', '2', '1', '1', '4', '0'), 2):115.303566748,
(('0', '2', '-1', '2', '-1', '-1', '2', '0'), 2):388.105951987,
(('4', '2', '2', '-1', '1', '2', '-1', '-1'), 2):19.1195258354,
(('1', '0', '1', '4', '1', '0', '4', '0'), 3):133.641736259,
(('1', '2', '1', '4', '1', '2', '1', '0'), 0):113.402614874,
(('2', '-1', '-1', '2', '-1', '-1', '1', '-1'), 3):307.779301371,
(('0', '1', '4', '0', '1', '1', '0', '1'), 1):84.5830751249,
(('1', '0', '1', '1', '1', '4', '0', '0'), 3):11.4264229832,
(('2', '4', '0', '2', '0', '4', '2', '1'), 1):162.912540792,
(('1', '1', '0', '0', '0', '4', '1', '0'), 3):-10,
(('1', '1', '0', '4', '0', '1', '0', '0'), 3):0,
(('-1', '4', '1', '4', '-1', '1', '-1', '4'), 2):88.6661958632,
(('0', '1', '1', '1', '1', '1', '0', '1'), 2):221.930089894,
(('-1', '0', '4', '0', '-1', '0', '-1', '0'), 1):160.876586587,
(('-1', '2', '0', '-1', '-1', '0', '-1', '-1'), 1):288.721443972,
(('0', '2', '1', '2', '4', '2', '0', '0'), 2):71.2310980819,
(('1', '0', '0', '1', '1', '0', '1', '1'), 2):239.432139209,
(('1', '2', '1', '2', '1', '4', '2', '2'), 0):10,
(('1', '1', '4', '1', '1', '0', '1', '0'), 2):163.703333869,
(('4', '1', '-1', '1', '-1', '-1', '0', '0'), 3):225.802211211,
(('0', '2', '1', '2', '1', '1', '0', '2'), 0):341.783315676,
(('4', '0', '1', '1', '1', '0', '0', '0'), 1):106.585989092,
(('2', '-1', '1', '2', '2', '-1', '4', '-1'), 1):245.75146465,
(('0', '0', '1', '0', '4', '0', '0', '0'), 2):168.569926799,
(('1', '0', '1', '1', '1', '0', '1', '4'), 2):118.625114119,
(('4', '0', '0', '-1', '1', '0', '-1', '-1'), 2):85.911204999,
(('1', '2', '2', '2', '0', '0', '4', '4'), 0):0,
(('1', '4', '0', '0', '1', '0', '1', '4'), 3):0,
(('4', '2', '0', '2', '1', '1', '0', '1'), 0):99.7259372047,
(('0', '0', '1', '0', '1', '0', '1', '0'), 1):176.091149603,
(('1', '2', '2', '2', '0', '0', '1', '0'), 0):275.437854915,
(('-1', '0', '1', '1', '-1', '4', '-1', '0'), 2):100.90133514,
(('1', '4', '2', '4', '2', '4', '1', '4'), 3):10,
(('1', '0', '0', '1', '1', '1', '0', '1'), 3):10,
(('1', '1', '0', '0', '0', '0', '4', '0'), 1):111.297209534,
(('1', '1', '-1', '4', '-1', '-1', '1', '4'), 2):94.1570180806,
(('-1', '1', '1', '1', '-1', '0', '-1', '1'), 2):214.92580938,
(('2', '2', '0', '2', '1', '1', '1', '1'), 1):188.421255586,
(('0', '4', '2', '2', '0', '1', '0', '4'), 3):158.267201966,
(('4', '2', '2', '2', '4', '0', '0', '2'), 2):90,
(('0', '1', '0', '4', '0', '0', '1', '4'), 3):-6.90260924404,
(('2', '4', '2', '-1', '1', '1', '-1', '-1'), 3):10,
(('4', '-1', '1', '4', '1', '-1', '4', '-1'), 3):166.426834053,
(('1', '2', '0', '4', '0', '0', '1', '4'), 1):138.537959531,
(('0', '1', '1', '0', '4', '1', '0', '1'), 2):158.762564481,
(('4', '2', '0', '2', '4', '0', '0', '2'), 1):102.862777466,
(('1', '2', '4', '2', '1', '4', '0', '1'), 0):47.4565535206,
(('0', '1', '4', '1', '4', '4', '0', '0'), 2):52.4757429966,
(('0', '2', '1', '2', '0', '4', '1', '0'), 2):26.3807080569,
(('1', '1', '1', '0', '0', '0', '4', '0'), 0):18.1209183175,
(('4', '2', '2', '2', '1', '0', '4', '0'), 3):210.890087101,
(('-1', '2', '0', '4', '-1', '1', '-1', '4'), 0):93.7048038823,
(('2', '2', '2', '2', '2', '2', '1', '1'), 0):469.145861369,
(('0', '1', '-1', '0', '-1', '-1', '1', '1'), 0):282.921446908,
(('0', '2', '0', '4', '4', '1', '0', '0'), 3):10,
(('4', '1', '1', '0', '0', '1', '0', '0'), 0):186.289582065,
(('0', '2', '0', '2', '1', '0', '0', '1'), 0):239.290407622,
(('1', '1', '0', '4', '0', '0', '1', '0'), 0):107.638969797,
(('0', '-1', '0', '2', '0', '-1', '1', '-1'), 2):257.062918616,
(('4', '2', '1', '2', '4', '0', '1', '0'), 3):16.2027694837,
(('4', '2', '0', '2', '4', '1', '0', '0'), 2):46.67037506,
(('1', '0', '0', '1', '1', '4', '0', '0'), 1):10,
(('1', '0', '0', '1', '0', '0', '0', '4'), 2):2.0,
(('2', '4', '0', '2', '1', '0', '2', '2'), 2):10,
(('1', '2', '4', '2', '1', '0', '1', '0'), 1):249.749870735,
(('0', '2', '2', '2', '4', '2', '0', '2'), 3):218.219741877,
(('-1', '2', '0', '2', '-1', '2', '-1', '0'), 1):324.564243599,
(('1', '4', '0', '1', '1', '0', '1', '4'), 3):72.4037006825,
(('1', '2', '2', '2', '2', '0', '2', '2'), 3):353.349663217,
(('2', '2', '2', '2', '0', '0', '0', '4'), 2):37.6738589032,
(('4', '1', '1', '1', '0', '1', '0', '0'), 1):120.083739537,
(('0', '-1', '0', '1', '0', '-1', '1', '-1'), 3):224.682433994,
(('2', '2', '0', '2', '0', '1', '0', '1'), 2):68.5053684171,
(('-1', '1', '0', '0', '-1', '1', '-1', '4'), 2):43.4017027279,
(('0', '-1', '1', '1', '1', '-1', '1', '-1'), 1):232.263671125,
(('1', '-1', '-1', '4', '-1', '-1', '1', '-1'), 3):285.33674302,
(('1', '1', '1', '1', '1', '0', '1', '4'), 2):0,
(('2', '2', '2', '2', '2', '0', '2', '1'), 1):502.269029877,
(('0', '2', '4', '2', '0', '4', '0', '1'), 2):243.279261017,
(('0', '0', '1', '0', '1', '0', '0', '1'), 1):68.0400253037,
(('1', '1', '0', '4', '0', '0', '0', '1'), 3):65.5989064437,
(('0', '0', '1', '0', '1', '4', '0', '0'), 3):145.398461691,
(('4', '-1', '0', '2', '1', '-1', '1', '-1'), 1):10,
(('2', '2', '-1', '2', '-1', '-1', '0', '2'), 0):695.581509621,
(('1', '4', '0', '4', '0', '0', '0', '4'), 1):90.1533212367,
(('1', '0', '1', '1', '0', '0', '0', '4'), 2):10,
(('2', '2', '2', '2', '0', '1', '0', '2'), 3):271.041734417,
(('4', '2', '0', '2', '0', '0', '1', '2'), 0):335.261097989,
(('0', '0', '-1', '4', '-1', '-1', '0', '0'), 1):193.993044479,
(('2', '-1', '2', '-1', '1', '-1', '-1', '-1'), 0):247.646308502,
(('1', '1', '1', '4', '0', '1', '0', '4'), 1):37.2794778841,
(('2', '4', '-1', '2', '-1', '-1', '2', '1'), 3):231.731731059,
(('-1', '2', '1', '4', '-1', '1', '-1', '0'), 1):189.411548015,
(('0', '1', '4', '1', '4', '4', '0', '1'), 0):85.9093854779,
(('2', '4', '-1', '2', '-1', '-1', '0', '0'), 3):41.1369962029,
(('1', '2', '0', '2', '2', '2', '1', '1'), 0):146.305958063,
(('2', '2', '1', '2', '0', '4', '0', '2'), 1):31.3788882548,
(('0', '0', '1', '4', '0', '1', '4', '0'), 1):12.2058941544,
(('2', '-1', '4', '-1', '2', '-1', '-1', '-1'), 3):10,
(('0', '0', '0', '0', '0', '0', '1', '0'), 1):231.702258597,
(('1', '-1', '0', '4', '0', '-1', '0', '-1'), 1):219.194539776,
(('0', '2', '2', '2', '0', '0', '1', '1'), 3):256.733830052,
(('1', '2', '0', '2', '1', '1', '0', '1'), 0):222.559329535,
(('0', '0', '-1', '0', '-1', '-1', '0', '4'), 2):9.23451288181,
(('1', '4', '-1', '0', '-1', '-1', '1', '0'), 1):254.282850967,
(('0', '4', '1', '2', '1', '0', '0', '0'), 3):119.082962677,
(('2', '2', '2', '2', '0', '2', '0', '0'), 2):364.379034304,
(('1', '4', '1', '0', '0', '0', '1', '0'), 1):10,
(('0', '2', '0', '2', '4', '1', '1', '1'), 2):74.428888109,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '1'), 0):-10,
(('2', '2', '2', '2', '2', '2', '4', '1'), 1):92.5805639372,
(('0', '0', '0', '-1', '1', '4', '-1', '-1'), 2):10,
(('0', '1', '1', '1', '0', '0', '0', '0'), 1):206.3996876,
(('1', '-1', '1', '0', '1', '-1', '1', '-1'), 1):283.876991643,
(('1', '2', '2', '2', '1', '0', '1', '1'), 3):263.200164442,
(('2', '2', '0', '4', '2', '0', '1', '0'), 1):10.0,
(('1', '0', '4', '1', '4', '0', '1', '0'), 2):125.771718355,
(('2', '2', '0', '2', '0', '1', '1', '1'), 1):214.385788623,
(('1', '0', '0', '1', '1', '4', '1', '0'), 0):77.8412159392,
(('0', '1', '0', '0', '1', '0', '0', '0'), 1):226.900901847,
(('1', '-1', '2', '2', '4', '-1', '0', '-1'), 3):228.67328494,
(('4', '2', '0', '2', '4', '1', '1', '2'), 2):10,
(('2', '2', '-1', '2', '-1', '-1', '4', '1'), 3):228.250706376,
(('1', '1', '1', '0', '0', '0', '1', '1'), 3):99.7738927417,
(('1', '1', '1', '-1', '0', '1', '-1', '-1'), 2):226.379157056,
(('1', '0', '0', '1', '4', '0', '1', '1'), 2):195.624217471,
(('1', '-1', '2', '2', '0', '-1', '2', '-1'), 2):1401.83074261,
(('1', '0', '1', '1', '1', '1', '4', '0'), 3):101.722100973,
(('0', '-1', '2', '2', '1', '-1', '4', '-1'), 3):243.624694532,
(('1', '-1', '1', '4', '1', '-1', '0', '-1'), 3):240.540823281,
(('0', '2', '2', '2', '4', '2', '0', '0'), 3):270.218532532,
(('0', '2', '1', '2', '1', '1', '0', '0'), 1):254.217529319,
(('0', '-1', '1', '2', '1', '-1', '1', '-1'), 1):59.2191734188,
(('0', '2', '1', '4', '2', '0', '4', '0'), 0):10,
(('0', '1', '-1', '4', '-1', '-1', '4', '1'), 2):161.465392211,
(('0', '1', '0', '4', '0', '1', '0', '0'), 2):89.4057502846,
(('1', '0', '4', '1', '4', '0', '0', '0'), 1):10,
(('1', '1', '-1', '0', '-1', '-1', '1', '1'), 3):215.178556371,
(('1', '2', '-1', '4', '-1', '-1', '4', '2'), 0):126.35867494,
(('1', '2', '4', '-1', '1', '1', '-1', '-1'), 2):99.43173875,
(('-1', '4', '1', '0', '-1', '4', '-1', '0'), 3):86.2642975462,
(('-1', '1', '1', '4', '-1', '1', '-1', '4'), 2):143.908109118,
(('0', '4', '0', '2', '0', '4', '2', '1'), 2):10,
(('1', '1', '0', '1', '4', '1', '1', '1'), 1):125.477617747,
(('4', '0', '1', '-1', '4', '0', '-1', '-1'), 2):115.5836413,
(('4', '2', '2', '2', '4', '0', '2', '2'), 3):10,
(('1', '2', '4', '2', '0', '0', '1', '2'), 0):509.739859871,
(('0', '0', '4', '1', '4', '0', '0', '1'), 0):-10,
(('0', '2', '0', '2', '4', '0', '0', '1'), 1):10,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '0'), 1):237.453986432,
(('1', '1', '4', '0', '1', '1', '1', '0'), 3):10,
(('0', '1', '0', '1', '0', '0', '4', '0'), 0):127.645474843,
(('1', '4', '-1', '0', '-1', '-1', '0', '0'), 0):217.224545165,
(('0', '2', '-1', '4', '-1', '-1', '0', '2'), 2):70.62445075,
(('0', '-1', '4', '2', '0', '-1', '0', '-1'), 3):232.263716906,
(('4', '2', '1', '2', '0', '0', '2', '2'), 2):250,
(('0', '2', '0', '2', '0', '0', '1', '4'), 1):137.087090526,
(('0', '2', '2', '2', '4', '0', '1', '1'), 3):175.337885606,
(('0', '0', '0', '4', '0', '0', '1', '0'), 1):121.73716186,
(('1', '2', '0', '2', '1', '1', '0', '0'), 3):159.320955649,
(('0', '2', '2', '2', '1', '0', '4', '4'), 3):33.1079002421,
(('1', '0', '1', '0', '0', '1', '0', '4'), 2):0,
(('0', '-1', '0', '4', '0', '-1', '4', '-1'), 1):10,
(('2', '2', '1', '2', '1', '2', '0', '2'), 1):360.229275343,
(('2', '2', '1', '2', '1', '4', '2', '2'), 2):140.024326006,
(('1', '1', '0', '1', '0', '0', '4', '0'), 2):0,
(('1', '1', '4', '0', '1', '4', '0', '1'), 2):-10,
(('4', '4', '4', '4', '4', '4', '0', '0'), 1):50,
(('0', '1', '1', '1', '0', '4', '0', '1'), 0):122.811490132,
(('1', '2', '2', '2', '0', '1', '0', '0'), 0):67.3333911312,
(('1', '2', '0', '2', '1', '1', '1', '4'), 2):10,
(('1', '0', '0', '1', '1', '0', '0', '1'), 1):211.992918676,
(('1', '1', '1', '4', '1', '1', '4', '0'), 0):59.8325065002,
(('4', '2', '1', '2', '4', '1', '4', '0'), 2):42.677299795,
(('1', '2', '2', '2', '2', '0', '0', '4'), 0):10,
(('1', '1', '0', '1', '1', '1', '0', '0'), 0):66.1184729946,
(('4', '1', '0', '1', '0', '0', '4', '0'), 1):17.1003800025,
(('1', '4', '4', '-1', '4', '4', '-1', '-1'), 2):56.6351583223,
(('-1', '0', '4', '1', '-1', '4', '-1', '0'), 2):70.4510713555,
(('1', '4', '0', '1', '0', '0', '0', '1'), 1):72.4301276566,
(('1', '4', '1', '1', '1', '1', '0', '0'), 1):146.508087602,
(('0', '1', '1', '1', '0', '1', '0', '4'), 3):145.154159314,
(('0', '2', '1', '2', '0', '0', '1', '0'), 1):-10,
(('2', '2', '0', '2', '4', '0', '2', '2'), 2):133.922387153,
(('1', '2', '1', '2', '0', '0', '1', '1'), 2):183.534957014,
(('0', '2', '2', '2', '1', '1', '1', '1'), 3):233.078744631,
(('4', '1', '0', '4', '4', '0', '4', '4'), 3):1.8,
(('1', '2', '-1', '2', '-1', '-1', '1', '1'), 3):307.389741727,
(('1', '0', '4', '0', '1', '0', '0', '0'), 1):183.629575461,
(('1', '4', '1', '1', '0', '1', '0', '0'), 2):0,
(('2', '-1', '2', '2', '1', '-1', '1', '-1'), 1):253.725594205,
(('1', '-1', '0', '0', '4', '-1', '1', '-1'), 0):86.7440177433,
(('0', '2', '1', '2', '1', '2', '4', '0'), 0):137.172654402,
(('2', '2', '0', '2', '2', '4', '2', '1'), 1):421.724,
(('0', '2', '2', '2', '4', '2', '1', '1'), 3):248.814707694,
(('2', '-1', '0', '2', '1', '-1', '2', '-1'), 1):337.196589508,
(('0', '4', '2', '2', '1', '2', '0', '0'), 3):64.4099797676,
(('0', '2', '2', '2', '4', '0', '1', '0'), 3):89.6914962757,
(('4', '2', '4', '2', '4', '4', '4', '4'), 3):10,
(('0', '4', '1', '1', '0', '1', '1', '0'), 2):0,
(('4', '1', '1', '1', '0', '1', '4', '0'), 1):0,
(('4', '2', '0', '2', '4', '1', '4', '1'), 1):10,
(('2', '2', '1', '2', '0', '1', '4', '0'), 1):152.965298662,
(('0', '1', '4', '-1', '0', '0', '-1', '-1'), 1):170.638695154,
(('1', '4', '0', '1', '0', '1', '1', '4'), 0):6.0,
(('-1', '0', '0', '-1', '-1', '1', '-1', '-1'), 0):236.702909175,
(('1', '1', '4', '-1', '1', '1', '-1', '-1'), 0):137.438731832,
(('1', '-1', '-1', '0', '-1', '-1', '4', '-1'), 1):212.494193735,
(('1', '1', '1', '-1', '1', '0', '-1', '-1'), 3):263.919832704,
(('0', '2', '2', '2', '1', '4', '0', '1'), 3):49.7819370277,
(('1', '0', '0', '0', '1', '4', '1', '0'), 3):28.8873972744,
(('1', '-1', '2', '4', '0', '-1', '0', '-1'), 3):98.8377150015,
(('0', '1', '1', '1', '0', '0', '1', '0'), 1):143.084387893,
(('1', '2', '2', '2', '2', '2', '0', '0'), 0):397.02357581,
(('1', '2', '0', '2', '1', '0', '0', '1'), 1):237.367036116,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '1'), 0):268.560306436,
(('0', '0', '0', '-1', '0', '4', '-1', '-1'), 2):167.577135755,
(('1', '1', '1', '0', '1', '1', '0', '0'), 0):236.883904704,
(('1', '2', '1', '2', '1', '1', '2', '1'), 0):130,
(('0', '-1', '0', '2', '1', '-1', '0', '-1'), 3):318.101154106,
(('0', '-1', '2', '-1', '4', '-1', '-1', '-1'), 3):227.970160496,
(('4', '2', '1', '2', '1', '1', '1', '2'), 0):117.360545091,
(('2', '2', '2', '2', '2', '0', '2', '4'), 0):10,
(('0', '4', '-1', '2', '-1', '-1', '0', '4'), 2):231.928149124,
(('1', '1', '1', '1', '1', '1', '0', '4'), 0):70.3995150367,
(('1', '4', '1', '2', '1', '1', '1', '4'), 2):30,
(('1', '-1', '1', '0', '0', '-1', '0', '-1'), 1):284.477420282,
(('2', '4', '2', '2', '2', '0', '0', '0'), 3):75.7001742694,
(('1', '1', '0', '1', '0', '0', '0', '1'), 3):211.652283483,
(('0', '1', '0', '0', '1', '0', '1', '0'), 0):63.2931832166,
(('1', '0', '1', '4', '1', '1', '0', '0'), 0):128.300812752,
(('1', '1', '1', '1', '0', '0', '0', '4'), 2):0,
(('2', '2', '0', '2', '1', '0', '0', '0'), 1):277.070121279,
(('4', '0', '1', '1', '0', '0', '0', '1'), 1):0,
(('4', '1', '1', '0', '1', '1', '4', '0'), 1):46.0246849231,
(('2', '2', '1', '2', '2', '0', '2', '1'), 2):215.332946931,
(('4', '2', '0', '-1', '0', '1', '-1', '-1'), 1):172.23146511,
(('4', '2', '1', '2', '4', '1', '1', '2'), 2):40,
(('-1', '4', '1', '1', '-1', '1', '-1', '4'), 2):52.6211773331,
(('1', '1', '0', '4', '0', '0', '1', '0'), 2):90.6651520308,
(('4', '2', '1', '2', '1', '1', '4', '0'), 1):120.851174333,
(('1', '-1', '4', '2', '1', '-1', '0', '-1'), 0):64.5895719769,
(('0', '0', '1', '0', '0', '0', '1', '0'), 3):183.985771166,
(('1', '0', '1', '0', '1', '1', '1', '1'), 2):10,
(('4', '2', '1', '2', '4', '1', '0', '1'), 2):10,
(('4', '1', '0', '4', '0', '0', '4', '0'), 0):-72.2864607583,
(('0', '-1', '-1', '1', '-1', '-1', '0', '-1'), 2):243.883749146,
(('2', '2', '2', '4', '2', '1', '2', '1'), 1):10,
(('0', '4', '4', '2', '0', '4', '0', '1'), 2):10,
(('0', '1', '-1', '1', '-1', '-1', '4', '1'), 1):218.380323691,
(('2', '2', '2', '2', '1', '1', '2', '2'), 3):247.769235879,
(('0', '-1', '2', '-1', '2', '-1', '-1', '-1'), 0):341.188783465,
(('4', '1', '1', '1', '0', '1', '4', '0'), 2):6.0,
(('-1', '1', '1', '-1', '-1', '4', '-1', '-1'), 3):198.228023954,
(('1', '0', '0', '1', '0', '1', '1', '1'), 0):1.91318612665,
(('0', '2', '4', '2', '0', '0', '0', '2'), 0):281.530886788,
(('1', '1', '0', '0', '1', '0', '0', '0'), 2):218.624065513,
(('1', '2', '1', '2', '0', '1', '1', '0'), 2):226.935678365,
(('1', '2', '0', '2', '2', '0', '0', '2'), 0):788.051270186,
(('1', '0', '4', '1', '4', '1', '0', '0'), 2):10,
(('2', '2', '2', '-1', '0', '1', '-1', '-1'), 3):197.369302928,
(('1', '2', '1', '2', '4', '0', '1', '0'), 1):118.430452465,
(('4', '1', '-1', '0', '-1', '-1', '0', '1'), 0):253.883450357,
(('1', '2', '4', '2', '0', '1', '1', '0'), 2):66.7413835472,
(('4', '1', '1', '0', '4', '0', '4', '0'), 2):-10,
(('1', '4', '0', '-1', '1', '0', '-1', '-1'), 2):285.829104936,
(('1', '0', '0', '1', '0', '0', '1', '1'), 1):217.279543942,
(('4', '2', '4', '2', '1', '4', '2', '0'), 2):-1000,
(('2', '2', '1', '2', '0', '4', '0', '2'), 2):10,
(('0', '1', '-1', '1', '-1', '-1', '0', '1'), 0):254.633029967,
(('2', '2', '0', '2', '1', '4', '2', '0'), 1):209.406857129,
(('1', '-1', '0', '2', '4', '-1', '0', '-1'), 2):229.795514796,
(('0', '2', '4', '2', '1', '0', '0', '0'), 2):88.6407185959,
(('0', '-1', '-1', '4', '-1', '-1', '0', '-1'), 1):238.402777519,
(('1', '4', '1', '1', '1', '1', '1', '0'), 3):156.268549225,
(('4', '1', '1', '1', '0', '0', '4', '1'), 2):10,
(('1', '1', '1', '0', '1', '0', '1', '0'), 2):213.64247832,
(('4', '1', '0', '4', '0', '0', '4', '4'), 0):-5.07472577835,
(('1', '1', '4', '-1', '1', '0', '-1', '-1'), 2):243.412274053,
(('0', '2', '4', '2', '0', '0', '0', '1'), 3):215.037782938,
(('1', '2', '-1', '2', '-1', '-1', '1', '4'), 0):260.764475344,
(('2', '2', '0', '2', '2', '1', '4', '1'), 1):198.566194717,
(('0', '4', '1', '0', '1', '1', '0', '1'), 2):10,
(('1', '2', '2', '2', '4', '2', '2', '2'), 3):124.074404797,
(('4', '-1', '2', '4', '1', '-1', '4', '-1'), 0):62.6220978734,
(('1', '-1', '4', '-1', '4', '-1', '-1', '-1'), 2):200.692693714,
(('1', '-1', '1', '1', '1', '-1', '0', '-1'), 0):247.554012827,
(('0', '0', '0', '1', '0', '1', '1', '0'), 2):146.637622174,
(('0', '2', '0', '2', '0', '4', '0', '4'), 0):89.5319377787,
(('0', '2', '2', '2', '1', '0', '0', '0'), 0):291.177784971,
(('2', '2', '0', '2', '2', '0', '4', '1'), 1):501.524961259,
(('0', '2', '1', '2', '2', '0', '4', '2'), 2):10,
(('1', '1', '4', '1', '1', '4', '1', '0'), 2):35.2217774356,
(('2', '2', '2', '2', '2', '1', '2', '1'), 2):338.461801361,
(('0', '0', '1', '4', '0', '0', '4', '0'), 2):0,
(('4', '2', '0', '2', '0', '2', '4', '2'), 2):101.644978651,
(('1', '-1', '2', '-1', '4', '-1', '-1', '-1'), 0):226.804777049,
(('0', '0', '1', '0', '0', '0', '0', '0'), 3):249.47428688,
(('0', '2', '1', '2', '1', '0', '2', '0'), 2):341.754735999,
(('-1', '1', '0', '-1', '-1', '0', '-1', '-1'), 1):244.184137935,
(('0', '1', '1', '4', '1', '1', '4', '0'), 2):73.0187062527,
(('1', '-1', '4', '0', '0', '-1', '0', '-1'), 0):86.8020421055,
(('1', '2', '0', '2', '1', '4', '0', '1'), 0):10,
(('0', '2', '4', '2', '0', '1', '1', '2'), 2):10,
(('1', '0', '4', '0', '0', '0', '0', '0'), 3):65.0057144685,
(('4', '0', '0', '0', '4', '0', '4', '0'), 1):-43.8863087262,
(('0', '2', '2', '2', '1', '1', '0', '2'), 2):192.165023198,
(('0', '4', '1', '0', '0', '0', '0', '0'), 1):151.259565857,
(('0', '0', '1', '0', '1', '0', '0', '4'), 1):0,
(('1', '2', '1', '2', '1', '1', '0', '2'), 2):352.438998302,
(('0', '1', '0', '1', '0', '1', '1', '4'), 1):10,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '4'), 3):108.328851074,
(('4', '0', '1', '0', '4', '0', '0', '0'), 0):74.2577578261,
(('0', '2', '2', '2', '1', '4', '0', '4'), 3):56.676938473,
(('1', '-1', '4', '2', '0', '-1', '1', '-1'), 1):262.282235703,
(('0', '-1', '2', '4', '0', '-1', '4', '-1'), 0):10,
(('-1', '0', '0', '1', '-1', '1', '-1', '0'), 0):36.9253842474,
(('1', '1', '4', '-1', '0', '1', '-1', '-1'), 3):101.829818262,
(('0', '1', '0', '0', '0', '1', '0', '4'), 2):10,
(('0', '-1', '0', '1', '0', '-1', '1', '-1'), 1):251.203543436,
(('0', '2', '0', '4', '1', '2', '4', '2'), 0):10,
(('4', '-1', '1', '-1', '0', '-1', '-1', '-1'), 2):170.204717242,
(('4', '2', '1', '2', '4', '1', '4', '1'), 2):48.4134105109,
(('4', '0', '1', '0', '0', '0', '0', '0'), 0):104.994600399,
(('0', '1', '-1', '4', '-1', '-1', '0', '4'), 2):215.526741758,
(('4', '2', '0', '-1', '4', '2', '-1', '-1'), 0):252.334326287,
(('4', '2', '2', '2', '0', '0', '4', '0'), 0):-132.925181865,
(('4', '1', '1', '0', '1', '1', '0', '0'), 1):228.865859858,
(('0', '-1', '0', '4', '1', '-1', '0', '-1'), 1):-10,
(('0', '2', '4', '2', '0', '2', '0', '2'), 2):84.1021860598,
(('1', '2', '1', '2', '4', '1', '0', '2'), 2):70.7492898189,
(('0', '2', '0', '4', '0', '1', '4', '1'), 0):50.6868403002,
(('1', '0', '1', '4', '1', '1', '4', '4'), 2):0,
(('0', '2', '2', '2', '1', '1', '4', '0'), 3):197.947077641,
(('0', '1', '1', '-1', '0', '1', '-1', '-1'), 2):232.556090099,
(('1', '1', '0', '1', '0', '4', '1', '1'), 2):98.8242701869,
(('4', '2', '1', '2', '4', '2', '4', '2'), 0):190,
(('0', '2', '4', '2', '4', '4', '1', '1'), 2):89.8793432856,
(('0', '4', '-1', '1', '-1', '-1', '0', '0'), 3):240.176627654,
(('2', '2', '2', '2', '0', '4', '0', '4'), 3):10,
(('4', '1', '4', '1', '4', '1', '0', '1'), 2):0,
(('1', '1', '0', '1', '0', '1', '0', '1'), 2):198.449341557,
(('1', '-1', '1', '-1', '0', '-1', '-1', '-1'), 3):297.141109841,
(('-1', '1', '1', '0', '-1', '4', '-1', '1'), 1):55.582808966,
(('1', '2', '0', '2', '0', '2', '4', '0'), 0):187.852927633,
(('1', '0', '4', '1', '4', '0', '1', '1'), 1):56.4177388125,
(('0', '-1', '1', '2', '4', '-1', '1', '-1'), 3):10,
(('1', '4', '1', '1', '1', '4', '1', '0'), 3):66.1296546198,
(('1', '-1', '4', '0', '0', '-1', '1', '-1'), 2):70.7613938852,
(('0', '1', '1', '0', '0', '0', '1', '0'), 2):31.4186456886,
(('2', '2', '2', '2', '1', '0', '1', '1'), 2):10,
(('0', '2', '1', '2', '4', '2', '1', '1'), 0):10,
(('1', '1', '0', '-1', '4', '1', '-1', '-1'), 0):131.605806355,
(('4', '2', '2', '4', '4', '0', '4', '2'), 3):10,
(('0', '0', '1', '1', '0', '1', '1', '1'), 0):69.0796673321,
(('2', '2', '2', '2', '2', '0', '0', '2'), 1):311.693085188,
(('1', '0', '1', '0', '1', '1', '4', '0'), 0):148.669063455,
(('0', '-1', '0', '1', '1', '-1', '1', '-1'), 1):164.214407223,
(('2', '2', '0', '4', '2', '0', '2', '4'), 1):219.90318378,
(('1', '0', '0', '1', '0', '0', '0', '1'), 1):229.801452136,
(('0', '0', '4', '1', '0', '0', '0', '1'), 2):217.914217772,
(('0', '4', '-1', '1', '-1', '-1', '1', '4'), 0):10,
(('0', '2', '1', '2', '1', '0', '1', '2'), 0):304.660049096,
(('1', '-1', '0', '2', '4', '-1', '1', '-1'), 0):323.178661895,
(('4', '4', '1', '4', '1', '1', '0', '0'), 0):50,
(('0', '2', '0', '4', '0', '1', '0', '1'), 2):52.5617772894,
(('1', '2', '1', '2', '0', '0', '1', '0'), 1):246.392984067,
(('0', '1', '-1', '4', '-1', '-1', '1', '4'), 3):0,
(('1', '0', '1', '4', '1', '1', '1', '4'), 2):-10,
(('1', '1', '0', '1', '0', '4', '1', '0'), 1):50.5190403694,
(('4', '-1', '0', '4', '0', '-1', '4', '-1'), 3):35.1240109004,
(('0', '4', '0', '0', '1', '0', '0', '0'), 2):77.7004507146,
(('-1', '4', '1', '-1', '-1', '0', '-1', '-1'), 2):221.11033713,
(('0', '0', '0', '1', '0', '0', '0', '1'), 1):239.217800612,
(('0', '2', '2', '2', '0', '4', '1', '1'), 3):115.291647227,
(('1', '0', '0', '1', '4', '0', '1', '0'), 2):246.142694487,
(('0', '4', '1', '1', '1', '1', '0', '4'), 0):-10,
(('4', '1', '-1', '0', '-1', '-1', '0', '0'), 3):247.441034085,
(('1', '2', '4', '2', '1', '4', '2', '0'), 2):240.489627453,
(('1', '4', '2', '4', '1', '2', '0', '4'), 3):10.0,
(('1', '2', '0', '2', '4', '0', '1', '0'), 0):216.071660868,
(('0', '4', '0', '0', '0', '4', '0', '4'), 3):11.7159055992,
(('1', '-1', '2', '2', '1', '-1', '4', '-1'), 2):177.244321802,
(('0', '0', '0', '1', '0', '0', '0', '4'), 3):98.280529169,
(('-1', '0', '4', '-1', '-1', '0', '-1', '-1'), 0):244.492940896,
(('4', '2', '1', '4', '0', '0', '4', '4'), 3):0,
(('2', '2', '2', '2', '2', '2', '1', '0'), 1):355.343981991,
(('1', '2', '1', '2', '4', '1', '1', '0'), 1):107.695415347,
(('1', '2', '1', '2', '1', '2', '4', '2'), 0):93.7911766214,
(('0', '1', '0', '1', '4', '1', '0', '1'), 3):83.5898477059,
(('1', '4', '0', '0', '0', '4', '0', '0'), 0):25.2161548093,
(('2', '2', '1', '2', '2', '0', '0', '0'), 1):295.220200993,
(('1', '0', '1', '1', '4', '1', '1', '0'), 3):92.9938346932,
(('4', '0', '0', '0', '1', '0', '0', '0'), 0):133.484892021,
(('4', '1', '4', '-1', '0', '4', '-1', '-1'), 2):-10,
(('1', '-1', '1', '0', '4', '-1', '0', '-1'), 3):161.497624479,
(('2', '4', '2', '-1', '1', '4', '-1', '-1'), 1):10,
(('1', '1', '1', '0', '0', '0', '1', '0'), 1):223.561991365,
(('0', '1', '1', '-1', '4', '0', '-1', '-1'), 3):106.270866567,
(('1', '-1', '1', '1', '4', '-1', '1', '-1'), 3):183.960134854,
(('2', '4', '2', '-1', '0', '4', '-1', '-1'), 3):104.862092103,
(('0', '4', '1', '2', '0', '0', '0', '4'), 0):35.152182567,
(('0', '0', '1', '1', '0', '0', '0', '1'), 0):195.617365973,
(('0', '0', '1', '-1', '1', '1', '-1', '-1'), 3):272.582040888,
(('0', '2', '4', '2', '0', '4', '2', '4'), 2):11.8,
(('-1', '0', '1', '1', '-1', '1', '-1', '0'), 3):230.710398595,
(('0', '1', '4', '1', '1', '1', '0', '1'), 2):-20.461420724,
(('2', '2', '2', '2', '1', '2', '0', '2'), 2):83.0578286978,
(('0', '2', '1', '2', '0', '2', '2', '2'), 2):634.079974437,
(('1', '0', '1', '1', '1', '4', '1', '1'), 1):104.571206798,
(('2', '2', '2', '2', '0', '0', '4', '4'), 3):40,
(('1', '0', '-1', '0', '-1', '-1', '1', '1'), 2):205.641342174,
(('1', '0', '0', '4', '0', '0', '1', '0'), 3):186.881620779,
(('1', '1', '4', '1', '0', '0', '1', '0'), 2):64.5237957475,
(('4', '2', '2', '2', '4', '2', '2', '2'), 3):10.0,
(('1', '1', '1', '4', '1', '1', '4', '1'), 2):25.9903043468,
(('1', '0', '1', '1', '0', '4', '0', '0'), 1):1.68322277676,
(('0', '2', '1', '2', '4', '0', '0', '1'), 3):10,
(('0', '0', '1', '-1', '0', '1', '-1', '-1'), 1):289.63303922,
(('2', '4', '1', '2', '4', '1', '0', '0'), 1):10,
(('0', '2', '-1', '4', '-1', '-1', '4', '4'), 3):189.979101693,
(('1', '1', '0', '1', '4', '0', '0', '0'), 2):71.9015212874,
(('4', '2', '-1', '2', '-1', '-1', '1', '1'), 3):335.006058939,
(('2', '2', '1', '2', '0', '4', '2', '1'), 1):50.0802875797,
(('1', '0', '1', '0', '1', '0', '0', '1'), 0):0,
(('1', '2', '0', '2', '0', '4', '0', '1'), 0):38.9697242003,
(('-1', '0', '1', '0', '-1', '1', '-1', '0'), 2):241.397961711,
(('2', '2', '1', '2', '0', '1', '0', '2'), 2):180.445855475,
(('0', '1', '-1', '4', '-1', '-1', '1', '0'), 0):118.151722477,
(('0', '1', '0', '4', '0', '1', '1', '1'), 0):10,
(('1', '0', '1', '1', '1', '0', '1', '1'), 2):211.791850035,
(('1', '4', '1', '1', '1', '4', '0', '1'), 2):-530,
(('4', '1', '-1', '4', '-1', '-1', '0', '1'), 1):91.8263194736,
(('0', '-1', '-1', '4', '-1', '-1', '4', '-1'), 0):144.309322748,
(('4', '2', '-1', '2', '-1', '-1', '1', '2'), 0):324.470185726,
(('4', '-1', '1', '1', '4', '-1', '0', '-1'), 2):99.7979146438,
(('0', '4', '0', '1', '0', '0', '0', '1'), 0):174.162828369,
(('1', '4', '0', '-1', '1', '1', '-1', '-1'), 1):53.5885699509,
(('2', '2', '2', '2', '0', '0', '2', '2'), 1):206.665319737,
(('1', '-1', '1', '2', '0', '-1', '4', '-1'), 0):10,
(('0', '2', '2', '-1', '1', '0', '-1', '-1'), 3):317.933109355,
(('0', '2', '4', '2', '4', '2', '1', '2'), 0):120,
(('0', '2', '2', '-1', '4', '1', '-1', '-1'), 3):286.861378736,
(('2', '2', '1', '2', '1', '0', '4', '0'), 2):112.582740835,
(('1', '0', '0', '0', '4', '0', '1', '0'), 3):111.185207683,
(('1', '1', '1', '1', '0', '1', '1', '0'), 3):198.613420231,
(('1', '1', '0', '0', '0', '4', '0', '0'), 1):71.6507092043,
(('2', '-1', '2', '2', '0', '-1', '2', '-1'), 0):138.925777825,
(('1', '0', '4', '1', '1', '1', '1', '0'), 3):32.1980196263,
(('4', '2', '0', '2', '0', '2', '4', '2'), 1):10,
(('0', '1', '1', '0', '1', '1', '1', '0'), 3):126.41622549,
(('1', '1', '1', '4', '0', '0', '4', '0'), 0):-30,
(('1', '-1', '2', '2', '2', '-1', '4', '-1'), 0):301.373402687,
(('4', '2', '2', '2', '4', '2', '4', '2'), 1):11.8,
(('1', '0', '4', '-1', '0', '1', '-1', '-1'), 1):160.938458984,
(('4', '1', '4', '0', '4', '1', '0', '0'), 2):0,
(('4', '2', '0', '2', '0', '0', '0', '0'), 1):218.439413321,
(('1', '2', '2', '2', '2', '0', '1', '0'), 2):325.580009264,
(('2', '2', '0', '2', '2', '1', '4', '4'), 1):190,
(('1', '-1', '0', '1', '4', '-1', '1', '-1'), 1):245.581243111,
(('0', '2', '2', '2', '4', '2', '1', '2'), 3):58.748659628,
(('1', '1', '-1', '1', '-1', '-1', '0', '4'), 3):134.59896224,
(('0', '2', '0', '2', '0', '2', '1', '1'), 0):312.974131077,
(('0', '2', '-1', '2', '-1', '-1', '2', '4'), 3):56.966730763,
(('1', '2', '2', '2', '0', '2', '4', '1'), 3):1183.38503658,
(('0', '2', '1', '2', '2', '0', '0', '2'), 0):148.522192006,
(('2', '2', '0', '-1', '1', '0', '-1', '-1'), 0):348.289907987,
(('-1', '1', '1', '0', '-1', '1', '-1', '4'), 0):156.897523794,
(('0', '-1', '1', '0', '1', '-1', '4', '-1'), 2):-35.217351783,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '1'), 3):143.720658623,
(('-1', '2', '1', '2', '-1', '1', '-1', '1'), 0):251.902781147,
(('4', '1', '1', '0', '4', '0', '0', '0'), 3):10,
(('4', '2', '2', '2', '2', '0', '1', '4'), 3):-1000,
(('4', '2', '1', '4', '0', '0', '4', '0'), 0):10,
(('4', '-1', '2', '2', '0', '-1', '4', '-1'), 1):42.1501313262,
(('2', '2', '0', '2', '1', '4', '2', '4'), 1):193.908297606,
(('4', '1', '1', '1', '4', '1', '1', '1'), 3):24.2640966875,
(('1', '1', '-1', '1', '-1', '-1', '0', '1'), 0):224.476710042,
(('0', '1', '1', '-1', '1', '4', '-1', '-1'), 2):131.103762145,
(('1', '2', '1', '2', '0', '1', '0', '0'), 3):238.066325512,
(('1', '1', '0', '-1', '4', '0', '-1', '-1'), 1):250.596957661,
(('4', '1', '1', '-1', '1', '0', '-1', '-1'), 3):125.054756926,
(('0', '2', '4', '2', '0', '0', '2', '2'), 0):162.012514089,
(('-1', '2', '4', '4', '-1', '2', '-1', '2'), 0):10,
(('1', '4', '0', '1', '0', '4', '0', '1'), 1):44.3161338232,
(('0', '1', '0', '0', '0', '0', '4', '0'), 2):63.2975321861,
(('4', '1', '1', '4', '0', '0', '4', '1'), 1):0,
(('1', '1', '0', '1', '1', '0', '1', '0'), 3):212.534408505,
(('0', '2', '2', '2', '2', '0', '4', '2'), 0):13.564,
(('2', '4', '0', '4', '1', '0', '2', '4'), 1):10,
(('2', '4', '2', '2', '0', '0', '0', '0'), 1):100,
(('0', '0', '4', '0', '0', '0', '1', '0'), 3):10,
(('1', '2', '4', '2', '1', '0', '1', '1'), 3):135.743132918,
(('1', '2', '4', '2', '0', '4', '1', '2'), 2):209.776036716,
(('2', '-1', '4', '-1', '4', '-1', '-1', '-1'), 1):128.407721164,
(('1', '2', '0', '2', '0', '0', '4', '1'), 2):162.714963723,
(('1', '1', '4', '1', '1', '0', '1', '1'), 3):182.551373341,
(('-1', '4', '1', '1', '-1', '0', '-1', '0'), 1):0,
(('1', '0', '0', '1', '4', '0', '0', '1'), 0):10,
(('1', '4', '1', '1', '0', '4', '0', '1'), 2):-10,
(('4', '1', '1', '-1', '4', '4', '-1', '-1'), 0):-10,
(('-1', '2', '2', '4', '-1', '2', '-1', '4'), 3):90.42317776,
(('4', '2', '0', '-1', '2', '1', '-1', '-1'), 1):227.472620047,
(('0', '2', '0', '2', '1', '1', '2', '1'), 2):223.767837614,
(('1', '1', '1', '1', '0', '1', '1', '1'), 0):186.233741276,
(('0', '0', '4', '0', '1', '1', '0', '0'), 2):10,
(('2', '2', '1', '-1', '0', '2', '-1', '-1'), 1):403.319519274,
(('1', '0', '4', '0', '1', '4', '1', '0'), 1):152.262504788,
(('0', '2', '0', '2', '1', '1', '0', '1'), 0):232.957128212,
(('0', '0', '0', '0', '0', '0', '0', '0'), 1):224.179573918,
(('4', '1', '4', '-1', '0', '1', '-1', '-1'), 1):0,
(('1', '2', '1', '2', '1', '4', '1', '2'), 0):54.6791235516,
(('2', '2', '1', '2', '4', '1', '2', '0'), 1):73.760542715,
(('-1', '2', '2', '2', '-1', '0', '-1', '0'), 1):334.180112715,
(('0', '1', '1', '-1', '1', '1', '-1', '-1'), 3):278.564962329,
(('4', '1', '0', '0', '0', '0', '0', '1'), 0):217.535821699,
(('1', '4', '1', '0', '0', '4', '0', '0'), 1):26.4614339223,
(('0', '2', '0', '-1', '1', '1', '-1', '-1'), 3):146.499516715,
(('1', '0', '1', '1', '1', '1', '1', '4'), 3):-10,
(('1', '1', '1', '0', '0', '0', '0', '0'), 2):229.260335677,
(('0', '-1', '4', '2', '1', '-1', '0', '-1'), 2):212.550615907,
(('0', '4', '1', '4', '0', '0', '0', '4'), 0):2.0,
(('1', '0', '0', '1', '1', '4', '1', '1'), 0):0,
(('0', '0', '0', '0', '0', '0', '0', '4'), 3):71.277431697,
(('1', '2', '4', '2', '4', '0', '1', '0'), 1):190.772680897,
(('0', '1', '1', '1', '1', '1', '0', '0'), 1):220.691909409,
(('1', '0', '0', '1', '1', '1', '1', '0'), 0):141.383192088,
(('4', '-1', '0', '2', '0', '-1', '1', '-1'), 2):245.061528092,
(('0', '4', '1', '1', '0', '1', '0', '0'), 2):149.777918759,
(('0', '2', '4', '-1', '0', '4', '-1', '-1'), 2):259.35217314,
(('1', '4', '0', '2', '0', '4', '1', '4'), 2):23.6844614212,
(('0', '1', '0', '0', '0', '1', '0', '1'), 2):230.059585756,
(('2', '2', '0', '2', '0', '1', '0', '2'), 1):356.353644621,
(('4', '0', '4', '0', '4', '0', '0', '0'), 3):50,
(('1', '1', '0', '-1', '1', '4', '-1', '-1'), 1):141.138119336,
(('2', '-1', '-1', '2', '-1', '-1', '1', '-1'), 2):343.77580538,
(('1', '-1', '1', '4', '0', '-1', '1', '-1'), 0):101.721584055,
(('4', '1', '1', '0', '4', '1', '0', '1'), 2):88.3208588563,
(('1', '0', '0', '4', '1', '0', '4', '0'), 2):10,
(('2', '2', '1', '2', '0', '4', '0', '0'), 1):172.696094846,
(('2', '2', '0', '2', '0', '4', '0', '2'), 1):224.406011458,
(('-1', '4', '1', '4', '-1', '1', '-1', '4'), 3):16.66,
(('0', '1', '1', '1', '1', '1', '0', '1'), 1):211.09430754,
(('0', '1', '-1', '1', '-1', '-1', '4', '0'), 0):177.663214329,
(('-1', '2', '0', '-1', '-1', '0', '-1', '-1'), 2):121.678822275,
(('4', '1', '4', '-1', '4', '0', '-1', '-1'), 1):-160,
(('4', '2', '1', '2', '0', '0', '0', '0'), 3):228.550109988,
(('4', '2', '1', '2', '0', '1', '4', '1'), 1):10,
(('1', '1', '4', '1', '1', '0', '1', '0'), 3):94.4281180157,
(('1', '0', '-1', '0', '-1', '-1', '1', '0'), 2):283.408532474,
(('0', '2', '1', '-1', '1', '4', '-1', '-1'), 2):272.075125336,
(('1', '2', '1', '2', '2', '4', '2', '4'), 2):10,
(('4', '0', '1', '1', '1', '0', '0', '0'), 2):72.3890011317,
(('0', '-1', '1', '0', '4', '-1', '0', '-1'), 2):-19.6252619237,
(('0', '0', '1', '0', '4', '0', '0', '0'), 3):163.666605552,
(('4', '0', '0', '-1', '1', '0', '-1', '-1'), 1):129.617230506,
(('4', '2', '2', '2', '0', '2', '0', '1'), 3):253.882888989,
(('1', '4', '1', '0', '0', '0', '0', '0'), 3):145.036148103,
(('1', '1', '0', '1', '0', '4', '0', '1'), 2):36.6247803048,
(('0', '2', '2', '2', '0', '2', '0', '2'), 0):327.358365043,
(('-1', '1', '0', '1', '-1', '0', '-1', '1'), 1):227.72749088,
(('1', '2', '0', '2', '4', '0', '2', '4'), 2):10,
(('0', '0', '1', '0', '1', '0', '1', '0'), 2):33.3681909325,
(('0', '2', '0', '2', '0', '4', '2', '2'), 2):250.59000671,
(('0', '2', '1', '4', '1', '0', '4', '4'), 0):20,
(('1', '2', '2', '2', '0', '0', '1', '0'), 3):278.69259343,
(('2', '4', '4', '2', '0', '0', '0', '4'), 1):108.266310097,
(('4', '-1', '0', '0', '0', '-1', '1', '-1'), 1):10,
(('1', '1', '0', '0', '0', '0', '4', '0'), 0):116.323017979,
(('1', '1', '0', '1', '0', '0', '1', '1'), 0):204.892348584,
(('-1', '1', '1', '1', '-1', '0', '-1', '1'), 3):198.30294691,
(('2', '2', '0', '4', '0', '4', '4', '4'), 1):10,
(('0', '1', '1', '1', '1', '1', '1', '0'), 3):190.139716293,
(('1', '4', '0', '0', '0', '1', '0', '0'), 2):0,
(('4', '1', '4', '1', '4', '1', '4', '1'), 1):0,
(('0', '4', '1', '1', '1', '4', '0', '1'), 2):-40,
(('4', '2', '2', '2', '4', '2', '0', '2'), 1):10,
(('1', '-1', '0', '2', '2', '-1', '2', '-1'), 2):381.421775453,
(('4', '2', '2', '2', '4', '0', '0', '0'), 3):100.336353173,
(('0', '0', '0', '1', '0', '0', '1', '4'), 1):112.455841449,
(('4', '2', '0', '2', '4', '0', '0', '2'), 0):235.200796968,
(('0', '2', '4', '2', '4', '4', '0', '1'), 2):197.13219393,
(('2', '2', '0', '2', '1', '1', '1', '4'), 1):47.2544474509,
(('4', '2', '2', '2', '1', '0', '4', '0'), 0):10,
(('2', '2', '2', '2', '4', '0', '0', '2'), 3):10,
(('2', '2', '2', '2', '2', '2', '1', '1'), 3):420.604556059,
(('2', '2', '2', '2', '2', '0', '2', '4'), 1):184.059468952,
(('0', '1', '0', '4', '0', '0', '4', '0'), 1):50.1764203943,
(('4', '1', '1', '0', '0', '1', '0', '0'), 1):163.834788366,
(('-1', '1', '0', '1', '-1', '0', '-1', '1'), 0):244.035891818,
(('0', '-1', '0', '2', '0', '-1', '1', '-1'), 1):258.099648845,
(('1', '0', '1', '1', '1', '1', '1', '0'), 1):247.486637927,
(('4', '2', '0', '2', '1', '0', '1', '2'), 2):25.250093235,
(('-1', '1', '1', '1', '-1', '1', '-1', '4'), 0):121.740234126,
(('1', '4', '4', '1', '4', '4', '0', '0'), 2):0.0,
(('1', '2', '4', '-1', '4', '2', '-1', '-1'), 0):164.678473805,
(('1', '1', '1', '4', '1', '0', '1', '1'), 1):0,
(('0', '2', '2', '2', '4', '2', '0', '2'), 2):77.8272868915,
(('-1', '2', '0', '2', '-1', '2', '-1', '0'), 2):311.613409376,
(('1', '4', '0', '1', '1', '0', '1', '4'), 2):49.7756418769,
(('0', '4', '2', '2', '0', '0', '0', '1'), 3):135.234151117,
(('1', '4', '1', '2', '1', '1', '0', '4'), 2):74.8244120181,
(('2', '2', '1', '2', '0', '0', '0', '0'), 0):194.509864799,
(('4', '1', '1', '1', '0', '1', '0', '0'), 0):183.202944377,
(('0', '-1', '0', '1', '0', '-1', '1', '-1'), 0):242.478265466,
(('4', '2', '2', '2', '0', '2', '0', '2'), 3):217.549675506,
(('2', '4', '-1', '2', '-1', '-1', '2', '2'), 1):144.747792175,
(('2', '2', '0', '2', '0', '1', '0', '1'), 1):229.27166153,
(('1', '4', '1', '0', '1', '4', '1', '0'), 2):42.0,
(('4', '1', '4', '-1', '4', '0', '-1', '-1'), 0):63.9954628468,
(('0', '-1', '1', '1', '1', '-1', '1', '-1'), 2):211.877360327,
(('4', '0', '4', '-1', '4', '0', '-1', '-1'), 0):28.4104956941,
(('4', '-1', '-1', '0', '-1', '-1', '4', '-1'), 3):207.600753465,
(('1', '-1', '-1', '4', '-1', '-1', '1', '-1'), 0):261.54109769,
(('4', '-1', '2', '2', '0', '-1', '2', '-1'), 1):10,
(('0', '2', '4', '2', '0', '4', '0', '1'), 3):164.360799596,
(('1', '1', '0', '1', '0', '1', '0', '0'), 0):194.137622402,
(('0', '2', '0', '2', '1', '2', '0', '2'), 0):404.20254091,
(('0', '4', '4', '0', '0', '4', '0', '4'), 3):54.2864087564,
(('1', '2', '4', '2', '1', '4', '1', '4'), 0):30,
(('2', '2', '-1', '2', '-1', '-1', '0', '2'), 1):454.578754557,
(('1', '-1', '0', '-1', '1', '-1', '-1', '-1'), 1):313.005504024,
(('0', '1', '1', '0', '1', '1', '1', '1'), 1):35.6537710863,
(('1', '4', '0', '4', '0', '0', '0', '4'), 2):0,
(('1', '0', '1', '1', '0', '0', '0', '4'), 3):-10,
(('0', '2', '1', '4', '0', '2', '4', '2'), 0):10,
(('0', '4', '0', '0', '0', '0', '1', '4'), 3):78.1789264347,
(('0', '0', '-1', '4', '-1', '-1', '0', '0'), 2):226.982004505,
(('0', '2', '0', '2', '0', '2', '0', '2'), 2):320.798797351,
(('4', '-1', '0', '1', '1', '-1', '0', '-1'), 0):-10,
(('2', '4', '1', '2', '2', '1', '2', '4'), 1):42.8787577535,
(('1', '0', '1', '0', '1', '0', '0', '4'), 3):10,
(('0', '1', '4', '1', '4', '4', '0', '1'), 1):104.427184651,
(('1', '0', '0', '0', '0', '0', '1', '4'), 3):10,
(('1', '2', '2', '2', '1', '0', '4', '2'), 2):10.0,
(('1', '0', '0', '1', '0', '0', '0', '0'), 3):229.994382065,
(('0', '2', '4', '2', '4', '0', '2', '2'), 0):86.5402923787,
(('0', '2', '-1', '2', '-1', '-1', '1', '1'), 3):338.087503011,
(('2', '2', '4', '-1', '0', '0', '-1', '-1'), 0):64.2089856749,
(('1', '-1', '1', '1', '0', '-1', '1', '-1'), 0):218.159352134,
(('1', '-1', '0', '4', '0', '-1', '0', '-1'), 0):189.76951063,
(('0', '1', '4', '0', '0', '0', '0', '1'), 1):150.539242712,
(('1', '2', '0', '2', '1', '1', '0', '1'), 3):39.6968779248,
(('0', '0', '-1', '0', '-1', '-1', '0', '4'), 3):98.8948577305,
(('1', '4', '1', '0', '1', '4', '0', '4'), 1):30.2752330592,
(('0', '0', '4', '1', '4', '0', '1', '0'), 2):44.7203557869,
(('4', '2', '0', '2', '0', '0', '2', '0'), 2):255.121393915,
(('2', '2', '2', '2', '0', '2', '0', '0'), 1):326.543784214,
(('1', '4', '4', '0', '0', '0', '0', '4'), 1):10,
(('0', '4', '1', '0', '0', '4', '0', '4'), 0):32.9869993494,
(('1', '2', '2', '2', '1', '0', '1', '1'), 2):80,
(('4', '4', '4', '2', '0', '4', '4', '0'), 2):10,
(('1', '2', '1', '4', '1', '0', '1', '1'), 0):0,
(('1', '0', '0', '0', '1', '0', '1', '1'), 2):38.7333426129,
(('0', '1', '4', '0', '0', '1', '1', '0'), 1):10,
(('-1', '2', '1', '-1', '-1', '2', '-1', '-1'), 1):434.759634506,
(('2', '2', '0', '2', '0', '1', '1', '1'), 2):10,
(('1', '1', '0', '4', '0', '0', '1', '4'), 3):49.3222210418,
(('4', '1', '0', '1', '0', '0', '0', '1'), 2):230.686192736,
(('1', '0', '1', '4', '0', '1', '0', '0'), 3):0,
(('0', '2', '1', '2', '2', '1', '2', '2'), 0):10,
(('0', '1', '0', '0', '1', '0', '0', '0'), 0):230.415022221,
(('1', '0', '1', '1', '1', '0', '0', '4'), 1):0,
(('1', '-1', '2', '2', '4', '-1', '0', '-1'), 2):-1000,
(('2', '2', '-1', '2', '-1', '-1', '4', '1'), 2):10,
(('1', '1', '1', '-1', '0', '1', '-1', '-1'), 3):233.789636977,
(('1', '0', '0', '1', '4', '0', '1', '1'), 1):170.984543311,
(('1', '0', '1', '1', '1', '1', '4', '0'), 0):30.4711610741,
(('0', '2', '2', '2', '0', '2', '4', '0'), 0):241.042950582,
(('1', '-1', '1', '4', '1', '-1', '0', '-1'), 2):210.935894827,
(('0', '2', '2', '2', '2', '2', '2', '0'), 0):247.388750789,
(('1', '1', '1', '1', '4', '1', '1', '0'), 3):70.7413273745,
(('0', '2', '1', '2', '1', '1', '0', '0'), 2):257.667313714,
(('0', '-1', '4', '0', '0', '-1', '1', '-1'), 2):32.5534088356,
(('0', '-1', '1', '2', '1', '-1', '1', '-1'), 0):234.81191863,
(('0', '2', '0', '2', '0', '1', '2', '2'), 2):333.273967905,
(('0', '1', '-1', '4', '-1', '-1', '4', '1'), 3):189.828064896,
(('0', '4', '1', '1', '0', '0', '0', '4'), 3):106.123763389,
(('1', '1', '-1', '0', '-1', '-1', '1', '1'), 0):241.807350068,
(('4', '1', '1', '1', '4', '1', '0', '1'), 2):123.817661718,
(('2', '2', '4', '2', '0', '0', '0', '4'), 1):10,
(('1', '2', '4', '-1', '1', '1', '-1', '-1'), 1):168.260229347,
(('-1', '4', '1', '0', '-1', '4', '-1', '0'), 2):116.634275347,
(('2', '2', '2', '4', '2', '0', '2', '0'), 3):78.0059131889,
(('0', '2', '2', '2', '2', '0', '2', '2'), 0):208.822355447,
(('1', '1', '0', '1', '4', '1', '1', '1'), 0):130.824266821,
(('0', '2', '0', '2', '0', '1', '4', '2'), 0):220.268154808,
(('1', '2', '4', '2', '0', '0', '1', '2'), 3):210,
(('1', '-1', '1', '2', '1', '-1', '4', '-1'), 1):140.428873976,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '0'), 0):220.820738634,
(('2', '2', '1', '2', '4', '1', '0', '0'), 2):117.998347523,
(('1', '0', '4', '0', '1', '1', '0', '0'), 1):73.9094875137,
(('4', '0', '1', '1', '4', '0', '0', '0'), 1):56.0783200102,
(('0', '1', '4', '0', '1', '0', '0', '1'), 1):-10,
(('1', '4', '-1', '0', '-1', '-1', '0', '0'), 3):258.367959325,
(('0', '2', '-1', '4', '-1', '-1', '0', '2'), 3):223.366000705,
(('2', '2', '4', '2', '4', '4', '0', '2'), 1):68.9711638306,
(('1', '2', '-1', '4', '-1', '-1', '1', '4'), 0):55.1229553063,
(('1', '2', '4', '2', '2', '4', '0', '0'), 3):10,
(('0', '0', '0', '1', '0', '4', '0', '1'), 1):110.726604701,
(('1', '4', '4', '0', '0', '4', '0', '0'), 1):42.0,
(('4', '2', '1', '2', '2', '2', '0', '0'), 0):280,
(('1', '2', '0', '2', '1', '1', '0', '0'), 0):359.778713721,
(('1', '2', '0', '2', '0', '1', '1', '2'), 2):332.725742879,
(('2', '2', '0', '4', '0', '0', '4', '1'), 1):30,
(('1', '2', '0', '2', '0', '2', '0', '4'), 0):10,
(('1', '4', '0', '1', '0', '0', '0', '0'), 2):147.309607107,
(('-1', '4', '1', '2', '-1', '4', '-1', '0'), 3):10,
(('1', '1', '0', '1', '0', '0', '4', '0'), 3):37.7492967451,
(('1', '2', '2', '2', '1', '1', '1', '4'), 3):131.923489242,
(('0', '1', '1', '1', '0', '4', '0', '1'), 3):177.345955804,
(('1', '0', '0', '1', '1', '0', '0', '1'), 0):256.60548705,
(('1', '1', '1', '4', '1', '1', '4', '0'), 1):38.0252198012,
(('2', '4', '1', '2', '1', '4', '0', '4'), 1):117.748423213,
(('0', '-1', '4', '2', '0', '-1', '2', '-1'), 2):153.946369301,
(('1', '4', '4', '-1', '4', '4', '-1', '-1'), 1):-10,
(('2', '2', '0', '2', '4', '0', '0', '2'), 1):219.81317973,
(('0', '2', '1', '2', '1', '0', '0', '1'), 1):106.796874066,
(('2', '2', '1', '2', '0', '0', '1', '4'), 1):66.4338171512,
(('0', '1', '1', '1', '0', '1', '0', '4'), 2):134.921399294,
(('0', '2', '1', '2', '0', '0', '1', '0'), 0):169.577194086,
(('2', '2', '0', '2', '4', '0', '2', '2'), 1):174.067303181,
(('1', '-1', '1', '-1', '0', '-1', '-1', '-1'), 0):254.86204627,
(('2', '2', '1', '2', '1', '4', '0', '2'), 1):110,
(('1', '2', '1', '2', '0', '0', '1', '1'), 1):185.181755695,
(('0', '-1', '1', '0', '0', '-1', '1', '-1'), 1):152.584545967,
(('1', '2', '1', '2', '0', '1', '0', '1'), 3):176.580925528,
(('4', '1', '0', '4', '4', '0', '4', '4'), 0):8.0,
(('1', '2', '-1', '2', '-1', '-1', '1', '1'), 2):317.391431653,
(('0', '1', '0', '1', '4', '0', '0', '0'), 1):100.530059566,
(('4', '2', '2', '2', '1', '1', '4', '1'), 3):47.2427487295,
(('0', '2', '1', '2', '1', '1', '0', '0'), 3):247.911036395,
(('1', '-1', '0', '0', '4', '-1', '1', '-1'), 1):0,
(('0', '0', '1', '1', '1', '0', '0', '0'), 0):213.952701587,
(('2', '2', '0', '2', '2', '4', '2', '1'), 2):117.162215595,
(('0', '2', '0', '4', '0', '1', '1', '1'), 0):0,
(('2', '-1', '0', '2', '1', '-1', '2', '-1'), 0):364.157111694,
(('0', '1', '0', '1', '1', '4', '0', '1'), 0):-4.2,
(('0', '1', '0', '0', '0', '0', '0', '1'), 1):211.73596821,
(('2', '2', '2', '4', '2', '0', '1', '0'), 3):140,
(('4', '2', '1', '-1', '0', '1', '-1', '-1'), 0):288.355133812,
(('0', '1', '4', '-1', '0', '0', '-1', '-1'), 0):256.901088313,
(('1', '2', '0', '2', '1', '1', '2', '2'), 0):247.064474477,
(('1', '0', '1', '4', '0', '1', '1', '0'), 0):50,
(('0', '0', '1', '4', '1', '0', '0', '0'), 3):180.338346749,
(('0', '0', '1', '1', '4', '0', '0', '0'), 0):59.7459515522,
(('-1', '0', '0', '-1', '-1', '1', '-1', '-1'), 3):251.223010109,
(('1', '1', '4', '-1', '1', '1', '-1', '-1'), 1):154.547252017,
(('0', '-1', '1', '2', '4', '-1', '1', '-1'), 0):150.443836139,
(('1', '-1', '-1', '0', '-1', '-1', '4', '-1'), 0):217.622286161,
(('1', '1', '1', '-1', '1', '0', '-1', '-1'), 0):250.299596038,
(('0', '0', '4', '0', '0', '1', '0', '0'), 2):131.126214758,
(('1', '1', '1', '-1', '1', '4', '-1', '-1'), 3):213.951419126,
(('4', '0', '1', '0', '0', '1', '0', '0'), 1):84.2939693769,
(('0', '1', '1', '1', '0', '0', '1', '0'), 0):184.734554001,
(('1', '4', '0', '0', '1', '0', '0', '1'), 1):0,
(('1', '-1', '2', '2', '1', '-1', '0', '-1'), 3):337.197863216,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '1'), 1):257.472313253,
(('0', '2', '2', '4', '2', '1', '4', '1'), 3):182.548141689,
(('0', '0', '0', '-1', '0', '4', '-1', '-1'), 3):10,
(('1', '2', '0', '2', '0', '4', '1', '4'), 0):60,
(('1', '1', '1', '0', '1', '1', '0', '0'), 1):226.173569408,
(('1', '0', '1', '1', '0', '1', '1', '1'), 3):163.864631943,
(('0', '-1', '0', '2', '1', '-1', '0', '-1'), 2):310.424944812,
(('0', '2', '4', '2', '1', '0', '0', '2'), 2):93.8883527166,
(('0', '2', '2', '4', '1', '2', '1', '2'), 3):10,
(('0', '4', '-1', '2', '-1', '-1', '0', '4'), 3):297.886821256,
(('1', '1', '1', '1', '1', '1', '0', '4'), 3):-9.36499884205,
(('1', '4', '1', '2', '1', '1', '1', '4'), 3):10,
(('0', '4', '1', '1', '0', '1', '0', '1'), 1):99.0312063026,
(('2', '2', '1', '4', '1', '1', '1', '1'), 1):10,
(('1', '-1', '1', '0', '0', '-1', '0', '-1'), 2):258.133516954,
(('0', '-1', '-1', '4', '-1', '-1', '1', '-1'), 0):252.125643987,
(('1', '1', '1', '-1', '4', '1', '-1', '-1'), 0):203.268421515,
(('1', '1', '0', '1', '0', '0', '0', '1'), 2):221.644046784,
(('1', '1', '0', '4', '4', '0', '1', '0'), 2):10,
(('0', '2', '0', '4', '1', '2', '0', '4'), 0):10,
(('2', '4', '4', '2', '0', '4', '2', '1'), 1):10,
(('1', '0', '1', '4', '1', '1', '0', '0'), 3):152.97169216,
(('2', '4', '1', '4', '1', '0', '0', '4'), 1):63.2762368514,
(('0', '2', '0', '2', '0', '2', '4', '4'), 2):88.8818919747,
(('2', '2', '1', '2', '2', '0', '2', '1'), 1):208.365749762,
(('0', '2', '1', '2', '1', '0', '0', '4'), 0):121.223807181,
(('0', '2', '0', '2', '2', '0', '2', '1'), 2):59.2571038709,
(('1', '4', '-1', '0', '-1', '-1', '0', '4'), 1):168.239447625,
(('1', '1', '-1', '0', '-1', '-1', '1', '1'), 1):233.459857475,
(('1', '0', '1', '0', '0', '0', '1', '0'), 0):246.602065372,
(('4', '1', '0', '1', '0', '1', '1', '0'), 3):0,
(('0', '0', '1', '0', '0', '0', '1', '0'), 2):0,
(('4', '0', '1', '0', '4', '0', '0', '0'), 2):21.9881018257,
(('0', '0', '1', '1', '0', '1', '1', '0'), 0):126.60050276,
(('2', '2', '0', '2', '1', '0', '2', '2'), 0):378.879892119,
(('4', '1', '0', '4', '0', '0', '4', '0'), 1):0.0,
(('0', '-1', '-1', '1', '-1', '-1', '0', '-1'), 1):238.659956708,
(('-1', '4', '1', '1', '-1', '4', '-1', '0'), 2):-302.942126418,
(('1', '1', '4', '1', '1', '4', '0', '0'), 2):-1000,
(('0', '2', '0', '2', '0', '4', '0', '1'), 2):220.580286603,
(('1', '1', '1', '1', '1', '1', '1', '4'), 0):71.092819786,
(('1', '4', '-1', '2', '-1', '-1', '1', '4'), 1):216.316187092,
(('2', '4', '2', '4', '0', '0', '0', '4'), 3):10,
(('1', '2', '2', '2', '0', '2', '2', '2'), 3):365.712680281,
(('0', '2', '2', '2', '1', '2', '1', '2'), 0):77.3592161446,
(('2', '-1', '2', '-1', '0', '-1', '-1', '-1'), 2):-36.2409523882,
(('1', '0', '0', '1', '0', '1', '1', '1'), 1):95.4005719257,
(('1', '1', '0', '0', '1', '0', '0', '0'), 3):246.090377524,
(('1', '2', '1', '2', '0', '1', '1', '0'), 1):233.096421916,
(('4', '-1', '1', '2', '1', '-1', '4', '-1'), 2):191.023372195,
(('-1', '4', '4', '4', '-1', '1', '-1', '4'), 2):50,
(('2', '2', '2', '-1', '0', '1', '-1', '-1'), 2):344.101568625,
(('1', '2', '1', '2', '4', '0', '1', '0'), 2):126.411322963,
(('1', '2', '2', '2', '2', '1', '0', '4'), 3):10,
(('4', '1', '-1', '0', '-1', '-1', '0', '1'), 1):242.398489821,
(('4', '2', '0', '-1', '0', '0', '-1', '-1'), 1):290.523587112,
(('1', '0', '0', '1', '0', '0', '1', '1'), 0):215.282624491,
(('0', '2', '1', '4', '1', '2', '0', '4'), 0):57.5410061942,
(('2', '2', '0', '2', '1', '4', '2', '0'), 2):48.6806516969,
(('1', '2', '0', '4', '0', '0', '1', '1'), 1):10,
(('2', '2', '0', '2', '0', '0', '0', '2'), 2):326.107233157,
(('2', '2', '0', '2', '1', '0', '2', '0'), 0):330.372881203,
(('0', '-1', '-1', '4', '-1', '-1', '0', '-1'), 2):240.878745937,
(('1', '4', '1', '1', '1', '1', '1', '0'), 2):186.741949365,
(('1', '1', '1', '0', '1', '0', '1', '0'), 3):228.723369741,
(('1', '2', '2', '-1', '0', '1', '-1', '-1'), 3):283.887188516,
(('0', '2', '4', '2', '0', '0', '0', '1'), 0):250.648922616,
(('1', '2', '-1', '2', '-1', '-1', '1', '4'), 1):303.795762228,
(('2', '4', '2', '2', '2', '2', '2', '0'), 1):10.0,
(('1', '2', '1', '4', '1', '1', '4', '0'), 0):42.768644524,
(('4', '-1', '2', '4', '1', '-1', '4', '-1'), 3):71.768648273,
(('1', '-1', '4', '-1', '4', '-1', '-1', '-1'), 1):151.835801408,
(('1', '-1', '1', '1', '1', '-1', '0', '-1'), 1):261.970772257,
(('0', '0', '0', '1', '0', '1', '1', '0'), 3):86.3501784174,
(('0', '2', '0', '2', '0', '4', '0', '4'), 3):10,
(('0', '2', '2', '4', '0', '0', '0', '0'), 0):32.8604263355,
(('2', '2', '0', '2', '2', '0', '4', '4'), 1):92.5004549532,
(('1', '4', '0', '4', '1', '4', '0', '4'), 3):10,
(('4', '-1', '1', '4', '0', '-1', '4', '-1'), 3):24.7483856002,
(('1', '-1', '2', '-1', '4', '-1', '-1', '-1'), 3):273.277707333,
(('-1', '1', '0', '-1', '-1', '0', '-1', '-1'), 0):249.68897151,
(('-1', '0', '1', '-1', '-1', '1', '-1', '-1'), 0):270.698214018,
(('1', '1', '0', '0', '1', '0', '0', '1'), 1):220.703851653,
(('4', '1', '-1', '4', '-1', '-1', '4', '1'), 0):15.8300828029,
(('1', '1', '1', '1', '0', '1', '1', '4'), 1):85.7919763951,
(('1', '2', '2', '2', '2', '2', '2', '0'), 2):409.277286351,
(('1', '1', '-1', '0', '-1', '-1', '4', '1'), 2):33.301061736,
(('0', '2', '1', '-1', '1', '2', '-1', '-1'), 0):381.26498091,
(('0', '1', '0', '1', '0', '1', '1', '4'), 0):10,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '4'), 0):-10,
(('1', '4', '-1', '0', '-1', '-1', '1', '1'), 2):84.7322212041,
(('-1', '2', '0', '4', '-1', '0', '-1', '4'), 1):44.7664988607,
(('2', '4', '0', '-1', '2', '4', '-1', '-1'), 1):305.571713285,
(('1', '1', '4', '-1', '0', '1', '-1', '-1'), 2):185.288845695,
(('4', '1', '0', '1', '1', '1', '0', '0'), 2):10,
(('0', '-1', '1', '-1', '1', '-1', '-1', '-1'), 3):276.810158566,
(('1', '2', '1', '-1', '1', '1', '-1', '-1'), 0):257.018448397,
(('4', '2', '1', '2', '4', '1', '4', '1'), 3):52.6786673058,
(('0', '0', '0', '1', '4', '0', '0', '0'), 3):72.1610005835,
(('0', '1', '-1', '4', '-1', '-1', '0', '4'), 1):165.242959161,
(('4', '-1', '2', '2', '4', '-1', '4', '-1'), 2):85.7163542289,
(('0', '4', '4', '1', '0', '4', '0', '4'), 0):10,
(('4', '1', '1', '0', '1', '1', '0', '0'), 0):191.981502652,
(('1', '4', '1', '4', '0', '0', '1', '4'), 3):0,
(('0', '-1', '0', '4', '1', '-1', '0', '-1'), 0):10,
(('4', '2', '4', '2', '0', '4', '0', '0'), 3):10,
(('1', '4', '4', '1', '0', '4', '1', '4'), 0):59.7504018166,
(('0', '2', '1', '2', '0', '2', '1', '4'), 0):216.509812169,
(('1', '4', '0', '2', '1', '4', '2', '0'), 2):10,
(('4', '2', '2', '2', '2', '0', '4', '0'), 1):10,
(('0', '-1', '1', '1', '1', '-1', '4', '-1'), 0):95.9573979276,
(('0', '4', '-1', '1', '-1', '-1', '0', '0'), 2):243.572878161,
(('4', '1', '1', '1', '1', '0', '4', '1'), 0):67.1615682787,
(('0', '4', '1', '2', '1', '1', '0', '0'), 3):238.16055753,
(('4', '0', '1', '1', '0', '0', '4', '0'), 2):0,
(('1', '1', '0', '1', '0', '1', '0', '1'), 3):183.73408257,
(('0', '4', '0', '2', '4', '4', '1', '4'), 1):10,
(('2', '4', '1', '2', '2', '1', '0', '4'), 1):175.873938729,
(('1', '-1', '4', '2', '4', '-1', '2', '-1'), 0):396.333182248,
(('0', '1', '1', '4', '1', '1', '0', '4'), 1):81.0772594461,
(('2', '2', '2', '2', '2', '0', '0', '1'), 3):472.447391906,
(('1', '0', '1', '4', '1', '1', '4', '0'), 2):-10,
(('1', '0', '1', '0', '1', '4', '0', '0'), 1):188.060518518,
(('2', '4', '2', '-1', '0', '2', '-1', '-1'), 1):171.167024476,
(('1', '4', '1', '1', '1', '4', '1', '0'), 0):65.4998005381,
(('1', '-1', '4', '0', '0', '-1', '1', '-1'), 3):112.021962607,
(('0', '2', '2', '4', '0', '2', '4', '4'), 3):131.294010772,
(('0', '1', '1', '0', '0', '0', '1', '0'), 3):32.8475146786,
(('2', '2', '2', '2', '1', '0', '1', '1'), 3):259.649849702,
(('0', '2', '1', '2', '1', '0', '0', '0'), 3):254.605088124,
(('1', '-1', '0', '2', '4', '-1', '4', '-1'), 0):10,
(('0', '4', '1', '0', '1', '1', '1', '0'), 0):0,
(('4', '-1', '1', '1', '4', '-1', '4', '-1'), 2):-91.9350454648,
(('2', '2', '2', '2', '2', '0', '0', '2'), 0):483.559361526,
(('1', '0', '1', '0', '1', '1', '4', '0'), 3):178.179486782,
(('0', '-1', '0', '1', '1', '-1', '1', '-1'), 0):86.8306066179,
(('1', '2', '0', '2', '1', '2', '0', '0'), 0):477.218928878,
(('1', '0', '0', '1', '0', '0', '0', '1'), 2):206.650305858,
(('0', '2', '1', '4', '0', '0', '0', '0'), 3):142.895220545,
(('1', '4', '1', '2', '1', '0', '1', '0'), 1):48.9099006101,
(('0', '4', '-1', '1', '-1', '-1', '1', '4'), 1):48.9794923216,
(('2', '2', '1', '4', '0', '1', '2', '4'), 1):24.1017796701,
(('1', '-1', '0', '2', '4', '-1', '1', '-1'), 1):252.412877729,
(('0', '1', '1', '1', '0', '1', '4', '4'), 2):-10,
(('0', '0', '-1', '1', '-1', '-1', '1', '4'), 3):10,
(('1', '2', '1', '2', '0', '0', '1', '0'), 2):284.172064277,
(('1', '0', '1', '4', '1', '1', '1', '4'), 3):46.2348795867,
(('1', '1', '0', '1', '0', '4', '1', '0'), 0):119.005966988,
(('-1', '4', '0', '1', '-1', '0', '-1', '1'), 2):231.700980379,
(('4', '-1', '0', '4', '0', '-1', '4', '-1'), 0):10,
(('0', '4', '0', '0', '1', '0', '0', '0'), 3):98.8052326252,
(('1', '1', '1', '1', '0', '4', '1', '1'), 3):69.081314984,
(('0', '0', '0', '1', '0', '0', '0', '1'), 0):219.773905409,
(('0', '2', '2', '2', '4', '4', '0', '1'), 3):10,
(('1', '2', '1', '2', '1', '4', '1', '4'), 1):10.684,
(('1', '0', '0', '1', '4', '0', '1', '0'), 3):203.783744549,
(('4', '1', '-1', '0', '-1', '-1', '0', '0'), 2):227.448320377,
(('0', '-1', '1', '0', '0', '-1', '0', '-1'), 1):239.672046345,
(('0', '2', '2', '2', '1', '0', '2', '0'), 2):10,
(('0', '4', '0', '0', '0', '4', '0', '4'), 2):65.0883644402,
(('1', '2', '2', '4', '1', '2', '0', '4'), 3):61.5024168034,
(('1', '-1', '2', '2', '1', '-1', '4', '-1'), 3):316.73954934,
(('-1', '0', '4', '-1', '-1', '0', '-1', '-1'), 1):241.966074349,
(('0', '1', '1', '1', '0', '4', '1', '1'), 2):0,
(('1', '2', '0', '2', '0', '4', '0', '0'), 1):144.697737151,
(('1', '1', '1', '0', '1', '0', '1', '4'), 1):0,
(('4', '-1', '0', '4', '4', '-1', '4', '-1'), 0):83.1979344666,
(('0', '1', '0', '1', '4', '1', '0', '1'), 2):118.242696158,
(('2', '-1', '1', '2', '0', '-1', '0', '-1'), 2):323.017705815,
(('0', '2', '0', '2', '4', '1', '0', '0'), 2):100.018296167,
(('2', '4', '1', '2', '2', '4', '2', '0'), 2):-30,
(('1', '1', '4', '-1', '1', '4', '-1', '-1'), 1):190.487033802,
(('-1', '0', '1', '0', '-1', '1', '-1', '4'), 3):10,
(('4', '1', '1', '0', '0', '0', '4', '1'), 1):10,
(('0', '0', '1', '-1', '1', '0', '-1', '-1'), 0):265.661267988,
(('4', '1', '4', '1', '4', '0', '1', '1'), 3):-10,
(('1', '4', '0', '2', '0', '4', '2', '4'), 2):10,
(('2', '2', '1', '2', '1', '1', '0', '1'), 1):259.200087797,
(('0', '2', '0', '2', '2', '1', '2', '1'), 0):10,
(('4', '2', '0', '2', '0', '1', '2', '1'), 1):10.0,
(('1', '1', '1', '0', '0', '0', '1', '0'), 0):230.936828888,
(('0', '1', '1', '-1', '4', '0', '-1', '-1'), 0):158.61313024,
(('-1', '4', '1', '2', '-1', '1', '-1', '0'), 1):207.636227238,
(('-1', '4', '2', '2', '-1', '2', '-1', '4'), 3):195.446149295,
(('0', '4', '1', '2', '0', '0', '0', '4'), 1):10,
(('0', '0', '1', '1', '0', '0', '0', '1'), 1):206.799274545,
(('0', '0', '1', '-1', '1', '1', '-1', '-1'), 2):272.826018123,
(('-1', '0', '1', '1', '-1', '1', '-1', '0'), 2):223.240966568,
(('0', '-1', '0', '-1', '0', '-1', '-1', '-1'), 1):241.200823462,
(('1', '0', '4', '1', '0', '0', '0', '0'), 3):52.302610672,
(('2', '2', '1', '2', '0', '4', '1', '0'), 1):10,
(('0', '2', '0', '2', '0', '2', '1', '2'), 2):404.585568675,
(('1', '0', '1', '1', '1', '4', '1', '1'), 0):58.4787838457,
(('0', '4', '1', '2', '0', '1', '0', '4'), 0):10,
(('1', '0', '0', '0', '0', '0', '0', '4'), 1):113.707834686,
(('0', '4', '0', '-1', '0', '4', '-1', '-1'), 2):216.664875806,
(('2', '2', '1', '2', '1', '4', '0', '1'), 1):86.0932912795,
(('0', '1', '1', '4', '1', '1', '0', '0'), 1):188.425426624,
(('1', '0', '0', '4', '0', '0', '1', '0'), 2):211.53403763,
(('1', '1', '4', '1', '0', '0', '1', '0'), 1):9.8,
(('1', '2', '2', '2', '1', '4', '1', '0'), 3):217.559882062,
(('2', '2', '0', '2', '0', '0', '1', '2'), 2):220.664469098,
(('1', '4', '0', '2', '1', '0', '1', '0'), 2):185.765195392,
(('0', '2', '1', '2', '4', '0', '0', '1'), 2):56.4574259378,
(('0', '2', '-1', '4', '-1', '-1', '4', '4'), 0):-70.4780100245,
(('1', '1', '0', '1', '4', '0', '0', '0'), 3):17.3909487436,
(('0', '0', '1', '1', '0', '0', '0', '0'), 1):220.365194819,
(('4', '2', '0', '2', '4', '4', '4', '2'), 2):10,
(('1', '2', '1', '2', '0', '1', '2', '2'), 2):110.370465122,
(('2', '2', '0', '4', '1', '0', '4', '4'), 1):13.24,
(('1', '0', '1', '4', '0', '1', '4', '0'), 3):17.0,
(('0', '0', '0', '0', '4', '0', '1', '0'), 3):10,
(('1', '0', '1', '0', '1', '0', '1', '1'), 0):31.1436921562,
(('0', '2', '0', '2', '4', '4', '0', '2'), 0):10,
(('1', '4', '2', '-1', '0', '1', '-1', '-1'), 3):10,
(('-1', '0', '1', '0', '-1', '1', '-1', '0'), 3):245.705205889,
(('4', '2', '1', '2', '4', '0', '0', '2'), 2):50.4970008125,
(('4', '-1', '0', '1', '1', '-1', '4', '-1'), 3):29.2995646605,
(('0', '-1', '1', '4', '1', '-1', '0', '-1'), 0):289.507344782,
(('4', '-1', '0', '2', '4', '-1', '1', '-1'), 2):164.853564125,
(('1', '2', '1', '2', '0', '0', '2', '2'), 2):519.472735876,
(('-1', '4', '4', '4', '-1', '0', '-1', '4'), 1):-10,
(('0', '4', '0', '1', '0', '1', '1', '1'), 1):30.1679927433,
(('4', '2', '-1', '2', '-1', '-1', '1', '2'), 3):340.42262952,
(('4', '-1', '1', '1', '4', '-1', '0', '-1'), 3):56.1100832757,
(('0', '2', '1', '-1', '0', '1', '-1', '-1'), 2):265.540350515,
(('1', '1', '0', '4', '0', '0', '4', '1'), 3):19.9592264517,
(('0', '2', '2', '2', '2', '0', '4', '1'), 2):10,
(('1', '4', '0', '-1', '1', '1', '-1', '-1'), 0):10,
(('2', '2', '2', '2', '0', '0', '2', '2'), 0):110.789933248,
(('0', '4', '-1', '0', '-1', '-1', '1', '0'), 0):-10,
(('0', '4', '1', '2', '0', '4', '0', '1'), 3):10,
(('0', '2', '4', '2', '1', '0', '2', '2'), 0):11.8,
(('1', '0', '0', '-1', '0', '4', '-1', '-1'), 3):55.3576938578,
(('0', '2', '2', '-1', '1', '0', '-1', '-1'), 2):298.240013564,
(('2', '-1', '1', '-1', '1', '-1', '-1', '-1'), 0):358.694869522,
(('1', '4', '1', '-1', '0', '4', '-1', '-1'), 1):60.3625741508,
(('1', '1', '1', '1', '0', '1', '1', '0'), 2):187.87599407,
(('0', '4', '4', '1', '0', '4', '0', '0'), 2):88.2935825375,
(('2', '-1', '2', '2', '0', '-1', '2', '-1'), 1):363.036612018,
(('-1', '1', '0', '-1', '-1', '4', '-1', '-1'), 1):167.9557022,
(('0', '2', '1', '2', '0', '1', '2', '1'), 2):176.932161394,
(('0', '2', '0', '2', '4', '2', '0', '2'), 0):304.004082052,
(('1', '-1', '2', '2', '2', '-1', '4', '-1'), 3):282.496965232,
(('0', '2', '0', '2', '2', '2', '2', '2'), 2):10,
(('1', '-1', '0', '0', '0', '-1', '1', '-1'), 0):267.383416924,
(('4', '2', '0', '2', '0', '0', '0', '0'), 0):248.076162299,
(('1', '-1', '0', '2', '0', '-1', '4', '-1'), 3):10,
(('-1', '0', '1', '4', '-1', '1', '-1', '0'), 2):50.7681198756,
(('2', '2', '1', '2', '1', '1', '1', '2'), 2):0,
(('1', '-1', '0', '1', '4', '-1', '1', '-1'), 0):162.802562253,
(('1', '2', '4', '2', '1', '4', '2', '2'), 0):10,
(('4', '4', '4', '4', '4', '4', '4', '4'), 3):-1000,
(('1', '1', '-1', '1', '-1', '-1', '0', '4'), 2):103.835160995,
(('1', '2', '0', '2', '0', '4', '1', '1'), 0):88.9671890355,
(('0', '2', '-1', '2', '-1', '-1', '2', '4'), 0):177.878961531,
(('-1', '1', '1', '0', '-1', '1', '-1', '4'), 3):216.904358425,
(('0', '-1', '1', '0', '1', '-1', '4', '-1'), 3):62.0593437272,
(('1', '1', '0', '1', '0', '1', '0', '4'), 3):39.4467576696,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '1'), 2):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '1'), 3):263.450183303,
(('4', '1', '1', '0', '4', '0', '0', '0'), 2):-10,
(('1', '1', '1', '4', '1', '1', '0', '4'), 2):24.4731546951,
(('2', '2', '4', '2', '4', '4', '1', '0'), 1):99.0688187975,
(('4', '1', '1', '1', '4', '1', '1', '1'), 2):101.772637709,
(('1', '-1', '1', '0', '0', '-1', '1', '-1'), 1):246.060247596,
(('1', '1', '0', '-1', '4', '0', '-1', '-1'), 2):240.781978154,
(('0', '-1', '-1', '2', '-1', '-1', '1', '-1'), 1):313.771730595,
(('4', '1', '1', '-1', '1', '0', '-1', '-1'), 2):143.88386778,
(('2', '4', '0', '2', '0', '4', '0', '0'), 1):159.154692289,
(('0', '2', '1', '2', '0', '1', '4', '2'), 2):212.691070871,
(('0', '1', '0', '0', '0', '0', '4', '0'), 3):97.3088653444,
(('1', '1', '0', '1', '1', '0', '1', '0'), 0):230.216785405,
(('0', '0', '4', '0', '0', '0', '1', '0'), 0):10,
(('1', '2', '4', '2', '1', '0', '1', '1'), 2):214.873336745,
(('0', '2', '2', '2', '1', '4', '1', '0'), 3):10,
(('0', '2', '4', '2', '1', '4', '1', '0'), 3):36.8851757517,
(('0', '2', '0', '-1', '4', '1', '-1', '-1'), 2):262.605419405,
(('2', '-1', '4', '-1', '4', '-1', '-1', '-1'), 2):10,
(('-1', '4', '0', '0', '-1', '0', '-1', '4'), 1):20.5885913311,
(('4', '-1', '1', '2', '1', '-1', '2', '-1'), 2):11.8,
(('0', '0', '0', '4', '0', '0', '1', '1'), 0):10,
(('1', '1', '4', '1', '1', '0', '1', '1'), 2):191.724940762,
(('0', '1', '1', '0', '0', '4', '0', '1'), 2):2.0,
(('1', '0', '0', '1', '4', '0', '0', '1'), 1):0,
(('1', '4', '1', '1', '0', '4', '0', '1'), 1):50,
(('1', '2', '1', '4', '1', '0', '1', '0'), 3):121.226596906,
(('1', '1', '1', '1', '0', '1', '1', '1'), 1):198.492009749,
(('-1', '4', '0', '2', '-1', '0', '-1', '4'), 2):140.210976792,
(('2', '2', '1', '-1', '0', '2', '-1', '-1'), 0):223.733090592,
(('0', '2', '1', '4', '1', '1', '4', '4'), 3):48.4530604335,
(('0', '2', '4', '2', '4', '1', '0', '2'), 2):126.54603177,
(('2', '2', '2', '2', '0', '2', '2', '4'), 1):10,
(('0', '0', '0', '0', '0', '0', '0', '0'), 0):223.41732155,
(('-1', '4', '0', '1', '-1', '4', '-1', '4'), 1):39.4587329176,
(('1', '1', '0', '4', '0', '0', '4', '0'), 3):-4.6,
(('-1', '2', '2', '2', '-1', '0', '-1', '0'), 2):312.21296131,
(('1', '4', '1', '2', '1', '0', '1', '4'), 1):10,
(('0', '1', '1', '4', '1', '0', '0', '0'), 2):132.992385563,
(('4', '1', '0', '0', '0', '0', '0', '1'), 3):134.358189346,
(('1', '4', '1', '0', '0', '4', '0', '0'), 0):10,
(('1', '1', '0', '1', '1', '0', '4', '4'), 2):10,
(('0', '1', '1', '1', '4', '1', '0', '1'), 2):192.248489552,
(('0', '2', '0', '-1', '1', '1', '-1', '-1'), 0):272.071726756,
(('1', '1', '0', '1', '1', '0', '4', '0'), 1):10,
(('1', '0', '1', '1', '1', '1', '1', '4'), 2):12.2496569113,
(('0', '2', '-1', '2', '-1', '-1', '1', '4'), 3):269.545682773,
(('1', '1', '1', '0', '0', '0', '0', '0'), 3):218.715178794,
(('0', '4', '1', '2', '0', '4', '0', '4'), 3):50,
(('0', '4', '1', '4', '0', '0', '0', '4'), 1):10,
(('0', '-1', '0', '1', '0', '-1', '4', '-1'), 1):216.466349679,
(('0', '2', '0', '2', '1', '2', '0', '4'), 0):168.730355463,
(('0', '2', '1', '2', '1', '2', '0', '0'), 2):385.495574366,
(('1', '-1', '2', '2', '0', '-1', '0', '-1'), 3):268.565262422,
(('1', '2', '4', '2', '4', '0', '1', '0'), 0):10,
(('1', '-1', '0', '0', '4', '-1', '1', '-1'), 2):10,
(('0', '1', '1', '1', '1', '1', '0', '0'), 2):236.912542739,
(('1', '0', '0', '1', '1', '1', '1', '0'), 1):128.599564435,
(('4', '-1', '0', '2', '0', '-1', '1', '-1'), 1):239.846758344,
(('0', '0', '1', '0', '1', '4', '0', '0'), 1):40.593004569,
(('0', '0', '0', '4', '0', '0', '0', '4'), 1):64.4301388262,
(('0', '4', '1', '1', '0', '1', '0', '0'), 3):118.48332124,
(('0', '2', '4', '-1', '0', '4', '-1', '-1'), 3):229.297944712,
(('0', '1', '0', '0', '0', '1', '0', '1'), 3):222.146883277,
(('0', '4', '0', '-1', '1', '0', '-1', '-1'), 3):164.994186519,
(('0', '1', '-1', '1', '-1', '-1', '1', '4'), 1):-10,
(('1', '0', '1', '4', '1', '0', '4', '0'), 1):160.587519758,
(('1', '4', '0', '1', '1', '0', '1', '1'), 2):169.437995874,
(('1', '1', '0', '-1', '1', '4', '-1', '-1'), 0):85.5462665487,
(('2', '-1', '-1', '2', '-1', '-1', '1', '-1'), 1):305.975616447,
(('2', '2', '1', '2', '0', '4', '0', '0'), 2):51.0411102529,
(('-1', '1', '1', '1', '-1', '0', '-1', '0'), 1):210.513148983,
(('0', '2', '2', '4', '0', '2', '0', '2'), 0):10,
(('0', '1', '1', '1', '1', '1', '0', '1'), 0):210.454589535,
(('0', '2', '0', '-1', '1', '0', '-1', '-1'), 1):316.787387186,
(('0', '1', '-1', '1', '-1', '-1', '4', '0'), 1):109.221599461,
(('4', '1', '0', '0', '0', '0', '1', '0'), 0):73.7205901906,
(('-1', '2', '0', '-1', '-1', '0', '-1', '-1'), 3):279.241844004,
(('1', '-1', '4', '2', '1', '-1', '1', '-1'), 1):242.485776037,
(('0', '4', '0', '0', '0', '4', '1', '4'), 3):50,
(('1', '0', '0', '1', '1', '0', '1', '1'), 0):221.787034516,
(('1', '4', '0', '2', '0', '0', '1', '0'), 1):159.917461309,
(('1', '1', '4', '1', '1', '0', '1', '0'), 0):173.633195235,
(('1', '0', '-1', '0', '-1', '-1', '1', '0'), 3):250.173553842,
(('1', '0', '0', '1', '1', '0', '1', '4'), 1):254.069113208,
(('0', '2', '1', '-1', '1', '4', '-1', '-1'), 3):263.140709289,
(('4', '0', '1', '1', '1', '0', '0', '0'), 3):73.9034471487,
(('4', '1', '4', '0', '4', '4', '0', '1'), 0):-10,
(('0', '0', '1', '0', '4', '0', '0', '0'), 0):116.454749903,
(('0', '2', '2', '2', '2', '2', '1', '2'), 2):350.061897825,
(('4', '0', '0', '-1', '1', '0', '-1', '-1'), 0):128.791098294,
(('4', '2', '2', '2', '0', '2', '0', '1'), 0):140.891277254,
(('1', '4', '0', '0', '1', '0', '1', '4'), 1):33.6359870126,
(('2', '2', '2', '2', '2', '4', '2', '1'), 2):10,
(('1', '0', '-1', '0', '-1', '-1', '1', '4'), 2):120.735531462,
(('0', '2', '2', '4', '1', '2', '4', '0'), 3):179.887151709,
(('0', '2', '1', '2', '4', '1', '0', '0'), 1):10,
(('-1', '1', '4', '1', '-1', '1', '-1', '0'), 0):37.6055336142,
(('0', '0', '1', '0', '1', '0', '1', '0'), 3):100.183709114,
(('2', '-1', '-1', '2', '-1', '-1', '0', '-1'), 0):304.761817599,
(('2', '2', '1', '2', '1', '4', '2', '4'), 2):80.6596346829,
(('0', '2', '1', '4', '1', '0', '4', '4'), 3):94.4328097847,
(('1', '2', '2', '2', '0', '0', '1', '0'), 2):116.795934262,
(('0', '1', '0', '1', '0', '4', '0', '0'), 1):123.703719595,
(('2', '2', '0', '2', '1', '1', '0', '2'), 1):281.753992334,
(('4', '2', '0', '2', '0', '1', '0', '2'), 0):141.825251793,
(('1', '1', '0', '1', '0', '0', '1', '1'), 1):216.720461558,
(('-1', '1', '1', '1', '-1', '0', '-1', '1'), 0):219.45653058,
(('0', '1', '1', '1', '1', '1', '1', '0'), 2):181.465801672,
(('1', '4', '0', '0', '0', '1', '0', '0'), 1):-8.0,
(('-1', '2', '2', '2', '-1', '4', '-1', '2'), 2):10,
(('2', '2', '1', '2', '0', '2', '2', '2'), 2):506.040973195,
(('0', '0', '0', '1', '0', '0', '1', '4'), 0):55.1296212298,
(('4', '1', '1', '4', '4', '1', '4', '4'), 0):50,
(('-1', '2', '0', '2', '-1', '0', '-1', '2'), 0):294.610031946,
(('4', '1', '0', '1', '0', '1', '0', '0'), 3):-10,
(('1', '2', '2', '2', '0', '0', '2', '2'), 2):232.269470281,
(('2', '2', '2', '2', '0', '2', '0', '2'), 1):396.44325174,
(('2', '2', '1', '2', '4', '1', '1', '0'), 1):137.546163689,
(('1', '1', '1', '0', '0', '0', '4', '0'), 2):0,
(('1', '-1', '-1', '0', '-1', '-1', '1', '-1'), 2):253.43463456,
(('2', '2', '0', '2', '1', '1', '2', '4'), 1):52.1057608136,
(('2', '2', '2', '2', '2', '2', '1', '1'), 2):10,
(('0', '0', '1', '1', '0', '1', '0', '1'), 3):178.00173663,
(('4', '1', '0', '0', '0', '0', '4', '0'), 3):98.7007067943,
(('1', '2', '2', '2', '2', '4', '1', '0'), 0):109.896064203,
(('0', '4', '1', '0', '1', '1', '0', '4'), 1):97.2117103553,
(('-1', '1', '0', '1', '-1', '0', '-1', '1'), 3):228.966435239,
(('0', '-1', '0', '2', '0', '-1', '1', '-1'), 0):232.623558281,
(('1', '0', '1', '1', '1', '1', '1', '0'), 0):247.81516146,
(('0', '-1', '0', '0', '0', '-1', '1', '-1'), 0):245.070437085,
(('4', '2', '0', '2', '4', '1', '0', '0'), 0):152.297567935,
(('4', '2', '4', '2', '1', '1', '0', '0'), 0):10,
(('4', '0', '0', '1', '0', '0', '4', '1'), 0):-124.565098816,
(('0', '1', '4', '-1', '1', '4', '-1', '-1'), 3):-10,
(('1', '4', '1', '1', '0', '4', '1', '0'), 2):0,
(('0', '1', '0', '1', '0', '1', '0', '4'), 1):113.713340094,
(('1', '0', '4', '0', '4', '4', '0', '0'), 3):12.5175047792,
(('1', '1', '1', '1', '1', '0', '1', '0'), 3):213.704991958,
(('2', '2', '1', '2', '0', '0', '0', '0'), 1):258.990168247,
(('4', '1', '1', '1', '0', '1', '0', '0'), 3):134.50727229,
(('1', '4', '-1', '1', '-1', '-1', '1', '0'), 2):264.54890568,
(('4', '2', '1', '-1', '1', '2', '-1', '-1'), 0):296.92016084,
(('2', '2', '0', '2', '0', '0', '0', '1'), 1):253.108636143,
(('4', '-1', '0', '0', '1', '-1', '1', '-1'), 2):10,
(('0', '0', '-1', '1', '-1', '-1', '4', '0'), 2):195.953405076,
(('0', '-1', '1', '1', '1', '-1', '1', '-1'), 3):217.987433275,
(('0', '1', '1', '1', '0', '0', '4', '1'), 2):51.1814030639,
(('4', '2', '4', '2', '4', '1', '0', '2'), 2):32.8867858218,
(('1', '-1', '-1', '4', '-1', '-1', '1', '-1'), 1):49.0225705607,
(('1', '2', '1', '2', '4', '1', '0', '0'), 0):100.767796805,
(('1', '4', '4', '2', '1', '4', '1', '0'), 1):10,
(('0', '2', '4', '2', '0', '4', '0', '1'), 0):239.302135372,
(('2', '2', '4', '2', '1', '4', '0', '0'), 1):175.121434855,
(('2', '2', '-1', '2', '-1', '-1', '0', '2'), 2):-30.5675489383,
(('-1', '0', '0', '-1', '-1', '1', '-1', '-1'), 2):269.634765361,
(('0', '2', '4', '2', '0', '4', '1', '1'), 2):199.540476144,
(('4', '2', '0', '2', '0', '0', '1', '2'), 2):264.538211404,
(('0', '0', '-1', '4', '-1', '-1', '0', '0'), 3):39.4464027119,
(('4', '0', '1', '0', '0', '1', '1', '0'), 0):-10,
(('1', '0', '1', '0', '1', '0', '0', '4'), 0):41.0672665699,
(('-1', '2', '1', '4', '-1', '1', '-1', '0'), 3):149.264538424,
(('1', '4', '1', '1', '0', '0', '1', '1'), 0):0,
(('0', '-1', '0', '0', '4', '-1', '0', '-1'), 3):49.1267600616,
(('0', '4', '0', '1', '0', '4', '0', '0'), 0):147.135701244,
(('1', '0', '0', '0', '0', '0', '1', '4'), 2):10,
(('2', '2', '2', '2', '1', '2', '0', '0'), 2):71.0502611871,
(('1', '0', '0', '1', '0', '0', '0', '0'), 2):231.287664876,
(('0', '2', '4', '2', '1', '4', '0', '0'), 0):122.657633352,
(('0', '0', '1', '4', '0', '1', '4', '0'), 3):0,
(('2', '-1', '4', '-1', '2', '-1', '-1', '-1'), 1):181.299571631,
(('1', '4', '1', '0', '1', '0', '0', '4'), 2):31.5998109843,
(('1', '-1', '1', '1', '0', '-1', '1', '-1'), 1):240.148851749,
(('0', '0', '4', '0', '0', '1', '0', '0'), 3):74.6290872995,
(('0', '1', '4', '0', '0', '0', '0', '1'), 0):170.882214623,
(('1', '2', '0', '2', '1', '1', '0', '1'), 2):223.922645213,
(('0', '0', '-1', '4', '-1', '-1', '1', '4'), 0):0,
(('4', '2', '0', '2', '0', '0', '2', '0'), 1):216.831231954,
(('2', '2', '2', '2', '0', '2', '0', '0'), 0):58.1981632446,
(('-1', '1', '0', '-1', '-1', '4', '-1', '-1'), 3):122.63023711,
(('0', '2', '0', '2', '4', '1', '1', '1'), 0):97.3068019861,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '1'), 2):10,
(('4', '2', '0', '2', '1', '1', '0', '0'), 3):10,
(('2', '2', '4', '2', '2', '4', '1', '1'), 1):50.9165546202,
(('4', '1', '1', '1', '0', '1', '0', '1'), 2):182.957417422,
(('0', '0', '1', '1', '1', '0', '0', '4'), 1):-10,
(('2', '2', '-1', '2', '-1', '-1', '4', '2'), 2):10,
(('-1', '2', '1', '-1', '-1', '2', '-1', '-1'), 0):358.088771842,
(('0', '1', '-1', '1', '-1', '-1', '4', '4'), 3):0,
(('0', '1', '4', '1', '1', '0', '0', '0'), 1):0,
(('4', '1', '0', '1', '0', '0', '0', '1'), 3):213.440753068,
(('1', '0', '1', '1', '1', '0', '0', '4'), 0):0,
(('4', '2', '2', '4', '0', '0', '4', '4'), 3):69.3478670596,
(('4', '2', '2', '2', '4', '2', '1', '0'), 3):69.8,
(('1', '0', '0', '1', '4', '0', '1', '1'), 0):102.764589465,
(('0', '2', '0', '2', '4', '0', '1', '0'), 1):10,
(('1', '0', '1', '1', '1', '1', '4', '0'), 1):0,
(('0', '2', '2', '2', '0', '2', '4', '0'), 3):237.836237383,
(('-1', '0', '4', '1', '-1', '4', '-1', '1'), 2):87.7222795692,
(('2', '2', '0', '2', '1', '1', '0', '2'), 0):10,
(('2', '2', '1', '2', '1', '4', '2', '2'), 1):140,
(('0', '2', '1', '2', '4', '4', '0', '0'), 3):39.3497262983,
(('1', '1', '1', '1', '0', '0', '1', '4'), 0):-10,
(('0', '4', '1', '4', '1', '1', '0', '4'), 1):10,
(('-1', '0', '0', '0', '-1', '0', '-1', '1'), 1):0,
(('-1', '2', '1', '-1', '-1', '0', '-1', '-1'), 0):298.583050482,
(('0', '-1', '1', '2', '1', '-1', '1', '-1'), 3):230.310276508,
(('1', '2', '0', '2', '4', '0', '0', '2'), 2):330.399355612,
(('1', '0', '1', '0', '1', '4', '1', '0'), 1):210.885867699,
(('0', '0', '1', '1', '1', '0', '1', '1'), 3):163.448474211,
(('2', '2', '0', '2', '4', '2', '2', '0'), 0):10,
(('-1', '4', '1', '2', '-1', '0', '-1', '0'), 1):75.4485438897,
(('4', '1', '1', '1', '4', '1', '0', '1'), 3):100.368865705,
(('1', '1', '0', '4', '1', '1', '4', '0'), 3):-10,
(('1', '2', '4', '-1', '1', '1', '-1', '-1'), 0):207.229770634,
(('4', '1', '0', '1', '4', '1', '1', '1'), 3):0,
(('0', '2', '2', '2', '2', '0', '2', '2'), 3):273.088843557,
(('1', '2', '4', '2', '0', '0', '1', '2'), 2):276.146671073,
(('4', '2', '4', '2', '4', '0', '4', '2'), 0):140.694586182,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '0'), 3):238.100138125,
(('4', '1', '0', '1', '1', '0', '0', '1'), 3):0,
(('1', '1', '4', '-1', '0', '0', '-1', '-1'), 0):220.377981389,
(('2', '2', '1', '2', '4', '1', '0', '0'), 1):224.413504863,
(('2', '2', '-1', '2', '-1', '-1', '4', '4'), 1):106.029950758,
(('1', '4', '1', '0', '0', '1', '1', '4'), 2):-140,
(('2', '2', '2', '2', '1', '2', '0', '0'), 3):451.350809002,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '0'), 1):245.661674762,
(('0', '1', '4', '0', '1', '0', '0', '1'), 2):-10,
(('1', '4', '-1', '0', '-1', '-1', '0', '0'), 2):221.227424737,
(('1', '4', '0', '2', '0', '4', '1', '1'), 2):21.5383731992,
(('1', '2', '-1', '4', '-1', '-1', '1', '4'), 1):270.181499843,
(('1', '1', '1', '4', '0', '1', '0', '1'), 0):51.5375871359,
(('2', '4', '2', '2', '4', '2', '0', '4'), 1):10,
(('0', '0', '0', '1', '0', '4', '0', '1'), 0):0,
(('0', '1', '4', '1', '4', '1', '1', '1'), 1):-10,
(('1', '2', '0', '2', '1', '1', '0', '0'), 1):248.658077437,
(('1', '4', '0', '1', '0', '0', '0', '0'), 1):179.893880879,
(('-1', '4', '4', '0', '-1', '4', '-1', '0'), 3):0,
(('0', '1', '1', '1', '0', '4', '0', '1'), 2):135.122607339,
(('4', '2', '4', '-1', '1', '1', '-1', '-1'), 0):50,
(('4', '1', '0', '1', '4', '0', '1', '0'), 3):0.0,
(('1', '0', '0', '1', '1', '0', '0', '1'), 3):220.384191606,
(('0', '2', '2', '2', '0', '1', '0', '4'), 3):236.81378033,
(('1', '4', '4', '-1', '4', '4', '-1', '-1'), 0):-10,
(('1', '4', '0', '1', '0', '0', '0', '1'), 3):106.204229186,
(('4', '1', '1', '0', '4', '1', '0', '0'), 2):129.1716065,
(('0', '2', '1', '2', '0', '0', '1', '0'), 3):192.304076808,
(('2', '2', '0', '2', '4', '0', '2', '2'), 0):-10,
(('1', '1', '1', '4', '0', '0', '1', '0'), 1):41.9056923624,
(('1', '2', '2', '4', '1', '1', '1', '1'), 3):11.44,
(('1', '2', '1', '2', '0', '0', '1', '1'), 0):174.414559345,
(('1', '2', '1', '2', '0', '1', '0', '1'), 2):186.999753252,
(('-1', '0', '1', '0', '-1', '0', '-1', '1'), 2):53.6878131395,
(('-1', '2', '0', '2', '-1', '2', '-1', '2'), 2):204.009176789,
(('1', '0', '4', '0', '1', '0', '0', '0'), 3):197.299097127,
(('2', '2', '0', '2', '4', '4', '2', '2'), 1):24.6233189278,
(('0', '0', '1', '1', '1', '0', '0', '0'), 1):221.854170673,
(('0', '0', '0', '1', '0', '4', '0', '0'), 1):127.303163634,
(('0', '2', '1', '2', '4', '0', '0', '0'), 2):101.949242009,
(('0', '1', '0', '0', '0', '0', '0', '1'), 0):240.939083055,
(('2', '2', '-1', '4', '-1', '-1', '4', '1'), 1):146.358707041,
(('-1', '2', '2', '4', '-1', '0', '-1', '0'), 3):215.279051239,
(('4', '2', '1', '-1', '0', '1', '-1', '-1'), 1):249.057934404,
(('0', '1', '4', '-1', '0', '0', '-1', '-1'), 3):231.856063135,
(('1', '0', '0', '0', '1', '1', '1', '0'), 1):56.4738109739,
(('0', '0', '1', '1', '4', '0', '0', '0'), 3):85.4799810513,
(('1', '1', '0', '0', '0', '0', '1', '4'), 0):0,
(('-1', '0', '1', '4', '-1', '0', '-1', '4'), 2):15.2876280558,
(('1', '-1', '-1', '0', '-1', '-1', '4', '-1'), 3):269.29496507,
(('1', '1', '1', '-1', '1', '0', '-1', '-1'), 1):252.795272331,
(('2', '2', '2', '2', '2', '1', '1', '1'), 1):255.952882933,
(('4', '0', '1', '0', '0', '1', '0', '0'), 0):164.85020922,
(('0', '1', '1', '1', '0', '0', '1', '0'), 3):159.555058468,
(('1', '2', '2', '4', '2', '0', '0', '4'), 0):10,
(('-1', '1', '4', '0', '-1', '1', '-1', '1'), 3):145.119961553,
(('1', '2', '0', '4', '0', '0', '4', '1'), 2):-300,
(('1', '0', '1', '1', '0', '1', '1', '1'), 2):95.9899854395,
(('1', '2', '1', '2', '1', '1', '2', '1'), 2):354.826304308,
(('2', '2', '2', '2', '0', '2', '1', '4'), 1):10,
(('1', '2', '2', '2', '1', '4', '0', '1'), 3):30,
(('0', '4', '-1', '2', '-1', '-1', '0', '4'), 0):-132.296304776,
(('1', '1', '1', '1', '1', '1', '0', '4'), 2):119.071439284,
(('1', '4', '-1', '2', '-1', '-1', '0', '0'), 3):271.198596763,
(('0', '4', '1', '1', '0', '1', '0', '1'), 0):10,
(('1', '-1', '1', '2', '1', '-1', '0', '-1'), 2):295.889472621,
(('1', '-1', '1', '0', '0', '-1', '0', '-1'), 3):284.361993761,
(('1', '0', '1', '0', '0', '0', '1', '1'), 3):10,
(('1', '1', '1', '-1', '4', '1', '-1', '-1'), 1):212.60479918,
(('1', '1', '0', '1', '0', '0', '0', '1'), 1):206.15381709,
(('2', '2', '2', '2', '0', '0', '1', '0'), 1):215.053588423,
(('0', '1', '4', '1', '0', '0', '0', '0'), 1):212.752411751,
(('1', '4', '1', '1', '1', '1', '1', '0'), 1):163.407248574,
(('1', '0', '1', '4', '1', '1', '0', '0'), 2):167.996824067,
(('2', '-1', '-1', '4', '-1', '-1', '0', '-1'), 3):40,
(('2', '2', '2', '2', '1', '0', '4', '0'), 3):85.4223053869,
(('0', '4', '2', '2', '0', '2', '0', '1'), 3):142.31565126,
(('2', '-1', '2', '-1', '2', '-1', '-1', '-1'), 0):297.306457174,
(('1', '4', '-1', '0', '-1', '-1', '0', '4'), 0):49.7703250705,
(('1', '0', '1', '0', '0', '0', '1', '0'), 1):243.096674738,
(('0', '2', '-1', '2', '-1', '-1', '2', '1'), 0):400.513027749,
(('4', '2', '1', '2', '4', '1', '0', '1'), 0):116.20102784,
(('2', '2', '0', '2', '1', '0', '2', '2'), 1):328.007179461,
(('4', '2', '-1', '2', '-1', '-1', '4', '4'), 0):10,
(('4', '2', '2', '2', '0', '0', '1', '2'), 3):95.9639690955,
(('4', '0', '0', '1', '4', '0', '0', '0'), 1):46.4489803673,
(('0', '-1', '-1', '1', '-1', '-1', '0', '-1'), 0):241.90954306,
(('-1', '4', '1', '1', '-1', '4', '-1', '0'), 3):-10,
(('0', '2', '2', '2', '2', '2', '0', '0'), 3):390.151742408,
(('-1', '1', '4', '0', '-1', '4', '-1', '0'), 1):134.56798889,
(('0', '2', '0', '2', '0', '4', '0', '1'), 3):10,
(('0', '2', '0', '2', '0', '4', '2', '1'), 2):268.496213836,
(('1', '1', '-1', '0', '-1', '-1', '0', '4'), 0):227.683157245,
(('1', '4', '-1', '2', '-1', '-1', '1', '4'), 2):251.578483533,
(('4', '0', '1', '1', '1', '0', '1', '0'), 3):0,
(('-1', '1', '1', '-1', '-1', '4', '-1', '-1'), 1):178.126323897,
(('1', '0', '1', '1', '1', '0', '4', '0'), 3):112.843403851,
(('2', '-1', '2', '-1', '0', '-1', '-1', '-1'), 3):316.234841505,
(('1', '0', '0', '1', '0', '1', '1', '1'), 2):158.220294728,
(('2', '-1', '1', '-1', '1', '-1', '-1', '-1'), 1):314.176515445,
(('1', '2', '1', '2', '0', '1', '1', '0'), 0):228.048519134,
(('4', '-1', '1', '2', '1', '-1', '4', '-1'), 3):189.764829981,
(('2', '2', '2', '-1', '0', '1', '-1', '-1'), 1):344.428552341,
(('4', '0', '1', '0', '4', '0', '0', '0'), 3):44.4133856765,
(('1', '2', '1', '2', '4', '0', '1', '0'), 3):16.0560781329,
(('4', '2', '0', '2', '4', '1', '0', '1'), 1):10,
(('4', '1', '-1', '0', '-1', '-1', '0', '1'), 2):259.622430677,
(('0', '0', '1', '1', '0', '1', '1', '0'), 3):174.61082781,
(('1', '4', '0', '-1', '1', '0', '-1', '-1'), 0):246.516375381,
(('4', '2', '4', '-1', '0', '4', '-1', '-1'), 0):54.740144805,
(('2', '2', '0', '2', '2', '0', '1', '0'), 1):294.457466553,
(('-1', '0', '0', '1', '-1', '0', '-1', '1'), 3):235.61228568,
(('2', '2', '1', '2', '1', '1', '2', '1'), 2):312.496253913,
(('0', '-1', '-1', '4', '-1', '-1', '0', '-1'), 3):240.026824325,
(('1', '1', '0', '-1', '0', '0', '-1', '-1'), 0):240.950921676,
(('1', '1', '1', '0', '1', '0', '1', '0'), 0):217.727050753,
(('1', '2', '1', '2', '4', '4', '1', '0'), 3):10,
(('1', '4', '2', '2', '0', '2', '0', '0'), 3):10,
(('2', '2', '4', '2', '4', '0', '2', '1'), 1):171.333326972,
(('4', '2', '4', '2', '0', '0', '0', '2'), 2):50,
(('-1', '2', '1', '2', '-1', '0', '-1', '0'), 3):250.471411798,
(('2', '-1', '4', '-1', '1', '-1', '-1', '-1'), 1):260.007449665,
(('0', '4', '2', '-1', '2', '1', '-1', '-1'), 3):56.4036002992,
(('1', '-1', '4', '-1', '4', '-1', '-1', '-1'), 0):187.322350074,
(('0', '0', '0', '1', '0', '1', '1', '0'), 0):114.446586822,
(('0', '2', '0', '2', '0', '4', '0', '4'), 2):65.4543854608,
(('2', '4', '1', '-1', '2', '0', '-1', '-1'), 1):45.5096022134,
(('0', '2', '1', '2', '2', '0', '4', '2'), 0):11.8,
(('0', '0', '0', '1', '0', '0', '1', '1'), 2):232.468415425,
(('1', '1', '4', '1', '1', '4', '1', '0'), 0):0,
(('4', '1', '-1', '0', '-1', '-1', '4', '1'), 2):112.12043592,
(('1', '-1', '2', '-1', '4', '-1', '-1', '-1'), 2):140,
(('0', '4', '0', '4', '0', '0', '0', '0'), 0):10,
(('-1', '1', '0', '-1', '-1', '0', '-1', '-1'), 3):225.276740358,
(('-1', '0', '1', '-1', '-1', '1', '-1', '-1'), 1):259.134912748,
(('1', '1', '0', '0', '1', '0', '0', '1'), 0):124.055965034,
(('0', '0', '0', '1', '1', '1', '1', '1'), 0):-10,
(('0', '2', '4', '2', '0', '1', '1', '2'), 0):61.239748635,
(('4', '1', '-1', '4', '-1', '-1', '4', '1'), 1):47.6505093587,
(('1', '4', '4', '4', '1', '0', '1', '0'), 0):50,
(('4', '0', '1', '1', '1', '1', '4', '0'), 3):-10,
(('4', '0', '0', '0', '4', '0', '4', '0'), 3):1.8,
(('0', '1', '0', '0', '4', '0', '0', '1'), 1):49.8509880835,
(('-1', '4', '4', '2', '-1', '4', '-1', '1'), 2):60.3518572937,
(('1', '2', '2', '2', '2', '2', '2', '0'), 3):391.987788593,
(('1', '2', '0', '2', '1', '0', '4', '0'), 0):109.914274705,
(('0', '1', '0', '1', '0', '1', '1', '4'), 3):31.4179768006,
(('4', '1', '1', '0', '1', '0', '4', '0'), 3):41.9197395067,
(('2', '2', '1', '2', '1', '0', '0', '4'), 1):225.816045071,
(('2', '2', '0', '4', '0', '0', '0', '0'), 1):186.199608679,
(('4', '1', '1', '0', '1', '1', '1', '0'), 3):-10,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '0'), 1):229.840362457,
(('1', '1', '4', '-1', '0', '1', '-1', '-1'), 1):171.895636042,
(('0', '1', '4', '-1', '1', '1', '-1', '-1'), 3):113.40332354,
(('1', '2', '0', '-1', '1', '0', '-1', '-1'), 0):327.92805949,
(('1', '2', '1', '-1', '1', '1', '-1', '-1'), 1):256.998387715,
(('4', '2', '1', '2', '4', '1', '4', '1'), 0):84.2568825017,
(('0', '1', '-1', '4', '-1', '-1', '0', '4'), 0):240.575875465,
(('4', '-1', '2', '2', '4', '-1', '4', '-1'), 3):268.976419829,
(('0', '4', '4', '1', '0', '4', '0', '4'), 1):106.085810335,
(('0', '2', '1', '2', '0', '0', '4', '0'), 2):157.656262169,
(('1', '2', '1', '2', '4', '1', '0', '2'), 0):32.9572827399,
(('-1', '0', '4', '-1', '-1', '4', '-1', '-1'), 0):-10,
(('4', '1', '0', '0', '4', '0', '0', '0'), 3):0,
(('1', '1', '1', '4', '1', '0', '1', '4'), 2):34.0893822265,
(('2', '2', '2', '2', '1', '1', '2', '2'), 1):198.721022637,
(('4', '2', '2', '2', '2', '0', '4', '0'), 0):72.660601945,
(('1', '2', '0', '-1', '4', '0', '-1', '-1'), 1):301.915764491,
(('0', '4', '-1', '1', '-1', '-1', '0', '0'), 1):119.061080141,
(('1', '1', '1', '4', '0', '0', '1', '4'), 3):22.1036578363,
(('0', '0', '0', '1', '0', '4', '1', '0'), 1):0,
(('2', '2', '1', '-1', '4', '0', '-1', '-1'), 0):10,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '0'), 0):240.811639149,
(('-1', '1', '1', '0', '-1', '4', '-1', '1'), 3):7.4,
(('0', '1', '1', '4', '1', '1', '0', '4'), 0):71.4755365571,
(('4', '2', '2', '2', '1', '0', '0', '0'), 2):90,
(('1', '4', '1', '1', '1', '4', '1', '0'), 1):101.481383814,
(('0', '1', '1', '0', '0', '0', '1', '0'), 0):0,
(('4', '0', '1', '1', '1', '0', '4', '0'), 3):61.1945457843,
(('0', '-1', '2', '2', '2', '-1', '4', '-1'), 0):143.14021564,
(('1', '1', '4', '1', '4', '0', '0', '1'), 2):87.6737774561,
(('-1', '0', '0', '0', '-1', '4', '-1', '1'), 2):10,
(('0', '1', '0', '1', '0', '0', '1', '0'), 2):181.236590426,
(('1', '2', '0', '2', '1', '4', '2', '2'), 0):10,
(('4', '-1', '1', '1', '4', '-1', '4', '-1'), 3):0,
(('2', '2', '2', '2', '2', '0', '0', '2'), 3):297.889657546,
(('1', '0', '1', '0', '1', '1', '4', '0'), 2):118.686120753,
(('2', '-1', '2', '2', '4', '-1', '0', '-1'), 0):10,
(('0', '4', '0', '1', '0', '0', '0', '0'), 3):211.60025728,
(('1', '0', '0', '1', '0', '0', '0', '1'), 3):209.496467466,
(('0', '2', '0', '2', '2', '0', '2', '2'), 2):314.545557774,
(('1', '1', '1', '4', '0', '1', '4', '0'), 0):0,
(('0', '1', '0', '0', '1', '0', '0', '1'), 0):185.180755203,
(('0', '2', '0', '4', '0', '1', '0', '1'), 0):225.531493239,
(('1', '1', '1', '0', '0', '4', '0', '0'), 0):38.6722578343,
(('1', '2', '1', '2', '0', '0', '1', '0'), 3):250.013994236,
(('1', '1', '0', '0', '1', '0', '0', '0'), 0):237.640686603,
(('-1', '0', '1', '4', '-1', '1', '-1', '4'), 2):-10,
(('-1', '4', '0', '1', '-1', '0', '-1', '1'), 3):156.940218288,
(('-1', '0', '1', '4', '-1', '0', '-1', '4'), 0):0,
(('2', '2', '0', '2', '0', '0', '1', '1'), 2):237.79251565,
(('0', '0', '0', '1', '0', '0', '0', '1'), 3):221.682009541,
(('2', '2', '2', '2', '2', '0', '4', '0'), 3):-131.231562462,
(('1', '2', '0', '2', '0', '0', '0', '1'), 3):136.856190009,
(('-1', '2', '0', '4', '-1', '1', '-1', '1'), 1):0,
(('1', '2', '0', '4', '1', '0', '1', '0'), 0):38.3477179857,
(('2', '2', '0', '2', '4', '0', '0', '0'), 2):119.447013059,
(('4', '1', '-1', '0', '-1', '-1', '0', '0'), 1):192.456510031,
(('0', '-1', '1', '0', '0', '-1', '0', '-1'), 0):237.574004005,
(('0', '2', '2', '2', '1', '0', '2', '0'), 3):63.9439375149,
(('0', '4', '1', '4', '0', '1', '4', '4'), 1):50,
(('1', '-1', '2', '2', '1', '-1', '4', '-1'), 0):309.536811943,
(('0', '4', '0', '2', '1', '0', '2', '0'), 2):10,
(('2', '2', '2', '4', '2', '1', '0', '4'), 1):31.0284567174,
(('0', '1', '1', '1', '0', '4', '1', '1'), 3):44.7614984242,
(('4', '4', '-1', '0', '-1', '-1', '0', '0'), 2):-10,
(('1', '4', '0', '1', '1', '4', '1', '4'), 3):0,
(('2', '2', '4', '2', '0', '4', '0', '0'), 3):16.2840681904,
(('2', '2', '1', '-1', '4', '2', '-1', '-1'), 1):10,
(('0', '1', '1', '1', '0', '1', '0', '0'), 3):190.928719076,
(('0', '4', '1', '1', '1', '1', '0', '1'), 1):47.89410155,
(('2', '2', '2', '2', '1', '0', '2', '0'), 3):333.2046328,
(('0', '2', '1', '2', '1', '1', '1', '1'), 0):209.293213364,
(('4', '1', '1', '-1', '0', '0', '-1', '-1'), 3):93.9121977869,
(('1', '2', '2', '4', '1', '0', '1', '4'), 3):110.27385727,
(('4', '2', '4', '2', '1', '0', '0', '0'), 2):10,
(('0', '0', '1', '-1', '1', '0', '-1', '-1'), 1):26.5774306667,
(('4', '1', '4', '1', '4', '0', '1', '1'), 2):-10,
(('2', '2', '0', '2', '1', '0', '4', '4'), 1):82.4748522509,
(('-1', '2', '1', '4', '-1', '0', '-1', '0'), 3):54.5788911733,
(('0', '2', '4', '2', '0', '0', '4', '2'), 3):10,
(('1', '4', '1', '1', '0', '1', '0', '1'), 1):43.069509779,
(('0', '4', '4', '-1', '4', '4', '-1', '-1'), 0):-10,
(('0', '1', '1', '-1', '4', '0', '-1', '-1'), 1):60.5913369385,
(('1', '2', '4', '2', '0', '1', '1', '2'), 2):29.2084600556,
(('4', '1', '4', '1', '4', '0', '4', '0'), 2):0,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '1'), 1):225.190649801,
(('0', '0', '1', '-1', '1', '1', '-1', '-1'), 1):275.842226196,
(('0', '0', '4', '0', '0', '1', '0', '0'), 0):35.5262555978,
(('1', '2', '2', '2', '2', '2', '0', '2'), 0):590.377139372,
(('0', '2', '0', '2', '1', '4', '1', '0'), 2):10,
(('0', '2', '4', '2', '4', '4', '0', '0'), 2):196.758864008,
(('0', '2', '0', '2', '0', '1', '0', '4'), 2):248.427244086,
(('1', '0', '4', '1', '0', '0', '0', '0'), 2):96.3728988475,
(('2', '2', '1', '2', '1', '1', '4', '1'), 1):87.8506277072,
(('1', '0', '1', '1', '1', '4', '1', '1'), 3):88.5634035654,
(('1', '1', '4', '1', '1', '1', '1', '1'), 2):157.105812662,
(('1', '1', '4', '1', '0', '1', '1', '0'), 1):43.1982666074,
(('4', '2', '1', '4', '0', '1', '4', '0'), 3):62.4315781404,
(('1', '0', '0', '4', '0', '0', '1', '0'), 1):241.474857969,
(('1', '1', '4', '1', '0', '0', '1', '0'), 0):157.260147132,
(('1', '2', '-1', '4', '-1', '-1', '0', '4'), 2):20,
(('1', '0', '1', '1', '0', '4', '0', '0'), 3):0,
(('4', '2', '0', '-1', '0', '0', '-1', '-1'), 2):272.546820755,
(('0', '0', '1', '1', '0', '0', '0', '0'), 0):209.842239481,
(('1', '0', '0', '4', '1', '0', '0', '1'), 3):10,
(('1', '4', '1', '0', '1', '4', '1', '0'), 3):43.2303795645,
(('0', '2', '2', '2', '2', '4', '0', '4'), 3):63.377598173,
(('1', '0', '0', '1', '0', '4', '1', '0'), 1):80.9617344492,
(('1', '0', '1', '0', '1', '0', '1', '1'), 1):108.278849397,
(('4', '1', '1', '0', '1', '0', '0', '0'), 0):91.0052290255,
(('-1', '0', '1', '0', '-1', '1', '-1', '0'), 0):255.939718244,
(('0', '-1', '1', '4', '1', '-1', '0', '-1'), 1):244.686239177,
(('2', '2', '4', '2', '0', '4', '0', '1'), 1):10.8403913075,
(('0', '4', '0', '1', '0', '1', '1', '1'), 0):-10,
(('-1', '2', '2', '2', '-1', '0', '-1', '4'), 3):237.877428538,
(('4', '2', '1', '2', '1', '1', '0', '0'), 0):241.049233957,
(('4', '-1', '1', '1', '4', '-1', '0', '-1'), 0):88.0399040733,
(('0', '2', '1', '-1', '0', '1', '-1', '-1'), 3):282.811510807,
(('0', '2', '2', '2', '2', '0', '4', '1'), 3):198.419134351,
(('1', '4', '0', '-1', '1', '1', '-1', '-1'), 3):0,
(('2', '2', '1', '2', '1', '1', '0', '2'), 0):360.669784547,
(('2', '2', '2', '2', '0', '0', '2', '2'), 3):373.830021801,
(('1', '2', '2', '2', '2', '2', '0', '1'), 3):308.229250143,
(('1', '2', '1', '2', '0', '2', '0', '0'), 0):255.193041121,
(('4', '2', '2', '2', '4', '2', '1', '2'), 2):10,
(('0', '2', '4', '2', '4', '0', '4', '2'), 0):10,
(('0', '0', '1', '1', '1', '1', '1', '1'), 3):38.8135668152,
(('1', '0', '0', '-1', '0', '4', '-1', '-1'), 2):192.418232923,
(('1', '4', '1', '-1', '0', '4', '-1', '-1'), 2):41.5262984468,
(('0', '-1', '0', '4', '0', '-1', '1', '-1'), 1):10,
(('1', '1', '1', '0', '0', '0', '0', '1'), 3):110.30990516,
(('1', '1', '1', '1', '0', '1', '1', '0'), 1):200.13660686,
(('1', '1', '1', '4', '0', '0', '0', '0'), 0):10,
(('4', '2', '2', '2', '1', '1', '4', '2'), 3):10,
(('4', '2', '2', '2', '1', '0', '1', '1'), 3):121.943724853,
(('4', '1', '1', '1', '0', '0', '1', '0'), 3):0,
(('2', '2', '2', '2', '2', '2', '2', '2'), 1):479.966059202,
(('1', '1', '0', '4', '1', '0', '0', '4'), 1):17.5946930706,
(('2', '2', '0', '2', '4', '0', '2', '4'), 1):10,
(('1', '-1', '0', '0', '0', '-1', '1', '-1'), 1):253.76426724,
(('4', '2', '0', '2', '0', '0', '0', '0'), 3):139.047996703,
(('1', '2', '2', '2', '2', '0', '1', '0'), 0):303.525044954,
(('4', '2', '1', '2', '1', '0', '2', '0'), 1):10,
(('0', '2', '1', '2', '0', '0', '2', '1'), 2):176.454387308,
(('2', '2', '1', '2', '1', '1', '1', '2'), 1):284.553917107,
(('0', '1', '0', '1', '0', '4', '0', '4'), 2):-10,
(('1', '2', '0', '2', '0', '4', '0', '2'), 2):62.6626900565,
(('1', '2', '0', '2', '0', '4', '1', '1'), 1):174.243578971,
(('1', '2', '2', '2', '2', '1', '1', '0'), 0):122.104880771,
(('4', '2', '2', '4', '0', '2', '4', '0'), 3):23.0487084805,
(('-1', '1', '1', '0', '-1', '1', '-1', '4'), 2):65.1546727098,
(('0', '0', '4', '-1', '4', '4', '-1', '-1'), 2):10,
(('-1', '2', '1', '2', '-1', '1', '-1', '1'), 2):265.052929497,
(('-1', '1', '1', '0', '-1', '1', '-1', '0'), 1):259.170308383,
(('1', '1', '1', '4', '1', '1', '0', '4'), 3):211.31086471,
(('4', '2', '1', '-1', '4', '2', '-1', '-1'), 0):308.310607477,
(('0', '4', '-1', '0', '-1', '-1', '0', '4'), 0):102.450099653,
(('2', '4', '0', '2', '0', '4', '2', '0'), 2):68.7255295789,
(('4', '-1', '4', '1', '4', '-1', '4', '-1'), 0):10,
(('0', '2', '4', '2', '4', '4', '1', '2'), 2):45.2218434671,
(('1', '1', '0', '-1', '4', '0', '-1', '-1'), 3):235.95490856,
(('0', '-1', '-1', '2', '-1', '-1', '1', '-1'), 0):289.213106065,
(('4', '1', '1', '-1', '1', '0', '-1', '-1'), 1):153.775196683,
(('0', '2', '4', '2', '0', '0', '2', '2'), 2):139.005832704,
(('1', '-1', '1', '4', '1', '-1', '4', '-1'), 1):85.9426988154,
(('0', '2', '4', '2', '0', '0', '0', '1'), 1):10,
(('1', '2', '0', '4', '1', '2', '4', '0'), 0):10,
(('0', '1', '0', '0', '0', '0', '4', '0'), 0):150.695608993,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '1'), 2):53.4609766885,
(('1', '1', '0', '1', '1', '0', '1', '0'), 1):223.443086798,
(('1', '1', '1', '4', '1', '4', '4', '0'), 1):0,
(('0', '2', '4', '2', '4', '0', '0', '2'), 3):141.347670681,
(('2', '2', '1', '2', '1', '4', '2', '0'), 2):212.863653922,
(('0', '4', '-1', '0', '-1', '-1', '1', '4'), 3):50,
(('2', '2', '0', '2', '1', '0', '1', '4'), 1):234.072700851,
(('4', '2', '2', '2', '4', '0', '1', '0'), 3):73.829312455,
(('1', '1', '1', '4', '0', '1', '1', '4'), 3):32.6829283293,
(('0', '2', '4', '2', '1', '4', '1', '0'), 2):10,
(('0', '2', '1', '4', '0', '0', '4', '0'), 3):10.0,
(('1', '2', '-1', '2', '-1', '-1', '4', '1'), 2):184.067148966,
(('0', '1', '1', '0', '0', '4', '0', '1'), 3):141.917685524,
(('1', '0', '0', '1', '4', '0', '0', '1'), 2):0,
(('1', '0', '0', '1', '1', '1', '1', '1'), 1):47.2349970526,
(('4', '4', '-1', '4', '-1', '-1', '4', '4'), 2):-10,
(('0', '0', '1', '1', '0', '0', '4', '1'), 2):0,
(('1', '1', '1', '1', '0', '1', '1', '1'), 2):201.908438415,
(('0', '0', '4', '0', '1', '1', '0', '0'), 0):0,
(('0', '2', '1', '4', '1', '1', '4', '4'), 0):10.0,
(('0', '4', '-1', '2', '-1', '-1', '1', '1'), 2):295.41027038,
(('1', '2', '0', '2', '1', '1', '4', '1'), 0):16.7628923325,
(('0', '2', '1', '2', '0', '0', '0', '4'), 0):109.665163353,
(('1', '4', '0', '0', '0', '0', '1', '0'), 3):101.638288776,
(('-1', '4', '0', '1', '-1', '4', '-1', '4'), 0):21.9972655243,
(('2', '2', '2', '2', '1', '1', '2', '4'), 3):53.407055425,
(('0', '2', '0', '2', '4', '4', '0', '0'), 2):10,
(('0', '4', '0', '2', '0', '0', '0', '4'), 2):214.1696309,
(('0', '-1', '4', '-1', '2', '-1', '-1', '-1'), 3):10,
(('-1', '2', '2', '2', '-1', '0', '-1', '0'), 3):296.039592081,
(('2', '2', '0', '2', '2', '0', '1', '2'), 2):10,
(('4', '1', '0', '0', '0', '0', '0', '1'), 2):98.0642892786,
(('2', '2', '0', '2', '0', '1', '2', '0'), 2):405.003200777,
(('2', '2', '-1', '2', '-1', '-1', '1', '2'), 3):477.285375917,
(('0', '1', '1', '1', '4', '1', '0', '1'), 3):185.891864069,
(('4', '1', '1', '0', '4', '1', '4', '1'), 2):7.36201099773,
(('0', '4', '2', '-1', '1', '0', '-1', '-1'), 3):10,
(('0', '4', '0', '4', '0', '4', '0', '4'), 3):0,
(('1', '1', '0', '1', '4', '0', '1', '0'), 3):82.9571207651,
(('0', '2', '-1', '2', '-1', '-1', '1', '4'), 2):222.212495288,
(('0', '-1', '1', '1', '0', '-1', '1', '-1'), 1):206.960987106,
(('2', '-1', '0', '2', '4', '-1', '2', '-1'), 1):247.940350956,
(('1', '2', '1', '4', '1', '0', '4', '0'), 1):10,
(('0', '-1', '0', '1', '0', '-1', '4', '-1'), 0):189.371615557,
(('1', '4', '2', '2', '1', '1', '0', '4'), 3):10,
(('1', '2', '4', '2', '0', '4', '2', '0'), 2):10,
(('1', '-1', '2', '2', '0', '-1', '0', '-1'), 2):348.781583205,
(('0', '1', '1', '1', '1', '1', '0', '0'), 3):241.758358019,
(('1', '4', '-1', '2', '-1', '-1', '1', '2'), 2):331.069669954,
(('1', '2', '1', '2', '4', '1', '2', '2'), 2):10,
(('4', '-1', '0', '2', '0', '-1', '1', '-1'), 0):243.510047863,
(('0', '0', '0', '4', '0', '0', '0', '4'), 0):62.1023423656,
(('0', '4', '1', '1', '0', '1', '0', '0'), 0):77.6911069276,
(('4', '-1', '1', '2', '0', '-1', '2', '-1'), 1):10,
(('0', '1', '0', '0', '0', '1', '0', '1'), 0):229.173702703,
(('0', '4', '0', '-1', '1', '0', '-1', '-1'), 2):199.761360653,
(('0', '0', '4', '-1', '1', '1', '-1', '-1'), 0):-10,
(('1', '4', '0', '1', '1', '0', '1', '1'), 3):199.267152831,
(('1', '1', '0', '-1', '1', '4', '-1', '-1'), 3):112.293528521,
(('2', '-1', '-1', '2', '-1', '-1', '1', '-1'), 0):354.122111349,
(('0', '2', '-1', '2', '-1', '-1', '4', '1'), 3):291.766534936,
(('-1', '1', '1', '1', '-1', '0', '-1', '0'), 0):222.89960784,
(('0', '2', '2', '2', '4', '0', '1', '2'), 3):167.35452713,
(('-1', '4', '1', '4', '-1', '1', '-1', '4'), 1):71.5181193893,
(('4', '2', '1', '2', '4', '2', '0', '2'), 0):10,
(('0', '2', '0', '-1', '1', '0', '-1', '-1'), 0):325.311014963,
(('0', '1', '-1', '1', '-1', '-1', '4', '0'), 2):117.107299451,
(('2', '2', '2', '2', '1', '2', '1', '0'), 1):347.332782833,
(('2', '-1', '4', '2', '1', '-1', '2', '-1'), 2):222.203593865,
(('1', '0', '0', '1', '1', '0', '1', '1'), 1):242.363543384,
(('4', '-1', '-1', '2', '-1', '-1', '0', '-1'), 0):281.1192107,
(('1', '1', '4', '1', '1', '0', '1', '0'), 1):64.8003967782,
(('1', '0', '-1', '0', '-1', '-1', '1', '0'), 0):259.188062109,
(('1', '2', '0', '2', '4', '0', '2', '0'), 0):180.234668647,
(('1', '0', '0', '1', '1', '0', '1', '4'), 0):173.75329395,
(('0', '2', '1', '-1', '1', '4', '-1', '-1'), 0):256.676279523,
(('1', '2', '2', '2', '0', '4', '1', '0'), 0):93.2051863667,
(('4', '1', '4', '0', '4', '4', '0', '1'), 3):0,
(('0', '0', '1', '0', '4', '0', '0', '0'), 1):59.5648844973,
(('0', '2', '2', '2', '2', '2', '1', '2'), 3):449.993969392,
(('0', '0', '0', '0', '0', '0', '1', '1'), 0):0,
(('4', '2', '2', '2', '0', '2', '0', '1'), 1):10,
(('2', '2', '2', '2', '2', '4', '2', '1'), 3):173.175121547,
(('1', '0', '-1', '0', '-1', '-1', '1', '4'), 3):-10,
(('0', '2', '1', '2', '4', '1', '0', '0'), 0):262.76742991,
(('2', '-1', '-1', '2', '-1', '-1', '0', '-1'), 1):305.448928115,
(('2', '2', '1', '2', '1', '4', '2', '4'), 1):140.289915819,
(('0', '2', '2', '2', '2', '0', '0', '0'), 0):309.075146999,
(('1', '1', '0', '1', '1', '0', '4', '1'), 2):43.4030612825,
(('0', '1', '0', '1', '0', '4', '0', '0'), 0):166.308959698,
(('-1', '1', '0', '4', '-1', '0', '-1', '0'), 0):186.54500168,
(('1', '2', '0', '4', '0', '0', '0', '0'), 2):20,
(('0', '2', '2', '2', '2', '1', '4', '0'), 3):157.587897014,
(('1', '1', '0', '1', '0', '0', '1', '1'), 2):232.299779541,
(('-1', '1', '1', '1', '-1', '0', '-1', '1'), 1):218.716952326,
(('0', '1', '1', '1', '1', '1', '1', '0'), 1):173.354268522,
(('1', '2', '1', '2', '1', '1', '4', '1'), 0):77.4588339716,
(('1', '2', '4', '2', '1', '1', '0', '1'), 2):21.3134419757,
(('1', '2', '0', '4', '0', '0', '1', '4'), 2):0,
(('0', '2', '2', '2', '0', '0', '0', '0'), 3):263.797314386,
(('-1', '0', '0', '0', '-1', '0', '-1', '1'), 0):42.7519537054,
(('0', '0', '0', '1', '0', '0', '1', '4'), 3):32.5271328566,
(('-1', '2', '0', '2', '-1', '0', '-1', '2'), 1):295.228148182,
(('-1', '1', '0', '4', '-1', '0', '-1', '1'), 0):63.7440222054,
(('0', '2', '4', '2', '4', '4', '0', '1'), 0):170.837719153,
(('1', '0', '0', '0', '0', '0', '0', '1'), 1):-10,
(('1', '2', '2', '2', '0', '0', '2', '2'), 3):351.645619474,
(('1', '-1', '0', '0', '1', '-1', '0', '-1'), 2):288.214662509,
(('2', '2', '2', '2', '0', '2', '0', '2'), 0):-167.39163452,
(('4', '4', '0', '2', '0', '0', '2', '4'), 2):10,
(('-1', '2', '4', '-1', '-1', '4', '-1', '-1'), 0):275.287828855,
(('1', '-1', '-1', '0', '-1', '-1', '1', '-1'), 3):293.097955785,
(('4', '2', '1', '2', '0', '1', '4', '1'), 2):0,
(('4', '1', '4', '1', '1', '0', '1', '1'), 3):-10,
(('0', '4', '0', '1', '0', '4', '1', '0'), 0):63.7194980141,
(('4', '1', '0', '0', '0', '0', '4', '0'), 0):178.438192645,
(('0', '4', '0', '2', '0', '0', '1', '1'), 2):231.074343985,
(('-1', '1', '0', '1', '-1', '0', '-1', '1'), 2):257.838862166,
(('1', '0', '1', '1', '1', '1', '1', '0'), 3):250.806302391,
(('1', '2', '2', '4', '1', '1', '1', '0'), 3):169.19248549,
(('0', '4', '4', '2', '2', '4', '0', '0'), 3):10,
(('1', '0', '4', '-1', '4', '4', '-1', '-1'), 1):130.025004134,
(('1', '1', '1', '4', '1', '0', '1', '1'), 3):-10,
(('-1', '2', '0', '2', '-1', '4', '-1', '0'), 1):233.369950981,
(('0', '2', '2', '2', '4', '2', '0', '2'), 0):162.742237917,
(('1', '4', '1', '1', '1', '0', '0', '1'), 3):0,
(('1', '2', '0', '2', '0', '1', '2', '0'), 2):191.611154259,
(('2', '2', '1', '2', '2', '0', '1', '0'), 1):313.455590345,
(('2', '4', '2', '-1', '2', '0', '-1', '-1'), 1):89.8919990925,
(('2', '2', '1', '2', '0', '0', '0', '0'), 2):303.418191522,
(('4', '1', '1', '1', '0', '1', '0', '0'), 2):132.402431008,
(('1', '2', '2', '2', '1', '0', '1', '0'), 0):308.415338778,
(('2', '2', '0', '2', '0', '0', '0', '1'), 2):73.2652443666,
(('0', '-1', '-1', '1', '-1', '-1', '1', '-1'), 0):249.841287297,
(('1', '2', '1', '2', '4', '1', '0', '0'), 1):106.486415008,
(('1', '4', '4', '2', '1', '4', '1', '0'), 2):0,
(('0', '2', '0', '2', '1', '2', '0', '2'), 2):369.234711815,
(('2', '2', '-1', '2', '-1', '-1', '0', '2'), 3):305.470029563,
(('2', '2', '2', '2', '0', '0', '2', '4'), 1):10,
(('2', '2', '0', '2', '1', '4', '1', '2'), 1):10,
(('4', '2', '4', '2', '0', '2', '0', '0'), 0):50,
(('0', '-1', '2', '2', '4', '-1', '0', '-1'), 2):87.6602969994,
(('4', '-1', '0', '1', '1', '-1', '0', '-1'), 2):99.0034759574,
(('1', '0', '1', '0', '1', '0', '0', '4'), 1):53.5059253962,
(('0', '1', '0', '-1', '0', '4', '-1', '-1'), 3):198.702546248,
(('1', '0', '0', '0', '0', '0', '1', '4'), 1):30.0996024173,
(('1', '0', '0', '1', '0', '0', '0', '0'), 1):221.714621802,
(('1', '4', '1', '0', '1', '0', '0', '4'), 3):57.7708754769,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '0'), 2):266.18929234,
(('4', '2', '2', '2', '1', '1', '4', '0'), 0):10,
(('1', '-1', '1', '1', '0', '-1', '1', '-1'), 2):218.926903609,
(('0', '1', '4', '0', '0', '0', '0', '1'), 3):181.738032958,
(('0', '2', '2', '2', '0', '0', '1', '1'), 0):50,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '4'), 0):-1000,
(('0', '2', '2', '4', '2', '2', '4', '4'), 0):106.696980314,
(('0', '2', '4', '2', '4', '4', '0', '1'), 3):10,
(('4', '2', '1', '2', '4', '1', '0', '1'), 3):64.7422735388,
(('4', '4', '4', '1', '4', '4', '4', '4'), 1):-2.0,
(('1', '0', '4', '-1', '4', '0', '-1', '-1'), 3):31.6788161631,
(('1', '2', '2', '2', '1', '0', '1', '1'), 0):259.640883393,
(('0', '1', '0', '4', '0', '0', '0', '4'), 2):148.799806197,
(('4', '1', '1', '1', '0', '1', '0', '1'), 3):204.014858556,
(('1', '1', '1', '1', '0', '1', '1', '4'), 0):40.823086533,
(('4', '1', '1', '0', '4', '1', '4', '1'), 0):0,
(('2', '2', '0', '2', '1', '2', '0', '2'), 1):90.2496682237,
(('1', '2', '4', '2', '4', '4', '2', '0'), 2):131.208400641,
(('2', '2', '2', '4', '0', '1', '1', '1'), 1):40,
(('4', '1', '0', '1', '0', '0', '0', '1'), 0):209.836045374,
(('1', '1', '1', '1', '1', '4', '0', '0'), 2):147.268414856,
(('1', '2', '0', '2', '4', '4', '0', '2'), 0):10,
(('4', '0', '4', '1', '4', '4', '0', '1'), 0):10,
(('1', '0', '1', '1', '1', '0', '0', '4'), 3):0,
(('1', '-1', '2', '2', '4', '-1', '0', '-1'), 0):117.40906874,
(('4', '2', '0', '2', '0', '2', '4', '0'), 2):63.3859212905,
(('0', '2', '0', '4', '0', '0', '1', '4'), 0):42.7038222191,
(('0', '0', '4', '0', '1', '0', '1', '0'), 2):-20,
(('0', '2', '1', '2', '2', '0', '2', '0'), 2):427.215168251,
(('0', '-1', '2', '2', '1', '-1', '4', '-1'), 0):51.0920542853,
(('2', '2', '1', '2', '1', '0', '0', '2'), 2):303.430348404,
(('0', '2', '0', '2', '2', '0', '0', '2'), 0):226.722866042,
(('-1', '4', '-1', '4', '-1', '-1', '-1', '4'), 1):34.2542559083,
(('4', '1', '0', '0', '0', '0', '4', '4'), 0):0,
(('2', '2', '2', '2', '2', '4', '1', '4'), 3):10,
(('2', '2', '-1', '2', '-1', '-1', '2', '1'), 3):332.063845984,
(('0', '-1', '1', '2', '1', '-1', '1', '-1'), 2):329.195925414,
(('4', '1', '4', '-1', '0', '1', '-1', '-1'), 2):0,
(('0', '2', '0', '2', '0', '1', '2', '2'), 0):302.075272964,
(('-1', '2', '4', '-1', '-1', '2', '-1', '-1'), 2):76.9510477932,
(('1', '0', '1', '0', '1', '4', '1', '0'), 0):89.4085160478,
(('1', '-1', '1', '2', '0', '-1', '2', '-1'), 2):251.533377601,
(('-1', '1', '1', '1', '-1', '1', '-1', '4'), 2):114.80530529,
(('4', '1', '1', '1', '4', '1', '0', '1'), 0):113.733410347,
(('0', '2', '2', '2', '2', '0', '2', '2'), 2):294.461810206,
(('0', '4', '2', '4', '0', '2', '4', '4'), 3):10.0,
(('1', '1', '-1', '1', '-1', '-1', '1', '0'), 2):246.97877392,
(('-1', '4', '-1', '1', '-1', '-1', '-1', '0'), 2):225.181810102,
(('0', '-1', '1', '2', '0', '-1', '0', '-1'), 3):253.552503388,
(('1', '1', '4', '-1', '0', '0', '-1', '-1'), 1):180.152178585,
(('2', '2', '0', '2', '2', '2', '4', '0'), 1):10,
(('0', '1', '0', '1', '1', '4', '0', '0'), 2):10,
(('0', '0', '0', '1', '4', '0', '0', '0'), 0):114.030641683,
(('0', '1', '0', '4', '0', '0', '4', '1'), 3):10,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '0'), 0):242.997490577,
(('0', '2', '1', '2', '0', '0', '4', '4'), 3):30.0537851509,
(('1', '4', '1', '2', '1', '0', '0', '0'), 1):108.644136397,
(('2', '2', '0', '2', '2', '2', '0', '2'), 1):442.350561909,
(('0', '2', '2', '2', '2', '0', '0', '4'), 0):10,
(('0', '1', '4', '0', '1', '0', '0', '0'), 2):-10,
(('1', '2', '-1', '4', '-1', '-1', '1', '4'), 2):130.01612309,
(('4', '1', '4', '1', '4', '4', '1', '1'), 2):-240.814414199,
(('1', '2', '1', '2', '2', '1', '1', '2'), 2):10,
(('0', '0', '0', '1', '0', '4', '0', '1'), 3):0,
(('4', '2', '2', '2', '0', '0', '0', '2'), 3):10,
(('1', '2', '0', '2', '0', '2', '2', '0'), 0):239.692627902,
(('1', '2', '0', '2', '0', '1', '1', '2'), 0):289.843543777,
(('-1', '1', '1', '1', '-1', '4', '-1', '0'), 1):79.9532225625,
(('1', '4', '0', '1', '0', '0', '0', '0'), 0):77.6092094469,
(('0', '1', '1', '0', '0', '1', '4', '4'), 2):0,
(('4', '2', '2', '2', '0', '0', '0', '1'), 1):10,
(('-1', '4', '0', '0', '-1', '0', '-1', '0'), 2):160.326104738,
(('4', '1', '0', '1', '4', '0', '1', '0'), 0):32.0526355512,
(('1', '0', '0', '1', '1', '0', '0', '1'), 2):225.231929206,
(('4', '2', '-1', '2', '-1', '-1', '0', '1'), 3):271.073469155,
(('4', '1', '0', '4', '0', '1', '4', '0'), 0):-10,
(('0', '2', '0', '2', '0', '4', '1', '0'), 2):155.558679753,
(('0', '-1', '4', '2', '0', '-1', '2', '-1'), 0):10,
(('0', '4', '1', '1', '0', '4', '0', '4'), 1):-10,
(('1', '-1', '2', '2', '1', '-1', '1', '-1'), 0):335.775852211,
(('1', '4', '1', '1', '1', '1', '0', '4'), 2):39.0308739294,
(('4', '1', '1', '0', '4', '1', '0', '0'), 3):35.6170401867,
(('0', '2', '1', '2', '0', '0', '1', '0'), 2):225.996391607,
(('0', '4', '1', '0', '0', '4', '0', '4'), 3):26.7818963892,
(('4', '1', '1', '1', '4', '1', '0', '0'), 0):96.0295901888,
(('1', '2', '1', '2', '0', '1', '0', '1'), 1):189.952334212,
(('0', '1', '-1', '1', '-1', '-1', '1', '1'), 0):277.946832793,
(('1', '0', '4', '0', '1', '0', '0', '0'), 2):201.744372687,
(('2', '-1', '2', '2', '4', '-1', '2', '-1'), 3):313.995042477,
(('0', '2', '4', '2', '1', '2', '0', '0'), 0):10,
(('1', '-1', '0', '0', '4', '-1', '1', '-1'), 3):59.725374396,
(('0', '1', '1', '4', '0', '0', '4', '4'), 1):42.0156819019,
(('0', '0', '1', '1', '1', '0', '0', '0'), 2):233.135398824,
(('2', '-1', '0', '2', '1', '-1', '2', '-1'), 2):339.018914248,
(('4', '2', '1', '2', '0', '1', '1', '0'), 2):10,
(('0', '2', '1', '2', '4', '0', '0', '0'), 3):221.54844926,
(('0', '1', '0', '0', '0', '0', '0', '1'), 3):236.609685911,
(('2', '2', '-1', '4', '-1', '-1', '0', '0'), 1):233.069211289,
(('4', '2', '1', '-1', '0', '1', '-1', '-1'), 2):278.651633742,
(('0', '1', '4', '-1', '0', '0', '-1', '-1'), 2):279.976437519,
(('0', '2', '4', '2', '4', '4', '0', '2'), 3):40.4729474912,
(('0', '0', '1', '1', '4', '0', '0', '0'), 2):162.82323663,
(('1', '1', '0', '0', '0', '0', '1', '4'), 1):0,
(('2', '2', '2', '4', '0', '0', '4', '4'), 3):18.7352404478,
(('1', '-1', '-1', '0', '-1', '-1', '4', '-1'), 2):160.393867239,
(('1', '0', '0', '-1', '4', '0', '-1', '-1'), 3):282.826505272,
(('2', '2', '2', '2', '2', '1', '1', '1'), 2):155.315912718,
(('4', '0', '1', '0', '0', '1', '0', '0'), 3):168.3595909,
(('0', '1', '1', '1', '0', '0', '1', '0'), 2):182.860642366,
(('0', '2', '1', '2', '4', '1', '0', '2'), 2):347.258832622,
(('4', '2', '0', '2', '1', '2', '0', '2'), 0):10,
(('-1', '1', '4', '0', '-1', '1', '-1', '1'), 2):82.8542544955,
(('4', '2', '-1', '2', '-1', '-1', '2', '2'), 1):88.7306840963,
(('1', '0', '1', '1', '0', '1', '1', '1'), 1):148.826025174,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '4'), 3):38.680476235,
(('2', '4', '0', '-1', '2', '0', '-1', '-1'), 2):10,
(('1', '1', '1', '0', '0', '1', '4', '1'), 1):89.4804285963,
(('1', '4', '4', '1', '4', '4', '1', '4'), 2):180.844643752,
(('0', '4', '-1', '2', '-1', '-1', '0', '4'), 1):47.1451559532,
(('0', '2', '2', '2', '0', '4', '4', '0'), 3):11.44,
(('1', '4', '-1', '2', '-1', '-1', '0', '0'), 2):67.1256529356,
(('0', '4', '1', '1', '0', '1', '0', '1'), 3):72.0211768934,
(('1', '1', '4', '-1', '0', '4', '-1', '-1'), 2):92.8453385297,
(('1', '4', '2', '2', '1', '4', '1', '0'), 3):10,
(('1', '1', '1', '-1', '4', '1', '-1', '-1'), 2):172.554002883,
(('1', '1', '0', '1', '0', '0', '0', '1'), 0):215.233085158,
(('0', '1', '0', '0', '0', '0', '1', '0'), 1):130.122736785,
(('0', '1', '4', '1', '0', '0', '0', '0'), 0):175.377869059,
(('1', '4', '4', '1', '0', '4', '4', '4'), 1):10,
(('1', '0', '1', '1', '1', '0', '0', '0'), 1):245.680648647,
(('2', '-1', '2', '-1', '2', '-1', '-1', '-1'), 1):276.564742431,
(('0', '2', '0', '2', '0', '2', '4', '4'), 0):19.9,
(('0', '1', '0', '4', '0', '0', '1', '1'), 2):38.112217431,
(('0', '2', '2', '2', '0', '1', '4', '4'), 3):103.227658714,
(('1', '4', '-1', '0', '-1', '-1', '0', '4'), 3):2.448,
(('4', '1', '0', '1', '1', '0', '0', '0'), 2):66.8445527309,
(('4', '1', '1', '0', '0', '1', '0', '1'), 3):187.018700326,
(('4', '-1', '0', '2', '4', '-1', '0', '-1'), 2):120.916912114,
(('0', '0', '1', '1', '0', '1', '1', '0'), 2):126.047068378,
(('4', '2', '0', '2', '0', '2', '1', '1'), 0):417.745877483,
(('4', '0', '0', '4', '1', '0', '4', '0'), 0):50,
(('-1', '4', '1', '1', '-1', '4', '-1', '0'), 0):-316.217047774,
(('0', '2', '2', '2', '2', '2', '0', '0'), 2):372.455929122,
(('-1', '4', '0', '2', '-1', '0', '-1', '0'), 0):138.538525099,
(('4', '1', '-1', '0', '-1', '-1', '4', '0'), 3):227.593889461,
(('-1', '1', '4', '0', '-1', '4', '-1', '0'), 0):91.2399677253,
(('0', '2', '0', '2', '0', '4', '0', '1'), 0):235.796063977,
(('0', '1', '4', '0', '4', '1', '0', '1'), 1):0,
(('0', '2', '4', '2', '4', '2', '0', '0'), 0):388.362071762,
(('2', '2', '1', '2', '4', '1', '2', '1'), 2):0,
(('4', '0', '1', '1', '1', '0', '1', '0'), 2):51.0584686529,
(('2', '2', '2', '2', '1', '2', '2', '0'), 0):279.885902485,
(('2', '-1', '2', '-1', '0', '-1', '-1', '-1'), 0):418.802634425,
(('1', '0', '0', '1', '0', '1', '1', '1'), 3):114.028684062,
(('1', '1', '0', '0', '1', '0', '0', '0'), 1):227.399355371,
(('4', '-1', '1', '2', '1', '-1', '4', '-1'), 0):192.720467805,
(('2', '2', '2', '2', '4', '1', '2', '0'), 2):10,
(('0', '1', '1', '1', '0', '1', '0', '0'), 2):230.712419603,
(('4', '0', '1', '4', '4', '1', '4', '0'), 0):-1000,
(('0', '2', '0', '2', '1', '0', '1', '1'), 0):223.710277297,
(('4', '2', '0', '2', '4', '1', '0', '1'), 0):44.9825832582,
(('1', '1', '4', '0', '1', '1', '1', '0'), 1):10,
(('4', '1', '-1', '0', '-1', '-1', '0', '1'), 3):259.232460698,
(('1', '4', '0', '-1', '1', '0', '-1', '-1'), 1):336.392191311,
(('2', '4', '2', '2', '2', '1', '2', '4'), 3):103.351815006,
(('1', '2', '0', '-1', '1', '2', '-1', '-1'), 2):523.65140771,
(('0', '4', '0', '4', '0', '0', '4', '4'), 0):10,
(('4', '2', '2', '2', '4', '0', '1', '2'), 3):10,
(('2', '2', '1', '2', '1', '1', '2', '1'), 1):310.052502643,
(('0', '1', '-1', '1', '-1', '-1', '4', '4'), 0):0,
(('1', '0', '1', '1', '1', '1', '0', '0'), 2):217.056676881,
(('4', '-1', '4', '1', '4', '-1', '1', '-1'), 2):0.0,
(('1', '1', '0', '-1', '0', '0', '-1', '-1'), 1):235.639688941,
(('1', '1', '1', '0', '1', '0', '1', '0'), 1):223.919957645,
(('0', '2', '4', '2', '0', '1', '2', '0'), 2):318.997775504,
(('1', '2', '2', '2', '0', '2', '4', '4'), 3):10.0,
(('1', '2', '0', '2', '2', '2', '0', '2'), 2):407.465373061,
(('1', '2', '-1', '2', '-1', '-1', '4', '1'), 3):242.948705955,
(('1', '0', '0', '0', '0', '0', '4', '0'), 3):119.807965865,
(('2', '-1', '4', '-1', '1', '-1', '-1', '-1'), 0):10,
(('4', '4', '1', '0', '0', '4', '0', '0'), 0):10,
(('-1', '2', '1', '4', '-1', '0', '-1', '4'), 3):10,
(('0', '0', '0', '1', '0', '1', '1', '0'), 1):87.1000594576,
(('0', '2', '1', '2', '0', '2', '0', '4'), 0):360.969697029,
(('2', '2', '2', '-1', '0', '4', '-1', '-1'), 1):229.504196042,
(('0', '0', '0', '1', '0', '0', '1', '1'), 3):221.828514481,
(('0', '0', '1', '1', '0', '1', '4', '0'), 0):0,
(('1', '2', '4', '2', '4', '1', '1', '0'), 3):10,
(('1', '1', '0', '0', '1', '1', '1', '1'), 1):59.0771691725,
(('0', '2', '1', '2', '4', '1', '1', '2'), 0):87.5703271322,
(('1', '4', '1', '0', '1', '0', '0', '1'), 3):-10,
(('-1', '1', '0', '-1', '-1', '0', '-1', '-1'), 2):246.912578917,
(('0', '2', '-1', '4', '-1', '-1', '0', '4'), 2):71.4111920607,
(('1', '1', '0', '0', '1', '0', '0', '1'), 3):197.889976874,
(('2', '4', '2', '2', '0', '0', '1', '4'), 3):10,
(('4', '1', '0', '0', '0', '0', '0', '0'), 2):179.328675455,
(('0', '2', '2', '2', '2', '4', '0', '0'), 0):203.013287761,
(('4', '1', '-1', '4', '-1', '-1', '4', '1'), 2):8.0,
(('0', '2', '1', '2', '2', '1', '0', '2'), 0):279.290569552,
(('1', '2', '4', '2', '1', '2', '1', '2'), 2):10,
(('0', '2', '1', '-1', '1', '2', '-1', '-1'), 2):452.644114359,
(('0', '4', '1', '2', '1', '1', '1', '1'), 2):10,
(('0', '-1', '2', '4', '0', '-1', '4', '-1'), 3):152.693668808,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '0'), 0):197.767071902,
(('1', '4', '4', '4', '0', '4', '4', '1'), 1):50,
(('1', '1', '4', '-1', '0', '1', '-1', '-1'), 0):140.751551915,
(('0', '1', '4', '-1', '1', '1', '-1', '-1'), 2):58.1456446074,
(('1', '2', '0', '-1', '1', '0', '-1', '-1'), 1):314.48868627,
(('1', '2', '1', '-1', '1', '1', '-1', '-1'), 2):283.232130502,
(('4', '2', '1', '2', '4', '1', '4', '1'), 1):10,
(('0', '2', '2', '4', '1', '0', '0', '0'), 0):10,
(('2', '2', '2', '2', '4', '2', '1', '1'), 1):10,
(('4', '-1', '2', '2', '4', '-1', '4', '-1'), 0):-192.0,
(('0', '2', '1', '2', '0', '0', '4', '0'), 3):209.532909248,
(('4', '0', '-1', '4', '-1', '-1', '0', '0'), 3):50,
(('4', '2', '2', '2', '2', '2', '4', '2'), 3):283.979815523,
(('1', '1', '1', '4', '1', '0', '1', '4'), 3):-10,
(('4', '2', '2', '2', '2', '0', '4', '0'), 3):140.845170774,
(('1', '2', '0', '-1', '4', '0', '-1', '-1'), 0):337.234811941,
(('0', '4', '-1', '1', '-1', '-1', '0', '0'), 0):179.951736562,
(('2', '2', '2', '2', '0', '1', '2', '1'), 3):333.192037652,
(('0', '0', '1', '0', '0', '1', '0', '4'), 3):47.9924222628,
(('1', '-1', '4', '2', '4', '-1', '0', '-1'), 1):64.6091602641,
(('-1', '1', '1', '0', '-1', '4', '-1', '1'), 2):0,
(('0', '0', '0', '1', '0', '1', '0', '0'), 1):170.825241623,
(('4', '2', '2', '2', '1', '0', '0', '0'), 3):225.109796304,
(('0', '-1', '2', '4', '1', '-1', '4', '-1'), 3):179.530253679,
(('0', '1', '0', '1', '0', '1', '1', '0'), 1):188.958227856,
(('4', '4', '4', '2', '4', '4', '2', '0'), 3):10,
(('0', '1', '1', '1', '0', '1', '1', '4'), 1):13.4730677382,
(('0', '1', '1', '0', '0', '0', '1', '0'), 1):102.073364534,
(('2', '2', '1', '2', '1', '1', '2', '4'), 2):221.202569135,
(('1', '2', '2', '4', '2', '0', '4', '4'), 3):10,
(('1', '1', '-1', '4', '-1', '-1', '0', '0'), 2):128.225955791,
(('0', '1', '0', '1', '0', '0', '1', '0'), 3):217.812882135,
(('2', '2', '2', '2', '1', '1', '0', '1'), 0):57.1614975702,
(('4', '0', '0', '1', '1', '0', '0', '1'), 3):10,
(('2', '2', '2', '2', '2', '0', '0', '2'), 2):446.247787594,
(('0', '1', '1', '1', '4', '0', '1', '0'), 0):0,
(('0', '2', '0', '4', '0', '2', '4', '2'), 0):67.5015595956,
(('0', '2', '1', '2', '0', '4', '1', '1'), 2):10,
(('0', '2', '1', '2', '1', '0', '4', '2'), 0):71.7378110518,
(('2', '2', '4', '2', '4', '4', '2', '2'), 1):202.179054675,
(('0', '4', '-1', '1', '-1', '-1', '1', '4'), 3):-162.565690739,
(('0', '1', '0', '0', '1', '0', '0', '1'), 1):184.211701685,
(('0', '1', '4', '1', '4', '4', '0', '0'), 1):1.764,
(('1', '1', '1', '4', '0', '0', '1', '0'), 3):22.825569517,
(('1', '0', '0', '1', '1', '4', '0', '0'), 2):60.6246294738,
(('-1', '4', '0', '1', '-1', '0', '-1', '1'), 0):204.195226332,
(('0', '0', '1', '1', '1', '1', '0', '0'), 3):227.48101929,
(('2', '2', '0', '2', '0', '0', '1', '1'), 1):247.378817045,
(('0', '0', '0', '1', '0', '0', '0', '1'), 2):233.133553852,
(('1', '2', '0', '2', '0', '1', '0', '2'), 0):207.97690026,
(('4', '1', '1', '-1', '0', '1', '-1', '-1'), 1):216.109760353,
(('1', '2', '0', '2', '0', '0', '0', '1'), 2):234.423138216,
(('4', '1', '1', '0', '1', '1', '0', '1'), 0):227.3934327,
(('2', '2', '0', '2', '4', '0', '0', '0'), 1):239.263000141,
(('4', '1', '-1', '0', '-1', '-1', '0', '0'), 0):212.942949352,
(('2', '2', '2', '2', '4', '1', '2', '1'), 3):0,
(('0', '-1', '1', '0', '0', '-1', '0', '-1'), 3):252.917757834,
(('0', '4', '1', '4', '0', '1', '4', '4'), 0):10,
(('0', '2', '-1', '4', '-1', '-1', '0', '0'), 2):155.085460825,
(('0', '2', '2', '2', '0', '0', '2', '2'), 3):345.774591161,
(('-1', '0', '4', '0', '-1', '1', '-1', '0'), 0):10,
(('1', '0', '1', '1', '1', '4', '0', '0'), 2):147.158224639,
(('1', '2', '0', '2', '1', '2', '2', '2'), 2):415.989849965,
(('1', '2', '1', '2', '1', '2', '4', '2'), 2):69.8741005863,
(('1', '1', '0', '0', '1', '0', '1', '1'), 3):101.50594671,
(('0', '1', '0', '1', '1', '0', '0', '4'), 2):10,
(('4', '0', '4', '1', '0', '0', '0', '0'), 3):-10,
(('1', '1', '4', '-1', '1', '4', '-1', '-1'), 3):1.96219632546,
(('0', '0', '1', '-1', '1', '0', '-1', '-1'), 2):308.07494482,
(('0', '4', '0', '2', '0', '1', '2', '4'), 2):10,
(('-1', '0', '0', '1', '-1', '1', '-1', '0'), 1):133.894806767,
(('0', '2', '4', '2', '0', '0', '4', '2'), 2):49.5349399596,
(('1', '4', '2', '2', '2', '1', '0', '4'), 3):10,
(('0', '4', '4', '-1', '4', '4', '-1', '-1'), 1):78.4687061446,
(('1', '2', '4', '2', '0', '1', '1', '2'), 3):170,
(('1', '2', '2', '2', '0', '4', '0', '2'), 3):180,
(('0', '4', '1', '2', '0', '0', '0', '4'), 3):-103.994741113,
(('4', '2', '0', '2', '1', '2', '1', '1'), 0):10,
(('0', '0', '1', '-1', '1', '1', '-1', '-1'), 0):288.517206532,
(('4', '0', '1', '1', '1', '0', '4', '1'), 2):-10,
(('0', '2', '0', '2', '0', '1', '0', '4'), 3):10,
(('1', '4', '1', '0', '1', '1', '1', '1'), 2):8.31481500132,
(('1', '2', '0', '2', '0', '2', '2', '2'), 2):114.240308898,
(('0', '2', '0', '2', '0', '2', '1', '2'), 0):325.838853665,
(('1', '0', '1', '1', '1', '4', '1', '1'), 2):147.799750519,
(('4', '1', '0', '1', '1', '1', '0', '1'), 0):10,
(('1', '1', '4', '1', '1', '1', '1', '1'), 3):121.685024453,
(('1', '0', '0', '0', '0', '0', '0', '4'), 3):53.1619202429,
(('1', '1', '1', '1', '0', '1', '0', '0'), 0):199.670000984,
(('4', '2', '4', '2', '4', '0', '4', '1'), 0):30.8545581678,
(('1', '0', '0', '4', '0', '0', '1', '0'), 0):200.175264303,
(('2', '2', '0', '2', '0', '0', '1', '2'), 0):113.710815121,
(('4', '0', '1', '1', '4', '0', '1', '0'), 0):10,
(('0', '0', '1', '1', '0', '0', '0', '0'), 3):180.695045266,
(('4', '2', '0', '2', '4', '4', '4', '2'), 0):10,
(('4', '1', '4', '1', '1', '1', '1', '1'), 2):38.0,
(('2', '2', '1', '2', '0', '4', '2', '1'), 2):600,
(('4', '2', '2', '4', '2', '0', '4', '4'), 3):73.6424929819,
(('-1', '2', '4', '2', '-1', '1', '-1', '2'), 2):387.894938833,
(('0', '2', '2', '4', '0', '0', '4', '4'), 3):153.68607541,
(('1', '-1', '1', '4', '1', '-1', '1', '-1'), 2):212.451258665,
(('4', '1', '1', '0', '1', '0', '0', '0'), 1):110.180946992,
(('-1', '0', '1', '0', '-1', '1', '-1', '0'), 1):260.255676129,
(('4', '1', '0', '-1', '4', '1', '-1', '-1'), 2):47.1868835337,
(('0', '-1', '1', '4', '1', '-1', '0', '-1'), 2):146.389087682,
(('4', '-1', '0', '2', '4', '-1', '1', '-1'), 0):87.0704383764,
(('4', '1', '0', '-1', '4', '0', '-1', '-1'), 3):114.76203342,
(('0', '2', '4', '2', '0', '4', '0', '0'), 2):170.802211637,
(('0', '2', '0', '2', '2', '0', '2', '0'), 2):297.548252475,
(('1', '4', '1', '1', '1', '4', '0', '1'), 1):2.0,
(('1', '2', '2', '-1', '2', '0', '-1', '-1'), 0):406.855051017,
(('0', '4', '0', '1', '0', '1', '1', '1'), 3):-10,
(('4', '2', '1', '2', '1', '1', '0', '0'), 1):249.341095086,
(('4', '-1', '1', '1', '4', '-1', '0', '-1'), 1):0.0,
(('1', '1', '0', '4', '1', '0', '0', '1'), 3):44.1877361494,
(('0', '2', '2', '2', '2', '0', '4', '1'), 0):10,
(('0', '2', '2', '2', '1', '1', '0', '1'), 3):238.013156847,
(('2', '2', '2', '2', '0', '0', '2', '2'), 2):-118.463381084,
(('0', '4', '-1', '1', '-1', '-1', '1', '4'), 2):44.3251897082,
(('4', '1', '4', '0', '1', '4', '4', '0'), 2):10,
(('0', '2', '2', '2', '0', '1', '0', '0'), 0):270.902671817,
(('4', '2', '0', '2', '1', '0', '0', '1'), 2):0,
(('0', '2', '4', '2', '1', '0', '2', '2'), 2):60.6199031229,
(('4', '2', '2', '2', '4', '2', '1', '2'), 3):129.417314268,
(('0', '0', '1', '1', '1', '1', '1', '1'), 2):55.199761652,
(('1', '0', '0', '-1', '0', '4', '-1', '-1'), 1):171.293552458,
(('0', '2', '2', '-1', '1', '0', '-1', '-1'), 0):333.182192138,
(('0', '0', '0', '4', '0', '0', '1', '4'), 2):0,
(('1', '4', '1', '-1', '0', '4', '-1', '-1'), 3):-1000,
(('0', '2', '1', '2', '0', '0', '0', '4'), 2):39.6818554894,
(('0', '2', '0', '4', '0', '2', '4', '1'), 0):101.364266576,
(('1', '1', '1', '1', '0', '1', '1', '0'), 0):201.883322092,
(('1', '1', '1', '4', '0', '0', '0', '0'), 1):32.7181629351,
(('0', '2', '1', '2', '0', '2', '4', '4'), 0):10,
(('2', '4', '0', '2', '2', '0', '2', '2'), 2):10,
(('4', '1', '1', '1', '0', '0', '1', '0'), 2):10,
(('0', '2', '2', '2', '0', '2', '1', '2'), 2):406.637913087,
(('2', '2', '2', '2', '2', '2', '2', '2'), 0):338.608982332,
(('1', '-1', '0', '-1', '1', '-1', '-1', '-1'), 2):287.03070502,
(('1', '4', '0', '2', '0', '0', '2', '4'), 2):10,
(('0', '2', '0', '2', '4', '2', '0', '2'), 2):280.555251526,
(('1', '-1', '0', '0', '0', '-1', '1', '-1'), 2):229.874662866,
(('4', '2', '0', '2', '0', '0', '0', '0'), 2):227.764850111,
(('2', '2', '2', '2', '4', '2', '0', '1'), 1):10,
(('2', '2', '2', '2', '0', '1', '0', '4'), 1):217.722898158,
(('2', '2', '1', '2', '1', '1', '1', '2'), 0):167.296920928,
(('0', '2', '1', '2', '1', '0', '1', '0'), 2):284.414143246,
(('1', '2', '4', '2', '1', '4', '2', '2'), 2):353.016424736,
(('0', '4', '0', '1', '1', '1', '0', '1'), 0):10,
(('1', '2', '0', '2', '0', '4', '1', '1'), 2):190.148937414,
(('0', '0', '1', '1', '0', '1', '1', '1'), 3):39.8771742363,
(('0', '2', '0', '2', '0', '0', '1', '1'), 1):231.774245903,
(('0', '4', '1', '1', '0', '1', '0', '4'), 3):101.98589805,
(('0', '4', '1', '0', '0', '0', '0', '4'), 0):39.1980319457,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '1'), 0):206.746806749,
(('-1', '1', '0', '0', '-1', '0', '-1', '4'), 3):160.807188136,
(('-1', '1', '1', '0', '-1', '1', '-1', '0'), 0):245.691264701,
(('1', '1', '1', '4', '1', '1', '0', '4'), 0):40.184707286,
(('-1', '2', '2', '2', '-1', '1', '-1', '0'), 3):273.504760709,
(('0', '2', '1', '2', '2', '2', '0', '2'), 0):223.634681321,
(('2', '4', '0', '2', '0', '4', '2', '0'), 1):217.083804914,
(('0', '-1', '-1', '2', '-1', '-1', '1', '-1'), 3):293.403936646,
(('4', '1', '1', '-1', '1', '0', '-1', '-1'), 0):246.593501897,
(('0', '2', '1', '-1', '4', '1', '-1', '-1'), 2):300.434560071,
(('1', '-1', '1', '4', '1', '-1', '4', '-1'), 0):215.387508892,
(('0', '2', '1', '2', '0', '1', '4', '2'), 0):212.675375307,
(('2', '2', '1', '2', '1', '0', '4', '1'), 1):111.323211657,
(('2', '2', '0', '2', '2', '0', '4', '0'), 1):46.7102977578,
(('4', '2', '0', '2', '0', '2', '0', '2'), 0):318.490722081,
(('1', '1', '1', '1', '0', '4', '1', '1'), 2):76.6376127181,
(('2', '4', '2', '2', '2', '1', '0', '0'), 1):173.562603651,
(('-1', '0', '1', '4', '-1', '0', '-1', '0'), 1):132.006036733,
(('2', '2', '4', '2', '1', '4', '2', '0'), 1):233.005388682,
(('0', '-1', '0', '4', '0', '-1', '1', '-1'), 3):66.2691536875,
(('0', '2', '2', '2', '0', '1', '1', '1'), 0):10,
(('1', '1', '0', '1', '0', '0', '4', '1'), 0):168.180590275,
(('0', '2', '0', '-1', '4', '1', '-1', '-1'), 0):279.60492915,
(('0', '2', '0', '2', '1', '2', '1', '0'), 0):250.467456671,
(('4', '2', '2', '2', '4', '0', '1', '1'), 3):185.360061512,
(('0', '2', '4', '2', '1', '4', '1', '1'), 0):10,
(('0', '1', '1', '0', '0', '4', '0', '1'), 0):54.958804325,
(('2', '4', '2', '2', '2', '2', '2', '4'), 1):290,
(('0', '0', '1', '1', '0', '0', '4', '1'), 3):10,
(('1', '1', '1', '1', '0', '1', '1', '1'), 3):181.925901951,
(('1', '1', '0', '4', '0', '1', '4', '4'), 2):0,
(('0', '1', '0', '0', '4', '0', '0', '0'), 3):111.367340463,
(('0', '2', '0', '2', '1', '1', '0', '1'), 3):62.4440147555,
(('2', '2', '0', '2', '4', '1', '2', '1'), 1):52.004941793,
(('0', '4', '-1', '2', '-1', '-1', '1', '1'), 3):207.620092656,
(('0', '0', '0', '0', '0', '0', '0', '0'), 2):225.548109961,
(('2', '2', '2', '2', '4', '1', '0', '0'), 2):154.893960051,
(('1', '4', '0', '0', '0', '0', '1', '0'), 2):142.554677959,
(('-1', '4', '0', '1', '-1', '4', '-1', '4'), 3):88.2336973575,
(('2', '2', '0', '2', '2', '0', '0', '4'), 2):298.894035886,
(('2', '2', '1', '2', '4', '1', '2', '0'), 2):77.7637024288,
(('2', '-1', '4', '2', '4', '-1', '2', '-1'), 2):-162.475286643,
(('1', '4', '1', '2', '0', '4', '0', '0'), 3):10,
(('1', '0', '4', '1', '1', '4', '1', '1'), 3):10,
(('2', '2', '0', '2', '2', '2', '0', '0'), 1):403.431277791,
(('2', '2', '-1', '2', '-1', '-1', '1', '2'), 2):449.035627595,
(('0', '1', '1', '1', '4', '1', '0', '1'), 0):203.27411738,
(('1', '1', '0', '1', '1', '0', '4', '0'), 3):10,
(('0', '-1', '1', '1', '0', '-1', '1', '-1'), 0):232.844506613,
(('2', '-1', '0', '2', '4', '-1', '2', '-1'), 2):99.4671446625,
(('0', '2', '1', '4', '1', '0', '0', '2'), 0):10,
(('0', '1', '1', '1', '1', '0', '1', '0'), 2):137.770405381,
(('0', '-1', '0', '1', '0', '-1', '4', '-1'), 3):199.44712272,
(('0', '2', '0', '2', '4', '4', '1', '2'), 0):10,
(('0', '2', '0', '2', '4', '0', '1', '0'), 0):162.120180993,
(('1', '2', '1', '2', '1', '0', '0', '0'), 2):265.190309402,
(('1', '4', '1', '4', '1', '0', '1', '4'), 1):10,
(('0', '0', '0', '4', '0', '0', '0', '4'), 3):57.902329161,
(('0', '4', '1', '1', '0', '1', '0', '0'), 1):64.782846654,
(('4', '-1', '1', '2', '0', '-1', '2', '-1'), 0):10,
(('1', '0', '4', '1', '1', '1', '1', '0'), 0):-10,
(('0', '1', '0', '0', '0', '1', '0', '1'), 1):208.57444112,
(('4', '2', '0', '2', '0', '1', '2', '0'), 1):380.677318722,
(('0', '4', '0', '-1', '1', '0', '-1', '-1'), 1):169.112031309,
(('0', '2', '1', '4', '0', '1', '0', '1'), 0):196.841123962,
(('1', '4', '0', '1', '1', '0', '1', '1'), 0):183.908411255,
(('1', '1', '0', '-1', '1', '4', '-1', '-1'), 2):109.418604429,
(('4', '0', '1', '0', '1', '1', '4', '0'), 0):44.2549106537,
(('0', '2', '-1', '2', '-1', '-1', '4', '1'), 2):265.150949553,
(('-1', '1', '1', '1', '-1', '0', '-1', '0'), 3):202.66604533,
(('1', '0', '4', '0', '4', '4', '0', '0'), 0):-10,
(('0', '2', '0', '-1', '1', '0', '-1', '-1'), 3):331.537572534,
(('0', '1', '-1', '1', '-1', '-1', '4', '0'), 3):177.696622983,
(('0', '1', '1', '1', '4', '0', '0', '1'), 0):66.5643676937,
(('0', '-1', '4', '1', '4', '-1', '1', '-1'), 2):10,
(('2', '2', '2', '-1', '4', '0', '-1', '-1'), 1):216.611725558,
(('1', '0', '4', '0', '1', '0', '0', '0'), 0):237.501404386,
(('1', '0', '-1', '0', '-1', '-1', '1', '0'), 1):281.186674566,
(('1', '0', '0', '1', '1', '0', '1', '4'), 3):144.921678695,
(('0', '2', '1', '-1', '1', '4', '-1', '-1'), 1):39.6743287793,
(('0', '2', '2', '4', '2', '0', '4', '0'), 3):46.0104038259,
(('2', '2', '0', '-1', '4', '0', '-1', '-1'), 0):187.588626695,
(('1', '2', '2', '2', '0', '4', '1', '0'), 3):139.01783387,
(('2', '2', '2', '2', '2', '2', '2', '4'), 3):90.3228918939,
(('0', '2', '2', '2', '2', '2', '1', '2'), 0):458.150683541,
(('0', '0', '0', '0', '0', '0', '1', '1'), 3):-10,
(('2', '2', '1', '4', '2', '0', '0', '1'), 1):10,
(('1', '0', '-1', '0', '-1', '-1', '1', '4'), 0):12.1635722182,
(('0', '2', '1', '2', '4', '1', '0', '0'), 3):242.679623395,
(('2', '-1', '-1', '2', '-1', '-1', '0', '-1'), 2):321.596959011,
(('0', '2', '2', '2', '2', '0', '0', '0'), 3):311.578748848,
(('1', '2', '1', '-1', '0', '4', '-1', '-1'), 2):20,
(('1', '1', '0', '1', '1', '0', '4', '1'), 3):43.7870676746,
(('0', '1', '0', '1', '0', '4', '0', '0'), 3):181.071511263,
(('2', '4', '1', '2', '0', '1', '0', '0'), 1):168.823763494,
(('1', '2', '0', '4', '0', '0', '0', '0'), 3):10,
(('4', '2', '0', '2', '0', '1', '0', '2'), 2):234.357999797,
(('1', '1', '0', '1', '0', '0', '1', '1'), 3):210.594293809,
(('1', '2', '1', '2', '0', '0', '4', '0'), 3):11.8,
(('0', '1', '1', '1', '1', '1', '1', '0'), 0):-75.8674646379,
(('1', '2', '1', '2', '1', '2', '1', '4'), 0):67.7771116655,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '4'), 2):62.4409229927,
(('1', '1', '4', '1', '4', '4', '1', '0'), 2):25.9310213192,
(('1', '2', '2', '2', '2', '0', '0', '1'), 0):200,
(('1', '2', '0', '2', '0', '4', '0', '0'), 2):127.040798541,
(('0', '2', '2', '2', '0', '0', '0', '0'), 2):260.970499417,
(('2', '2', '1', '2', '0', '2', '2', '2'), 0):172.477137549,
(('0', '0', '0', '1', '0', '0', '1', '4'), 2):11.8,
(('-1', '2', '0', '2', '-1', '0', '-1', '2'), 2):287.178735458,
(('0', '0', '0', '1', '4', '0', '0', '1'), 3):0,
(('0', '1', '1', '1', '0', '0', '4', '1'), 0):96.7991641693,
(('4', '1', '0', '1', '0', '1', '0', '0'), 1):48.2388589868,
(('2', '2', '0', '2', '0', '0', '4', '2'), 1):240.435228055,
(('1', '-1', '0', '0', '1', '-1', '0', '-1'), 3):287.003989492,
(('2', '2', '2', '2', '0', '2', '0', '2'), 3):277.535330924,
(('-1', '2', '4', '-1', '-1', '4', '-1', '-1'), 1):197.587495829,
(('1', '-1', '-1', '0', '-1', '-1', '1', '-1'), 0):273.735138497,
(('0', '2', '1', '2', '1', '0', '1', '1'), 1):10,
(('4', '1', '0', '0', '0', '0', '4', '0'), 1):56.214437029,
(('1', '1', '1', '1', '4', '4', '0', '0'), 2):-10,
(('0', '1', '0', '0', '0', '4', '0', '1'), 1):85.8473731192,
(('1', '0', '1', '1', '1', '1', '1', '0'), 2):234.651306542,
(('1', '2', '0', '-1', '0', '1', '-1', '-1'), 2):274.862083411,
(('1', '2', '0', '2', '1', '1', '0', '4'), 1):45.7298232402,
(('1', '1', '1', '4', '1', '0', '1', '1'), 2):10.1970093658,
(('4', '2', '0', '2', '1', '1', '4', '2'), 1):10,
(('1', '1', '0', '0', '0', '1', '0', '4'), 1):0,
(('0', '1', '1', '4', '1', '1', '4', '1'), 2):33.6298226429,
(('2', '4', '2', '2', '2', '0', '1', '4'), 3):123.137177643,
(('0', '4', '0', '2', '0', '4', '0', '2'), 2):167.994812278,
(('1', '1', '0', '0', '1', '0', '1', '1'), 2):154.243973934,
(('4', '2', '1', '-1', '1', '2', '-1', '-1'), 2):400,
(('0', '2', '0', '2', '4', '1', '0', '0'), 3):34.0575555028,
(('1', '2', '2', '2', '1', '0', '4', '1'), 3):25.7499482025,
(('0', '4', '4', '4', '0', '4', '0', '0'), 2):-10,
(('0', '-1', '-1', '1', '-1', '-1', '1', '-1'), 1):254.685449927,
(('1', '2', '1', '2', '4', '1', '0', '0'), 2):64.5796887046,
(('4', '1', '0', '1', '4', '1', '0', '1'), 1):10,
(('2', '2', '0', '4', '0', '0', '1', '4'), 1):196.117419678,
(('0', '2', '2', '2', '2', '0', '0', '1'), 3):452.839656682,
(('1', '4', '4', '1', '1', '4', '0', '1'), 2):-470,
(('1', '2', '4', '2', '0', '4', '0', '0'), 0):76.2398633283,
(('4', '4', '0', '-1', '4', '0', '-1', '-1'), 1):50,
(('1', '2', '0', '2', '2', '2', '0', '0'), 0):418.159109306,
(('1', '1', '4', '-1', '1', '4', '-1', '-1'), 0):119.376209712,
(('0', '-1', '2', '2', '4', '-1', '0', '-1'), 3):215.911691219,
(('-1', '0', '1', '0', '-1', '1', '-1', '4'), 0):10,
(('2', '4', '1', '2', '2', '1', '2', '4'), 2):324.664084587,
(('0', '1', '0', '-1', '0', '1', '-1', '-1'), 2):238.801283103,
(('1', '0', '0', '0', '0', '0', '1', '4'), 0):41.783685169,
(('0', '2', '1', '2', '0', '4', '2', '2'), 0):10,
(('1', '0', '0', '1', '0', '0', '0', '0'), 0):217.106974569,
(('0', '2', '0', '2', '1', '2', '4', '0'), 0):136.796341984,
(('-1', '4', '2', '-1', '-1', '2', '-1', '-1'), 3):216.383962163,
(('-1', '2', '0', '2', '-1', '4', '-1', '0'), 2):268.418614347,
(('1', '4', '1', '0', '1', '0', '0', '4'), 0):-10,
(('1', '1', '0', '1', '1', '4', '1', '1'), 0):93.6563119915,
(('2', '4', '0', '2', '4', '4', '2', '0'), 2):10,
(('1', '-1', '1', '1', '0', '-1', '1', '-1'), 3):212.847668453,
(('0', '1', '4', '0', '0', '0', '0', '1'), 2):188.326599073,
(('2', '2', '2', '2', '2', '0', '1', '1'), 3):319.775813401,
(('1', '2', '2', '2', '0', '0', '0', '0'), 2):238.316469721,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '4'), 1):182.554103884,
(('0', '2', '2', '4', '2', '2', '4', '4'), 3):10,
(('2', '-1', '-1', '4', '-1', '-1', '2', '-1'), 1):137.791245469,
(('0', '4', '4', '4', '4', '4', '1', '4'), 2):50,
(('-1', '1', '1', '1', '-1', '0', '-1', '4'), 1):107.841591874,
(('4', '1', '1', '1', '0', '1', '0', '1'), 0):184.247837578,
(('-1', '0', '0', '4', '-1', '0', '-1', '0'), 2):115.060177701,
(('0', '0', '1', '1', '1', '0', '0', '4'), 3):24.0031217521,
(('-1', '2', '1', '-1', '-1', '2', '-1', '-1'), 2):468.192905877,
(('-1', '4', '0', '4', '-1', '0', '-1', '0'), 1):76.4469921503,
(('1', '4', '1', '0', '0', '1', '0', '4'), 1):91.5062738647,
(('1', '4', '1', '2', '1', '1', '0', '0'), 3):193.309687563,
(('1', '2', '0', '2', '1', '0', '4', '2'), 2):127.109165883,
(('1', '0', '4', '1', '0', '4', '1', '0'), 0):10,
(('1', '0', '0', '0', '0', '0', '1', '0'), 3):196.464595667,
(('4', '2', '0', '4', '0', '0', '4', '4'), 2):10.0,
(('2', '-1', '-1', '2', '-1', '-1', '4', '-1'), 0):90.9933932864,
(('2', '2', '2', '2', '1', '1', '2', '1'), 1):100,
(('0', '2', '2', '2', '2', '2', '4', '4'), 2):10,
(('0', '0', '4', '0', '1', '0', '1', '0'), 1):10,
(('2', '2', '1', '2', '1', '0', '0', '2'), 1):290.311462394,
(('0', '4', '0', '1', '0', '0', '1', '4'), 1):154.325862228,
(('1', '0', '0', '0', '0', '4', '0', '4'), 3):0,
(('2', '2', '-1', '2', '-1', '-1', '2', '1'), 2):462.260718411,
(('-1', '2', '1', '2', '-1', '2', '-1', '1'), 0):378.931000359,
(('1', '2', '0', '2', '4', '0', '0', '2'), 0):255.710853333,
(('4', '-1', '4', '1', '0', '-1', '4', '-1'), 2):0,
(('2', '-1', '0', '2', '1', '-1', '1', '-1'), 2):259.918495749,
(('1', '0', '1', '0', '1', '4', '1', '0'), 3):131.306318212,
(('1', '2', '1', '2', '1', '0', '2', '2'), 2):454.62132847,
(('-1', '1', '1', '1', '-1', '1', '-1', '4'), 3):159.429895171,
(('4', '1', '1', '1', '4', '1', '0', '1'), 1):87.5153878328,
(('4', '1', '0', '1', '4', '1', '1', '1'), 1):0,
(('2', '2', '2', '2', '0', '1', '0', '1'), 1):265.079537849,
(('0', '1', '0', '-1', '0', '0', '-1', '-1'), 0):273.145957632,
(('1', '1', '-1', '4', '-1', '-1', '0', '4'), 1):139.329918551,
(('0', '-1', '1', '2', '0', '-1', '0', '-1'), 2):250.020410697,
(('1', '1', '4', '-1', '0', '0', '-1', '-1'), 2):127.752900315,
(('2', '2', '4', '2', '0', '1', '0', '1'), 1):201.659473641,
(('1', '1', '0', '1', '1', '1', '1', '4'), 3):0,
(('2', '2', '2', '2', '1', '2', '0', '0'), 1):351.520588376,
(('2', '2', '0', '2', '0', '0', '2', '1'), 2):354.30317096,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '0'), 3):250.299829445,
(('1', '1', '0', '4', '1', '0', '1', '1'), 0):-10,
(('1', '4', '0', '4', '1', '0', '0', '4'), 1):10,
(('2', '2', '0', '2', '2', '2', '0', '2'), 0):471.644771643,
(('0', '2', '2', '2', '2', '0', '0', '4'), 3):346.149320221,
(('4', '4', '0', '4', '0', '0', '4', '4'), 1):11.8,
(('0', '2', '0', '2', '0', '1', '4', '1'), 0):225.754982785,
(('1', '2', '-1', '4', '-1', '-1', '1', '4'), 3):307.689396269,
(('1', '1', '4', '1', '4', '4', '0', '0'), 1):61.5227798599,
(('0', '0', '0', '1', '0', '4', '0', '1'), 2):119.045241942,
(('0', '2', '0', '2', '0', '0', '0', '4'), 1):44.3352885529,
(('2', '2', '0', '2', '2', '0', '0', '4'), 1):275.593980923,
(('0', '1', '0', '0', '4', '0', '4', '0'), 3):15.7315659579,
(('-1', '1', '1', '1', '-1', '4', '-1', '0'), 0):79.5287348681,
(('0', '2', '2', '2', '1', '2', '4', '1'), 3):110.875439101,
(('0', '2', '1', '2', '1', '4', '0', '2'), 0):166.408270093,
(('0', '2', '4', '2', '0', '4', '2', '4'), 0):11.8,
(('-1', '2', '0', '2', '-1', '4', '-1', '4'), 2):87.5164693052,
(('-1', '4', '0', '0', '-1', '0', '-1', '0'), 3):171.366755399,
(('0', '2', '2', '2', '1', '2', '4', '0'), 0):161.281029932,
(('4', '2', '-1', '2', '-1', '-1', '0', '1'), 2):255.249476223,
(('2', '2', '0', '2', '0', '2', '0', '2'), 1):399.74939327,
(('0', '2', '2', '2', '2', '2', '2', '2'), 3):431.631977623,
(('0', '4', '1', '1', '0', '4', '0', '4'), 0):0,
(('1', '-1', '2', '2', '1', '-1', '1', '-1'), 3):328.913955127,
(('2', '2', '2', '2', '0', '0', '0', '1'), 2):227.74471404,
(('4', '2', '0', '2', '1', '0', '0', '0'), 0):137.460092661,
(('1', '0', '4', '1', '0', '4', '0', '0'), 2):8.08339386471,
(('4', '1', '1', '0', '4', '1', '0', '0'), 0):165.781289302,
(('1', '-1', '1', '1', '0', '-1', '0', '-1'), 3):255.831636714,
(('0', '2', '1', '2', '1', '2', '1', '0'), 0):284.347259916,
(('1', '2', '1', '2', '0', '1', '0', '1'), 0):217.247372068,
(('0', '0', '0', '-1', '4', '0', '-1', '-1'), 2):103.657597461,
(('0', '1', '-1', '1', '-1', '-1', '1', '1'), 1):230.944575156,
(('-1', '2', '0', '2', '-1', '2', '-1', '2'), 0):331.533075079,
(('0', '1', '4', '0', '0', '4', '0', '0'), 2):113.723202615,
(('0', '0', '4', '-1', '0', '0', '-1', '-1'), 2):187.341687842,
(('0', '1', '1', '4', '0', '0', '4', '4'), 0):9.78313267629,
(('0', '0', '1', '1', '1', '0', '0', '0'), 3):201.178236704,
(('1', '0', '1', '4', '1', '0', '1', '1'), 2):39.3741560007,
(('0', '2', '1', '2', '0', '1', '0', '4'), 3):174.78765636,
(('0', '1', '1', '0', '0', '1', '1', '1'), 3):109.280769212,
(('0', '2', '1', '2', '4', '0', '0', '0'), 0):183.175259248,
(('0', '1', '0', '0', '0', '0', '0', '1'), 2):227.864532861,
(('1', '2', '2', '-1', '1', '1', '-1', '-1'), 0):271.188237212,
(('4', '2', '0', '2', '0', '1', '0', '1'), 3):10,
(('4', '0', '0', '4', '0', '0', '0', '0'), 0):50,
(('-1', '2', '2', '4', '-1', '0', '-1', '0'), 1):10,
(('-1', '2', '4', '-1', '-1', '1', '-1', '-1'), 3):169.018464751,
(('4', '2', '0', '2', '1', '0', '4', '1'), 0):10,
(('4', '2', '1', '-1', '0', '1', '-1', '-1'), 3):300.805700263,
(('2', '2', '2', '-1', '2', '1', '-1', '-1'), 1):486.346710667,
(('0', '2', '4', '2', '4', '4', '0', '2'), 2):279.798292322,
(('1', '0', '0', '0', '1', '1', '1', '0'), 3):10,
(('4', '-1', '1', '0', '0', '-1', '1', '-1'), 2):10,
(('2', '4', '0', '2', '0', '1', '2', '4'), 1):43.064,
(('1', '0', '1', '4', '1', '0', '0', '4'), 0):0,
(('1', '1', '4', '0', '1', '0', '0', '1'), 3):0,
(('4', '2', '2', '2', '2', '0', '1', '0'), 3):171.617694886,
(('1', '0', '0', '-1', '4', '0', '-1', '-1'), 2):240.667299531,
(('0', '1', '1', '0', '0', '0', '0', '4'), 2):0,
(('2', '2', '2', '2', '2', '1', '1', '1'), 3):321.343320845,
(('0', '1', '0', '4', '0', '0', '0', '1'), 1):212.429742083,
(('1', '1', '0', '4', '1', '0', '4', '0'), 3):0,
(('4', '1', '0', '4', '4', '0', '0', '1'), 3):50,
(('4', '0', '1', '0', '0', '1', '0', '0'), 2):64.1849435696,
(('1', '-1', '0', '-1', '4', '-1', '-1', '-1'), 3):183.813553074,
(('4', '2', '0', '2', '0', '1', '1', '0'), 0):190,
(('2', '4', '0', '2', '0', '0', '0', '1'), 1):191.176206959,
(('0', '2', '2', '2', '0', '0', '4', '4'), 3):81.423487337,
(('4', '2', '-1', '2', '-1', '-1', '2', '2'), 2):220.09967983,
(('1', '0', '1', '1', '0', '1', '1', '1'), 0):135.769090202,
(('0', '0', '4', '-1', '0', '1', '-1', '-1'), 3):121.732251771,
(('1', '4', '1', '2', '1', '4', '0', '4'), 2):30,
(('0', '4', '1', '0', '1', '0', '0', '4'), 3):55.9124875622,
(('4', '1', '0', '0', '4', '0', '4', '0'), 1):34.0804440949,
(('1', '2', '1', '4', '0', '0', '1', '4'), 1):0,
(('0', '4', '1', '1', '1', '1', '0', '0'), 1):81.540785711,
(('1', '4', '4', '0', '0', '0', '1', '4'), 2):0,
(('1', '4', '-1', '2', '-1', '-1', '0', '0'), 1):103.177597133,
(('0', '4', '1', '1', '0', '1', '0', '1'), 2):56.4068185826,
(('1', '2', '2', '2', '2', '0', '1', '1'), 0):329.170763667,
(('1', '0', '1', '0', '0', '0', '1', '1'), 1):10,
(('1', '1', '1', '-1', '4', '1', '-1', '-1'), 3):185.070797329,
(('0', '1', '0', '0', '0', '0', '1', '0'), 0):213.54988142,
(('0', '1', '4', '1', '0', '0', '0', '0'), 3):155.044970885,
(('1', '0', '1', '1', '1', '0', '0', '0'), 0):220.632713227,
(('1', '4', '4', '2', '4', '4', '0', '4'), 1):10,
(('0', '4', '0', '2', '0', '4', '0', '0'), 2):101.579540682,
(('2', '-1', '2', '-1', '2', '-1', '-1', '-1'), 2):98.7941493095,
(('0', '4', '1', '4', '0', '1', '0', '4'), 1):-99.1794220878,
(('1', '1', '1', '0', '0', '1', '1', '0'), 0):205.359295558,
(('2', '2', '2', '4', '2', '2', '1', '0'), 3):50,
(('1', '0', '1', '0', '0', '0', '1', '0'), 3):249.701989042,
(('1', '1', '0', '4', '0', '1', '4', '1'), 3):0,
(('0', '2', '-1', '2', '-1', '-1', '2', '1'), 2):393.750963428,
(('-1', '4', '1', '1', '-1', '4', '-1', '0'), 1):106.057633521,
(('4', '1', '-1', '0', '-1', '-1', '4', '0'), 2):197.767398987,
(('-1', '1', '4', '0', '-1', '4', '-1', '0'), 3):144.082276782,
(('0', '2', '0', '2', '0', '4', '0', '1'), 1):13.6,
(('4', '1', '1', '1', '0', '0', '0', '0'), 2):14.8086971922,
(('4', '2', '2', '2', '0', '1', '4', '1'), 3):132.785667269,
(('2', '2', '4', '2', '4', '4', '0', '1'), 1):69.8120485429,
(('1', '2', '2', '2', '2', '2', '1', '2'), 3):459.309395625,
(('-1', '1', '1', '0', '-1', '0', '-1', '4'), 3):30.6799450988,
(('0', '-1', '2', '2', '2', '-1', '4', '-1'), 2):10,
(('2', '-1', '2', '-1', '0', '-1', '-1', '-1'), 1):293.066664083,
(('1', '4', '4', '2', '0', '4', '1', '0'), 1):10,
(('2', '2', '4', '2', '0', '1', '1', '1'), 1):124.542450114,
(('4', '2', '2', '4', '1', '2', '4', '0'), 3):144.712853391,
(('1', '1', '1', '0', '4', '0', '0', '1'), 0):0,
(('0', '2', '0', '2', '1', '0', '1', '1'), 1):57.5557718827,
(('0', '0', '-1', '4', '-1', '-1', '4', '4'), 3):21.730842868,
(('1', '2', '4', '2', '1', '4', '1', '0'), 2):184.694158158,
(('1', '1', '-1', '0', '-1', '-1', '1', '4'), 1):123.454368196,
(('0', '2', '1', '2', '1', '1', '4', '1'), 3):108.246760181,
(('2', '2', '2', '2', '0', '2', '0', '1'), 3):269.515827774,
(('2', '2', '1', '2', '1', '4', '0', '2'), 0):10,
(('1', '0', '1', '1', '1', '1', '0', '0'), 3):230.011744581,
(('0', '2', '2', '2', '1', '0', '1', '2'), 3):193.259964863,
(('1', '1', '0', '-1', '0', '0', '-1', '-1'), 2):237.084214197,
(('1', '2', '0', '4', '1', '0', '4', '4'), 1):10,
(('1', '2', '0', '2', '0', '4', '0', '0'), 0):56.6958761081,
(('4', '0', '0', '1', '1', '0', '4', '0'), 2):19.4655198803,
(('1', '1', '1', '0', '0', '4', '0', '1'), 1):4.124,
(('4', '2', '4', '2', '0', '0', '0', '2'), 0):-192.0,
(('4', '1', '4', '-1', '4', '1', '-1', '-1'), 2):52.2415555418,
(('1', '2', '-1', '2', '-1', '-1', '4', '1'), 0):248.906097489,
(('4', '-1', '1', '0', '0', '-1', '0', '-1'), 1):171.058617631,
(('0', '1', '0', '0', '4', '1', '0', '0'), 3):90.3151294517,
(('0', '4', '0', '2', '0', '4', '2', '4'), 2):147.811907975,
(('1', '1', '1', '4', '0', '0', '4', '1'), 3):-60,
(('1', '0', '1', '0', '1', '0', '0', '1'), 2):0,
(('2', '2', '1', '2', '4', '0', '2', '2'), 2):10.0,
(('0', '4', '2', '-1', '0', '2', '-1', '-1'), 3):204.95582671,
(('0', '0', '0', '1', '0', '0', '1', '1'), 0):217.487621997,
(('0', '2', '1', '2', '1', '1', '4', '4'), 0):100.313730005,
(('1', '1', '4', '1', '0', '4', '0', '1'), 0):44.9215574397,
(('2', '2', '2', '2', '0', '0', '1', '1'), 1):273.108096709,
(('-1', '4', '0', '0', '-1', '4', '-1', '4'), 3):31.9957879321,
(('1', '1', '0', '0', '1', '1', '1', '1'), 0):94.2365052845,
(('1', '4', '1', '0', '1', '0', '0', '1'), 2):47.287663137,
(('0', '2', '-1', '4', '-1', '-1', '0', '4'), 3):249.926389411,
(('1', '1', '0', '0', '1', '0', '0', '1'), 2):163.368648584,
(('-1', '4', '1', '2', '-1', '0', '-1', '0'), 3):7.8,
(('4', '1', '0', '0', '0', '0', '0', '0'), 3):221.725532099,
(('2', '-1', '4', '2', '2', '-1', '2', '-1'), 0):-192.0,
(('4', '2', '4', '2', '4', '4', '4', '2'), 1):10,
(('0', '2', '0', '2', '0', '1', '2', '1'), 2):273.350487622,
(('0', '2', '2', '2', '2', '4', '0', '0'), 3):150.80039269,
(('4', '1', '-1', '4', '-1', '-1', '4', '1'), 3):90.5024933298,
(('1', '0', '0', '-1', '1', '0', '-1', '-1'), 2):272.763471896,
(('4', '-1', '0', '2', '4', '-1', '1', '-1'), 1):81.2917699069,
(('4', '1', '0', '1', '1', '1', '1', '1'), 1):10,
(('2', '4', '1', '4', '1', '1', '0', '4'), 1):56.8381032788,
(('1', '2', '0', '2', '1', '0', '4', '0'), 2):227.100797698,
(('1', '1', '1', '1', '0', '0', '1', '1'), 3):197.23711506,
(('4', '0', '1', '4', '4', '0', '0', '4'), 3):-10,
(('1', '1', '1', '0', '1', '4', '0', '0'), 1):153.441236971,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '0'), 3):207.221111203,
(('0', '1', '4', '-1', '1', '1', '-1', '-1'), 1):180.11064435,
(('1', '2', '0', '-1', '1', '0', '-1', '-1'), 2):296.995894771,
(('1', '2', '1', '-1', '1', '1', '-1', '-1'), 3):269.69458921,
(('2', '-1', '1', '2', '4', '-1', '0', '-1'), 1):202.727923346,
(('0', '4', '4', '0', '0', '4', '4', '0'), 1):0,
(('4', '1', '0', '4', '0', '0', '4', '4'), 1):41.8,
(('0', '-1', '1', '1', '0', '-1', '4', '-1'), 2):147.931528438,
(('0', '2', '1', '2', '0', '0', '4', '0'), 0):174.950206147,
(('0', '4', '-1', '2', '-1', '-1', '2', '0'), 2):499.583039841,
(('4', '1', '0', '1', '4', '1', '1', '1'), 2):0,
(('4', '2', '1', '2', '0', '0', '4', '0'), 2):0,
(('1', '1', '1', '4', '1', '0', '1', '4'), 0):22.2553548578,
(('4', '1', '0', '1', '0', '0', '1', '0'), 2):85.0578891412,
(('4', '1', '0', '1', '1', '0', '4', '1'), 3):-10,
(('1', '2', '2', '2', '0', '0', '4', '1'), 3):77.7105175372,
(('2', '2', '2', '2', '1', '1', '4', '1'), 1):220,
(('1', '2', '0', '2', '2', '2', '0', '2'), 0):439.869211289,
(('2', '2', '2', '2', '0', '1', '2', '1'), 2):106.343739981,
(('1', '1', '1', '4', '0', '0', '1', '4'), 1):-290,
(('4', '1', '1', '1', '1', '0', '4', '1'), 3):-10,
(('0', '0', '4', '-1', '1', '0', '-1', '-1'), 3):65.3440446594,
(('1', '-1', '4', '2', '4', '-1', '0', '-1'), 0):75.7603331993,
(('4', '2', '-1', '2', '-1', '-1', '1', '2'), 2):300.246435111,
(('4', '2', '2', '2', '4', '0', '4', '0'), 3):112.328923988,
(('0', '0', '0', '1', '0', '1', '0', '0'), 0):171.398767635,
(('4', '2', '2', '2', '1', '0', '0', '0'), 0):82.0012550492,
(('2', '2', '4', '2', '1', '1', '0', '1'), 2):50,
(('0', '1', '0', '1', '0', '1', '1', '0'), 0):196.390184526,
(('4', '4', '4', '2', '4', '4', '2', '0'), 2):10,
(('0', '2', '2', '4', '0', '2', '4', '4'), 0):115.793421313,
(('0', '0', '0', '0', '0', '0', '1', '0'), 3):247.608142845,
(('4', '2', '0', '2', '2', '0', '2', '2'), 0):-1000,
(('1', '1', '-1', '4', '-1', '-1', '0', '0'), 3):221.078461626,
(('0', '1', '0', '1', '0', '0', '1', '0'), 0):198.724786646,
(('1', '2', '0', '2', '1', '4', '2', '2'), 2):124.46858862,
(('0', '0', '1', '0', '0', '0', '0', '1'), 1):27.0883219614,
(('0', '2', '1', '2', '1', '1', '0', '2'), 2):537.886562003,
(('4', '-1', '1', '0', '4', '-1', '0', '-1'), 3):74.3662306106,
(('4', '1', '0', '0', '0', '1', '0', '0'), 1):0,
(('0', '2', '0', '2', '2', '0', '2', '2'), 0):207.498229058,
(('0', '1', '0', '0', '1', '0', '0', '1'), 2):109.061147512,
(('0', '1', '4', '1', '4', '4', '0', '0'), 0):52.5544749253,
(('0', '4', '0', '2', '0', '0', '2', '0'), 2):213.398034085,
(('0', '2', '2', '-1', '2', '4', '-1', '-1'), 0):213.919583964,
(('-1', '1', '1', '4', '-1', '0', '-1', '0'), 3):49.5431047725,
(('1', '2', '2', '2', '4', '0', '0', '0'), 3):196.729064194,
(('-1', '4', '0', '1', '-1', '0', '-1', '1'), 1):234.569676816,
(('0', '0', '1', '1', '1', '1', '0', '0'), 2):235.818491107,
(('1', '1', '1', '1', '0', '4', '1', '1'), 0):60.2331606928,
(('2', '-1', '1', '2', '1', '-1', '2', '-1'), 2):365.43851053,
(('2', '2', '2', '2', '2', '0', '4', '0'), 1):176.501580975,
(('4', '1', '1', '-1', '0', '1', '-1', '-1'), 0):280.40692477,
(('1', '2', '0', '2', '0', '0', '0', '1'), 1):235.985686735,
(('1', '2', '1', '2', '1', '4', '1', '4'), 2):40.6694703217,
(('1', '1', '4', '-1', '4', '4', '-1', '-1'), 0):160.927571254,
(('4', '1', '1', '0', '1', '1', '0', '1'), 1):158.997906577,
(('0', '-1', '1', '0', '0', '-1', '0', '-1'), 2):245.347465618,
(('4', '2', '1', '2', '1', '1', '4', '2'), 2):248.62589013,
(('0', '2', '-1', '4', '-1', '-1', '0', '0'), 3):262.509414151,
(('0', '2', '-1', '4', '-1', '-1', '2', '0'), 2):10,
(('1', '1', '1', '-1', '4', '4', '-1', '-1'), 2):0,
(('-1', '0', '4', '0', '-1', '1', '-1', '0'), 3):37.4447714147,
(('0', '1', '1', '1', '0', '4', '1', '1'), 1):36.0516118268,
(('2', '2', '1', '2', '1', '0', '0', '0'), 1):269.194907775,
(('0', '4', '1', '1', '1', '1', '0', '1'), 3):10,
(('4', '2', '0', '2', '1', '0', '0', '1'), 3):10,
(('0', '-1', '1', '2', '4', '-1', '2', '-1'), 0):10,
(('0', '2', '1', '2', '1', '1', '1', '1'), 2):235.171167675,
(('4', '1', '1', '-1', '0', '0', '-1', '-1'), 1):41.5187766984,
(('4', '-1', '-1', '4', '-1', '-1', '0', '-1'), 2):10,
(('1', '1', '4', '-1', '1', '4', '-1', '-1'), 2):176.149619939,
(('1', '1', '1', '1', '4', '1', '0', '0'), 0):-62.404061029,
(('0', '0', '1', '-1', '1', '0', '-1', '-1'), 3):280.594238684,
(('4', '2', '1', '4', '1', '1', '4', '0'), 0):45.7036234494,
(('2', '2', '1', '2', '1', '1', '0', '1'), 2):244.096762919,
(('0', '2', '0', '2', '0', '1', '4', '0'), 2):185.575952679,
(('0', '2', '2', '2', '1', '1', '0', '2'), 0):76.0782231664,
(('1', '-1', '2', '4', '1', '-1', '0', '-1'), 0):10,
(('1', '4', '0', '4', '0', '4', '4', '4'), 1):10,
(('0', '2', '2', '2', '0', '0', '1', '2'), 3):311.398379833,
(('1', '2', '4', '2', '0', '1', '1', '2'), 0):10,
(('0', '-1', '1', '0', '0', '-1', '4', '-1'), 1):59.4242127653,
(('1', '2', '2', '2', '1', '0', '0', '1'), 0):99.4117012219,
(('0', '4', '1', '0', '1', '4', '1', '0'), 2):0,
(('2', '2', '0', '2', '4', '1', '2', '2'), 1):82.7360801597,
(('1', '2', '2', '2', '2', '2', '0', '2'), 2):760.317560456,
(('4', '0', '1', '0', '0', '0', '0', '0'), 2):123.997434865,
(('0', '2', '-1', '2', '-1', '-1', '1', '2'), 0):353.482985011,
(('0', '2', '0', '2', '0', '1', '0', '4'), 0):235.420092084,
(('1', '0', '4', '1', '0', '0', '0', '0'), 0):-155.352911086,
(('1', '1', '0', '1', '0', '4', '1', '1'), 0):184.243161022,
(('1', '4', '2', '2', '2', '0', '1', '1'), 3):158.660714542,
(('1', '-1', '-1', '2', '-1', '-1', '1', '-1'), 0):287.759095599,
(('1', '1', '4', '1', '1', '1', '1', '1'), 0):126.699271795,
(('2', '2', '0', '2', '2', '1', '1', '4'), 1):36.3946493256,
(('1', '1', '1', '1', '0', '1', '0', '0'), 1):198.63995903,
(('2', '2', '0', '2', '0', '0', '1', '2'), 1):319.697963854,
(('0', '2', '0', '2', '0', '0', '2', '1'), 0):273.824038865,
(('1', '2', '4', '2', '0', '0', '4', '0'), 2):0,
(('1', '4', '0', '0', '1', '0', '0', '0'), 1):184.822213016,
(('0', '0', '1', '1', '0', '0', '0', '0'), 2):215.117005134,
(('0', '2', '2', '2', '4', '1', '0', '0'), 3):249.353307384,
(('0', '1', '0', '4', '0', '1', '4', '0'), 3):50.2191207498,
(('-1', '2', '4', '2', '-1', '1', '-1', '2'), 1):10.0,
(('4', '1', '1', '0', '1', '0', '4', '0'), 0):-10,
(('1', '-1', '1', '4', '1', '-1', '1', '-1'), 3):236.457551989,
(('4', '1', '1', '0', '1', '0', '0', '0'), 2):68.8044309281,
(('2', '2', '2', '-1', '1', '1', '-1', '-1'), 0):171.353855236,
(('4', '1', '0', '-1', '4', '1', '-1', '-1'), 3):30.429730743,
(('1', '4', '4', '1', '0', '4', '1', '1'), 2):10,
(('0', '-1', '1', '4', '1', '-1', '0', '-1'), 3):203.813419029,
(('2', '4', '-1', '4', '-1', '-1', '0', '4'), 1):101.917719855,
(('1', '1', '0', '0', '0', '4', '0', '0'), 3):43.7634437805,
(('1', '1', '0', '1', '0', '0', '0', '4'), 0):14.4083603606,
(('1', '2', '2', '-1', '2', '0', '-1', '-1'), 3):377.273026163,
(('0', '4', '0', '1', '0', '1', '1', '1'), 2):44.6757032447,
(('4', '2', '1', '2', '1', '1', '0', '0'), 2):202.487687972,
(('0', '2', '2', '2', '1', '2', '0', '1'), 3):304.24958211,
(('2', '4', '2', '2', '0', '0', '0', '0'), 3):10,
(('4', '2', '2', '-1', '2', '4', '-1', '-1'), 0):50,
(('0', '2', '2', '2', '1', '1', '0', '1'), 0):257.723925813,
(('2', '2', '0', '2', '2', '4', '2', '2'), 1):75.4317323067,
(('0', '2', '2', '4', '2', '2', '0', '0'), 3):-192.0,
(('1', '4', '2', '2', '2', '4', '1', '0'), 3):296.004963868,
(('1', '2', '1', '2', '0', '2', '0', '0'), 2):10,
(('0', '2', '2', '2', '4', '1', '1', '0'), 3):10,
(('0', '0', '1', '1', '1', '1', '1', '1'), 1):10,
(('1', '0', '0', '-1', '0', '4', '-1', '-1'), 0):87.2146922964,
(('0', '0', '1', '1', '1', '0', '0', '1'), 3):170.618932488,
(('1', '-1', '2', '4', '0', '-1', '1', '-1'), 3):177.73311728,
(('4', '2', '2', '2', '1', '2', '2', '2'), 0):10,
(('0', '2', '0', '2', '0', '0', '0', '2'), 2):303.815310643,
(('0', '0', '-1', '4', '-1', '-1', '4', '0'), 0):50.2276356173,
(('4', '2', '1', '2', '1', '2', '1', '1'), 0):10,
(('1', '0', '4', '1', '1', '1', '0', '0'), 3):0,
(('0', '4', '-1', '4', '-1', '-1', '0', '4'), 0):54.3064864116,
(('1', '2', '4', '2', '4', '2', '1', '0'), 0):10,
(('0', '1', '1', '0', '0', '1', '0', '0'), 0):224.427512422,
(('2', '2', '2', '2', '2', '2', '2', '2'), 3):458.43074172,
(('1', '-1', '0', '-1', '1', '-1', '-1', '-1'), 3):278.794516556,
(('4', '2', '2', '2', '2', '2', '0', '0'), 3):253.295686235,
(('1', '0', '0', '1', '0', '0', '0', '4'), 0):9.92522232771,
(('1', '-1', '0', '0', '0', '-1', '1', '-1'), 3):259.060049572,
(('4', '2', '4', '2', '0', '4', '4', '1'), 2):10,
(('1', '0', '4', '0', '1', '4', '0', '0'), 2):78.015699385,
(('0', '2', '1', '2', '1', '2', '1', '1'), 0):209.997635548,
(('1', '1', '4', '1', '1', '0', '0', '1'), 1):46.4793784125,
(('1', '2', '2', '2', '1', '0', '0', '0'), 3):281.196823519,
(('0', '0', '4', '1', '4', '4', '0', '1'), 3):32.1343982717,
(('4', '0', '-1', '4', '-1', '-1', '4', '4'), 3):50,
(('2', '2', '1', '2', '0', '0', '0', '4'), 1):116.833374455,
(('1', '4', '1', '0', '1', '1', '1', '0'), 2):162.488261374,
(('4', '2', '1', '2', '1', '1', '0', '1'), 3):207.674221256,
(('4', '2', '2', '4', '0', '2', '4', '0'), 1):10,
(('1', '1', '4', '1', '0', '1', '0', '1'), 2):24.2102579538,
(('0', '4', '1', '1', '0', '1', '0', '4'), 0):-10,
(('-1', '1', '1', '0', '-1', '1', '-1', '0'), 3):263.469717411,
(('1', '1', '1', '4', '1', '1', '0', '4'), 1):126.00534634,
(('2', '2', '2', '2', '1', '1', '2', '0'), 1):335.490072557,
(('-1', '2', '2', '2', '-1', '1', '-1', '0'), 2):278.115250442,
(('4', '2', '1', '-1', '4', '2', '-1', '-1'), 2):191.313217896,
(('-1', '1', '0', '4', '-1', '1', '-1', '4'), 0):50,
(('2', '2', '2', '2', '0', '2', '1', '2'), 0):138.017038922,
(('0', '2', '1', '4', '1', '1', '1', '2'), 0):10,
(('-1', '4', '1', '2', '-1', '1', '-1', '0'), 2):40,
(('2', '2', '2', '2', '0', '1', '1', '1'), 1):250.692613111,
(('1', '-1', '1', '4', '1', '-1', '4', '-1'), 3):176.72207883,
(('2', '4', '0', '2', '0', '4', '0', '0'), 2):10,
(('1', '4', '1', '1', '1', '4', '1', '4'), 2):118.94932202,
(('0', '-1', '0', '2', '2', '-1', '2', '-1'), 2):266.007058805,
(('1', '4', '2', '-1', '0', '0', '-1', '-1'), 3):226.521665165,
(('1', '2', '0', '-1', '0', '2', '-1', '-1'), 2):481.045923259,
(('1', '1', '1', '0', '0', '1', '1', '1'), 0):138.29229516,
(('1', '1', '0', '0', '1', '1', '0', '0'), 1):191.298932081,
(('0', '-1', '1', '1', '1', '-1', '4', '-1'), 2):31.3230770663,
(('2', '-1', '2', '2', '4', '-1', '0', '-1'), 3):36.4927752801,
(('0', '-1', '1', '0', '4', '-1', '0', '-1'), 3):211.523820065,
(('0', '0', '0', '1', '0', '0', '0', '0'), 2):258.351786503,
(('0', '1', '1', '0', '0', '4', '0', '1'), 1):134.426899227,
(('0', '2', '0', '-1', '4', '0', '-1', '-1'), 0):263.693740719,
(('0', '2', '0', '2', '1', '2', '0', '1'), 0):209.488389464,
(('2', '2', '0', '2', '2', '2', '2', '1'), 1):262.060185758,
(('0', '2', '4', '2', '0', '0', '1', '0'), 2):239.893979037,
(('0', '4', '-1', '2', '-1', '-1', '1', '1'), 0):100.673652208,
(('1', '2', '0', '2', '1', '1', '4', '1'), 2):34.4645300865,
(('4', '2', '0', '2', '4', '0', '2', '2'), 1):238.524419453,
(('1', '4', '0', '0', '0', '0', '1', '0'), 1):196.069433206,
(('-1', '4', '0', '1', '-1', '4', '-1', '4'), 2):15.8820655243,
(('2', '2', '2', '4', '0', '2', '0', '0'), 1):10,
(('1', '1', '0', '4', '0', '0', '4', '0'), 0):102.758364724,
(('-1', '4', '0', '1', '-1', '4', '-1', '0'), 1):17.0715433535,
(('1', '-1', '1', '1', '1', '-1', '4', '-1'), 0):151.054286412,
(('1', '4', '1', '2', '0', '4', '0', '0'), 2):10,
(('1', '0', '4', '1', '4', '4', '1', '0'), 0):2.0,
(('0', '4', '1', '2', '1', '4', '2', '0'), 2):141.8,
(('1', '0', '4', '1', '1', '4', '1', '1'), 0):2.20451760471,
(('-1', '4', '4', '4', '-1', '4', '-1', '4'), 3):-10,
(('0', '1', '1', '0', '0', '4', '0', '0'), 1):199.8929539,
(('2', '2', '-1', '2', '-1', '-1', '1', '2'), 1):414.998224064,
(('0', '1', '1', '1', '4', '1', '0', '1'), 1):159.46589695,
(('-1', '4', '4', '2', '-1', '0', '-1', '2'), 2):50,
(('1', '1', '0', '1', '1', '0', '4', '0'), 2):10.973076718,
(('0', '2', '-1', '2', '-1', '-1', '1', '4'), 0):248.02597432,
(('4', '2', '1', '2', '4', '1', '4', '2'), 2):95.7034945557,
(('0', '-1', '1', '1', '0', '-1', '1', '-1'), 3):213.970212539,
(('0', '-1', '-1', '1', '-1', '-1', '4', '-1'), 3):187.878944022,
(('0', '4', '0', '4', '0', '1', '0', '4'), 3):-10,
(('0', '-1', '0', '1', '0', '-1', '4', '-1'), 2):187.199110371,
(('2', '2', '4', '2', '0', '2', '2', '2'), 1):32.6806144784,
(('1', '-1', '2', '2', '0', '-1', '0', '-1'), 0):285.496742211,
(('4', '1', '1', '1', '1', '0', '1', '1'), 3):-3.38702766902,
(('0', '-1', '1', '2', '0', '-1', '1', '-1'), 0):216.529880212,
(('1', '2', '1', '2', '1', '0', '0', '0'), 3):274.995400016,
(('2', '2', '1', '4', '0', '0', '0', '4'), 1):63.1493875288,
(('1', '4', '1', '4', '1', '0', '1', '4'), 0):10,
(('1', '0', '1', '1', '4', '0', '0', '0'), 3):42.1369970451,
(('0', '0', '0', '4', '0', '0', '0', '4'), 2):85.8397540749,
(('-1', '0', '0', '1', '-1', '0', '-1', '0'), 3):239.646894988,
(('0', '2', '0', '-1', '2', '2', '-1', '-1'), 2):311.138131001,
(('2', '2', '0', '2', '2', '1', '2', '4'), 1):41.9415545906,
(('0', '4', '0', '-1', '1', '0', '-1', '-1'), 0):130.662943685,
(('0', '4', '0', '2', '0', '2', '0', '2'), 2):10,
(('1', '4', '0', '1', '1', '0', '1', '1'), 1):220.811915047,
(('0', '1', '-1', '0', '-1', '-1', '0', '4'), 3):245.169882637,
(('1', '2', '0', '-1', '1', '4', '-1', '-1'), 1):271.857735464,
(('-1', '1', '1', '1', '-1', '0', '-1', '0'), 2):213.13224229,
(('2', '4', '0', '2', '0', '0', '1', '1'), 1):243.409613249,
(('4', '2', '0', '2', '4', '2', '0', '2'), 2):159.488022276,
(('2', '2', '2', '2', '4', '0', '2', '1'), 3):353.307526878,
(('1', '2', '2', '4', '0', '0', '1', '4'), 3):106.742485112,
(('0', '2', '2', '2', '1', '4', '4', '4'), 3):10,
(('0', '2', '0', '-1', '1', '0', '-1', '-1'), 2):296.129743325,
(('4', '0', '1', '0', '0', '1', '1', '0'), 2):11.5615138677,
(('2', '2', '2', '2', '1', '2', '1', '0'), 3):123.959478985,
(('0', '1', '1', '1', '1', '0', '1', '1'), 3):179.924879127,
(('0', '-1', '4', '1', '4', '-1', '1', '-1'), 3):-10,
(('2', '2', '2', '-1', '4', '0', '-1', '-1'), 2):86.2626423369,
(('0', '-1', '1', '4', '1', '-1', '4', '-1'), 0):28.782648217,
(('4', '0', '1', '1', '1', '0', '1', '1'), 3):10,
(('1', '0', '0', '1', '1', '0', '1', '4'), 2):53.2570711924,
(('1', '1', '1', '1', '1', '1', '1', '1'), 1):180.72178473,
(('0', '4', '2', '2', '0', '2', '1', '4'), 3):10,
(('2', '2', '2', '2', '2', '2', '2', '4'), 2):115.178749514,
(('4', '1', '-1', '4', '-1', '-1', '0', '1'), 2):-10,
(('1', '2', '2', '2', '1', '4', '0', '0'), 3):212.616648864,
(('2', '4', '0', '2', '2', '0', '1', '4'), 1):71.6946413906,
(('2', '2', '2', '2', '2', '4', '2', '1'), 1):140,
(('0', '1', '1', '1', '0', '1', '0', '1'), 2):206.461971113,
(('1', '0', '-1', '0', '-1', '-1', '1', '4'), 1):192.903683143,
(('0', '2', '1', '2', '4', '1', '0', '0'), 2):222.218588581,
(('2', '-1', '-1', '2', '-1', '-1', '0', '-1'), 3):298.606096722,
(('1', '2', '1', '2', '1', '2', '0', '0'), 0):413.799885736,
(('4', '2', '0', '2', '0', '0', '0', '1'), 1):177.918653587,
(('0', '2', '2', '2', '2', '0', '0', '0'), 2):332.002941841,
(('1', '2', '1', '-1', '0', '4', '-1', '-1'), 3):97.2098712773,
(('1', '1', '0', '1', '1', '0', '4', '1'), 0):72.0726484334,
(('0', '1', '0', '1', '0', '4', '0', '0'), 2):123.469952183,
(('1', '2', '0', '4', '0', '0', '0', '0'), 0):50,
(('0', '0', '0', '0', '1', '4', '0', '0'), 3):0,
(('4', '0', '0', '4', '0', '0', '4', '0'), 1):0,
(('1', '2', '0', '2', '0', '0', '1', '0'), 3):263.183802452,
(('4', '2', '2', '-1', '0', '0', '-1', '-1'), 3):331.053445486,
(('4', '0', '4', '1', '0', '0', '0', '0'), 2):46.1062806901,
(('4', '-1', '1', '0', '4', '-1', '4', '-1'), 2):35.8609358183,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '4'), 3):69.8947821866,
(('1', '1', '0', '1', '0', '0', '1', '0'), 3):208.997944381,
(('1', '2', '2', '2', '4', '2', '0', '2'), 3):11.44,
(('2', '2', '1', '2', '0', '2', '2', '2'), 1):475.746380566,
(('0', '4', '1', '1', '0', '1', '0', '4'), 2):79.2593785531,
(('4', '2', '2', '2', '0', '2', '1', '0'), 3):120.558143188,
(('1', '4', '2', '2', '0', '0', '0', '4'), 3):52.0650825662,
(('1', '1', '1', '0', '0', '1', '0', '4'), 3):-4.2,
(('-1', '0', '4', '-1', '-1', '4', '-1', '-1'), 2):-49.7685559584,
(('2', '4', '0', '2', '1', '4', '0', '0'), 1):64.8114547087,
(('1', '-1', '0', '0', '1', '-1', '0', '-1'), 0):303.087900311,
(('2', '2', '2', '2', '0', '2', '0', '2'), 2):290.403999362,
(('1', '2', '0', '2', '0', '1', '0', '1'), 0):214.025054287,
(('-1', '2', '4', '-1', '-1', '4', '-1', '-1'), 2):306.433951112,
(('1', '-1', '-1', '0', '-1', '-1', '1', '-1'), 1):272.471408336,
(('1', '-1', '-1', '2', '-1', '-1', '0', '-1'), 3):306.729802142,
(('1', '2', '2', '2', '0', '0', '0', '1'), 3):280.702680701,
(('2', '2', '0', '2', '1', '0', '4', '2'), 0):63.696063231,
(('0', '1', '0', '0', '0', '4', '0', '1'), 0):109.319560648,
(('1', '2', '0', '-1', '0', '1', '-1', '-1'), 3):184.576677022,
(('1', '-1', '4', '2', '1', '-1', '1', '-1'), 0):235.38008924,
(('0', '1', '4', '-1', '4', '1', '-1', '-1'), 2):162.834856773,
(('1', '0', '1', '0', '4', '1', '0', '0'), 1):65.1431784078,
(('1', '4', '1', '1', '1', '0', '0', '1'), 1):10,
(('0', '4', '4', '1', '4', '4', '1', '4'), 1):10,
(('2', '4', '2', '-1', '2', '0', '-1', '-1'), 3):132.816638465,
(('4', '2', '-1', '2', '-1', '-1', '0', '0'), 2):209.751132901,
(('1', '2', '2', '2', '1', '0', '1', '0'), 2):136.185832338,
(('2', '2', '2', '-1', '1', '4', '-1', '-1'), 1):10,
(('0', '-1', '-1', '1', '-1', '-1', '1', '-1'), 2):265.898752097,
(('1', '2', '1', '2', '4', '1', '0', '0'), 3):91.4780956495,
(('1', '2', '4', '2', '2', '4', '1', '1'), 3):10,
(('0', '4', '4', '1', '4', '4', '0', '4'), 2):22.9651257231,
(('0', '2', '2', '2', '2', '0', '0', '1'), 0):315.493460278,
(('1', '1', '0', '1', '0', '0', '0', '0'), 2):197.92805748,
(('1', '2', '4', '2', '0', '4', '0', '0'), 1):132.60654056,
(('4', '2', '4', '-1', '4', '1', '-1', '-1'), 3):10,
(('0', '1', '-1', '1', '-1', '-1', '1', '4'), 0):97.8289460502,
(('0', '-1', '2', '2', '4', '-1', '0', '-1'), 0):110.617818096,
(('1', '1', '1', '0', '1', '0', '0', '0'), 1):223.01491844,
(('4', '2', '1', '2', '0', '0', '0', '1'), 2):10,
(('4', '1', '0', '-1', '0', '4', '-1', '-1'), 1):10,
(('0', '1', '0', '-1', '0', '1', '-1', '-1'), 3):244.140559356,
(('2', '4', '1', '2', '2', '0', '2', '0'), 2):10,
(('1', '1', '4', '0', '0', '0', '1', '1'), 0):0,
(('0', '2', '4', '2', '1', '4', '0', '0'), 3):72.1236822572,
(('-1', '2', '0', '2', '-1', '4', '-1', '0'), 3):10,
(('1', '4', '1', '0', '1', '0', '0', '4'), 1):70.5963503424,
(('0', '2', '4', '2', '4', '1', '0', '0'), 0):217.894151895,
(('0', '2', '2', '4', '0', '1', '4', '0'), 3):34.2899236262,
(('2', '2', '2', '2', '2', '0', '1', '1'), 2):10,
(('1', '-1', '-1', '4', '-1', '-1', '0', '-1'), 3):230.352581444,
(('2', '2', '4', '2', '0', '0', '1', '0'), 1):234.944980316,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '4'), 2):113.019544175,
(('4', '1', '0', '1', '4', '1', '4', '0'), 1):0,
(('0', '2', '4', '2', '4', '0', '1', '1'), 0):54.7831912592,
(('1', '2', '1', '-1', '1', '4', '-1', '-1'), 0):242.453518346,
(('1', '2', '0', '2', '0', '1', '0', '4'), 0):52.0547742159,
(('-1', '1', '1', '1', '-1', '0', '-1', '4'), 0):-6.236,
(('4', '1', '1', '1', '0', '1', '0', '1'), 1):164.33894452,
(('1', '2', '4', '2', '0', '1', '0', '0'), 3):42.4947983948,
(('-1', '0', '0', '4', '-1', '0', '-1', '0'), 3):185.104010929,
(('2', '2', '2', '2', '0', '1', '1', '1'), 3):222.867742343,
(('-1', '2', '0', '4', '-1', '0', '-1', '1'), 2):50.2918410402,
(('4', '2', '4', '2', '0', '0', '4', '2'), 0):10,
(('1', '1', '1', '1', '1', '4', '0', '0'), 0):0,
(('2', '-1', '0', '4', '1', '-1', '0', '-1'), 1):65.3549808186,
(('1', '4', '1', '2', '1', '1', '0', '0'), 2):10,
(('0', '1', '4', '1', '1', '1', '1', '1'), 1):45.4918774305,
(('1', '1', '4', '-1', '0', '4', '-1', '-1'), 0):162.891169398,
(('1', '0', '4', '1', '0', '4', '1', '0'), 1):63.3377659341,
(('1', '0', '0', '0', '0', '0', '1', '0'), 2):219.048121465,
(('4', '2', '0', '2', '0', '2', '4', '0'), 0):231.44548584,
(('0', '4', '0', '0', '0', '4', '0', '0'), 1):58.8639996051,
(('2', '-1', '-1', '2', '-1', '-1', '4', '-1'), 1):227.851020503,
(('2', '2', '1', '-1', '1', '0', '-1', '-1'), 0):327.803676707,
(('2', '2', '1', '2', '1', '0', '0', '2'), 0):244.721131586,
(('0', '4', '0', '1', '0', '0', '1', '4'), 0):109.24535649,
(('0', '2', '0', '2', '2', '0', '0', '2'), 2):244.04620517,
(('2', '2', '-1', '2', '-1', '-1', '2', '1'), 1):413.565993824,
(('1', '0', '1', '4', '0', '0', '0', '0'), 3):105.06600245,
(('-1', '2', '1', '2', '-1', '2', '-1', '1'), 1):320,
(('1', '2', '2', '2', '0', '0', '1', '1'), 3):227.207931621,
(('0', '2', '4', '2', '4', '0', '2', '1'), 0):10,
(('1', '0', '1', '0', '4', '0', '1', '0'), 2):85.1838776284,
(('1', '0', '1', '0', '1', '4', '1', '0'), 2):163.831346968,
(('0', '2', '0', '2', '1', '1', '0', '0'), 3):198.976738278,
(('0', '2', '0', '2', '0', '4', '1', '4'), 2):44.8328920045,
(('4', '2', '2', '-1', '0', '1', '-1', '-1'), 3):298.486622265,
(('4', '2', '0', '-1', '1', '2', '-1', '-1'), 0):279.434005171,
(('1', '2', '2', '4', '1', '2', '1', '4'), 0):10,
(('1', '2', '0', '2', '4', '0', '1', '2'), 0):582.875692001,
(('1', '1', '-1', '1', '-1', '-1', '1', '0'), 0):247.269163811,
(('2', '4', '1', '2', '2', '4', '2', '1'), 1):10,
(('0', '-1', '1', '2', '0', '-1', '0', '-1'), 1):240.39639133,
(('1', '1', '4', '-1', '0', '0', '-1', '-1'), 3):50.8879247031,
(('1', '1', '0', '0', '0', '1', '1', '0'), 3):135.788445582,
(('4', '2', '2', '2', '4', '1', '4', '1'), 3):10,
(('-1', '1', '-1', '0', '-1', '-1', '-1', '0'), 2):246.775749688,
(('0', '0', '1', '0', '0', '1', '1', '0'), 2):91.9750986342,
(('0', '2', '0', '4', '0', '0', '1', '0'), 2):10,
(('0', '2', '2', '2', '2', '0', '0', '4'), 2):-1000,
(('1', '0', '1', '4', '1', '0', '1', '0'), 1):234.195254071,
(('2', '2', '2', '2', '0', '2', '2', '4'), 3):10,
(('1', '4', '0', '2', '0', '4', '1', '1'), 1):10,
(('1', '1', '0', '0', '4', '0', '1', '0'), 0):168.686242822,
(('0', '2', '4', '-1', '4', '2', '-1', '-1'), 3):-95.7377700224,
(('1', '1', '4', '1', '4', '4', '0', '0'), 2):-10.0,
(('2', '4', '1', '2', '1', '4', '2', '4'), 1):10,
(('0', '2', '0', '2', '0', '0', '0', '4'), 0):217.907736005,
(('4', '2', '1', '2', '1', '0', '1', '2'), 2):10,
(('2', '2', '1', '2', '0', '1', '1', '0'), 1):268.874216782,
(('-1', '1', '1', '1', '-1', '4', '-1', '0'), 3):130.637557348,
(('0', '1', '1', '0', '0', '1', '4', '4'), 0):10,
(('4', '2', '2', '2', '0', '0', '0', '1'), 3):270.275274875,
(('2', '2', '-1', '2', '-1', '-1', '0', '1'), 1):329.57360083,
(('-1', '4', '0', '0', '-1', '0', '-1', '0'), 0):159.345821773,
(('2', '-1', '2', '4', '2', '-1', '4', '-1'), 1):10,
(('4', '2', '-1', '2', '-1', '-1', '0', '1'), 1):268.055251054,
(('2', '2', '0', '2', '0', '2', '0', '2'), 0):10,
(('0', '4', '-1', '4', '-1', '-1', '0', '1'), 3):59.0074791633,
(('0', '2', '0', '2', '0', '4', '1', '0'), 0):91.4284716803,
(('1', '0', '0', '1', '0', '0', '4', '1'), 0):63.2886202224,
(('0', '2', '2', '2', '2', '2', '2', '2'), 2):518.705805534,
(('0', '4', '1', '1', '0', '4', '0', '4'), 3):48.7077574928,
(('1', '-1', '2', '2', '1', '-1', '1', '-1'), 2):403.729175079,
(('2', '2', '2', '2', '0', '0', '0', '1'), 3):239.991493736,
(('1', '-1', '0', '-1', '2', '-1', '-1', '-1'), 2):170.54120034,
(('1', '0', '4', '1', '0', '4', '0', '0'), 1):34.1296337952,
(('4', '1', '1', '0', '4', '1', '0', '0'), 1):129.702482382,
(('1', '-1', '1', '1', '0', '-1', '0', '-1'), 2):249.258391573,
(('2', '2', '1', '2', '1', '4', '1', '0'), 2):113.64757149,
(('4', '1', '1', '1', '4', '1', '0', '0'), 2):97.0497300171,
(('0', '0', '0', '-1', '4', '0', '-1', '-1'), 3):108.33158255,
(('0', '1', '-1', '1', '-1', '-1', '1', '1'), 2):261.073312195,
(('-1', '2', '0', '2', '-1', '2', '-1', '2'), 1):325.429797405,
(('2', '2', '1', '2', '4', '1', '0', '2'), 1):10,
(('0', '2', '-1', '4', '-1', '-1', '1', '0'), 2):10,
(('0', '0', '4', '-1', '0', '0', '-1', '-1'), 3):201.713656591,
(('0', '1', '1', '4', '0', '0', '4', '4'), 3):86.6348325742,
(('2', '2', '2', '2', '1', '0', '2', '4'), 3):40.9863814068,
(('0', '1', '1', '0', '0', '1', '1', '1'), 0):57.6282090149,
(('1', '2', '0', '2', '1', '0', '0', '0'), 3):274.854741597,
(('1', '2', '2', '-1', '1', '1', '-1', '-1'), 3):301.653416926,
(('2', '2', '-1', '4', '-1', '-1', '0', '0'), 3):57.1395958713,
(('0', '2', '0', '2', '2', '4', '2', '0'), 2):10.0,
(('-1', '2', '4', '-1', '-1', '1', '-1', '-1'), 2):202.285919974,
(('4', '2', '0', '2', '4', '2', '4', '1'), 0):175.679839751,
(('2', '2', '2', '-1', '2', '1', '-1', '-1'), 0):356.057273285,
(('0', '4', '1', '-1', '1', '1', '-1', '-1'), 1):188.387507319,
(('4', '-1', '1', '0', '0', '-1', '1', '-1'), 3):0.593672723327,
(('-1', '2', '0', '2', '-1', '1', '-1', '2'), 2):320.313108401,
(('1', '0', '1', '4', '1', '0', '0', '4'), 1):56.6443177739,
(('1', '-1', '1', '0', '0', '-1', '4', '-1'), 1):10,
(('0', '1', '0', '4', '1', '0', '4', '4'), 0):0,
(('1', '0', '1', '1', '1', '1', '0', '4'), 2):-10,
(('1', '0', '0', '-1', '4', '0', '-1', '-1'), 1):305.381851944,
(('4', '2', '4', '2', '4', '4', '0', '0'), 1):20,
(('1', '2', '-1', '2', '-1', '-1', '4', '4'), 1):72.2690762093,
(('0', '1', '0', '4', '0', '0', '0', '1'), 0):221.080973446,
(('1', '1', '0', '4', '1', '0', '4', '0'), 0):43.3811715433,
(('1', '2', '4', '2', '1', '0', '1', '0'), 2):239.481478341,
(('1', '4', '0', '2', '1', '0', '1', '1'), 3):10,
(('0', '2', '1', '2', '4', '1', '0', '2'), 0):298.084231947,
(('1', '-1', '0', '2', '1', '-1', '2', '-1'), 2):362.650977425,
(('1', '-1', '0', '-1', '4', '-1', '-1', '-1'), 2):243.473122182,
(('1', '1', '4', '1', '0', '0', '0', '1'), 1):70.9317786343,
(('4', '2', '2', '2', '0', '1', '4', '0'), 1):10,
(('2', '2', '1', '2', '4', '0', '2', '2'), 0):160,
(('0', '2', '2', '2', '0', '2', '0', '0'), 0):287.096294563,
(('1', '1', '1', '0', '0', '1', '4', '1'), 3):0,
(('0', '2', '1', '2', '0', '0', '2', '2'), 2):427.748649739,
(('0', '2', '4', '2', '0', '4', '2', '2'), 0):184.367008363,
(('0', '4', '0', '2', '0', '4', '0', '1'), 2):152.885177575,
(('0', '2', '4', '2', '4', '0', '1', '2'), 0):203.858918691,
(('0', '1', '0', '0', '0', '0', '1', '0'), 3):164.036839687,
(('0', '1', '4', '1', '0', '0', '0', '0'), 2):190.126600348,
(('1', '2', '-1', '4', '-1', '-1', '0', '0'), 3):137.298647983,
(('1', '0', '0', '1', '1', '0', '0', '4'), 3):0,
(('1', '0', '1', '1', '1', '0', '0', '0'), 3):231.161069287,
(('1', '1', '0', '1', '1', '4', '0', '1'), 2):33.9357544601,
(('1', '1', '1', '-1', '0', '4', '-1', '-1'), 2):102.585133563,
(('2', '-1', '2', '-1', '2', '-1', '-1', '-1'), 3):289.383619029,
(('1', '1', '1', '0', '0', '1', '1', '0'), 1):219.631779508,
(('4', '2', '1', '2', '0', '1', '2', '2'), 2):79.1774157663,
(('0', '1', '1', '1', '0', '1', '4', '1'), 2):167.260260303,
(('4', '1', '0', '1', '1', '0', '0', '1'), 2):0,
(('0', '0', '1', '0', '1', '0', '0', '0'), 3):258.827521633,
(('1', '2', '0', '2', '1', '0', '0', '4'), 1):122.281317076,
(('1', '2', '2', '4', '2', '1', '0', '1'), 3):10,
(('4', '2', '-1', '2', '-1', '-1', '4', '4'), 3):20,
(('1', '1', '1', '-1', '1', '1', '-1', '-1'), 1):248.649346022,
(('0', '2', '2', '2', '2', '2', '0', '0'), 0):367.510383423,
(('1', '2', '2', '2', '1', '2', '4', '4'), 3):191.268882295,
(('-1', '1', '4', '0', '-1', '4', '-1', '0'), 2):125.880924857,
(('1', '4', '0', '2', '0', '0', '1', '1'), 2):225.217886594,
(('4', '1', '1', '1', '0', '0', '0', '0'), 3):95.6304801312,
(('2', '2', '2', '2', '2', '1', '4', '4'), 3):10,
(('0', '1', '1', '0', '0', '1', '0', '0'), 2):233.73170776,
(('2', '2', '4', '-1', '2', '2', '-1', '-1'), 3):-1000,
(('1', '-1', '4', '0', '4', '-1', '0', '-1'), 2):44.9690815367,
(('4', '0', '1', '1', '1', '0', '1', '0'), 0):107.52795907,
(('-1', '1', '4', '1', '-1', '1', '-1', '1'), 2):200.812456907,
(('1', '2', '2', '2', '2', '2', '1', '2'), 2):490.678680989,
(('0', '-1', '2', '2', '2', '-1', '4', '-1'), 3):235.153179993,
(('1', '2', '2', '2', '4', '1', '0', '1'), 3):117.11749618,
(('1', '1', '4', '1', '4', '1', '0', '0'), 2):50,
(('-1', '2', '2', '2', '-1', '2', '-1', '1'), 1):406.932353417,
(('2', '2', '1', '2', '1', '2', '2', '0'), 0):592.445273864,
(('0', '2', '0', '2', '1', '0', '1', '4'), 0):10,
(('0', '2', '0', '2', '1', '0', '1', '1'), 2):231.493321058,
(('4', '2', '0', '2', '4', '1', '0', '1'), 2):35.5468350358,
(('0', '-1', '2', '4', '0', '-1', '0', '-1'), 0):60.6357395197,
(('0', '0', '0', '1', '0', '1', '1', '1'), 2):56.6644986478,
(('1', '1', '0', '1', '1', '0', '0', '0'), 1):207.299739763,
(('1', '2', '4', '2', '1', '4', '1', '0'), 3):79.032000734,
(('1', '1', '-1', '0', '-1', '-1', '1', '4'), 0):31.109209601,
(('1', '2', '0', '-1', '1', '2', '-1', '-1'), 0):434.593520246,
(('0', '0', '0', '0', '0', '0', '0', '0'), 3):228.741429622,
(('0', '2', '1', '2', '1', '1', '4', '1'), 2):140.062393335,
(('1', '2', '2', '4', '2', '0', '1', '0'), 0):10,
(('1', '0', '1', '1', '1', '1', '0', '0'), 0):212.598013131,
(('1', '-1', '4', '0', '1', '-1', '0', '-1'), 1):189.261726694,
(('1', '4', '2', '2', '1', '1', '0', '0'), 3):165.322895101,
(('4', '-1', '4', '1', '4', '-1', '1', '-1'), 0):42.924,
(('1', '1', '0', '-1', '0', '0', '-1', '-1'), 3):226.959246215,
(('4', '2', '-1', '2', '-1', '-1', '0', '0'), 0):264.890630083,
(('4', '2', '-1', '4', '-1', '-1', '4', '1'), 0):26.9690987424,
(('4', '1', '4', '-1', '4', '1', '-1', '-1'), 3):10,
(('1', '2', '-1', '2', '-1', '-1', '4', '1'), 1):125.893781271,
(('1', '2', '1', '2', '1', '0', '0', '2'), 0):444.583531473,
(('4', '-1', '1', '0', '0', '-1', '0', '-1'), 0):171.502526677,
(('2', '-1', '4', '-1', '1', '-1', '-1', '-1'), 2):121.74278684,
(('4', '2', '0', '-1', '0', '4', '-1', '-1'), 2):0,
(('-1', '2', '1', '4', '-1', '0', '-1', '4'), 1):12.124,
(('0', '2', '1', '2', '0', '2', '0', '4'), 2):706.466175503,
(('2', '2', '2', '-1', '0', '4', '-1', '-1'), 3):155.852421894,
(('0', '0', '4', '-1', '4', '0', '-1', '-1'), 0):23.4716378332,
(('-1', '2', '2', '-1', '-1', '0', '-1', '-1'), 2):302.372557509,
(('2', '2', '2', '2', '0', '0', '0', '0'), 2):300.698920565,
(('4', '1', '1', '-1', '4', '1', '-1', '-1'), 2):186.09530324,
(('0', '0', '0', '1', '0', '0', '1', '1'), 1):213.366887059,
(('2', '2', '2', '2', '0', '0', '1', '1'), 0):194.893990643,
(('0', '0', '1', '0', '1', '1', '0', '1'), 1):74.1528116869,
(('0', '2', '-1', '4', '-1', '-1', '0', '4'), 0):292.083275742,
(('0', '2', '2', '2', '0', '2', '2', '1'), 3):481.537605507,
(('-1', '4', '1', '2', '-1', '0', '-1', '0'), 2):10,
(('4', '1', '0', '0', '0', '0', '0', '0'), 0):233.610377536,
(('1', '0', '0', '-1', '1', '0', '-1', '-1'), 3):265.328705548,
(('0', '4', '2', '4', '0', '2', '0', '4'), 3):10,
(('0', '2', '1', '2', '2', '1', '0', '2'), 2):332.832366161,
(('2', '2', '2', '2', '2', '2', '4', '2'), 3):10,
(('1', '1', '4', '1', '1', '1', '0', '1'), 2):21.35585248,
(('4', '1', '0', '1', '1', '1', '1', '1'), 0):52.83452197,
(('4', '-1', '1', '0', '1', '-1', '4', '-1'), 1):94.7742456324,
(('2', '2', '1', '2', '2', '4', '0', '0'), 2):113.004534971,
(('1', '0', '4', '1', '1', '4', '1', '1'), 2):43.8219975655,
(('1', '1', '1', '1', '0', '0', '1', '1'), 2):205.397352801,
(('2', '2', '1', '2', '1', '0', '0', '4'), 2):79.2224741564,
(('4', '2', '0', '2', '0', '0', '4', '0'), 1):-143.257056224,
(('0', '0', '4', '-1', '4', '0', '-1', '-1'), 2):85.9535435176,
(('4', '1', '1', '-1', '4', '1', '-1', '-1'), 0):86.2757183995,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '0'), 2):212.417518939,
(('0', '4', '1', '0', '0', '1', '0', '4'), 1):53.1637632958,
(('0', '4', '1', '2', '1', '1', '2', '0'), 2):60.7301985217,
(('0', '1', '4', '-1', '1', '1', '-1', '-1'), 0):-10,
(('-1', '4', '1', '1', '-1', '0', '-1', '4'), 2):46.39921519,
(('1', '2', '0', '-1', '1', '0', '-1', '-1'), 3):284.817996823,
(('2', '2', '1', '2', '1', '0', '2', '0'), 2):314.204722675,
(('2', '2', '1', '4', '0', '0', '4', '0'), 1):20,
(('0', '-1', '1', '1', '0', '-1', '4', '-1'), 3):83.6937296696,
(('1', '1', '4', '-1', '4', '4', '-1', '-1'), 2):174.384431016,
(('2', '-1', '1', '2', '4', '-1', '0', '-1'), 2):150.375165727,
(('0', '2', '1', '2', '0', '0', '4', '0'), 1):10,
(('4', '-1', '1', '4', '4', '-1', '4', '-1'), 3):50,
(('1', '1', '4', '-1', '4', '0', '-1', '-1'), 0):224.412991591,
(('-1', '4', '1', '1', '-1', '0', '-1', '1'), 1):124.404398915,
(('4', '2', '1', '2', '0', '0', '4', '0'), 3):111.8984036,
(('1', '1', '1', '4', '1', '0', '1', '4'), 1):24.786524312,
(('4', '1', '0', '1', '0', '0', '1', '0'), 3):122.147540878,
(('1', '2', '0', '-1', '4', '0', '-1', '-1'), 2):286.694764194,
(('1', '4', '4', '1', '0', '4', '0', '4'), 0):0,
(('2', '2', '2', '2', '0', '1', '2', '1'), 1):295.687501622,
(('2', '-1', '0', '2', '2', '-1', '0', '-1'), 0):313.55980015,
(('0', '0', '4', '-1', '1', '0', '-1', '-1'), 2):43.8475994257,
(('1', '-1', '4', '2', '4', '-1', '0', '-1'), 3):120.086061712,
(('4', '2', '2', '2', '4', '0', '4', '0'), 2):10,
(('0', '0', '0', '1', '0', '1', '0', '0'), 3):198.058628313,
(('0', '1', '-1', '1', '-1', '-1', '0', '4'), 2):220.657327913,
(('0', '1', '0', '1', '0', '1', '1', '0'), 3):180.76752177,
(('1', '4', '-1', '1', '-1', '-1', '0', '1'), 1):142.219734837,
(('0', '1', '-1', '1', '-1', '-1', '4', '1'), 0):252.544883373,
(('1', '-1', '0', '1', '1', '-1', '1', '-1'), 2):259.485841237,
(('-1', '4', '1', '1', '-1', '1', '-1', '0'), 1):173.321110057,
(('4', '1', '-1', '1', '-1', '-1', '4', '1'), 3):195.671996359,
(('1', '1', '-1', '4', '-1', '-1', '0', '0'), 0):192.348589325,
(('0', '1', '0', '1', '0', '0', '1', '0'), 1):229.577180891,
(('2', '2', '2', '-1', '1', '0', '-1', '-1'), 1):427.486824095,
(('1', '0', '1', '0', '0', '4', '1', '0'), 3):0,
(('0', '0', '1', '0', '0', '0', '0', '1'), 0):88.0707239973,
(('1', '-1', '4', '1', '1', '-1', '0', '-1'), 1):10,
(('2', '2', '0', '2', '0', '0', '4', '0'), 2):10,
(('1', '1', '1', '0', '1', '0', '1', '1'), 0):147.626341893,
(('2', '4', '2', '2', '0', '1', '0', '0'), 2):10,
(('1', '1', '4', '0', '1', '0', '0', '0'), 3):10,
(('0', '1', '0', '0', '1', '0', '0', '1'), 3):165.87179793,
(('1', '4', '1', '1', '1', '1', '0', '1'), 1):0.841506493211,
(('0', '1', '4', '1', '4', '4', '0', '0'), 3):13.5213064674,
(('2', '2', '2', '2', '0', '0', '1', '0'), 3):261.129417214,
(('-1', '1', '1', '4', '-1', '0', '-1', '0'), 0):56.5098684505,
(('1', '2', '2', '2', '1', '1', '0', '1'), 3):235.413411223,
(('1', '2', '4', '-1', '1', '4', '-1', '-1'), 1):226.328649706,
(('0', '2', '1', '4', '1', '2', '0', '2'), 0):10,
(('0', '0', '1', '1', '1', '1', '0', '0'), 1):216.68538423,
(('1', '2', '0', '2', '0', '1', '0', '2'), 2):366.165985794,
(('1', '0', '0', '1', '0', '4', '0', '0'), 3):10,
(('4', '1', '1', '-1', '0', '1', '-1', '-1'), 3):249.415711091,
(('1', '2', '0', '2', '0', '0', '0', '1'), 0):231.341624335,
(('4', '2', '4', '2', '4', '1', '0', '2'), 0):107.559721598,
(('4', '1', '1', '0', '1', '1', '0', '1'), 2):158.162390932,
(('1', '1', '1', '4', '0', '1', '0', '0'), 2):30.5655439463,
(('1', '2', '1', '2', '1', '2', '1', '1'), 0):313.581365006,
(('2', '2', '2', '2', '4', '1', '2', '1'), 1):10,
(('0', '4', '1', '2', '0', '1', '1', '1'), 2):10,
(('0', '0', '4', '1', '4', '0', '0', '1'), 1):3.8,
(('0', '2', '-1', '4', '-1', '-1', '0', '0'), 0):255.750412042,
(('0', '2', '-1', '4', '-1', '-1', '2', '0'), 3):10.0,
(('0', '4', '0', '2', '0', '0', '0', '0'), 0):143.290793347,
(('-1', '0', '4', '0', '-1', '1', '-1', '0'), 2):-10,
(('2', '2', '1', '2', '1', '0', '0', '0'), 0):248.069421148,
(('1', '2', '0', '2', '1', '2', '2', '2'), 0):477.470412323,
(('1', '2', '1', '2', '1', '0', '0', '1'), 1):167.787716707,
(('4', '1', '4', '0', '4', '1', '0', '1'), 0):10,
(('2', '2', '2', '2', '0', '4', '2', '1'), 3):183.036533387,
(('2', '4', '-1', '2', '-1', '-1', '0', '1'), 1):214.011301461,
(('0', '4', '2', '2', '0', '1', '1', '0'), 3):10,
(('1', '1', '0', '0', '1', '0', '1', '1'), 1):145.780934095,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '4'), 0):147.769030546,
(('1', '1', '1', '1', '4', '1', '0', '0'), 1):40.1438358033,
(('0', '2', '2', '2', '1', '1', '2', '2'), 3):114.213393823,
(('1', '-1', '0', '2', '2', '-1', '2', '-1'), 0):10,
(('2', '2', '2', '2', '1', '1', '4', '0'), 1):30,
(('1', '2', '1', '-1', '0', '2', '-1', '-1'), 2):312.361396003,
(('2', '2', '-1', '4', '-1', '-1', '4', '4'), 1):145.083628085,
(('0', '2', '4', '2', '1', '0', '1', '2'), 0):10,
(('2', '2', '1', '2', '0', '0', '2', '4'), 1):62.7546257222,
(('0', '2', '0', '2', '0', '1', '4', '0'), 3):10,
(('0', '2', '2', '2', '1', '1', '0', '4'), 3):203.510976645,
(('0', '2', '4', '2', '0', '0', '4', '2'), 0):10,
(('1', '4', '2', '2', '2', '0', '1', '4'), 3):127.079392872,
(('0', '2', '0', '2', '4', '0', '0', '0'), 1):63.0270604619,
(('0', '2', '2', '2', '0', '0', '1', '2'), 0):79.8644799207,
(('4', '0', '0', '0', '0', '1', '0', '0'), 1):57.1025081228,
(('1', '2', '2', '4', '1', '1', '0', '0'), 3):55.939916266,
(('0', '1', '-1', '1', '-1', '-1', '0', '0'), 0):252.330592468,
(('1', '1', '1', '0', '4', '1', '0', '0'), 2):93.3788275927,
(('4', '1', '1', '1', '1', '0', '0', '0'), 0):5.37756026498,
(('1', '2', '2', '2', '2', '2', '0', '2'), 3):561.742356528,
(('1', '1', '4', '1', '1', '0', '0', '0'), 1):8.0,
(('4', '0', '1', '0', '0', '0', '0', '0'), 3):185.816821444,
(('0', '2', '-1', '2', '-1', '-1', '1', '2'), 3):346.23857198,
(('1', '1', '0', '1', '0', '4', '1', '1'), 1):145.618120996,
(('1', '-1', '-1', '2', '-1', '-1', '1', '-1'), 1):307.211710251,
(('4', '1', '0', '1', '1', '1', '0', '1'), 2):46.4700471967,
(('1', '1', '4', '1', '1', '1', '1', '1'), 1):134.961332076,
(('0', '0', '0', '1', '1', '0', '0', '1'), 2):165.437118616,
(('1', '1', '1', '1', '0', '1', '0', '0'), 2):156.19092195,
(('2', '4', '4', '4', '4', '4', '1', '4'), 1):10,
(('0', '4', '-1', '2', '-1', '-1', '0', '0'), 2):258.416177542,
(('4', '-1', '1', '4', '0', '-1', '4', '-1'), 0):62.1542588428,
(('2', '2', '2', '2', '1', '2', '0', '2'), 0):-27.3816037591,
(('1', '2', '2', '2', '2', '2', '0', '1'), 0):43.2474344364,
(('1', '4', '4', '2', '0', '4', '1', '0'), 2):10,
(('-1', '1', '-1', '1', '-1', '-1', '-1', '4'), 2):188.8387891,
(('-1', '2', '2', '4', '-1', '0', '-1', '4'), 3):189.814801023,
(('-1', '2', '4', '2', '-1', '1', '-1', '2'), 0):301.030403802,
(('1', '-1', '1', '4', '1', '-1', '1', '-1'), 0):263.549655937,
(('4', '1', '1', '0', '1', '0', '0', '0'), 3):90.4215965138,
(('4', '1', '0', '-1', '4', '1', '-1', '-1'), 0):10,
(('2', '2', '0', '2', '0', '1', '2', '2'), 0):229.449283234,
(('1', '1', '0', '0', '0', '4', '0', '0'), 2):0,
(('1', '0', '-1', '1', '-1', '-1', '1', '0'), 1):287.606519515,
(('1', '1', '0', '1', '0', '0', '0', '4'), 1):91.2002417584,
(('4', '1', '0', '1', '4', '0', '4', '0'), 0):0,
(('1', '2', '2', '-1', '2', '0', '-1', '-1'), 2):395.358108071,
(('4', '2', '2', '2', '0', '0', '1', '0'), 0):167.563238952,
(('4', '2', '1', '2', '1', '1', '0', '0'), 3):251.173359326,
(('0', '1', '4', '1', '0', '0', '0', '1'), 2):236.514094595,
(('0', '2', '2', '2', '1', '2', '0', '1'), 2):47.687883398,
(('0', '1', '0', '4', '0', '1', '4', '4'), 1):50.1048924022,
(('2', '2', '0', '2', '0', '1', '2', '4'), 1):410.472679221,
(('4', '1', '-1', '1', '-1', '-1', '0', '1'), 3):226.264534171,
(('2', '2', '4', '-1', '1', '0', '-1', '-1'), 2):297.389828209,
(('4', '2', '0', '2', '1', '0', '0', '1'), 0):33.9777688552,
(('2', '4', '4', '2', '2', '1', '0', '4'), 1):-1000,
(('1', '0', '4', '0', '0', '0', '1', '0'), 2):131.878101504,
(('0', '0', '1', '1', '1', '0', '0', '1'), 2):153.503103076,
(('1', '4', '1', '-1', '1', '0', '-1', '-1'), 1):241.465044364,
(('1', '0', '0', '0', '1', '0', '4', '0'), 0):80.9131379996,
(('2', '2', '0', '4', '1', '0', '0', '4'), 1):0,
(('0', '4', '2', '2', '1', '0', '0', '0'), 3):154.722526518,
(('4', '-1', '2', '2', '4', '-1', '0', '-1'), 3):162.75224602,
(('1', '2', '4', '2', '0', '1', '1', '1'), 1):36.5555899232,
(('1', '1', '1', '4', '0', '0', '0', '0'), 3):0,
(('2', '2', '4', '2', '0', '0', '2', '2'), 3):10,
(('4', '2', '0', '4', '0', '2', '4', '4'), 0):10,
(('0', '2', '1', '2', '0', '2', '4', '4'), 2):10,
(('2', '2', '2', '2', '2', '2', '2', '2'), 2):523.633623595,
(('0', '0', '4', '1', '0', '4', '1', '0'), 2):47.8670574278,
(('1', '-1', '0', '-1', '1', '-1', '-1', '-1'), 0):309.771685062,
(('0', '2', '4', '2', '0', '4', '0', '0'), 1):10,
(('0', '0', '1', '4', '0', '0', '0', '4'), 2):28.2951538423,
(('0', '2', '2', '2', '1', '0', '1', '4'), 3):88.8121650447,
(('2', '2', '-1', '4', '-1', '-1', '1', '1'), 1):110.183999216,
(('4', '2', '1', '2', '1', '0', '2', '0'), 2):10,
(('2', '2', '2', '2', '0', '1', '4', '1'), 1):119.058512658,
(('1', '2', '2', '2', '1', '0', '0', '0'), 2):245.078710598,
(('4', '1', '1', '1', '1', '0', '1', '1'), 0):-75.4469288416,
(('1', '1', '1', '0', '0', '0', '4', '0'), 3):25.0418855268,
(('2', '2', '0', '2', '1', '2', '0', '0'), 0):10,
(('1', '4', '1', '0', '1', '1', '1', '0'), 3):205.210938468,
(('1', '0', '4', '1', '4', '4', '0', '1'), 2):10,
(('2', '-1', '2', '-1', '4', '-1', '-1', '-1'), 2):10,
(('1', '2', '2', '2', '2', '1', '1', '0'), 3):246.193682257,
(('2', '2', '2', '4', '2', '2', '0', '0'), 1):10,
(('1', '2', '0', '2', '1', '2', '1', '1'), 2):140,
(('4', '2', '2', '4', '0', '2', '4', '0'), 0):23.8416832447,
(('0', '4', '0', '1', '0', '4', '1', '1'), 2):94.652518622,
(('0', '4', '1', '1', '0', '1', '0', '4'), 1):72.3450983863,
(('1', '2', '1', '2', '4', '0', '0', '2'), 0):10,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '4'), 0):45.3714137548,
(('-1', '1', '1', '0', '-1', '1', '-1', '0'), 2):235.843841797,
(('2', '2', '2', '2', '1', '1', '2', '0'), 0):108.263708589,
(('-1', '2', '2', '2', '-1', '1', '-1', '0'), 1):319.508882365,
(('4', '1', '1', '1', '0', '0', '0', '1'), 0):140.931941173,
(('0', '0', '0', '0', '1', '0', '4', '0'), 0):-50,
(('1', '1', '1', '1', '1', '0', '4', '0'), 2):-10,
(('1', '1', '0', '1', '1', '1', '0', '1'), 0):122.963771281,
(('1', '-1', '1', '4', '1', '-1', '4', '-1'), 2):137.876330487,
(('0', '4', '-1', '0', '-1', '-1', '0', '0'), 1):257.260303373,
(('1', '4', '1', '1', '1', '4', '1', '4'), 3):26.3760828058,
(('2', '2', '0', '2', '2', '1', '4', '0'), 1):229.56899827,
(('2', '2', '2', '2', '0', '4', '0', '4'), 1):10,
(('0', '1', '1', '1', '4', '0', '0', '1'), 1):0,
(('0', '2', '0', '2', '1', '1', '0', '2'), 0):313.91404172,
(('1', '-1', '0', '1', '1', '-1', '1', '-1'), 0):257.527320026,
(('0', '2', '2', '2', '2', '1', '1', '0'), 3):299.494930981,
(('0', '-1', '1', '0', '0', '-1', '1', '-1'), 0):193.560009309,
(('1', '-1', '4', '1', '0', '-1', '1', '-1'), 3):229.362113127,
(('1', '1', '0', '0', '1', '1', '0', '0'), 0):190.852644524,
(('0', '-1', '1', '1', '1', '-1', '4', '-1'), 1):53.9184409909,
(('0', '1', '1', '4', '0', '1', '1', '1'), 2):6.0,
(('1', '1', '1', '4', '1', '0', '4', '0'), 1):52.1571878489,
(('0', '0', '0', '1', '0', '0', '0', '0'), 3):133.244221524,
(('4', '2', '1', '2', '0', '0', '0', '0'), 1):190.861599533,
(('1', '4', '-1', '2', '-1', '-1', '0', '2'), 2):113.765661263,
(('1', '1', '0', '0', '1', '4', '0', '0'), 2):0,
(('1', '4', '4', '0', '4', '4', '1', '0'), 1):0,
(('2', '2', '2', '-1', '4', '0', '-1', '-1'), 0):49.2574775482,
(('0', '2', '0', '-1', '4', '0', '-1', '-1'), 1):115.58115633,
(('1', '1', '4', '0', '0', '0', '0', '4'), 1):0,
(('0', '0', '1', '1', '0', '0', '4', '1'), 1):46.3926057148,
(('0', '2', '4', '2', '0', '0', '1', '0'), 3):100.869196404,
(('0', '2', '1', '2', '1', '0', '2', '2'), 2):417.748274981,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '0'), 0):10,
(('0', '-1', '2', '4', '0', '-1', '0', '-1'), 3):245.804511942,
(('1', '4', '0', '0', '0', '0', '1', '0'), 0):0,
(('4', '1', '4', '4', '0', '0', '4', '1'), 0):50,
(('0', '4', '0', '2', '0', '0', '0', '1'), 0):176.918193069,
(('1', '-1', '0', '1', '1', '-1', '4', '-1'), 1):63.4360447308,
(('1', '0', '4', '1', '4', '4', '1', '0'), 1):50,
(('2', '2', '1', '2', '1', '2', '2', '2'), 1):625.290824888,
(('2', '2', '0', '2', '0', '1', '2', '0'), 1):326.633066334,
(('4', '1', '-1', '1', '-1', '-1', '4', '1'), 1):188.094484412,
(('2', '2', '2', '2', '1', '2', '2', '1'), 2):240,
(('4', '2', '2', '2', '0', '0', '2', '1'), 3):77.565740297,
(('2', '2', '-1', '2', '-1', '-1', '1', '2'), 0):384.611025672,
(('4', '2', '2', '2', '0', '1', '0', '1'), 3):243.196109901,
(('4', '1', '0', '1', '0', '0', '4', '0'), 2):33.7053664329,
(('0', '2', '2', '2', '2', '0', '1', '0'), 2):178.219087621,
(('0', '-1', '1', '1', '0', '-1', '1', '-1'), 2):230.041382985,
(('0', '2', '2', '2', '0', '1', '0', '2'), 2):293.642935786,
(('0', '-1', '-1', '1', '-1', '-1', '4', '-1'), 2):143.513942402,
(('2', '2', '4', '2', '0', '2', '2', '2'), 0):-1000,
(('0', '0', '1', '1', '0', '1', '0', '4'), 3):18.0563767902,
(('2', '2', '2', '-1', '1', '1', '-1', '-1'), 3):346.756985634,
(('1', '2', '1', '2', '1', '0', '0', '0'), 0):255.750529736,
(('1', '1', '4', '0', '4', '0', '1', '0'), 2):38.8891409048,
(('2', '4', '2', '-1', '2', '2', '-1', '-1'), 3):0,
(('4', '-1', '1', '2', '0', '-1', '2', '-1'), 2):10,
(('2', '2', '0', '2', '2', '1', '2', '4'), 2):10,
(('1', '2', '4', '-1', '1', '0', '-1', '-1'), 0):271.247915552,
(('4', '-1', '0', '0', '1', '-1', '4', '-1'), 2):-10,
(('1', '2', '1', '2', '1', '4', '0', '1'), 3):10,
(('2', '4', '4', '2', '2', '0', '2', '0'), 1):50,
(('2', '-1', '2', '-1', '4', '-1', '-1', '-1'), 3):68.9134033091,
(('1', '2', '0', '-1', '1', '4', '-1', '-1'), 2):253.366532507,
(('0', '2', '-1', '2', '-1', '-1', '4', '1'), 0):270.032982832,
(('2', '2', '2', '4', '2', '2', '0', '1'), 1):10,
(('0', '1', '1', '1', '0', '1', '4', '0'), 3):10,
(('0', '0', '1', '0', '0', '1', '0', '1'), 3):89.548764037,
(('1', '0', '0', '0', '1', '0', '0', '0'), 0):244.083033905,
(('4', '2', '1', '4', '1', '0', '4', '0'), 0):10,
(('0', '0', '0', '1', '4', '0', '1', '0'), 2):39.2778306625,
(('1', '4', '1', '1', '1', '0', '0', '0'), 1):112.56159798,
(('0', '1', '1', '1', '1', '0', '1', '1'), 2):116.30040571,
(('0', '4', '2', '2', '0', '0', '0', '0'), 3):133.204108782,
(('2', '2', '2', '-1', '4', '0', '-1', '-1'), 3):164.91165785,
(('4', '1', '1', '0', '4', '1', '1', '1'), 3):10,
(('0', '2', '4', '2', '4', '2', '0', '0'), 3):156.36574873,
(('1', '4', '0', '2', '0', '4', '0', '0'), 2):94.9421518572,
(('-1', '2', '4', '2', '-1', '1', '-1', '1'), 2):266.727330742,
(('1', '1', '1', '1', '1', '1', '1', '1'), 0):161.697594627,
(('2', '2', '2', '2', '2', '2', '2', '4'), 1):198.079172452,
(('4', '2', '0', '2', '0', '1', '0', '0'), 3):10,
(('1', '0', '1', '1', '1', '0', '1', '4'), 3):86.1400479123,
(('1', '-1', '1', '0', '1', '-1', '4', '-1'), 0):205.159030118,
(('0', '1', '1', '1', '0', '1', '0', '1'), 3):224.849793089,
(('0', '2', '2', '2', '2', '1', '1', '1'), 2):10,
(('1', '4', '2', '2', '2', '1', '1', '4'), 3):38.6835537547,
(('0', '0', '0', '4', '0', '1', '0', '0'), 2):-162.602309199,
(('1', '2', '4', '2', '1', '4', '0', '2'), 2):10,
(('-1', '0', '0', '4', '-1', '1', '-1', '0'), 3):50.2712527909,
(('4', '1', '1', '1', '0', '0', '1', '1'), 2):0.36,
(('1', '1', '0', '0', '1', '1', '0', '1'), 3):128.720493044,
(('1', '2', '1', '-1', '0', '4', '-1', '-1'), 0):101.79838862,
(('1', '1', '0', '1', '1', '0', '4', '1'), 1):65.9301604696,
(('1', '2', '0', '4', '0', '0', '0', '0'), 1):133.756548192,
(('4', '0', '0', '4', '0', '0', '4', '0'), 0):35.5733952743,
(('4', '0', '0', '1', '4', '0', '0', '0'), 0):99.0459924756,
(('1', '4', '1', '1', '1', '1', '1', '4'), 1):97.1925150217,
(('4', '-1', '1', '0', '0', '-1', '4', '-1'), 0):29.176867998,
(('1', '4', '4', '0', '1', '0', '0', '0'), 1):50,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '4'), 0):-10,
(('1', '1', '4', '1', '4', '4', '1', '0'), 0):31.0595310337,
(('1', '-1', '0', '2', '4', '-1', '2', '-1'), 2):215.698475087,
(('1', '2', '2', '2', '4', '2', '0', '2'), 0):151.62844325,
(('0', '2', '2', '2', '0', '0', '0', '0'), 0):272.587241523,
(('4', '2', '4', '2', '0', '4', '4', '2'), 2):50,
(('2', '4', '2', '2', '2', '0', '0', '0'), 1):178.165619616,
(('4', '0', '0', '-1', '0', '0', '-1', '-1'), 2):288.081608266,
(('1', '-1', '0', '0', '1', '-1', '0', '-1'), 1):297.20711043,
(('1', '2', '0', '2', '0', '1', '0', '1'), 1):100.666959849,
(('2', '2', '2', '2', '2', '0', '1', '2'), 1):421.170671163,
(('1', '-1', '-1', '2', '-1', '-1', '0', '-1'), 2):375.580016465,
(('1', '1', '1', '1', '4', '1', '1', '1'), 0):95.7241279206,
(('0', '4', '4', '2', '0', '4', '2', '2'), 2):10,
(('4', '1', '1', '1', '4', '1', '4', '0'), 2):31.4381882856,
(('0', '2', '2', '4', '2', '4', '0', '0'), 3):10,
(('2', '2', '0', '2', '1', '0', '4', '2'), 1):10,
(('0', '1', '0', '0', '0', '4', '0', '1'), 3):111.724388697,
(('1', '1', '0', '1', '0', '0', '4', '4'), 1):51.6267749208,
(('1', '2', '0', '-1', '0', '1', '-1', '-1'), 0):292.088825904,
(('0', '2', '0', '2', '0', '2', '1', '0'), 0):374.328738021,
(('1', '2', '0', '2', '4', '1', '0', '0'), 2):10,
(('0', '4', '1', '-1', '0', '0', '-1', '-1'), 0):124.618246877,
(('1', '0', '0', '0', '0', '0', '0', '0'), 0):213.888481243,
(('2', '2', '1', '2', '2', '0', '1', '0'), 2):77.6811875166,
(('0', '2', '2', '2', '0', '2', '4', '2'), 3):220.443030747,
(('1', '2', '2', '2', '1', '0', '1', '0'), 3):317.827426324,
(('1', '4', '2', '2', '0', '2', '1', '4'), 3):10,
(('4', '2', '2', '2', '2', '0', '0', '4'), 3):50,
(('4', '1', '0', '0', '0', '1', '4', '0'), 1):0,
(('0', '4', '0', '1', '0', '0', '1', '1'), 1):250.534224882,
(('-1', '1', '1', '0', '-1', '1', '-1', '1'), 2):234.963065401,
(('4', '2', '1', '2', '4', '1', '1', '0'), 3):47.5220418617,
(('1', '2', '4', '2', '0', '4', '0', '0'), 2):149.616054205,
(('1', '2', '0', '2', '2', '2', '0', '0'), 2):77.1254998725,
(('0', '2', '1', '-1', '1', '1', '-1', '-1'), 1):266.72242514,
(('1', '1', '1', '0', '1', '0', '0', '0'), 0):241.804056666,
(('4', '-1', '4', '2', '4', '-1', '4', '-1'), 0):-140,
(('0', '1', '0', '-1', '0', '1', '-1', '-1'), 0):250.427860075,
(('2', '4', '1', '2', '0', '0', '0', '0'), 1):130.798538722,
(('1', '4', '0', '0', '0', '0', '0', '4'), 1):70.1462928898,
(('2', '4', '2', '2', '0', '1', '2', '0'), 1):10,
(('0', '2', '1', '2', '1', '0', '0', '4'), 3):170.106912323,
(('1', '2', '2', '2', '0', '2', '2', '0'), 3):136.369597843,
(('-1', '2', '0', '2', '-1', '4', '-1', '0'), 0):191.559120211,
(('4', '2', '2', '2', '4', '2', '0', '2'), 0):10,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '0'), 1):181.600184164,
(('2', '2', '2', '2', '2', '0', '1', '1'), 1):370.346573343,
(('-1', '2', '0', '4', '-1', '0', '-1', '0'), 1):-31.7308162879,
(('1', '2', '2', '2', '0', '0', '0', '0'), 0):278.175466633,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '4'), 3):124.589956599,
(('2', '4', '1', '2', '1', '1', '2', '4'), 1):103.539345058,
(('-1', '2', '0', '2', '-1', '1', '-1', '0'), 1):278.893308323,
(('1', '1', '4', '0', '0', '4', '1', '0'), 1):-10,
(('-1', '2', '4', '2', '-1', '4', '-1', '1'), 3):131.675820724,
(('-1', '1', '1', '1', '-1', '0', '-1', '4'), 3):90.2109222609,
(('0', '4', '0', '-1', '0', '4', '-1', '-1'), 1):128.918519958,
(('-1', '0', '0', '4', '-1', '0', '-1', '0'), 0):247.89952982,
(('1', '-1', '2', '2', '0', '-1', '4', '-1'), 3):217.153017373,
(('-1', '1', '0', '4', '-1', '0', '-1', '0'), 3):119.546140531,
(('-1', '2', '0', '4', '-1', '0', '-1', '1'), 1):60.7606304248,
(('1', '1', '1', '1', '1', '4', '0', '0'), 1):31.8140924729,
(('2', '2', '1', '2', '2', '2', '2', '2'), 1):661.320827669,
(('1', '4', '1', '2', '1', '1', '0', '0'), 1):143.779360839,
(('1', '2', '0', '2', '1', '0', '4', '2'), 0):274.66643719,
(('2', '-1', '1', '2', '4', '-1', '2', '-1'), 2):306.533026168,
(('1', '0', '4', '1', '0', '4', '1', '0'), 2):80.4892261585,
(('1', '0', '0', '0', '0', '0', '1', '0'), 1):211.718183516,
(('4', '2', '0', '4', '0', '0', '4', '4'), 0):-168.588350393,
(('0', '2', '2', '4', '1', '1', '4', '4'), 3):10,
(('1', '1', '1', '1', '0', '0', '1', '4'), 1):18.1195049431,
(('2', '-1', '-1', '2', '-1', '-1', '4', '-1'), 2):86.6141519611,
(('2', '2', '2', '2', '2', '1', '2', '2'), 0):449.972460346,
(('2', '2', '4', '2', '4', '0', '1', '0'), 1):209.862132394,
(('4', '1', '0', '1', '4', '0', '4', '1'), 2):87.9479712379,
(('0', '4', '0', '1', '0', '0', '1', '4'), 3):77.5635672614,
(('0', '2', '0', '2', '0', '1', '2', '4'), 2):11.8,
(('2', '2', '-1', '2', '-1', '-1', '2', '1'), 0):397.928711038,
(('0', '2', '4', '2', '4', '0', '2', '0'), 2):-64.2562496197,
(('0', '2', '2', '4', '0', '1', '0', '2'), 3):10,
(('1', '2', '2', '2', '0', '0', '1', '1'), 0):199.04780396,
(('1', '0', '4', '-1', '4', '4', '-1', '-1'), 0):31.4045007442,
(('2', '2', '1', '2', '1', '1', '2', '2'), 2):389.335096962,
(('2', '2', '2', '2', '1', '0', '0', '1'), 3):117.195440327,
(('0', '2', '0', '2', '1', '1', '0', '0'), 2):267.619707578,
(('1', '2', '1', '2', '1', '0', '2', '2'), 0):424.946156755,
(('1', '2', '2', '2', '2', '2', '2', '2'), 2):688.319130239,
(('2', '2', '1', '4', '2', '0', '0', '4'), 1):50.7158592491,
(('-1', '1', '1', '1', '-1', '1', '-1', '4'), 1):137.794762048,
(('1', '1', '4', '1', '4', '0', '1', '0'), 3):17.0713324461,
(('2', '2', '2', '2', '0', '1', '0', '1'), 3):300.195499165,
(('0', '1', '0', '-1', '0', '0', '-1', '-1'), 2):248.235245692,
(('1', '0', '1', '0', '0', '0', '0', '1'), 0):-10,
(('0', '-1', '1', '2', '0', '-1', '0', '-1'), 0):242.645916359,
(('0', '2', '4', '-1', '0', '2', '-1', '-1'), 2):3.95577999612,
(('1', '1', '0', '0', '0', '1', '1', '0'), 2):142.833593195,
(('0', '-1', '0', '1', '4', '-1', '0', '-1'), 1):90.7525900248,
(('4', '2', '4', '2', '4', '0', '0', '1'), 0):10,
(('2', '2', '1', '4', '2', '1', '4', '4'), 1):180,
(('2', '2', '0', '2', '2', '2', '0', '2'), 2):433.912230858,
(('1', '0', '1', '4', '1', '0', '1', '0'), 0):210.528623103,
(('4', '-1', '-1', '2', '-1', '-1', '2', '-1'), 2):-347.842331318,
(('0', '2', '0', '2', '0', '1', '4', '1'), 2):215.795517483,
(('1', '2', '1', '2', '0', '1', '4', '1'), 2):10,
(('0', '2', '1', '2', '4', '1', '2', '1'), 2):134.431315806,
(('1', '1', '4', '1', '4', '4', '0', '0'), 3):0,
(('0', '2', '4', '-1', '4', '1', '-1', '-1'), 3):129.378592187,
(('-1', '1', '1', '0', '-1', '0', '-1', '1'), 1):225.516191304,
(('2', '2', '1', '2', '0', '1', '1', '0'), 2):10,
(('1', '0', '0', '0', '1', '0', '1', '4'), 3):10,
(('-1', '1', '1', '1', '-1', '4', '-1', '0'), 2):153.045745706,
(('2', '2', '1', '2', '1', '2', '0', '2'), 0):10,
(('0', '2', '1', '2', '1', '4', '0', '2'), 2):240.266647719,
(('1', '2', '2', '2', '0', '1', '0', '0'), 3):237.421198724,
(('2', '2', '-1', '2', '-1', '-1', '0', '1'), 0):297.923998212,
(('-1', '2', '0', '2', '-1', '4', '-1', '4'), 0):10,
(('-1', '4', '0', '0', '-1', '0', '-1', '0'), 1):199.294797085,
(('0', '0', '4', '0', '4', '4', '0', '0'), 1):10,
(('4', '2', '-1', '2', '-1', '-1', '0', '1'), 0):281.187841161,
(('4', '1', '0', '1', '0', '1', '0', '0'), 0):13.397090951,
(('4', '0', '1', '0', '4', '1', '4', '0'), 0):-787.324062056,
(('0', '2', '0', '2', '0', '4', '1', '0'), 1):55.2087833901,
(('1', '0', '0', '4', '0', '0', '0', '1'), 3):38.5032298989,
(('1', '0', '0', '1', '0', '0', '4', '1'), 1):90.8023760063,
(('0', '4', '1', '1', '0', '4', '0', '4'), 2):-10,
(('0', '1', '1', '1', '1', '1', '0', '4'), 1):105.463274967,
(('2', '2', '2', '2', '0', '0', '0', '1'), 0):150.451451142,
(('1', '4', '1', '1', '0', '0', '0', '4'), 1):13.6034967383,
(('1', '-1', '1', '1', '0', '-1', '0', '-1'), 1):243.252231584,
(('1', '1', '1', '1', '0', '0', '4', '0'), 3):18.231696824,
(('1', '4', '-1', '2', '-1', '-1', '4', '4'), 1):52.046487345,
(('0', '0', '0', '-1', '4', '0', '-1', '-1'), 0):0,
(('0', '1', '-1', '1', '-1', '-1', '1', '1'), 3):217.458332401,
(('1', '2', '0', '-1', '0', '4', '-1', '-1'), 1):206.494430182,
(('0', '0', '0', '1', '0', '4', '1', '1'), 1):0,
(('0', '0', '0', '0', '1', '0', '0', '0'), 0):262.098823228,
(('0', '4', '0', '1', '1', '0', '0', '0'), 2):8.13824814477,
(('0', '0', '4', '-1', '0', '0', '-1', '-1'), 0):158.341986107,
(('0', '1', '1', '4', '0', '0', '4', '4'), 2):0,
(('1', '-1', '0', '2', '2', '-1', '0', '-1'), 2):246.589193535,
(('1', '2', '1', '2', '1', '4', '0', '2'), 2):148.270865818,
(('0', '4', '4', '4', '0', '1', '4', '4'), 3):-1000,
(('0', '1', '1', '0', '0', '1', '1', '1'), 1):46.1380601376,
(('1', '2', '2', '2', '0', '2', '2', '2'), 0):524.241822521,
(('0', '0', '-1', '4', '-1', '-1', '0', '1'), 2):147.93952131,
(('1', '4', '0', '1', '0', '4', '0', '4'), 1):27.5201230474,
(('1', '2', '2', '-1', '1', '1', '-1', '-1'), 2):267.825291961,
(('1', '4', '0', '4', '0', '0', '0', '0'), 1):10,
(('1', '0', '0', '4', '1', '0', '4', '0'), 3):-153.417221584,
(('2', '2', '2', '-1', '2', '1', '-1', '-1'), 3):405.533359496,
(('0', '2', '4', '2', '4', '4', '0', '2'), 0):215.548465258,
(('2', '4', '0', '2', '0', '0', '0', '0'), 1):18.0517929866,
(('4', '-1', '1', '0', '0', '-1', '1', '-1'), 0):0,
(('1', '2', '1', '2', '2', '1', '2', '0'), 2):66.0090050465,
(('1', '-1', '1', '0', '0', '-1', '4', '-1'), 2):0,
(('2', '2', '1', '2', '2', '1', '0', '4'), 1):243.139547016,
(('0', '4', '1', '1', '1', '1', '0', '0'), 2):64.9771218512,
(('1', '0', '0', '-1', '4', '0', '-1', '-1'), 0):222.510212735,
(('0', '1', '0', '1', '1', '0', '1', '0'), 1):82.0553490181,
(('1', '2', '-1', '2', '-1', '-1', '4', '4'), 0):150.224123661,
(('0', '1', '0', '4', '0', '0', '0', '1'), 3):199.820576428,
(('1', '4', '0', '2', '1', '0', '1', '1'), 2):100.148619746,
(('-1', '4', '-1', '0', '-1', '-1', '-1', '0'), 0):238.269560044,
(('1', '-1', '0', '-1', '4', '-1', '-1', '-1'), 1):197.07899227,
(('0', '-1', '4', '2', '4', '-1', '1', '-1'), 2):198.120879031,
(('2', '2', '1', '2', '4', '0', '2', '2'), 1):72.8034260688,
(('0', '2', '2', '2', '0', '2', '0', '0'), 3):304.615349854,
(('2', '4', '0', '-1', '2', '0', '-1', '-1'), 1):314.944983921,
(('2', '2', '2', '2', '2', '0', '2', '4'), 3):269.59612198,
(('4', '2', '4', '2', '4', '4', '4', '2'), 2):90.1160312219,
(('2', '2', '4', '2', '4', '0', '2', '2'), 2):11.8,
(('0', '0', '4', '-1', '1', '4', '-1', '-1'), 0):79.8119270288,
(('4', '2', '0', '2', '0', '1', '4', '0'), 2):82.4635888562,
(('2', '2', '2', '2', '2', '0', '4', '4'), 1):21.4149005939,
(('1', '2', '0', '2', '0', '0', '4', '0'), 0):182.614250309,
(('0', '1', '0', '0', '0', '0', '1', '0'), 2):98.8308014834,
(('1', '0', '0', '1', '1', '0', '0', '4'), 0):0,
(('1', '0', '1', '1', '1', '0', '0', '0'), 2):229.661035864,
(('2', '2', '0', '2', '1', '1', '0', '0'), 1):258.443628905,
(('1', '1', '1', '-1', '0', '4', '-1', '-1'), 1):145.353846093,
(('0', '4', '0', '2', '0', '4', '0', '0'), 0):-62.0,
(('2', '2', '-1', '4', '-1', '-1', '2', '0'), 3):150.433658846,
(('0', '4', '1', '4', '0', '1', '0', '4'), 3):87.3462085458,
(('0', '1', '0', '4', '0', '0', '1', '1'), 1):32.7587194536,
(('0', '-1', '1', '2', '0', '-1', '4', '-1'), 3):52.1477004504,
(('0', '0', '1', '4', '1', '1', '4', '0'), 1):10,
(('0', '2', '0', '2', '0', '4', '1', '2'), 2):206.2150199,
(('0', '1', '1', '1', '0', '1', '4', '1'), 3):182.721999249,
(('1', '1', '0', '4', '0', '0', '1', '0'), 3):102.132206863,
(('0', '0', '1', '0', '1', '0', '0', '0'), 2):263.829589857,
(('2', '-1', '1', '4', '1', '-1', '4', '-1'), 1):111.953607342,
(('0', '0', '1', '0', '1', '0', '0', '1'), 3):10,
(('1', '2', '0', '2', '0', '4', '1', '0'), 2):213.382245033,
(('1', '4', '1', '1', '0', '4', '1', '1'), 1):0,
(('1', '1', '1', '-1', '1', '1', '-1', '-1'), 0):227.826138509,
(('1', '1', '0', '4', '0', '0', '0', '0'), 3):8.22086493899,
(('4', '4', '-1', '2', '-1', '-1', '1', '2'), 2):10,
(('1', '1', '0', '4', '0', '1', '1', '1'), 2):0,
(('4', '1', '-1', '0', '-1', '-1', '4', '0'), 0):224.304578297,
(('2', '2', '2', '-1', '0', '2', '-1', '-1'), 3):-91.7932587703,
(('4', '1', '1', '1', '0', '0', '0', '0'), 0):56.4805349441,
(('0', '1', '1', '0', '0', '1', '0', '0'), 3):221.545858163,
(('4', '2', '4', '2', '4', '4', '1', '2'), 0):40,
(('2', '-1', '2', '2', '1', '-1', '1', '-1'), 0):73.4963770668,
(('2', '2', '1', '2', '4', '1', '2', '1'), 1):119.577866556,
(('0', '-1', '0', '0', '1', '-1', '1', '-1'), 0):-10,
(('-1', '1', '4', '1', '-1', '1', '-1', '1'), 3):221.614331287,
(('-1', '1', '0', '1', '-1', '1', '-1', '4'), 1):19.5844797569,
(('-1', '1', '1', '0', '-1', '0', '-1', '4'), 1):58.7293878196,
(('1', '2', '2', '2', '4', '1', '1', '1'), 3):10.0,
(('1', '4', '2', '-1', '2', '4', '-1', '-1'), 3):10,
(('2', '4', '0', '2', '4', '0', '0', '2'), 1):10,
(('1', '2', '0', '2', '0', '4', '2', '0'), 2):168.769743803,
(('-1', '2', '2', '2', '-1', '2', '-1', '1'), 0):358.551794682,
(('1', '2', '0', '4', '1', '0', '1', '1'), 0):10,
(('1', '2', '4', '2', '4', '4', '1', '0'), 2):199.60929103,
(('0', '2', '0', '2', '1', '0', '1', '1'), 3):10,
(('2', '4', '1', '2', '2', '2', '2', '0'), 2):10,
(('1', '1', '0', '1', '1', '0', '0', '0'), 0):219.311689115,
(('1', '2', '4', '2', '1', '4', '1', '0'), 0):130.332253135,
(('2', '2', '2', '2', '4', '1', '1', '0'), 1):120,
(('1', '1', '-1', '0', '-1', '-1', '1', '4'), 3):101.6691177,
(('2', '2', '4', '2', '2', '4', '2', '1'), 1):116.008826629,
(('0', '2', '0', '4', '0', '2', '4', '0'), 0):154.67020349,
(('1', '0', '1', '1', '1', '1', '0', '0'), 1):231.874383201,
(('0', '2', '4', '2', '1', '0', '0', '0'), 3):208.223169976,
(('1', '-1', '1', '2', '4', '-1', '1', '-1'), 1):98.1642080464,
(('1', '0', '-1', '4', '-1', '-1', '0', '1'), 1):10,
(('4', '0', '0', '1', '1', '0', '4', '0'), 0):55.1930016877,
(('4', '1', '4', '-1', '4', '1', '-1', '-1'), 0):2.21576427157,
(('1', '-1', '-1', '4', '-1', '-1', '0', '-1'), 0):194.045304152,
(('4', '-1', '1', '0', '0', '-1', '0', '-1'), 3):190.462115115,
(('2', '2', '1', '2', '0', '2', '1', '2'), 1):10,
(('0', '2', '4', '2', '2', '0', '1', '1'), 3):-10,
(('-1', '0', '4', '1', '-1', '1', '-1', '0'), 0):50,
(('0', '2', '0', '4', '1', '0', '0', '0'), 1):60.6547708908,
(('1', '2', '0', '4', '1', '0', '4', '2'), 0):10,
(('1', '4', '2', '-1', '2', '2', '-1', '-1'), 3):126.700209379,
(('0', '2', '4', '-1', '4', '2', '-1', '-1'), 2):66.0124782031,
(('4', '2', '0', '2', '4', '0', '0', '0'), 0):159.637569194,
(('1', '4', '1', '1', '0', '4', '1', '0'), 1):35.7974351029,
(('-1', '2', '2', '-1', '-1', '0', '-1', '-1'), 3):295.616782549,
(('1', '0', '0', '1', '0', '4', '1', '1'), 3):20.2470297672,
(('1', '2', '2', '4', '2', '2', '1', '2'), 0):390,
(('0', '2', '1', '2', '1', '1', '4', '4'), 2):26.7378897011,
(('2', '2', '2', '2', '0', '0', '1', '1'), 3):295.520138473,
(('0', '1', '1', '-1', '1', '0', '-1', '-1'), 3):277.926467026,
(('0', '2', '0', '2', '4', '2', '1', '2'), 0):54.6347041994,
(('1', '1', '0', '0', '1', '1', '1', '1'), 2):76.3632641459,
(('0', '0', '1', '0', '0', '0', '0', '0'), 0):228.82146016,
(('4', '1', '0', '-1', '0', '0', '-1', '-1'), 1):222.514424278,
(('1', '2', '2', '2', '1', '0', '0', '1'), 3):267.161685309,
(('4', '1', '0', '0', '0', '0', '0', '0'), 1):170.221925844,
(('0', '2', '0', '4', '0', '0', '4', '1'), 0):49.5903967862,
(('2', '-1', '0', '4', '1', '-1', '2', '-1'), 1):10,
(('2', '2', '4', '2', '1', '1', '1', '0'), 1):11.8,
(('1', '0', '0', '-1', '1', '0', '-1', '-1'), 0):261.444537757,
(('0', '1', '-1', '1', '-1', '-1', '1', '4'), 3):58.680965651,
(('1', '1', '0', '1', '4', '0', '0', '1'), 3):37.3341151767,
(('2', '2', '0', '2', '0', '4', '1', '1'), 1):220.486530935,
(('4', '2', '0', '2', '0', '0', '4', '0'), 0):230.963307079,
(('2', '4', '0', '2', '0', '1', '0', '1'), 1):480,
(('0', '0', '4', '-1', '4', '0', '-1', '-1'), 3):107.435534989,
(('1', '0', '0', '1', '1', '0', '0', '0'), 0):254.202815222,
(('0', '0', '-1', '1', '-1', '-1', '0', '4'), 3):175.486650364,
(('0', '4', '1', '0', '0', '1', '0', '4'), 0):10,
(('4', '-1', '0', '0', '1', '-1', '0', '-1'), 0):58.5496964396,
(('4', '-1', '1', '0', '1', '-1', '4', '-1'), 0):159.080968802,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '4'), 0):175.724288658,
(('2', '2', '1', '2', '1', '0', '2', '0'), 1):341.644004444,
(('0', '2', '2', '4', '1', '0', '0', '0'), 3):244.559508207,
(('0', '-1', '1', '1', '0', '-1', '4', '-1'), 0):110.466267718,
(('1', '4', '0', '1', '1', '0', '0', '4'), 1):10,
(('0', '1', '-1', '0', '-1', '-1', '0', '1'), 0):270.297515266,
(('0', '4', '1', '2', '1', '1', '2', '4'), 2):10,
(('4', '-1', '1', '4', '4', '-1', '4', '-1'), 2):7.0,
(('1', '1', '4', '-1', '4', '0', '-1', '-1'), 1):121.551628273,
(('-1', '4', '1', '1', '-1', '0', '-1', '1'), 0):139.128446927,
(('4', '2', '1', '2', '0', '0', '4', '0'), 0):91.2952913962,
(('1', '4', '1', '1', '0', '1', '1', '0'), 2):50.744360769,
(('4', '1', '0', '1', '0', '0', '1', '0'), 0):181.463066658,
(('2', '-1', '4', '2', '4', '-1', '2', '-1'), 0):290,
(('-1', '2', '2', '2', '-1', '4', '-1', '2'), 1):40.886242155,
(('0', '0', '0', '1', '1', '0', '0', '0'), 3):210.393291916,
(('2', '2', '2', '2', '0', '1', '2', '1'), 0):84.0505242621,
(('0', '1', '4', '1', '0', '1', '0', '0'), 2):118.687187597,
(('0', '0', '4', '-1', '1', '0', '-1', '-1'), 1):210.049769341,
(('0', '2', '1', '-1', '4', '2', '-1', '-1'), 0):276.7210837,
(('1', '-1', '4', '2', '4', '-1', '0', '-1'), 2):104.556480116,
(('4', '1', '0', '1', '1', '0', '0', '0'), 0):-10,
(('4', '2', '2', '2', '4', '0', '4', '0'), 1):40,
(('0', '0', '0', '1', '0', '1', '0', '0'), 2):213.258157886,
(('4', '1', '0', '4', '0', '0', '4', '4'), 2):1.0,
(('1', '2', '2', '2', '0', '4', '0', '0'), 3):192.594081256,
(('1', '-1', '1', '2', '4', '-1', '1', '-1'), 2):134.064912698,
(('0', '1', '0', '1', '0', '1', '1', '0'), 2):190.274359699,
(('1', '4', '-1', '1', '-1', '-1', '0', '1'), 0):151.290536233,
(('1', '2', '-1', '4', '-1', '-1', '4', '4'), 1):51.9603617295,
(('0', '2', '0', '2', '1', '1', '1', '2'), 2):193.705830858,
(('1', '-1', '0', '1', '1', '-1', '1', '-1'), 3):242.323512053,
(('-1', '0', '-1', '0', '-1', '-1', '-1', '1'), 2):135.389693301,
(('4', '2', '1', '2', '1', '1', '1', '0'), 1):52.7501286768,
(('-1', '4', '1', '1', '-1', '1', '-1', '0'), 0):47.1753417568,
(('0', '4', '0', '1', '0', '0', '1', '1'), 2):207.326706822,
(('4', '1', '-1', '1', '-1', '-1', '4', '1'), 2):230.610526536,
(('1', '1', '-1', '4', '-1', '-1', '0', '0'), 1):238.83415964,
(('2', '2', '2', '-1', '1', '0', '-1', '-1'), 0):-86.8643281993,
(('2', '4', '1', '-1', '0', '1', '-1', '-1'), 1):138.169270708,
(('1', '1', '4', '1', '1', '1', '1', '0'), 1):49.988642041,
(('1', '2', '2', '2', '1', '2', '4', '0'), 0):221.506286003,
(('0', '0', '1', '0', '0', '0', '0', '1'), 3):128.201447568,
(('4', '2', '2', '2', '0', '0', '1', '1'), 3):228.230278268,
(('2', '2', '1', '2', '0', '0', '1', '1'), 2):10,
(('2', '2', '0', '2', '0', '0', '4', '0'), 1):211.511263999,
(('2', '2', '0', '2', '2', '2', '1', '1'), 0):133.649629044,
(('-1', '4', '1', '-1', '-1', '1', '-1', '-1'), 2):208.21210925,
(('0', '2', '2', '2', '2', '4', '2', '0'), 3):10,
(('2', '2', '4', '2', '2', '0', '2', '0'), 2):110.262259518,
(('0', '2', '1', '2', '4', '1', '1', '0'), 3):150,
(('4', '-1', '0', '4', '1', '-1', '4', '-1'), 0):60,
(('0', '1', '0', '1', '4', '0', '1', '1'), 1):76.3745834551,
(('2', '2', '2', '2', '0', '0', '1', '0'), 0):275.753028829,
(('-1', '1', '1', '4', '-1', '0', '-1', '0'), 1):0,
(('0', '4', '1', '-1', '0', '0', '-1', '-1'), 1):181.585611179,
(('2', '2', '1', '2', '0', '0', '0', '1'), 2):30,
(('1', '1', '-1', '0', '-1', '-1', '0', '4'), 3):159.000833161,
(('0', '0', '1', '1', '1', '1', '0', '0'), 0):213.411415545,
(('2', '2', '2', '2', '2', '0', '2', '2'), 3):344.367786677,
(('2', '-1', '1', '2', '1', '-1', '2', '-1'), 0):427.490347516,
(('2', '4', '2', '2', '1', '0', '1', '1'), 1):10,
(('0', '2', '1', '2', '0', '4', '0', '0'), 2):223.694174332,
(('4', '2', '2', '2', '0', '2', '4', '1'), 0):42.1001290136,
(('4', '1', '1', '-1', '0', '1', '-1', '-1'), 2):226.711237917,
(('4', '1', '1', '0', '1', '1', '0', '1'), 3):166.251327123,
(('1', '1', '1', '4', '0', '1', '0', '0'), 1):0,
(('1', '0', '4', '-1', '4', '1', '-1', '-1'), 3):10,
(('1', '4', '1', '0', '1', '1', '0', '4'), 1):167.859093485,
(('4', '2', '1', '2', '1', '1', '4', '2'), 0):294.891844125,
(('4', '1', '1', '0', '0', '1', '4', '0'), 2):22.1388150277,
(('2', '2', '1', '-1', '1', '1', '-1', '-1'), 2):337.378614734,
(('0', '2', '-1', '4', '-1', '-1', '0', '0'), 1):10,
(('4', '2', '0', '2', '0', '2', '2', '0'), 2):1880,
(('-1', '2', '1', '-1', '-1', '1', '-1', '-1'), 0):341.342972856,
(('1', '2', '1', '2', '1', '0', '0', '1'), 0):192.623830546,
(('4', '2', '0', '2', '1', '1', '0', '2'), 2):92.374435563,
(('4', '2', '2', '2', '2', '2', '2', '0'), 0):11.8,
(('0', '2', '0', '2', '2', '2', '0', '2'), 0):299.830502817,
(('0', '-1', '1', '2', '4', '-1', '2', '-1'), 2):110.787467501,
(('0', '2', '2', '4', '0', '0', '4', '2'), 3):10,
(('2', '2', '4', '2', '2', '0', '1', '0'), 3):10,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '4'), 1):207.958652528,
(('1', '1', '1', '1', '4', '1', '0', '0'), 2):89.3360055225,
(('2', '2', '0', '2', '4', '2', '2', '2'), 1):10,
(('4', '0', '0', '0', '1', '0', '0', '0'), 1):89.0469949715,
(('0', '2', '2', '4', '0', '2', '0', '2'), 3):177.653414244,
(('0', '1', '1', '1', '1', '1', '1', '4'), 3):10,
(('0', '2', '0', '2', '0', '1', '4', '0'), 0):183.658573301,
(('2', '2', '2', '4', '0', '0', '2', '4'), 3):10,
(('0', '1', '-1', '1', '-1', '-1', '0', '0'), 1):231.125921614,
(('1', '1', '1', '0', '4', '1', '0', '0'), 1):183.077037286,
(('4', '0', '1', '-1', '0', '1', '-1', '-1'), 2):96.4507591511,
(('-1', '4', '1', '0', '-1', '0', '-1', '4'), 1):32.3107275331,
(('1', '1', '4', '1', '1', '0', '0', '0'), 0):13.2402513803,
(('4', '2', '1', '2', '0', '2', '0', '2'), 0):126.712171297,
(('0', '2', '-1', '2', '-1', '-1', '1', '2'), 2):393.771552707,
(('1', '0', '4', '1', '1', '4', '1', '0'), 2):190.55803024,
(('1', '-1', '-1', '2', '-1', '-1', '1', '-1'), 2):285.422470246,
(('4', '1', '0', '1', '1', '1', '0', '1'), 3):10,
(('0', '4', '0', '1', '0', '1', '1', '4'), 2):-10,
(('4', '2', '2', '2', '0', '2', '4', '0'), 2):10,
(('1', '1', '1', '1', '0', '1', '0', '0'), 3):200.753675167,
(('2', '2', '0', '2', '1', '0', '0', '2'), 0):275.214766318,
(('4', '1', '0', '0', '4', '0', '4', '1'), 3):-10,
(('1', '2', '1', '2', '1', '0', '2', '4'), 2):120,
(('0', '2', '0', '2', '4', '1', '0', '4'), 2):10,
(('0', '4', '-1', '2', '-1', '-1', '0', '0'), 3):267.383904059,
(('0', '2', '0', '2', '0', '0', '2', '1'), 2):397.496327323,
(('1', '4', '0', '0', '1', '0', '0', '0'), 3):100.033328891,
(('-1', '1', '1', '-1', '-1', '0', '-1', '-1'), 2):257.811259831,
(('1', '2', '2', '2', '2', '4', '2', '4'), 3):49.3505981328,
(('1', '1', '4', '1', '1', '1', '1', '0'), 0):-20,
(('1', '-1', '1', '4', '1', '-1', '1', '-1'), 1):228.320040018,
(('1', '0', '0', '0', '4', '0', '0', '0'), 0):85.9451139531,
(('1', '0', '0', '0', '4', '0', '0', '0'), 1):184.224741862,
(('4', '1', '0', '-1', '4', '1', '-1', '-1'), 1):0,
(('0', '1', '1', '4', '0', '1', '1', '0'), 1):0,
(('2', '2', '0', '2', '0', '1', '2', '2'), 1):416.601292674,
(('0', '1', '-1', '4', '-1', '-1', '1', '0'), 1):74.4897960692,
(('0', '4', '0', '4', '0', '1', '4', '4'), 2):10,
(('1', '0', '-1', '1', '-1', '-1', '1', '0'), 0):247.140937584,
(('1', '1', '0', '1', '0', '0', '0', '4'), 2):0,
(('-1', '4', '2', '2', '-1', '4', '-1', '0'), 1):50.7718102161,
(('0', '1', '0', '1', '4', '0', '1', '0'), 2):0,
(('1', '2', '2', '4', '1', '0', '1', '0'), 3):226.505034801,
(('0', '1', '4', '1', '0', '0', '0', '1'), 3):223.449878943,
(('2', '2', '2', '2', '4', '0', '2', '2'), 3):157.780373425,
(('4', '1', '-1', '1', '-1', '-1', '0', '1'), 2):234.203143878,
(('2', '2', '4', '-1', '1', '0', '-1', '-1'), 1):300.511051115,
(('2', '2', '0', '-1', '0', '0', '-1', '-1'), 2):292.235403611,
(('1', '1', '0', '4', '0', '0', '1', '1'), 0):10,
(('2', '-1', '2', '-1', '4', '-1', '-1', '-1'), 1):10,
(('1', '2', '0', '2', '0', '0', '0', '0'), 0):293.492700224,
(('2', '2', '1', '2', '0', '4', '4', '0'), 1):10,
(('0', '0', '1', '1', '1', '0', '0', '1'), 1):148.269593446,
(('1', '4', '1', '-1', '1', '0', '-1', '-1'), 0):259.836827264,
(('0', '2', '0', '2', '0', '0', '0', '2'), 0):276.679390182,
(('4', '-1', '2', '2', '4', '-1', '0', '-1'), 0):-1000,
(('1', '2', '4', '2', '0', '1', '1', '1'), 0):113.318455379,
(('2', '2', '4', '2', '0', '0', '2', '2'), 2):132.154989136,
(('1', '2', '0', '2', '1', '0', '1', '4'), 1):222.326221456,
(('-1', '0', '1', '0', '-1', '1', '-1', '1'), 1):44.9035847467,
(('1', '0', '4', '-1', '0', '1', '-1', '-1'), 2):29.9018773244,
(('4', '2', '4', '2', '0', '4', '4', '1'), 0):16.4,
(('0', '-1', '2', '2', '0', '-1', '0', '-1'), 2):280.968525035,
(('2', '2', '1', '2', '2', '1', '1', '1'), 1):261.937362404,
(('1', '2', '1', '2', '1', '0', '1', '0'), 0):253.023925437,
(('1', '4', '1', '0', '1', '1', '1', '0'), 0):183.323955816,
(('0', '0', '4', '1', '4', '4', '1', '0'), 3):0,
(('0', '1', '1', '0', '4', '1', '1', '1'), 3):10,
(('1', '1', '1', '1', '0', '1', '4', '0'), 2):-10,
(('4', '2', '4', '2', '4', '4', '0', '0'), 0):109.909465633,
(('1', '2', '0', '2', '4', '0', '0', '1'), 1):47.6008758245,
(('0', '2', '4', '2', '4', '2', '0', '2'), 3):0,
(('-1', '2', '2', '2', '-1', '1', '-1', '0'), 0):315.587798395,
(('4', '1', '1', '1', '0', '0', '0', '1'), 3):0,
(('1', '1', '0', '1', '1', '4', '1', '1'), 1):147.014019348,
(('0', '2', '2', '2', '0', '2', '1', '2'), 3):447.010690264,
(('0', '1', '1', '-1', '1', '4', '-1', '-1'), 1):118.29110349,
(('1', '1', '1', '1', '1', '0', '4', '0'), 3):109.506796731,
(('2', '2', '2', '2', '4', '0', '2', '2'), 2):10,
(('4', '2', '1', '2', '1', '0', '4', '0'), 3):139.335248097,
(('4', '2', '1', '2', '4', '1', '1', '0'), 0):30,
(('1', '4', '1', '1', '1', '4', '1', '4'), 0):43.1761709693,
(('2', '2', '0', '2', '2', '0', '4', '0'), 2):156.961732586,
(('0', '1', '4', '1', '0', '4', '0', '1'), 2):138.261958788,
(('-1', '4', '1', '2', '-1', '1', '-1', '4'), 1):59.3705664354,
(('0', '2', '0', '2', '0', '1', '1', '0'), 0):243.184439036,
(('1', '1', '0', '0', '1', '1', '0', '0'), 3):163.703703168,
(('0', '2', '2', '2', '0', '1', '1', '1'), 3):216.083849595,
(('0', '1', '1', '4', '0', '1', '1', '1'), 3):0,
(('0', '4', '2', '2', '0', '4', '0', '4'), 3):23.2912132734,
(('1', '1', '-1', '1', '-1', '-1', '4', '0'), 3):185.13483653,
(('1', '1', '1', '4', '1', '0', '4', '0'), 0):102.906477657,
(('0', '0', '0', '1', '0', '0', '0', '0'), 0):219.648354182,
(('2', '2', '4', '2', '4', '4', '1', '4'), 1):0,
(('0', '2', '0', '-1', '4', '0', '-1', '-1'), 2):283.884714413,
(('0', '2', '1', '2', '4', '1', '1', '0'), 2):106.231177028,
(('0', '2', '4', '2', '0', '0', '1', '0'), 0):173.408043975,
(('0', '0', '1', '1', '0', '4', '1', '1'), 2):0,
(('0', '2', '0', '-1', '0', '2', '-1', '-1'), 2):300.488572456,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '0'), 1):153.975751347,
(('2', '2', '2', '2', '4', '1', '0', '0'), 1):250.748615836,
(('0', '2', '0', '2', '4', '1', '4', '1'), 0):10,
(('-1', '4', '0', '1', '-1', '4', '-1', '0'), 3):11.0,
(('4', '-1', '0', '2', '2', '-1', '0', '-1'), 1):-147.207589438,
(('1', '0', '4', '1', '4', '4', '1', '0'), 2):147.268032862,
(('2', '2', '1', '2', '1', '2', '2', '2'), 0):360.740534045,
(('0', '1', '1', '0', '0', '4', '0', '0'), 3):147.741802628,
(('0', '0', '4', '1', '0', '1', '0', '0'), 2):45.9229729917,
(('0', '1', '1', '0', '4', '1', '0', '0'), 2):174.416930764,
(('0', '2', '1', '4', '1', '1', '4', '2'), 0):10,
(('2', '2', '0', '2', '2', '1', '0', '1'), 1):415.332033831,
(('0', '2', '2', '2', '2', '0', '1', '0'), 3):340.476750555,
(('4', '2', '1', '2', '4', '1', '4', '2'), 0):214.704687481,
(('0', '2', '2', '2', '0', '1', '0', '2'), 3):321.543396127,
(('0', '-1', '-1', '1', '-1', '-1', '4', '-1'), 1):164.840939296,
(('1', '2', '1', '2', '0', '4', '1', '1'), 0):10,
(('0', '1', '0', '-1', '1', '0', '-1', '-1'), 0):314.167003632,
(('1', '2', '0', '4', '0', '0', '4', '4'), 1):50,
(('1', '4', '0', '2', '1', '0', '0', '4'), 1):53.6860186101,
(('4', '2', '2', '4', '0', '1', '4', '0'), 1):60,
(('0', '2', '1', '2', '0', '0', '0', '4'), 3):160.079768719,
(('0', '-1', '1', '2', '0', '-1', '1', '-1'), 2):260.262501341,
(('1', '2', '1', '2', '1', '0', '0', '0'), 1):282.1336314,
(('2', '2', '2', '2', '0', '1', '4', '0'), 3):40,
(('2', '2', '1', '4', '1', '0', '0', '4'), 1):88.7018435645,
(('1', '2', '4', '-1', '1', '0', '-1', '-1'), 1):238.701300481,
(('0', '2', '1', '4', '0', '1', '0', '1'), 3):154.393330774,
(('1', '2', '0', '2', '4', '1', '1', '0'), 0):47.8556140852,
(('4', '-1', '0', '0', '1', '-1', '4', '-1'), 1):-10,
(('1', '0', '0', '1', '0', '1', '1', '0'), 2):118.263199092,
(('0', '1', '-1', '0', '-1', '-1', '0', '4'), 1):241.83670835,
(('4', '0', '1', '0', '1', '1', '4', '0'), 3):10,
(('0', '1', '1', '1', '0', '1', '4', '0'), 2):0,
(('1', '2', '0', '2', '1', '4', '1', '1'), 1):91.8275655355,
(('0', '0', '1', '0', '0', '1', '0', '1'), 0):48.0531303319,
(('1', '0', '0', '0', '1', '0', '0', '0'), 3):240.333907851,
(('1', '2', '2', '2', '1', '1', '0', '4'), 3):145.74692586,
(('1', '4', '1', '1', '1', '0', '0', '0'), 0):0,
(('0', '1', '1', '1', '1', '0', '1', '1'), 1):156.083797726,
(('4', '1', '1', '0', '4', '1', '1', '1'), 0):10,
(('1', '0', '1', '1', '1', '0', '0', '1'), 2):168.320222754,
(('0', '-1', '1', '4', '1', '-1', '4', '-1'), 2):0,
(('0', '-1', '0', '0', '0', '-1', '0', '-1'), 2):219.077101482,
(('-1', '2', '4', '2', '-1', '1', '-1', '1'), 3):187.036942009,
(('1', '1', '1', '1', '1', '1', '1', '1'), 3):191.929977825,
(('1', '2', '4', '2', '0', '0', '0', '0'), 0):106.851648906,
(('1', '4', '0', '1', '1', '4', '0', '4'), 3):3.6,
(('1', '-1', '1', '0', '1', '-1', '4', '-1'), 3):251.673743395,
(('0', '4', '0', '4', '0', '1', '0', '0'), 1):10,
(('0', '1', '1', '1', '0', '1', '0', '1'), 0):210.346868307,
(('-1', '0', '1', '4', '-1', '0', '-1', '0'), 3):194.401347973,
(('4', '1', '0', '1', '4', '1', '0', '1'), 2):0,
(('1', '2', '1', '2', '1', '4', '2', '1'), 2):10,
(('4', '1', '1', '1', '0', '0', '1', '1'), 3):141.933359467,
(('1', '2', '1', '2', '1', '2', '0', '0'), 2):290.680465116,
(('1', '2', '1', '-1', '0', '4', '-1', '-1'), 1):52.4279542213,
(('1', '2', '1', '2', '2', '0', '2', '0'), 2):124.026622593,
(('1', '-1', '1', '0', '4', '-1', '1', '-1'), 0):110.520510201,
(('1', '4', '-1', '4', '-1', '-1', '1', '0'), 2):50,
(('4', '0', '0', '4', '0', '0', '4', '0'), 3):-10,
(('1', '2', '1', '2', '0', '0', '4', '0'), 0):108.882163912,
(('0', '4', '2', '2', '2', '4', '0', '0'), 3):122.310960813,
(('1', '4', '1', '1', '1', '1', '1', '4'), 0):47.6801853286,
(('1', '2', '0', '2', '0', '0', '1', '0'), 1):256.958336689,
(('4', '2', '1', '2', '0', '0', '0', '4'), 0):20,
(('1', '0', '0', '-1', '1', '1', '-1', '-1'), 1):235.774515137,
(('-1', '0', '-1', '4', '-1', '-1', '-1', '4'), 1):125.251482013,
(('0', '1', '0', '1', '1', '0', '0', '0'), 0):209.951717992,
(('1', '1', '0', '1', '0', '0', '1', '0'), 1):206.521498403,
(('4', '2', '2', '2', '4', '2', '0', '1'), 3):248.258835668,
(('4', '2', '2', '2', '0', '2', '4', '1'), 2):240,
(('1', '1', '1', '0', '0', '1', '0', '4'), 1):7.8,
(('4', '0', '0', '-1', '0', '0', '-1', '-1'), 3):271.45195437,
(('1', '2', '1', '2', '0', '0', '0', '0'), 0):253.169273796,
(('2', '2', '0', '2', '0', '4', '2', '1'), 2):118.0,
(('1', '2', '0', '2', '0', '1', '0', '1'), 2):242.458956223,
(('1', '-1', '-1', '2', '-1', '-1', '0', '-1'), 1):297.618600608,
(('1', '1', '1', '1', '4', '1', '1', '1'), 1):163.258342657,
(('0', '1', '0', '4', '0', '1', '1', '1'), 2):0,
(('0', '2', '2', '4', '0', '2', '4', '1'), 0):77.387955159,
(('0', '1', '0', '0', '0', '4', '0', '1'), 2):162.992810416,
(('-1', '1', '0', '4', '-1', '1', '-1', '1'), 1):124.938710813,
(('1', '2', '0', '-1', '0', '1', '-1', '-1'), 1):245.072005267,
(('0', '2', '-1', '2', '-1', '-1', '0', '4'), 0):252.079474191,
(('4', '2', '2', '2', '0', '1', '1', '1'), 3):186.135499307,
(('2', '2', '1', '4', '1', '1', '1', '4'), 1):10,
(('0', '2', '2', '4', '2', '0', '0', '0'), 3):-153.073547228,
(('1', '0', '0', '0', '0', '0', '0', '0'), 1):217.929608263,
(('2', '2', '1', '4', '2', '1', '1', '1'), 1):10,
(('2', '2', '0', '2', '1', '0', '4', '1'), 1):10.0863411795,
(('0', '1', '4', '0', '1', '4', '0', '0'), 0):-304.589294073,
(('0', '4', '-1', '0', '-1', '-1', '0', '0'), 2):231.942303188,
(('1', '2', '2', '2', '4', '4', '1', '2'), 3):10,
(('4', '1', '0', '0', '0', '1', '4', '0'), 0):24.2232226819,
(('2', '4', '0', '2', '1', '0', '1', '4'), 1):112.865792989,
(('-1', '1', '1', '0', '-1', '1', '-1', '1'), 3):251.84434558,
(('1', '2', '2', '2', '2', '1', '1', '4'), 3):11.44,
(('0', '1', '4', '0', '0', '0', '4', '0'), 0):0,
(('2', '4', '0', '2', '2', '4', '0', '0'), 1):29.436549816,
(('1', '2', '4', '2', '0', '4', '0', '0'), 3):10,
(('0', '1', '1', '0', '1', '1', '1', '1'), 0):10,
(('2', '2', '4', '2', '0', '4', '2', '1'), 2):40.5161301506,
(('0', '2', '1', '-1', '1', '1', '-1', '-1'), 0):312.437903481,
(('1', '1', '1', '0', '1', '0', '0', '0'), 3):226.866998542,
(('0', '1', '0', '-1', '0', '1', '-1', '-1'), 1):250.434522573,
(('2', '2', '2', '2', '4', '0', '1', '2'), 1):10,
(('1', '4', '0', '0', '0', '0', '0', '4'), 2):9.05254818221,
(('1', '2', '-1', '4', '-1', '-1', '1', '2'), 0):197.785311627,
(('1', '2', '2', '2', '0', '2', '2', '0'), 0):107.050062544,
(('0', '1', '1', '1', '4', '1', '0', '0'), 3):113.08833936,
(('0', '1', '1', '0', '0', '0', '0', '0'), 2):222.752120259,
(('-1', '0', '0', '1', '-1', '0', '-1', '4'), 1):178.096768247,
(('4', '2', '2', '2', '0', '2', '2', '2'), 3):370,
(('1', '4', '2', '2', '1', '2', '0', '4'), 3):111.860914082,
(('2', '2', '2', '2', '2', '0', '1', '1'), 0):309.018798606,
(('0', '2', '0', '2', '4', '2', '0', '0'), 2):164.800216741,
(('-1', '2', '0', '4', '-1', '0', '-1', '0'), 2):81.5581807402,
(('2', '2', '4', '2', '0', '0', '1', '0'), 3):103.016243111,
(('2', '2', '4', '2', '2', '1', '0', '1'), 1):70,
(('0', '2', '4', '2', '4', '0', '1', '1'), 2):80.0645870044,
(('1', '2', '4', '2', '1', '0', '0', '2'), 2):10,
(('1', '1', '0', '-1', '0', '1', '-1', '-1'), 3):238.652753481,
(('-1', '2', '0', '2', '-1', '1', '-1', '0'), 0):266.342044053,
(('1', '2', '2', '4', '1', '2', '4', '0'), 3):119.406449023,
(('-1', '1', '1', '1', '-1', '0', '-1', '4'), 2):46.262791704,
(('-1', '0', '0', '4', '-1', '0', '-1', '0'), 1):222.225776025,
(('1', '4', '0', '1', '0', '0', '0', '4'), 3):30.4503911549,
(('0', '2', '2', '4', '0', '0', '1', '0'), 3):10,
(('0', '-1', '2', '2', '0', '-1', '0', '-1'), 3):279.354415493,
(('-1', '2', '0', '4', '-1', '0', '-1', '1'), 0):92.0057884307,
(('4', '0', '1', '-1', '1', '1', '-1', '-1'), 3):198.1590277,
(('2', '2', '2', '2', '0', '1', '4', '1'), 3):52.4409375056,
(('2', '2', '1', '2', '2', '2', '2', '2'), 2):533.265316288,
(('0', '4', '1', '-1', '1', '0', '-1', '-1'), 0):102.149819337,
(('2', '-1', '1', '2', '4', '-1', '2', '-1'), 1):83.8972996131,
(('1', '1', '4', '0', '1', '0', '0', '0'), 2):83.8221414645,
(('0', '2', '1', '4', '1', '1', '0', '0'), 3):101.780015438,
(('1', '0', '4', '1', '0', '4', '1', '0'), 3):10,
(('0', '0', '1', '4', '1', '1', '0', '1'), 3):-10,
(('1', '0', '0', '0', '0', '0', '1', '0'), 0):235.242177335,
(('0', '4', '0', '0', '0', '4', '0', '0'), 3):185.590053851,
(('2', '-1', '-1', '2', '-1', '-1', '4', '-1'), 3):230.614061117,
(('0', '0', '0', '1', '0', '0', '4', '1'), 1):118.628552022,
(('2', '2', '2', '2', '2', '1', '2', '2'), 1):583.689624848,
(('2', '2', '2', '2', '2', '1', '2', '4'), 2):410,
(('2', '2', '1', '-1', '1', '0', '-1', '-1'), 2):323.529107686,
(('1', '2', '0', '2', '0', '0', '1', '1'), 0):216.698196531,
(('4', '1', '0', '1', '4', '0', '4', '1'), 3):106.879930203,
(('1', '4', '4', '2', '0', '4', '0', '0'), 1):50,
(('0', '4', '0', '1', '0', '0', '1', '4'), 2):24.2640089234,
(('4', '-1', '1', '0', '4', '-1', '1', '-1'), 3):10,
(('0', '2', '2', '2', '0', '2', '1', '1'), 3):293.113761888,
(('1', '0', '1', '4', '0', '0', '0', '0'), 1):94.3223341321,
(('0', '2', '4', '2', '4', '0', '2', '1'), 2):62.6768217456,
(('0', '2', '0', '2', '1', '1', '0', '0'), 1):49.0750823006,
(('0', '-1', '-1', '0', '-1', '-1', '4', '-1'), 0):17.5872531428,
(('1', '2', '2', '2', '2', '2', '2', '2'), 3):447.868682474,
(('4', '0', '0', '0', '0', '0', '4', '0'), 1):74.8235247289,
(('1', '1', '4', '1', '4', '0', '1', '0'), 2):0,
(('1', '2', '0', '2', '1', '0', '2', '2'), 2):384.540230621,
(('1', '2', '0', '2', '4', '0', '1', '2'), 2):405.911485723,
(('1', '2', '0', '2', '0', '2', '0', '2'), 0):481.651131349,
(('1', '0', '1', '0', '0', '0', '0', '1'), 1):49.2209460021,
(('1', '0', '0', '0', '1', '1', '0', '0'), 2):157.163786165,
(('0', '2', '4', '-1', '0', '2', '-1', '-1'), 3):148.442879252,
(('1', '1', '0', '0', '0', '1', '1', '0'), 1):215.871953408,
(('0', '-1', '0', '1', '4', '-1', '0', '-1'), 0):102.138089297,
(('2', '2', '0', '2', '0', '0', '2', '1'), 1):334.31876183,
(('0', '2', '1', '2', '1', '4', '1', '0'), 0):30,
(('1', '0', '-1', '0', '-1', '-1', '0', '4'), 2):10,
(('2', '2', '0', '2', '1', '4', '1', '0'), 1):187.07122682,
(('1', '0', '1', '4', '1', '0', '1', '0'), 3):167.653833739,
(('0', '0', '1', '1', '0', '1', '1', '1'), 2):73.9666950645,
(('1', '2', '4', '-1', '4', '4', '-1', '-1'), 3):71.6341936227,
(('0', '2', '4', '-1', '4', '1', '-1', '-1'), 2):238.002972924,
(('0', '2', '0', '2', '0', '0', '0', '4'), 2):208.25128945,
(('-1', '1', '1', '0', '-1', '0', '-1', '1'), 0):244.139509764,
(('2', '2', '0', '2', '1', '1', '1', '0'), 1):263.491447559,
(('1', '4', '0', '-1', '0', '0', '-1', '-1'), 3):240.408487199,
(('2', '2', '0', '2', '0', '0', '2', '0'), 1):318.274133036,
(('0', '2', '0', '2', '0', '2', '2', '0'), 0):69.2751978684,
(('2', '2', '-1', '2', '-1', '-1', '0', '1'), 3):298.31455705,
(('-1', '2', '0', '2', '-1', '4', '-1', '4'), 1):161.572091599,
(('0', '2', '4', '-1', '1', '4', '-1', '-1'), 0):163.213617306,
(('0', '2', '2', '2', '1', '2', '4', '0'), 3):259.723987479,
(('2', '2', '0', '2', '2', '1', '0', '2'), 0):197.035991287,
(('1', '1', '0', '1', '0', '4', '0', '0'), 2):35.4855612256,
(('4', '2', '1', '2', '1', '0', '4', '2'), 0):28.4380468998,
(('1', '0', '0', '1', '0', '0', '4', '1'), 2):131.56118857,
(('0', '2', '2', '2', '2', '2', '2', '2'), 0):489.94103291,
(('0', '1', '0', '4', '1', '0', '0', '4'), 3):50,
(('0', '1', '1', '1', '1', '1', '0', '4'), 2):112.107322031,
(('2', '2', '2', '2', '0', '0', '0', '1'), 1):253.379879455,
(('0', '1', '1', '1', '4', '1', '1', '1'), 3):115.7440586,
(('0', '2', '0', '-1', '1', '2', '-1', '-1'), 2):427.17739939,
(('1', '4', '1', '4', '0', '0', '0', '4'), 3):-146.587518736,
(('1', '-1', '1', '1', '0', '-1', '0', '-1'), 0):230.751911528,
(('0', '-1', '2', '2', '0', '-1', '2', '-1'), 0):188.457593959,
(('0', '4', '4', '0', '0', '4', '0', '0'), 1):57.1948695134,
(('0', '0', '0', '-1', '4', '0', '-1', '-1'), 1):185.203816696,
(('1', '2', '1', '2', '1', '4', '1', '0'), 1):197.819215842,
(('1', '2', '0', '-1', '0', '4', '-1', '-1'), 0):178.715580151,
(('0', '1', '0', '1', '4', '0', '0', '0'), 0):127.217893312,
(('0', '0', '0', '0', '1', '0', '0', '0'), 1):233.015605438,
(('0', '0', '4', '-1', '0', '0', '-1', '-1'), 1):244.961206802,
(('0', '1', '4', '0', '4', '4', '0', '0'), 2):13.1887887238,
(('2', '2', '4', '-1', '0', '1', '-1', '-1'), 3):72.217721207,
(('2', '4', '0', '2', '0', '0', '1', '0'), 1):143.756897334,
(('0', '2', '4', '2', '4', '2', '0', '2'), 2):118.336413818,
(('0', '0', '0', '1', '1', '0', '0', '4'), 1):0,
(('1', '4', '0', '1', '0', '4', '0', '4'), 0):10,
(('1', '2', '0', '2', '0', '0', '0', '2'), 2):340.188430545,
(('0', '4', '4', '1', '4', '4', '0', '0'), 2):0,
(('-1', '2', '4', '-1', '-1', '1', '-1', '-1'), 0):221.813800004,
(('-1', '1', '4', '0', '-1', '0', '-1', '0'), 1):146.722436359,
(('2', '2', '2', '-1', '2', '1', '-1', '-1'), 2):418.735345331,
(('2', '-1', '0', '2', '0', '-1', '2', '-1'), 0):295.943602716,
(('1', '0', '4', '1', '4', '0', '1', '1'), 3):0,
(('4', '2', '1', '2', '0', '0', '1', '2'), 2):120,
(('1', '-1', '1', '0', '0', '-1', '4', '-1'), 3):38.4976096384,
(('0', '4', '0', '1', '0', '4', '0', '4'), 3):34.4309819985,
(('1', '2', '-1', '2', '-1', '-1', '4', '4'), 3):171.53613133,
(('0', '1', '0', '4', '0', '0', '0', '1'), 2):218.9932769,
(('0', '0', '-1', '1', '-1', '-1', '0', '0'), 1):271.589400068,
(('1', '4', '0', '2', '1', '0', '1', '1'), 1):20.9104213792,
(('1', '-1', '0', '2', '1', '-1', '2', '-1'), 0):378.214448733,
(('1', '-1', '0', '-1', '4', '-1', '-1', '-1'), 0):233.410317263,
(('1', '-1', '2', '2', '1', '-1', '0', '-1'), 0):321.192867696,
(('4', '2', '2', '2', '0', '1', '4', '0'), 3):164.633767981,
(('0', '2', '1', '2', '1', '0', '2', '1'), 2):58.204598834,
(('4', '1', '4', '1', '4', '4', '1', '0'), 2):-154.917256829,
(('0', '2', '1', '2', '2', '2', '0', '0'), 0):350.926986205,
(('0', '2', '2', '2', '0', '2', '0', '0'), 2):315.783237471,
(('-1', '0', '1', '-1', '-1', '4', '-1', '-1'), 0):143.411858923,
(('0', '2', '1', '2', '0', '0', '2', '2'), 0):353.239922104,
(('0', '2', '4', '2', '0', '4', '2', '2'), 2):227.335896554,
(('2', '4', '2', '2', '0', '0', '1', '1'), 3):10,
(('4', '2', '0', '2', '0', '1', '4', '0'), 3):23.8326775629,
(('1', '2', '2', '2', '2', '0', '1', '1'), 3):344.709980291,
(('1', '2', '0', '2', '0', '0', '4', '0'), 1):221.102821711,
(('0', '2', '4', '2', '4', '0', '1', '2'), 2):108.807655147,
(('0', '2', '2', '2', '1', '1', '4', '1'), 3):146.085558818,
(('1', '2', '-1', '4', '-1', '-1', '0', '0'), 1):185.620701702,
(('2', '2', '2', '2', '1', '0', '1', '1'), 0):55.2269077736,
(('1', '1', '1', '-1', '0', '4', '-1', '-1'), 0):22.919120549,
(('1', '2', '2', '2', '1', '4', '1', '1'), 3):149.427351137,
(('2', '4', '0', '2', '2', '0', '0', '4'), 1):158.210432976,
(('0', '4', '1', '2', '0', '0', '1', '0'), 3):0,
(('0', '-1', '1', '2', '0', '-1', '4', '-1'), 2):125.071241679,
(('1', '1', '1', '0', '0', '1', '1', '0'), 3):217.985163834,
(('0', '1', '0', '-1', '1', '1', '-1', '-1'), 3):221.15873062,
(('0', '1', '1', '1', '0', '1', '4', '1'), 0):192.831917304,
(('0', '4', '1', '2', '0', '4', '2', '4'), 2):10,
(('0', '0', '1', '0', '1', '0', '0', '0'), 1):265.098899842,
(('1', '1', '0', '4', '0', '1', '4', '1'), 0):10,
(('1', '2', '0', '2', '1', '0', '0', '4'), 3):58.5702483976,
(('1', '0', '0', '1', '0', '1', '0', '1'), 3):-10,
(('1', '2', '0', '2', '0', '4', '1', '0'), 1):208.714405073,
(('1', '1', '1', '-1', '1', '1', '-1', '-1'), 3):256.894493779,
(('0', '4', '2', '2', '1', '4', '0', '4'), 3):10,
(('1', '1', '0', '4', '0', '0', '0', '0'), 2):50.0929805992,
(('1', '4', '2', '2', '1', '0', '4', '0'), 3):10,
(('2', '2', '2', '-1', '0', '2', '-1', '-1'), 0):335.439848622,
(('4', '1', '1', '1', '0', '0', '0', '0'), 1):0,
(('4', '2', '4', '-1', '4', '4', '-1', '-1'), 0):159.622421876,
(('-1', '1', '0', '0', '-1', '0', '-1', '0'), 2):253.511517016,
(('0', '2', '1', '-1', '1', '0', '-1', '-1'), 2):331.526843384,
(('-1', '1', '4', '1', '-1', '1', '-1', '1'), 0):209.620317311,
(('1', '2', '2', '2', '2', '2', '1', '2'), 0):444.015150743,
(('2', '2', '4', '2', '1', '0', '1', '0'), 1):244.185383128,
(('0', '0', '1', '-1', '4', '0', '-1', '-1'), 1):68.239023826,
(('1', '2', '2', '2', '4', '2', '4', '0'), 2):10,
(('-1', '2', '2', '2', '-1', '2', '-1', '1'), 3):348.010031117,
(('1', '2', '1', '2', '1', '4', '1', '1'), 2):95.1069174779,
(('1', '2', '2', '2', '0', '0', '2', '0'), 3):187.215795508,
(('1', '1', '4', '1', '1', '4', '1', '1'), 3):94.5695992115,
(('1', '1', '0', '1', '1', '0', '0', '0'), 3):205.149278694,
(('1', '2', '4', '2', '1', '4', '1', '0'), 1):173.825806928,
(('4', '-1', '2', '2', '1', '-1', '1', '-1'), 0):0,
(('4', '1', '4', '4', '0', '0', '4', '4'), 2):10,
(('0', '2', '1', '2', '1', '1', '4', '1'), 0):183.743208937,
(('2', '2', '0', '2', '2', '0', '1', '2'), 1):10,
(('0', '2', '2', '2', '1', '0', '1', '2'), 0):10,
(('4', '1', '4', '1', '4', '1', '1', '1'), 0):50,
(('0', '2', '0', '2', '0', '1', '4', '2'), 2):245.447699205,
(('0', '2', '2', '2', '1', '0', '0', '1'), 0):10,
(('1', '4', '4', '1', '1', '1', '1', '1'), 1):-10,
(('4', '1', '4', '-1', '4', '1', '-1', '-1'), 1):12.1079743607,
(('0', '1', '4', '-1', '0', '1', '-1', '-1'), 2):251.920326436,
(('1', '-1', '4', '2', '0', '-1', '1', '-1'), 3):10,
(('1', '2', '1', '2', '1', '0', '0', '2'), 2):106.404193562,
(('4', '-1', '1', '0', '0', '-1', '0', '-1'), 2):104.12968711,
(('0', '1', '0', '-1', '0', '0', '-1', '-1'), 1):221.465510871,
(('1', '0', '1', '4', '1', '4', '4', '0'), 1):0,
(('1', '2', '2', '2', '0', '2', '1', '1'), 0):306.854037042,
(('0', '2', '1', '2', '1', '2', '1', '2'), 2):170.684459066,
(('2', '2', '2', '-1', '4', '2', '-1', '-1'), 3):87.3463743501,
(('4', '2', '0', '2', '4', '0', '0', '0'), 3):24.9937363465,
(('0', '2', '0', '4', '0', '0', '4', '0'), 3):37.1252096187,
(('-1', '2', '2', '-1', '-1', '0', '-1', '-1'), 0):50.6587542557,
(('0', '2', '2', '4', '0', '0', '0', '0'), 3):235.871076193,
(('0', '2', '1', '2', '1', '1', '4', '4'), 3):84.6332443534,
(('4', '0', '0', '0', '1', '0', '1', '0'), 2):10,
(('2', '2', '2', '2', '0', '0', '1', '1'), 2):41.0045101388,
(('0', '1', '1', '-1', '1', '0', '-1', '-1'), 2):276.750581849,
(('0', '2', '4', '-1', '4', '4', '-1', '-1'), 1):10,
(('1', '0', '0', '-1', '0', '0', '-1', '-1'), 3):257.229498066,
(('1', '4', '1', '4', '1', '1', '4', '4'), 1):-6.0,
(('4', '1', '0', '-1', '0', '0', '-1', '-1'), 0):238.393867331,
(('-1', '2', '2', '4', '-1', '1', '-1', '0'), 3):74.8911539768,
(('0', '2', '1', '2', '0', '4', '0', '1'), 0):183.179059128,
(('4', '1', '1', '1', '0', '0', '4', '0'), 3):45.0296561455,
(('1', '0', '0', '-1', '1', '0', '-1', '-1'), 1):275.607068161,
(('2', '2', '1', '2', '2', '1', '4', '1'), 2):10,
(('2', '2', '2', '2', '2', '2', '4', '2'), 1):-563.442698686,
(('0', '1', '-1', '1', '-1', '-1', '1', '4'), 2):78.9896473778,
(('2', '2', '1', '2', '2', '1', '4', '0'), 1):225.375194112,
(('1', '1', '0', '1', '4', '0', '0', '1'), 2):110.370512255,
(('1', '1', '1', '1', '0', '0', '1', '1'), 0):177.920900362,
(('2', '2', '2', '2', '0', '2', '2', '1'), 2):411.595838671,
(('4', '2', '0', '2', '0', '0', '4', '0'), 3):10,
(('0', '2', '0', '2', '0', '4', '1', '1'), 2):235.545349617,
(('1', '1', '1', '0', '1', '4', '0', '0'), 2):158.142193828,
(('-1', '2', '0', '4', '-1', '0', '-1', '4'), 2):55.5515178266,
(('0', '2', '4', '2', '0', '1', '1', '1'), 2):168.695843832,
(('0', '4', '1', '0', '0', '1', '0', '4'), 3):114.158640154,
(('1', '2', '1', '2', '1', '4', '1', '4'), 0):10,
(('1', '1', '1', '4', '1', '0', '0', '4'), 1):39.0697225591,
(('0', '0', '4', '0', '1', '4', '0', '0'), 1):7.9272451077,
(('-1', '1', '-1', '4', '-1', '-1', '-1', '4'), 3):170.887614535,
(('1', '1', '-1', '0', '-1', '-1', '4', '0'), 2):179.831330927,
(('2', '2', '1', '2', '1', '0', '2', '0'), 0):362.301641532,
(('4', '-1', '0', '2', '0', '-1', '2', '-1'), 2):179.180069723,
(('0', '2', '0', '2', '2', '2', '0', '0'), 0):294.405585993,
(('2', '-1', '-1', '4', '-1', '-1', '1', '-1'), 1):278.840105261,
(('0', '-1', '1', '1', '0', '-1', '4', '-1'), 1):97.8259746615,
(('1', '2', '2', '2', '2', '0', '0', '0'), 0):347.152717896,
(('0', '1', '-1', '0', '-1', '-1', '0', '1'), 1):249.073574602,
(('4', '4', '1', '4', '1', '1', '4', '4'), 3):42.0,
(('1', '1', '4', '-1', '4', '0', '-1', '-1'), 2):176.508632402,
(('-1', '4', '1', '1', '-1', '0', '-1', '1'), 3):67.7988226605,
(('4', '2', '1', '2', '0', '0', '4', '0'), 1):84.4043961508,
(('0', '2', '2', '2', '0', '2', '0', '4'), 0):174.836194846,
(('4', '1', '0', '1', '0', '0', '1', '0'), 1):68.9371846793,
(('1', '1', '4', '0', '0', '1', '0', '0'), 0):92.8761969802,
(('2', '4', '1', '2', '0', '4', '2', '4'), 1):10,
(('0', '0', '0', '1', '1', '0', '0', '0'), 2):210.393291916,
(('0', '1', '4', '1', '0', '1', '0', '0'), 3):178.903968304,
(('2', '2', '2', '4', '2', '2', '4', '4'), 1):87.0344778522,
(('0', '2', '0', '4', '0', '0', '1', '0'), 0):57.3681410662,
(('0', '0', '4', '-1', '1', '0', '-1', '-1'), 0):61.2507909276,
(('0', '-1', '1', '2', '1', '-1', '0', '-1'), 2):297.129580139,
(('2', '-1', '4', '2', '0', '-1', '1', '-1'), 1):182.588996244,
(('1', '2', '2', '2', '0', '4', '0', '0'), 0):98.6863860882,
(('2', '2', '4', '2', '1', '1', '0', '1'), 1):145.445309991,
(('1', '4', '-1', '1', '-1', '-1', '0', '1'), 3):107.461563444,
(('1', '2', '-1', '4', '-1', '-1', '4', '4'), 0):29.2054564565,
(('0', '1', '1', '4', '0', '1', '4', '4'), 2):3.6790988403,
(('2', '2', '0', '2', '2', '4', '2', '0'), 1):256.720439618,
(('1', '2', '2', '4', '2', '2', '0', '0'), 0):290,
(('-1', '4', '1', '1', '-1', '1', '-1', '0'), 3):133.851713608,
(('-1', '2', '0', '2', '-1', '1', '-1', '1'), 3):246.739962314,
(('2', '2', '2', '-1', '1', '0', '-1', '-1'), 3):357.039952866,
(('0', '2', '-1', '2', '-1', '-1', '2', '0'), 3):326.740873207,
(('1', '2', '2', '2', '1', '2', '4', '0'), 3):274.611755122,
(('2', '2', '4', '2', '2', '0', '2', '2'), 1):10,
(('2', '-1', '0', '-1', '4', '-1', '-1', '-1'), 1):74.6437747239,
(('4', '-1', '1', '2', '4', '-1', '4', '-1'), 3):76.1383114709,
(('-1', '4', '1', '-1', '-1', '1', '-1', '-1'), 3):198.745821591,
(('2', '2', '2', '2', '1', '0', '1', '0'), 3):272.849300416,
(('4', '2', '0', '2', '4', '1', '4', '1'), 0):171.567364088,
(('4', '2', '1', '2', '4', '1', '0', '2'), 0):287.226583868,
(('0', '4', '1', '-1', '0', '4', '-1', '-1'), 1):127.21805302,
(('0', '2', '0', '4', '0', '0', '1', '2'), 0):272.667620421,
(('2', '2', '2', '2', '4', '2', '2', '2'), 3):88.926562105,
(('0', '1', '0', '1', '4', '0', '1', '1'), 0):31.7229334442,
(('0', '2', '2', '-1', '2', '4', '-1', '-1'), 3):325.171894951,
(('1', '2', '2', '2', '2', '2', '4', '0'), 3):231.161418106,
(('1', '2', '1', '4', '1', '1', '0', '0'), 3):160.229965503,
(('2', '-1', '1', '2', '1', '-1', '2', '-1'), 1):335.091566433,
(('0', '2', '1', '2', '0', '4', '0', '0'), 3):195.557211446,
(('4', '1', '0', '0', '4', '0', '0', '0'), 2):36.9628339529,
(('0', '2', '1', '2', '0', '2', '2', '0'), 2):95.7020487953,
(('4', '2', '2', '2', '4', '0', '4', '2'), 1):10,
(('1', '1', '1', '4', '0', '1', '0', '0'), 0):38.5078401616,
(('1', '2', '1', '2', '1', '2', '1', '1'), 2):273.022048233,
(('1', '4', '1', '0', '1', '1', '0', '4'), 0):-6.0,
(('1', '1', '1', '1', '0', '4', '0', '0'), 1):42.2972501443,
(('4', '1', '1', '0', '0', '1', '4', '0'), 3):90.7375535054,
(('2', '2', '1', '-1', '1', '1', '-1', '-1'), 1):322.507562537,
(('0', '4', '0', '4', '0', '0', '1', '4'), 1):50,
(('4', '1', '0', '0', '4', '1', '4', '1'), 2):-10,
(('-1', '2', '1', '-1', '-1', '1', '-1', '-1'), 1):373.013300429,
(('2', '2', '1', '2', '1', '0', '0', '0'), 2):288.121522055,
(('1', '0', '0', '0', '0', '0', '1', '1'), 0):30.1123888154,
(('-1', '4', '1', '2', '-1', '1', '-1', '1'), 2):10,
(('1', '2', '1', '2', '1', '0', '0', '1'), 3):189.674030073,
(('4', '2', '2', '2', '2', '2', '2', '0'), 3):10,
(('2', '2', '2', '2', '2', '1', '0', '1'), 3):297.488885579,
(('2', '2', '4', '2', '4', '2', '2', '2'), 3):10,
(('4', '-1', '1', '2', '0', '-1', '0', '-1'), 1):-557.392774287,
(('-1', '2', '-1', '4', '-1', '-1', '-1', '4'), 2):0,
(('1', '4', '1', '1', '0', '0', '0', '1'), 3):-10,
(('1', '2', '0', '2', '4', '1', '1', '2'), 2):104.379706234,
(('2', '4', '1', '4', '1', '1', '4', '4'), 1):10,
(('0', '2', '2', '2', '1', '2', '0', '0'), 0):370.815923767,
(('0', '1', '0', '0', '4', '1', '0', '1'), 2):53.7498773126,
(('0', '1', '1', '1', '1', '1', '1', '4'), 2):10,
(('2', '2', '0', '-1', '4', '0', '-1', '-1'), 1):103.277556061,
(('0', '1', '4', '0', '0', '4', '0', '0'), 0):175.34867772,
(('1', '-1', '2', '4', '1', '-1', '0', '-1'), 3):49.2398332815,
(('0', '1', '-1', '1', '-1', '-1', '0', '0'), 2):270.23352793,
(('1', '1', '1', '0', '4', '1', '0', '0'), 0):99.7480821055,
(('0', '1', '0', '4', '0', '0', '4', '4'), 2):51.7986456524,
(('1', '0', '0', '4', '4', '0', '1', '4'), 2):10,
(('2', '-1', '0', '-1', '0', '-1', '-1', '-1'), 0):291.532853527,
(('-1', '4', '1', '0', '-1', '0', '-1', '4'), 0):0,
(('1', '1', '4', '1', '1', '0', '0', '0'), 3):11.764,
(('4', '0', '1', '0', '0', '0', '0', '0'), 1):39.0188779706,
(('1', '1', '0', '1', '0', '4', '1', '1'), 3):160.42223159,
(('0', '-1', '1', '4', '0', '-1', '0', '-1'), 1):241.595579502,
(('1', '-1', '-1', '2', '-1', '-1', '1', '-1'), 3):306.364583602,
(('0', '2', '4', '-1', '0', '0', '-1', '-1'), 0):295.205798827,
(('0', '4', '0', '1', '0', '1', '1', '4'), 3):-10,
(('0', '2', '2', '2', '0', '4', '2', '0'), 3):10,
(('1', '2', '0', '2', '0', '1', '4', '1'), 0):11.8,
(('2', '2', '0', '2', '1', '0', '0', '2'), 1):254.696926422,
(('0', '2', '4', '2', '1', '0', '1', '1'), 3):10,
(('4', '0', '1', '1', '4', '0', '4', '1'), 2):39.9680130773,
(('0', '2', '-1', '4', '-1', '-1', '4', '1'), 0):40.3020158743,
(('0', '4', '-1', '2', '-1', '-1', '0', '0'), 0):166.331421688,
(('4', '2', '0', '2', '4', '0', '1', '2'), 0):233.717429848,
(('1', '2', '2', '4', '1', '0', '4', '0'), 3):109.003003327,
(('1', '4', '0', '0', '1', '0', '0', '0'), 2):150.245950445,
(('-1', '1', '1', '-1', '-1', '0', '-1', '-1'), 3):226.849071306,
(('4', '-1', '2', '2', '2', '-1', '1', '-1'), 3):33.8,
(('2', '2', '-1', '2', '-1', '-1', '0', '4'), 3):289.873657581,
(('0', '2', '0', '2', '1', '2', '1', '2'), 2):145.592962858,
(('2', '2', '0', '2', '0', '1', '2', '2'), 2):353.268804024,
(('1', '1', '0', '0', '0', '4', '0', '0'), 0):66.0653567319,
(('1', '0', '-1', '1', '-1', '-1', '1', '0'), 3):275.000197097,
(('1', '1', '0', '1', '0', '0', '0', '4'), 3):28.4457932486,
(('1', '2', '1', '2', '1', '2', '2', '2'), 0):555.404461404,
(('0', '1', '4', '1', '0', '0', '0', '1'), 0):227.275476314,
(('0', '2', '2', '2', '1', '2', '0', '1'), 0):184.15502061,
(('4', '1', '-1', '1', '-1', '-1', '0', '1'), 1):217.78837612,
(('2', '2', '4', '-1', '1', '0', '-1', '-1'), 0):75.0969115293,
(('2', '2', '0', '2', '0', '2', '0', '2'), 2):10,
(('1', '2', '0', '2', '0', '0', '0', '0'), 1):269.019684984,
(('2', '4', '1', '2', '1', '4', '0', '4'), 2):10,
(('1', '4', '4', '2', '4', '4', '0', '0'), 1):10,
(('0', '0', '1', '1', '1', '0', '0', '1'), 0):106.453839397,
(('1', '4', '1', '-1', '1', '0', '-1', '-1'), 3):299.828269879,
(('4', '2', '2', '2', '1', '2', '2', '2'), 3):10,
(('0', '2', '2', '2', '0', '4', '0', '4'), 3):145.762686955,
(('0', '0', '-1', '4', '-1', '-1', '4', '0'), 3):0,
(('0', '2', '4', '2', '4', '4', '2', '1'), 2):185.77255075,
(('4', '2', '2', '2', '4', '1', '4', '4'), 3):10,
(('2', '4', '0', '2', '2', '0', '0', '0'), 1):185.432695088,
(('-1', '1', '4', '1', '-1', '0', '-1', '1'), 1):227.92580657,
(('2', '2', '4', '2', '0', '0', '2', '2'), 1):317.45929097,
(('0', '4', '-1', '4', '-1', '-1', '0', '4'), 3):143.278072163,
(('-1', '1', '0', '-1', '-1', '4', '-1', '-1'), 0):138.876173551,
(('1', '1', '1', '0', '4', '0', '1', '0'), 3):10,
(('0', '0', '1', '0', '0', '0', '0', '0'), 1):217.464213936,
(('1', '4', '-1', '4', '-1', '-1', '4', '4'), 3):-112.688533704,
(('-1', '0', '1', '0', '-1', '1', '-1', '1'), 0):80.9693203938,
(('1', '2', '0', '2', '1', '4', '1', '4'), 2):65.1502656589,
(('0', '2', '1', '2', '0', '0', '0', '1'), 0):242.490771816,
(('-1', '0', '1', '4', '-1', '1', '-1', '0'), 3):202.144886227,
(('1', '2', '2', '2', '1', '0', '0', '0'), 0):289.646981917,
(('1', '4', '1', '4', '1', '0', '0', '4'), 3):10,
(('1', '4', '2', '-1', '1', '4', '-1', '-1'), 2):320,
(('1', '4', '1', '0', '1', '1', '1', '0'), 1):193.020211413,
(('1', '0', '-1', '4', '-1', '-1', '0', '4'), 1):129.160290525,
(('0', '4', '1', '0', '1', '1', '0', '0'), 0):208.622984438,
(('1', '2', '0', '2', '1', '2', '1', '1'), 0):413.05519724,
(('4', '2', '4', '2', '4', '4', '0', '0'), 3):10,
(('0', '0', '0', '0', '0', '4', '1', '0'), 3):122.82499789,
(('1', '2', '4', '2', '1', '1', '0', '0'), 2):186.706851139,
(('2', '2', '2', '2', '1', '1', '2', '0'), 2):238.169179848,
(('0', '4', '2', '2', '0', '4', '0', '0'), 3):10,
(('4', '1', '1', '1', '0', '0', '0', '1'), 2):127.361995984,
(('0', '4', '1', '2', '0', '1', '1', '2'), 2):10,
(('4', '2', '2', '2', '0', '2', '0', '0'), 1):10,
(('1', '1', '1', '1', '1', '0', '4', '0'), 0):81.1182936671,
(('4', '1', '4', '4', '0', '0', '0', '0'), 0):50,
(('4', '0', '1', '-1', '4', '1', '-1', '-1'), 1):68.8032016572,
(('0', '1', '4', '1', '4', '0', '0', '0'), 2):93.2838230569,
(('4', '2', '1', '2', '1', '0', '4', '0'), 2):202.274581198,
(('1', '4', '1', '1', '1', '4', '1', '4'), 1):135.708114798,
(('2', '2', '0', '2', '1', '4', '1', '1'), 1):84.9767095101,
(('0', '2', '1', '2', '0', '0', '0', '1'), 1):10,
(('0', '1', '4', '1', '0', '4', '0', '1'), 3):100.878771641,
(('0', '2', '0', '2', '1', '1', '0', '2'), 2):362.903936645,
(('1', '2', '2', '2', '1', '1', '1', '0'), 3):296.779980821,
(('-1', '2', '4', '2', '-1', '0', '-1', '2'), 2):347.650950219,
(('2', '4', '1', '2', '1', '0', '2', '4'), 1):10,
(('0', '2', '0', '2', '0', '1', '1', '0'), 3):37.3237757827,
(('1', '1', '0', '0', '1', '1', '0', '0'), 2):151.720931125,
(('0', '0', '0', '1', '0', '0', '0', '0'), 1):250.182000129,
(('0', '0', '0', '4', '0', '0', '1', '1'), 3):0,
(('1', '1', '0', '0', '1', '4', '0', '0'), 0):0,
(('1', '2', '2', '2', '1', '0', '2', '2'), 3):327.37886657,
(('0', '-1', '2', '4', '1', '-1', '1', '-1'), 3):10,
(('0', '2', '0', '-1', '4', '0', '-1', '-1'), 3):10,
(('4', '2', '0', '-1', '1', '0', '-1', '-1'), 1):228.233507858,
(('1', '2', '1', '4', '1', '0', '1', '0'), 2):10,
(('0', '2', '4', '2', '0', '0', '1', '0'), 1):95.0305180105,
(('-1', '4', '-1', '2', '-1', '-1', '-1', '0'), 2):227.631201567,
(('1', '2', '0', '-1', '4', '2', '-1', '-1'), 2):296.619007638,
(('1', '4', '4', '1', '1', '4', '1', '1'), 2):-10,
(('-1', '4', '0', '1', '-1', '4', '-1', '0'), 2):10.9297798813,
(('2', '2', '4', '2', '0', '1', '0', '2'), 1):240.659796673,
(('1', '2', '2', '2', '1', '2', '4', '2'), 3):53.3886469151,
(('0', '1', '1', '0', '0', '4', '0', '0'), 2):142.955632588,
(('0', '1', '1', '0', '4', '1', '0', '0'), 3):218.077041748,
(('1', '1', '0', '1', '0', '1', '1', '1'), 0):211.444545291,
(('4', '2', '4', '-1', '4', '2', '-1', '-1'), 2):240,
(('0', '2', '2', '2', '2', '0', '1', '0'), 0):336.130635491,
(('0', '2', '2', '2', '0', '1', '0', '2'), 0):325.865399144,
(('0', '-1', '-1', '1', '-1', '-1', '4', '-1'), 0):212.374664126,
(('1', '-1', '4', '2', '2', '-1', '0', '-1'), 3):10,
(('0', '1', '0', '-1', '1', '0', '-1', '-1'), 1):300.854378698,
(('0', '-1', '1', '2', '0', '-1', '1', '-1'), 3):-8.77630432417,
(('1', '4', '2', '2', '1', '2', '1', '0'), 3):226.1758347,
(('0', '2', '1', '2', '4', '1', '4', '4'), 0):10,
(('2', '2', '2', '-1', '1', '1', '-1', '-1'), 1):296.264814148,
(('1', '4', '1', '2', '0', '0', '0', '4'), 1):10,
}
from sys import stdin
import random
# Q implementation
class Q:
def __init__(self, actions, epsilon=0.1, alpha=0.2, gamma=0.9):
self.q = {}
self.epsilon = epsilon
self.alpha = alpha
self.gamma = gamma
self.actions = actions
def getQ(self, state, action):
"""Try to get Q value from (state, action)
If not found return 0.0
"""
return self.q.get((state, action), 0.0)
def learnQ(self, state, action, reward, value):
oldv = self.q.get((state, action), None)
if oldv is None:
self.q[(state, action)] = reward
else:
self.q[(state, action)] = oldv + self.alpha * (value - oldv)
def chooseAction(self, state):
"""Lookup corresponding action values for state,
choose the maximum. If there are serveral with
same value, randomly choose.
Exploration: Randomly generate a value, if that value is less
than epsilon, then randomly add values to Q values for this state.
In this Q, exploration is added, but still using our learned Q values
as a basics foor choosing action.
"""
q = [self.getQ(state, a) for a in self.actions]
maxQ = max(q)
# Exploration
if random.random() < self.epsilon:
minQ = min(q); mag = max(abs(minQ), abs(maxQ))
# randomly add values to all the actions
q = [q[i] + random.random() * mag - .5 * mag for i in range(len(self.actions))]
# recalculate max of Q
maxQ = max(q)
count = q.count(maxQ)
if count > 1:
best = [i for i in range(len(self.actions)) if q[i] == maxQ]
i = random.choice(best)
else:
i = q.index(maxQ)
action = self.actions[i]
return action
def learn(self, prev_state, prev_action, reward, curr_state):
maxqnew = max([self.getQ(curr_state, a) for a in self.actions])
self.learnQ(prev_state, prev_action, reward, reward + self.gamma * maxqnew)
# Board
W = 30
H = 20
# Bot
MOVES = [
'LEFT', # 0
'RIGHT', # 1
'UP', # 2
'DOWN' # 3
]
FATAL_MOVES = [
[0, 1],
[1, 0],
[2, 3],
[3, 2]
]
# Value points
#POINTS = {
# '-2': 1000, # Oppo
# '-1': 100, # Out of board
# '0' : 10, # Empty
# '1' : 10, # Stable
# '2' : 50, # Unstable
# '3' : 15, # Oppo's stable
# '4' : 50 # Oppo's unstable
#}
POINTS = {
'-1': 100, # Oppo + Out of board (-2 => -1)
'0' : 10, # Empty + Oppo's stable (3 => 0)
'1' : 10, # Stable
'2' : 50, # Unstable
'4' : 50 # Oppo's unstable
}
# Vision
SIGHT = 3
class Board():
def __init__(self):
self.state = [['0' for y in range(W)] for x in range(H)]
# default
self.stable = '1'
self.unstable = '2'
def view(self):
for i in range(H):
print ''.join(self.state[i])
def updateState(self, inputs):
for i in range(H):
self.state[i] = list(inputs.readline()[:-1])
def getCell(self, cell):
"""Get specific corresponding to cell
Map value if necessary into keys of POINTS"""
x, y = cell
# Out of board
if x not in range(H):
return '-1'
if y not in range(W):
return '-1'
# Map value
value = self.state[x][y]
if value == '0':
return '0'
elif value == self.stable:
return '1'
elif value == self.unstable:
return '2'
elif value in ['1', '3', '5', '7']:
#return '3'
return '0'
elif value in ['2', '4', '6', '8']:
return '4'
else:
# opponents
#return '-2'
return '-1'
def getRadar(self, cells):
points = {}
max_val = None
max_point = None
for cell in cells:
value = self.getCell(cell)
if value not in points:
points[value] = POINTS[value]
else:
points[value] += POINTS[value]
if max_val is None:
max_val = value
if max_point is None:
max_point = points[value]
if points[value] > max_point:
max_val = value
max_point = points[value]
return max_val
def calcState(self, x, y, sight=SIGHT):
"""Make an overview of surrounded environment
"""
left = [[x, w] for w in range(y-sight, y)]
right = [[x, w] for w in range(y, y+sight+1)]
up = [[h, y] for h in range(x-sight, x)]
down = [[h, y] for h in range(x, x+sight+1)]
left_up = []
for h in range(x-sight, x):
for w in range(y-sight, y):
left_up.append([h, w])
right_up = []
for h in range(x-sight, x):
for w in range(y, y+sight+1):
right_up.append([h, w])
left_down = []
for h in range(x, x+sight+1):
for w in range(y-sight, y):
left_down.append([h, w])
right_down = []
for h in range(x, x+sight+1):
for w in range(y, y+sight+1):
right_down.append([h, w])
return tuple([self.getRadar(direction) for direction in [
left, right, up, down,
left_up, right_up, left_down, right_down
]])
class Bot():
def __init__(self, index, x=-1, y=-1):
self.id = index
self.x = x
self.y = y
self.q = None
self.last_action = None
def chooseAction(self, board):
# Possible moves limit
possible = [0, 1, 2, 3]
if self.y == 0:
# can't left
possible.remove(0)
if self.y == W-1:
# can't right
possible.remove(1)
if self.x == 0:
# can't up
possible.remove(2)
if self.x == H-1:
# can't down
possible.remove(3)
left = board.getCell([self.x, self.y-1])
if left == '2':
if 0 in possible:
possible.remove(0)
right = board.getCell([self.x, self.y+1])
if right == '2':
if 1 in possible:
possible.remove(1)
up = board.getCell([self.x-1, self.y])
if up == '2':
if 2 in possible:
possible.remove(2)
down = board.getCell([self.x+1, self.y])
if down == '2':
if 3 in possible:
possible.remove(3)
# use Q
curr_state = board.calcState(self.x, self.y)
move = self.q.chooseAction(curr_state)
# Prevent reversing and out of board
# If still hard-headed go to death -> random (not fatal)
if ([move, self.last_action] in FATAL_MOVES) or (move not in possible):
possible = filter(lambda a: [a, self.last_action] not in FATAL_MOVES, possible)
move = random.choice(possible)
# Last try
if move is None:
move = random.choice([0, 1, 2, 3])
# Update last move
self.last_action = move
return MOVES[move]
def main():
board = Board()
## Get initial values from stdin
# Number of players
n_players = int(stdin.readline())
# Create a list of bots with index 1->n_players
bots = []
for i in range(n_players):
bots.append(Bot(i + 1))
# Choose my bot from my bot's index
bot = bots[int(stdin.readline()) - 1]
if bot.id == 1:
board.stable = '1'
board.unstable = '2'
elif bot.id == 2:
board.stable = '3'
board.unstable = '4'
elif bot.id == 3:
board.stable = '5'
board.unstable = '6'
elif bot.id == 4:
board.stable = '7'
board.unstable = '8'
# Initialize q
bot.q = Q(actions=range(len(MOVES)))
bot.q.q = Q_TRAINED
# Update board adapts to world
board.updateState(stdin)
# Read position of bots (corresponding to bot's index)
for i in range(n_players):
bots[i].x, bots[i].y = map(int, stdin.readline().split())
while True:
# Actuator
print bot.chooseAction(board)
# Update new board state from stdin
board.updateState(stdin)
# Update bot position
for i in range(n_players):
bots[i].x, bots[i].y = map(int, stdin.readline().split())
if __name__ == '__main__':
main()
|
import styled from "styled-components";
export const Category = styled.section`
margin: 0 auto;
margin-bottom: 2%;
& > h2 {
padding-left: 1.25%;
}
@media (max-width: ${({ theme }) => theme.mobile}) {
margin-bottom: 5%;
}
`;
export const Contact = styled.address`
align-items: end;
display: grid;
grid-template-areas:
"email name github"
"phone site linkedin";
grid-template-columns: fit-content(125px) 1fr fit-content(125px);
margin: 0 auto;
width: 95%;
& > .email {
grid-area: email;
}
& > .name {
font-weight: bold;
font-size: 1.5rem;
grid-area: name;
text-align: center;
}
& > .github {
grid-area: github;
text-align: end;
}
& > .linkedin {
grid-area: linkedin;
text-align: end;
}
& > .phone {
grid-area: phone;
}
& > .site {
grid-area: site;
text-align: center;
text-transform: lowercase;
}
@media (max-width: ${({ theme }) => theme.mobile}) {
align-items: end;
display: grid;
grid-template-areas:
"email name github"
"phone site linkedin";
grid-template-columns: 0.6fr 1fr 0.6fr;
}
`;
export const Education = styled.article`
align-items: end;
display: grid;
grid-template-areas:
"location college date"
"degree degree degree";
grid-template-columns: 0.35fr 0.7fr 0.35fr;
margin: 0 auto;
width: 95%;
& > .location {
font-weight: bold;
grid-area: location;
}
& > .college {
font-weight: bold;
grid-area: college;
text-align: center;
}
& > .date {
font-weight: bold;
grid-area: date;
text-align: end;
}
& > .degree {
grid-area: degree;
text-align: center;
}
button {
grid-column-end: span 4;
}
@media (max-width: ${({ theme }) => theme.mobile}) {
align-items: end;
display: grid;
grid-template-areas:
"location college date"
"degree degree degree";
grid-template-columns: 0.35fr 0.7fr 0.35fr;
}
`;
export const Employment = styled.article`
display: grid;
grid-template-areas:
"job company date"
"list . ."
"button . .";
grid-template-columns: auto 1fr auto auto;
margin: 0 auto;
width: 95%;
& > .job {
font-weight: bold;
grid-area: job;
}
& > .company {
font-weight: bold;
grid-area: company;
text-align: center;
}
& > .date {
font-weight: bold;
grid-area: date;
text-align: end;
}
& > .list {
grid-area: list;
grid-column-end: span 4;
}
button {
grid-area: button;
grid-column-end: span 4;
}
@media (max-width: ${({ theme }) => theme.mobile}) {
display: grid;
grid-template-areas:
"job company date"
"list . ."
"button . .";
grid-template-columns: 0.5fr 1fr 0.5fr;
}
`;
export const Project = styled.article`
display: flex;
flex-direction: column;
margin-top: 2%;
margin: 0 auto;
width: 95%;
& > .title {
font-weight: bold;
}
& > .link {
font-style: italic;
line-height: 1;
text-transform: lowercase;
}
`;
export const Technical = styled.article`
display: flex;
flex-direction: column;
margin: 0 auto;
width: 95%;
`;
|
import os
from discord.ext import commands
@commands.command(help="Displays the URL to register the current guild.")
async def register(ctx):
if ctx.guild is None:
await ctx.send(f"A siteadmin can register a guild at: {os.getenv('META_SERVICE_BASE_URL', '')}/guilds/new")
else:
await ctx.send(f"A siteadmin can register this guild at: {os.getenv('META_SERVICE_BASE_URL', '')}/guilds/new?guildid={ctx.guild.id}")
|
/**
* fakerator v0.3.0
* https://github.com/icebob/fakerator
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Fakerator"] = factory();
else
root["Fakerator"] = factory();
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _isNil = __webpack_require__(1);
var _isNil2 = _interopRequireDefault(_isNil);
var _isArray = __webpack_require__(2);
var _isArray2 = _interopRequireDefault(_isArray);
var _isFunction = __webpack_require__(3);
var _isFunction2 = _interopRequireDefault(_isFunction);
var _isObject = __webpack_require__(4);
var _isObject2 = _interopRequireDefault(_isObject);
var _mergeWith = __webpack_require__(5);
var _mergeWith2 = _interopRequireDefault(_mergeWith);
var _fakerator = __webpack_require__(118);
var _fakerator2 = _interopRequireDefault(_fakerator);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = function () {
var locale = __webpack_require__(166);
var fbLocale = __webpack_require__(176);
locale = (0, _mergeWith2.default)(locale, fbLocale, function (objValue) {
if ((0, _isArray2.default)(objValue) || (0, _isFunction2.default)(objValue)) return objValue;
if (!(0, _isNil2.default)(objValue) && !(0, _isObject2.default)(objValue)) return objValue;
});
return new _fakerator2.default(locale);
};
/***/ },
/* 1 */
/***/ function(module, exports) {
/**
* Checks if `value` is `null` or `undefined`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
* @example
*
* _.isNil(null);
* // => true
*
* _.isNil(void 0);
* // => true
*
* _.isNil(NaN);
* // => false
*/
function isNil(value) {
return value == null;
}
module.exports = isNil;
/***/ },
/* 2 */
/***/ function(module, exports) {
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @type {Function}
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
module.exports = isArray;
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(4);
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8 which returns 'object' for typed array and weak map constructors,
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
module.exports = isFunction;
/***/ },
/* 4 */
/***/ function(module, exports) {
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
module.exports = isObject;
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
var baseMerge = __webpack_require__(6),
createAssigner = __webpack_require__(110);
/**
* This method is like `_.merge` except that it accepts `customizer` which
* is invoked to produce the merged values of the destination and source
* properties. If `customizer` returns `undefined`, merging is handled by the
* method instead. The `customizer` is invoked with seven arguments:
* (objValue, srcValue, key, object, source, stack).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} sources The source objects.
* @param {Function} customizer The function to customize assigned values.
* @returns {Object} Returns `object`.
* @example
*
* function customizer(objValue, srcValue) {
* if (_.isArray(objValue)) {
* return objValue.concat(srcValue);
* }
* }
*
* var object = {
* 'fruits': ['apple'],
* 'vegetables': ['beet']
* };
*
* var other = {
* 'fruits': ['banana'],
* 'vegetables': ['carrot']
* };
*
* _.mergeWith(object, other, customizer);
* // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
*/
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
baseMerge(object, source, srcIndex, customizer);
});
module.exports = mergeWith;
/***/ },
/* 6 */
/***/ function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(7),
arrayEach = __webpack_require__(46),
assignMergeValue = __webpack_require__(47),
baseMergeDeep = __webpack_require__(48),
isArray = __webpack_require__(2),
isObject = __webpack_require__(4),
isTypedArray = __webpack_require__(104),
keysIn = __webpack_require__(106);
/**
* The base implementation of `_.merge` without support for multiple sources.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
if (!(isArray(source) || isTypedArray(source))) {
var props = keysIn(source);
}
arrayEach(props || source, function(srcValue, key) {
if (props) {
key = srcValue;
srcValue = source[key];
}
if (isObject(srcValue)) {
stack || (stack = new Stack);
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
var newValue = customizer
? customizer(object[key], srcValue, (key + ''), object, source, stack)
: undefined;
if (newValue === undefined) {
newValue = srcValue;
}
assignMergeValue(object, key, newValue);
}
});
}
module.exports = baseMerge;
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(8),
stackClear = __webpack_require__(16),
stackDelete = __webpack_require__(17),
stackGet = __webpack_require__(18),
stackHas = __webpack_require__(19),
stackSet = __webpack_require__(20);
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Stack(entries) {
this.__data__ = new ListCache(entries);
}
// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;
module.exports = Stack;
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
var listCacheClear = __webpack_require__(9),
listCacheDelete = __webpack_require__(10),
listCacheGet = __webpack_require__(13),
listCacheHas = __webpack_require__(14),
listCacheSet = __webpack_require__(15);
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
module.exports = ListCache;
/***/ },
/* 9 */
/***/ function(module, exports) {
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
module.exports = listCacheClear;
/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(11);
/** Used for built-in method references. */
var arrayProto = Array.prototype;
/** Built-in value references. */
var splice = arrayProto.splice;
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
return true;
}
module.exports = listCacheDelete;
/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {
var eq = __webpack_require__(12);
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to search.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
module.exports = assocIndexOf;
/***/ },
/* 12 */
/***/ function(module, exports) {
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'user': 'fred' };
* var other = { 'user': 'fred' };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
module.exports = eq;
/***/ },
/* 13 */
/***/ function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(11);
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
module.exports = listCacheGet;
/***/ },
/* 14 */
/***/ function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(11);
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
module.exports = listCacheHas;
/***/ },
/* 15 */
/***/ function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(11);
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
module.exports = listCacheSet;
/***/ },
/* 16 */
/***/ function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(8);
/**
* Removes all key-value entries from the stack.
*
* @private
* @name clear
* @memberOf Stack
*/
function stackClear() {
this.__data__ = new ListCache;
}
module.exports = stackClear;
/***/ },
/* 17 */
/***/ function(module, exports) {
/**
* Removes `key` and its value from the stack.
*
* @private
* @name delete
* @memberOf Stack
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function stackDelete(key) {
return this.__data__['delete'](key);
}
module.exports = stackDelete;
/***/ },
/* 18 */
/***/ function(module, exports) {
/**
* Gets the stack value for `key`.
*
* @private
* @name get
* @memberOf Stack
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function stackGet(key) {
return this.__data__.get(key);
}
module.exports = stackGet;
/***/ },
/* 19 */
/***/ function(module, exports) {
/**
* Checks if a stack value for `key` exists.
*
* @private
* @name has
* @memberOf Stack
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function stackHas(key) {
return this.__data__.has(key);
}
module.exports = stackHas;
/***/ },
/* 20 */
/***/ function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(8),
MapCache = __webpack_require__(21);
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/**
* Sets the stack `key` to `value`.
*
* @private
* @name set
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var cache = this.__data__;
if (cache instanceof ListCache && cache.__data__.length == LARGE_ARRAY_SIZE) {
cache = this.__data__ = new MapCache(cache.__data__);
}
cache.set(key, value);
return this;
}
module.exports = stackSet;
/***/ },
/* 21 */
/***/ function(module, exports, __webpack_require__) {
var mapCacheClear = __webpack_require__(22),
mapCacheDelete = __webpack_require__(40),
mapCacheGet = __webpack_require__(43),
mapCacheHas = __webpack_require__(44),
mapCacheSet = __webpack_require__(45);
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
module.exports = MapCache;
/***/ },
/* 22 */
/***/ function(module, exports, __webpack_require__) {
var Hash = __webpack_require__(23),
ListCache = __webpack_require__(8),
Map = __webpack_require__(39);
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
module.exports = mapCacheClear;
/***/ },
/* 23 */
/***/ function(module, exports, __webpack_require__) {
var hashClear = __webpack_require__(24),
hashDelete = __webpack_require__(35),
hashGet = __webpack_require__(36),
hashHas = __webpack_require__(37),
hashSet = __webpack_require__(38);
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
module.exports = Hash;
/***/ },
/* 24 */
/***/ function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(25);
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
}
module.exports = hashClear;
/***/ },
/* 25 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26);
/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');
module.exports = nativeCreate;
/***/ },
/* 26 */
/***/ function(module, exports, __webpack_require__) {
var baseIsNative = __webpack_require__(27),
getValue = __webpack_require__(34);
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
module.exports = getNative;
/***/ },
/* 27 */
/***/ function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3),
isHostObject = __webpack_require__(28),
isMasked = __webpack_require__(29),
isObject = __webpack_require__(4),
toSource = __webpack_require__(33);
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = Function.prototype.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
module.exports = baseIsNative;
/***/ },
/* 28 */
/***/ function(module, exports) {
/**
* Checks if `value` is a host object in IE < 9.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
function isHostObject(value) {
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var result = false;
if (value != null && typeof value.toString != 'function') {
try {
result = !!(value + '');
} catch (e) {}
}
return result;
}
module.exports = isHostObject;
/***/ },
/* 29 */
/***/ function(module, exports, __webpack_require__) {
var coreJsData = __webpack_require__(30);
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
module.exports = isMasked;
/***/ },
/* 30 */
/***/ function(module, exports, __webpack_require__) {
var root = __webpack_require__(31);
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
module.exports = coreJsData;
/***/ },
/* 31 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var checkGlobal = __webpack_require__(32);
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(typeof global == 'object' && global);
/** Detect free variable `self`. */
var freeSelf = checkGlobal(typeof self == 'object' && self);
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(typeof this == 'object' && this);
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
module.exports = root;
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 32 */
/***/ function(module, exports) {
/**
* Checks if `value` is a global object.
*
* @private
* @param {*} value The value to check.
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
*/
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
module.exports = checkGlobal;
/***/ },
/* 33 */
/***/ function(module, exports) {
/** Used to resolve the decompiled source of functions. */
var funcToString = Function.prototype.toString;
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
module.exports = toSource;
/***/ },
/* 34 */
/***/ function(module, exports) {
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
module.exports = getValue;
/***/ },
/* 35 */
/***/ function(module, exports) {
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
return this.has(key) && delete this.__data__[key];
}
module.exports = hashDelete;
/***/ },
/* 36 */
/***/ function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(25);
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
module.exports = hashGet;
/***/ },
/* 37 */
/***/ function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(25);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
}
module.exports = hashHas;
/***/ },
/* 38 */
/***/ function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(25);
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
return this;
}
module.exports = hashSet;
/***/ },
/* 39 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26),
root = __webpack_require__(31);
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');
module.exports = Map;
/***/ },
/* 40 */
/***/ function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(41);
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
return getMapData(this, key)['delete'](key);
}
module.exports = mapCacheDelete;
/***/ },
/* 41 */
/***/ function(module, exports, __webpack_require__) {
var isKeyable = __webpack_require__(42);
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
module.exports = getMapData;
/***/ },
/* 42 */
/***/ function(module, exports) {
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
module.exports = isKeyable;
/***/ },
/* 43 */
/***/ function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(41);
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
module.exports = mapCacheGet;
/***/ },
/* 44 */
/***/ function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(41);
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
module.exports = mapCacheHas;
/***/ },
/* 45 */
/***/ function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(41);
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
getMapData(this, key).set(key, value);
return this;
}
module.exports = mapCacheSet;
/***/ },
/* 46 */
/***/ function(module, exports) {
/**
* A specialized version of `_.forEach` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, iteratee) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
module.exports = arrayEach;
/***/ },
/* 47 */
/***/ function(module, exports, __webpack_require__) {
var eq = __webpack_require__(12);
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignMergeValue(object, key, value) {
if ((value !== undefined && !eq(object[key], value)) ||
(typeof key == 'number' && value === undefined && !(key in object))) {
object[key] = value;
}
}
module.exports = assignMergeValue;
/***/ },
/* 48 */
/***/ function(module, exports, __webpack_require__) {
var assignMergeValue = __webpack_require__(47),
baseClone = __webpack_require__(49),
copyArray = __webpack_require__(70),
isArguments = __webpack_require__(59),
isArray = __webpack_require__(2),
isArrayLikeObject = __webpack_require__(60),
isFunction = __webpack_require__(3),
isObject = __webpack_require__(4),
isPlainObject = __webpack_require__(103),
isTypedArray = __webpack_require__(104),
toPlainObject = __webpack_require__(105);
/**
* A specialized version of `baseMerge` for arrays and objects which performs
* deep merges and tracks traversed objects enabling objects with circular
* references to be merged.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {string} key The key of the value to merge.
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = object[key],
srcValue = source[key],
stacked = stack.get(srcValue);
if (stacked) {
assignMergeValue(object, key, stacked);
return;
}
var newValue = customizer
? customizer(objValue, srcValue, (key + ''), object, source, stack)
: undefined;
var isCommon = newValue === undefined;
if (isCommon) {
newValue = srcValue;
if (isArray(srcValue) || isTypedArray(srcValue)) {
if (isArray(objValue)) {
newValue = objValue;
}
else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
}
else {
isCommon = false;
newValue = baseClone(srcValue, true);
}
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
if (isArguments(objValue)) {
newValue = toPlainObject(objValue);
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
isCommon = false;
newValue = baseClone(srcValue, true);
}
else {
newValue = objValue;
}
}
else {
isCommon = false;
}
}
stack.set(srcValue, newValue);
if (isCommon) {
// Recursively merge objects and arrays (susceptible to call stack limits).
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
}
stack['delete'](srcValue);
assignMergeValue(object, key, newValue);
}
module.exports = baseMergeDeep;
/***/ },
/* 49 */
/***/ function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(7),
arrayEach = __webpack_require__(46),
assignValue = __webpack_require__(50),
baseAssign = __webpack_require__(51),
cloneBuffer = __webpack_require__(69),
copyArray = __webpack_require__(70),
copySymbols = __webpack_require__(71),
getAllKeys = __webpack_require__(74),
getTag = __webpack_require__(77),
initCloneArray = __webpack_require__(82),
initCloneByTag = __webpack_require__(83),
initCloneObject = __webpack_require__(98),
isArray = __webpack_require__(2),
isBuffer = __webpack_require__(100),
isHostObject = __webpack_require__(28),
isObject = __webpack_require__(4),
keys = __webpack_require__(53);
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;
/**
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
* traversed objects.
*
* @private
* @param {*} value The value to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @param {boolean} [isFull] Specify a clone including symbols.
* @param {Function} [customizer] The function to customize cloning.
* @param {string} [key] The key of `value`.
* @param {Object} [object] The parent object of `value`.
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
* @returns {*} Returns the cloned value.
*/
function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
var result;
if (customizer) {
result = object ? customizer(value, key, object, stack) : customizer(value);
}
if (result !== undefined) {
return result;
}
if (!isObject(value)) {
return value;
}
var isArr = isArray(value);
if (isArr) {
result = initCloneArray(value);
if (!isDeep) {
return copyArray(value, result);
}
} else {
var tag = getTag(value),
isFunc = tag == funcTag || tag == genTag;
if (isBuffer(value)) {
return cloneBuffer(value, isDeep);
}
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
if (isHostObject(value)) {
return object ? value : {};
}
result = initCloneObject(isFunc ? {} : value);
if (!isDeep) {
return copySymbols(value, baseAssign(result, value));
}
} else {
if (!cloneableTags[tag]) {
return object ? value : {};
}
result = initCloneByTag(value, tag, baseClone, isDeep);
}
}
// Check for circular references and return its corresponding clone.
stack || (stack = new Stack);
var stacked = stack.get(value);
if (stacked) {
return stacked;
}
stack.set(value, result);
if (!isArr) {
var props = isFull ? getAllKeys(value) : keys(value);
}
// Recursively populate clone (susceptible to call stack limits).
arrayEach(props || value, function(subValue, key) {
if (props) {
key = subValue;
subValue = value[key];
}
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
});
return result;
}
module.exports = baseClone;
/***/ },
/* 50 */
/***/ function(module, exports, __webpack_require__) {
var eq = __webpack_require__(12);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
var objValue = object[key];
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
}
module.exports = assignValue;
/***/ },
/* 51 */
/***/ function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(52),
keys = __webpack_require__(53);
/**
* The base implementation of `_.assign` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssign(object, source) {
return object && copyObject(source, keys(source), object);
}
module.exports = baseAssign;
/***/ },
/* 52 */
/***/ function(module, exports, __webpack_require__) {
var assignValue = __webpack_require__(50);
/**
* Copies properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy properties from.
* @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
*/
function copyObject(source, props, object, customizer) {
object || (object = {});
var index = -1,
length = props.length;
while (++index < length) {
var key = props[index];
var newValue = customizer
? customizer(object[key], source[key], key, object, source)
: source[key];
assignValue(object, key, newValue);
}
return object;
}
module.exports = copyObject;
/***/ },
/* 53 */
/***/ function(module, exports, __webpack_require__) {
var baseHas = __webpack_require__(54),
baseKeys = __webpack_require__(56),
indexKeys = __webpack_require__(57),
isArrayLike = __webpack_require__(61),
isIndex = __webpack_require__(67),
isPrototype = __webpack_require__(68);
/**
* Creates an array of the own enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects. See the
* [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
* for more details.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keys(new Foo);
* // => ['a', 'b'] (iteration order is not guaranteed)
*
* _.keys('hi');
* // => ['0', '1']
*/
function keys(object) {
var isProto = isPrototype(object);
if (!(isProto || isArrayLike(object))) {
return baseKeys(object);
}
var indexes = indexKeys(object),
skipIndexes = !!indexes,
result = indexes || [],
length = result.length;
for (var key in object) {
if (baseHas(object, key) &&
!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
!(isProto && key == 'constructor')) {
result.push(key);
}
}
return result;
}
module.exports = keys;
/***/ },
/* 54 */
/***/ function(module, exports, __webpack_require__) {
var getPrototype = __webpack_require__(55);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.has` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHas(object, key) {
// Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
// that are composed entirely of index properties, return `false` for
// `hasOwnProperty` checks of them.
return object != null &&
(hasOwnProperty.call(object, key) ||
(typeof object == 'object' && key in object && getPrototype(object) === null));
}
module.exports = baseHas;
/***/ },
/* 55 */
/***/ function(module, exports) {
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetPrototype = Object.getPrototypeOf;
/**
* Gets the `[[Prototype]]` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {null|Object} Returns the `[[Prototype]]`.
*/
function getPrototype(value) {
return nativeGetPrototype(Object(value));
}
module.exports = getPrototype;
/***/ },
/* 56 */
/***/ function(module, exports) {
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = Object.keys;
/**
* The base implementation of `_.keys` which doesn't skip the constructor
* property of prototypes or treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeys(object) {
return nativeKeys(Object(object));
}
module.exports = baseKeys;
/***/ },
/* 57 */
/***/ function(module, exports, __webpack_require__) {
var baseTimes = __webpack_require__(58),
isArguments = __webpack_require__(59),
isArray = __webpack_require__(2),
isLength = __webpack_require__(64),
isString = __webpack_require__(66);
/**
* Creates an array of index keys for `object` values of arrays,
* `arguments` objects, and strings, otherwise `null` is returned.
*
* @private
* @param {Object} object The object to query.
* @returns {Array|null} Returns index keys, else `null`.
*/
function indexKeys(object) {
var length = object ? object.length : undefined;
if (isLength(length) &&
(isArray(object) || isString(object) || isArguments(object))) {
return baseTimes(length, String);
}
return null;
}
module.exports = indexKeys;
/***/ },
/* 58 */
/***/ function(module, exports) {
/**
* The base implementation of `_.times` without support for iteratee shorthands
* or max array length checks.
*
* @private
* @param {number} n The number of times to invoke `iteratee`.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the array of results.
*/
function baseTimes(n, iteratee) {
var index = -1,
result = Array(n);
while (++index < n) {
result[index] = iteratee(index);
}
return result;
}
module.exports = baseTimes;
/***/ },
/* 59 */
/***/ function(module, exports, __webpack_require__) {
var isArrayLikeObject = __webpack_require__(60);
/** `Object#toString` result references. */
var argsTag = '[object Arguments]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/**
* Checks if `value` is likely an `arguments` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
* // => true
*
* _.isArguments([1, 2, 3]);
* // => false
*/
function isArguments(value) {
// Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
}
module.exports = isArguments;
/***/ },
/* 60 */
/***/ function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(61),
isObjectLike = __webpack_require__(65);
/**
* This method is like `_.isArrayLike` except that it also checks if `value`
* is an object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array-like object,
* else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
* // => true
*
* _.isArrayLikeObject(document.body.children);
* // => true
*
* _.isArrayLikeObject('abc');
* // => false
*
* _.isArrayLikeObject(_.noop);
* // => false
*/
function isArrayLikeObject(value) {
return isObjectLike(value) && isArrayLike(value);
}
module.exports = isArrayLikeObject;
/***/ },
/* 61 */
/***/ function(module, exports, __webpack_require__) {
var getLength = __webpack_require__(62),
isFunction = __webpack_require__(3),
isLength = __webpack_require__(64);
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && isLength(getLength(value)) && !isFunction(value);
}
module.exports = isArrayLike;
/***/ },
/* 62 */
/***/ function(module, exports, __webpack_require__) {
var baseProperty = __webpack_require__(63);
/**
* Gets the "length" property value of `object`.
*
* **Note:** This function is used to avoid a
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
* Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
* @returns {*} Returns the "length" value.
*/
var getLength = baseProperty('length');
module.exports = getLength;
/***/ },
/* 63 */
/***/ function(module, exports) {
/**
* The base implementation of `_.property` without support for deep paths.
*
* @private
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function baseProperty(key) {
return function(object) {
return object == null ? undefined : object[key];
};
}
module.exports = baseProperty;
/***/ },
/* 64 */
/***/ function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This function is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length,
* else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' &&
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
module.exports = isLength;
/***/ },
/* 65 */
/***/ function(module, exports) {
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
module.exports = isObjectLike;
/***/ },
/* 66 */
/***/ function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(2),
isObjectLike = __webpack_require__(65);
/** `Object#toString` result references. */
var stringTag = '[object String]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isString('abc');
* // => true
*
* _.isString(1);
* // => false
*/
function isString(value) {
return typeof value == 'string' ||
(!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
}
module.exports = isString;
/***/ },
/* 67 */
/***/ function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(typeof value == 'number' || reIsUint.test(value)) &&
(value > -1 && value % 1 == 0 && value < length);
}
module.exports = isIndex;
/***/ },
/* 68 */
/***/ function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
module.exports = isPrototype;
/***/ },
/* 69 */
/***/ function(module, exports) {
/**
* Creates a clone of `buffer`.
*
* @private
* @param {Buffer} buffer The buffer to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Buffer} Returns the cloned buffer.
*/
function cloneBuffer(buffer, isDeep) {
if (isDeep) {
return buffer.slice();
}
var result = new buffer.constructor(buffer.length);
buffer.copy(result);
return result;
}
module.exports = cloneBuffer;
/***/ },
/* 70 */
/***/ function(module, exports) {
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function copyArray(source, array) {
var index = -1,
length = source.length;
array || (array = Array(length));
while (++index < length) {
array[index] = source[index];
}
return array;
}
module.exports = copyArray;
/***/ },
/* 71 */
/***/ function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(52),
getSymbols = __webpack_require__(72);
/**
* Copies own symbol properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbols(source, object) {
return copyObject(source, getSymbols(source), object);
}
module.exports = copySymbols;
/***/ },
/* 72 */
/***/ function(module, exports, __webpack_require__) {
var stubArray = __webpack_require__(73);
/** Built-in value references. */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
/**
* Creates an array of the own enumerable symbol properties of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
function getSymbols(object) {
// Coerce `object` to an object to avoid non-object errors in V8.
// See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
return getOwnPropertySymbols(Object(object));
}
// Fallback for IE < 11.
if (!getOwnPropertySymbols) {
getSymbols = stubArray;
}
module.exports = getSymbols;
/***/ },
/* 73 */
/***/ function(module, exports) {
/**
* A method that returns a new empty array.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {Array} Returns the new empty array.
* @example
*
* var arrays = _.times(2, _.stubArray);
*
* console.log(arrays);
* // => [[], []]
*
* console.log(arrays[0] === arrays[1]);
* // => false
*/
function stubArray() {
return [];
}
module.exports = stubArray;
/***/ },
/* 74 */
/***/ function(module, exports, __webpack_require__) {
var baseGetAllKeys = __webpack_require__(75),
getSymbols = __webpack_require__(72),
keys = __webpack_require__(53);
/**
* Creates an array of own enumerable property names and symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names and symbols.
*/
function getAllKeys(object) {
return baseGetAllKeys(object, keys, getSymbols);
}
module.exports = getAllKeys;
/***/ },
/* 75 */
/***/ function(module, exports, __webpack_require__) {
var arrayPush = __webpack_require__(76),
isArray = __webpack_require__(2);
/**
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
* symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Function} keysFunc The function to get the keys of `object`.
* @param {Function} symbolsFunc The function to get the symbols of `object`.
* @returns {Array} Returns the array of property names and symbols.
*/
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
var result = keysFunc(object);
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}
module.exports = baseGetAllKeys;
/***/ },
/* 76 */
/***/ function(module, exports) {
/**
* Appends the elements of `values` to `array`.
*
* @private
* @param {Array} array The array to modify.
* @param {Array} values The values to append.
* @returns {Array} Returns `array`.
*/
function arrayPush(array, values) {
var index = -1,
length = values.length,
offset = array.length;
while (++index < length) {
array[offset + index] = values[index];
}
return array;
}
module.exports = arrayPush;
/***/ },
/* 77 */
/***/ function(module, exports, __webpack_require__) {
var DataView = __webpack_require__(78),
Map = __webpack_require__(39),
Promise = __webpack_require__(79),
Set = __webpack_require__(80),
WeakMap = __webpack_require__(81),
toSource = __webpack_require__(33);
/** `Object#toString` result references. */
var mapTag = '[object Map]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
setTag = '[object Set]',
weakMapTag = '[object WeakMap]';
var dataViewTag = '[object DataView]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
mapCtorString = toSource(Map),
promiseCtorString = toSource(Promise),
setCtorString = toSource(Set),
weakMapCtorString = toSource(WeakMap);
/**
* Gets the `toStringTag` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function getTag(value) {
return objectToString.call(value);
}
// Fallback for data views, maps, sets, and weak maps in IE 11,
// for data views in Edge, and promises in Node.js.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
(Map && getTag(new Map) != mapTag) ||
(Promise && getTag(Promise.resolve()) != promiseTag) ||
(Set && getTag(new Set) != setTag) ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
var result = objectToString.call(value),
Ctor = result == objectTag ? value.constructor : undefined,
ctorString = Ctor ? toSource(Ctor) : undefined;
if (ctorString) {
switch (ctorString) {
case dataViewCtorString: return dataViewTag;
case mapCtorString: return mapTag;
case promiseCtorString: return promiseTag;
case setCtorString: return setTag;
case weakMapCtorString: return weakMapTag;
}
}
return result;
};
}
module.exports = getTag;
/***/ },
/* 78 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26),
root = __webpack_require__(31);
/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');
module.exports = DataView;
/***/ },
/* 79 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26),
root = __webpack_require__(31);
/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');
module.exports = Promise;
/***/ },
/* 80 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26),
root = __webpack_require__(31);
/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');
module.exports = Set;
/***/ },
/* 81 */
/***/ function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(26),
root = __webpack_require__(31);
/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');
module.exports = WeakMap;
/***/ },
/* 82 */
/***/ function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Initializes an array clone.
*
* @private
* @param {Array} array The array to clone.
* @returns {Array} Returns the initialized clone.
*/
function initCloneArray(array) {
var length = array.length,
result = array.constructor(length);
// Add properties assigned by `RegExp#exec`.
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
result.index = array.index;
result.input = array.input;
}
return result;
}
module.exports = initCloneArray;
/***/ },
/* 83 */
/***/ function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(84),
cloneDataView = __webpack_require__(86),
cloneMap = __webpack_require__(87),
cloneRegExp = __webpack_require__(91),
cloneSet = __webpack_require__(92),
cloneSymbol = __webpack_require__(95),
cloneTypedArray = __webpack_require__(97);
/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
dateTag = '[object Date]',
mapTag = '[object Map]',
numberTag = '[object Number]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/**
* Initializes an object clone based on its `toStringTag`.
*
* **Note:** This function only supports cloning values with tags of
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
* @param {Object} object The object to clone.
* @param {string} tag The `toStringTag` of the object to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneByTag(object, tag, cloneFunc, isDeep) {
var Ctor = object.constructor;
switch (tag) {
case arrayBufferTag:
return cloneArrayBuffer(object);
case boolTag:
case dateTag:
return new Ctor(+object);
case dataViewTag:
return cloneDataView(object, isDeep);
case float32Tag: case float64Tag:
case int8Tag: case int16Tag: case int32Tag:
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
return cloneTypedArray(object, isDeep);
case mapTag:
return cloneMap(object, isDeep, cloneFunc);
case numberTag:
case stringTag:
return new Ctor(object);
case regexpTag:
return cloneRegExp(object);
case setTag:
return cloneSet(object, isDeep, cloneFunc);
case symbolTag:
return cloneSymbol(object);
}
}
module.exports = initCloneByTag;
/***/ },
/* 84 */
/***/ function(module, exports, __webpack_require__) {
var Uint8Array = __webpack_require__(85);
/**
* Creates a clone of `arrayBuffer`.
*
* @private
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
module.exports = cloneArrayBuffer;
/***/ },
/* 85 */
/***/ function(module, exports, __webpack_require__) {
var root = __webpack_require__(31);
/** Built-in value references. */
var Uint8Array = root.Uint8Array;
module.exports = Uint8Array;
/***/ },
/* 86 */
/***/ function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(84);
/**
* Creates a clone of `dataView`.
*
* @private
* @param {Object} dataView The data view to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned data view.
*/
function cloneDataView(dataView, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}
module.exports = cloneDataView;
/***/ },
/* 87 */
/***/ function(module, exports, __webpack_require__) {
var addMapEntry = __webpack_require__(88),
arrayReduce = __webpack_require__(89),
mapToArray = __webpack_require__(90);
/**
* Creates a clone of `map`.
*
* @private
* @param {Object} map The map to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned map.
*/
function cloneMap(map, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
return arrayReduce(array, addMapEntry, new map.constructor);
}
module.exports = cloneMap;
/***/ },
/* 88 */
/***/ function(module, exports) {
/**
* Adds the key-value `pair` to `map`.
*
* @private
* @param {Object} map The map to modify.
* @param {Array} pair The key-value pair to add.
* @returns {Object} Returns `map`.
*/
function addMapEntry(map, pair) {
// Don't return `Map#set` because it doesn't return the map instance in IE 11.
map.set(pair[0], pair[1]);
return map;
}
module.exports = addMapEntry;
/***/ },
/* 89 */
/***/ function(module, exports) {
/**
* A specialized version of `_.reduce` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
* @param {boolean} [initAccum] Specify using the first element of `array` as
* the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduce(array, iteratee, accumulator, initAccum) {
var index = -1,
length = array ? array.length : 0;
if (initAccum && length) {
accumulator = array[++index];
}
while (++index < length) {
accumulator = iteratee(accumulator, array[index], index, array);
}
return accumulator;
}
module.exports = arrayReduce;
/***/ },
/* 90 */
/***/ function(module, exports) {
/**
* Converts `map` to its key-value pairs.
*
* @private
* @param {Object} map The map to convert.
* @returns {Array} Returns the key-value pairs.
*/
function mapToArray(map) {
var index = -1,
result = Array(map.size);
map.forEach(function(value, key) {
result[++index] = [key, value];
});
return result;
}
module.exports = mapToArray;
/***/ },
/* 91 */
/***/ function(module, exports) {
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;
/**
* Creates a clone of `regexp`.
*
* @private
* @param {Object} regexp The regexp to clone.
* @returns {Object} Returns the cloned regexp.
*/
function cloneRegExp(regexp) {
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
result.lastIndex = regexp.lastIndex;
return result;
}
module.exports = cloneRegExp;
/***/ },
/* 92 */
/***/ function(module, exports, __webpack_require__) {
var addSetEntry = __webpack_require__(93),
arrayReduce = __webpack_require__(89),
setToArray = __webpack_require__(94);
/**
* Creates a clone of `set`.
*
* @private
* @param {Object} set The set to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
return arrayReduce(array, addSetEntry, new set.constructor);
}
module.exports = cloneSet;
/***/ },
/* 93 */
/***/ function(module, exports) {
/**
* Adds `value` to `set`.
*
* @private
* @param {Object} set The set to modify.
* @param {*} value The value to add.
* @returns {Object} Returns `set`.
*/
function addSetEntry(set, value) {
set.add(value);
return set;
}
module.exports = addSetEntry;
/***/ },
/* 94 */
/***/ function(module, exports) {
/**
* Converts `set` to an array of its values.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the values.
*/
function setToArray(set) {
var index = -1,
result = Array(set.size);
set.forEach(function(value) {
result[++index] = value;
});
return result;
}
module.exports = setToArray;
/***/ },
/* 95 */
/***/ function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(96);
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* Creates a clone of the `symbol` object.
*
* @private
* @param {Object} symbol The symbol object to clone.
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
module.exports = cloneSymbol;
/***/ },
/* 96 */
/***/ function(module, exports, __webpack_require__) {
var root = __webpack_require__(31);
/** Built-in value references. */
var Symbol = root.Symbol;
module.exports = Symbol;
/***/ },
/* 97 */
/***/ function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(84);
/**
* Creates a clone of `typedArray`.
*
* @private
* @param {Object} typedArray The typed array to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
module.exports = cloneTypedArray;
/***/ },
/* 98 */
/***/ function(module, exports, __webpack_require__) {
var baseCreate = __webpack_require__(99),
getPrototype = __webpack_require__(55),
isPrototype = __webpack_require__(68);
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototype(object))
: {};
}
module.exports = initCloneObject;
/***/ },
/* 99 */
/***/ function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(4);
/** Built-in value references. */
var objectCreate = Object.create;
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
function baseCreate(proto) {
return isObject(proto) ? objectCreate(proto) : {};
}
module.exports = baseCreate;
/***/ },
/* 100 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(31),
stubFalse = __webpack_require__(102);
/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;
/**
* Checks if `value` is a buffer.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
* @example
*
* _.isBuffer(new Buffer(2));
* // => true
*
* _.isBuffer(new Uint8Array(2));
* // => false
*/
var isBuffer = !Buffer ? stubFalse : function(value) {
return value instanceof Buffer;
};
module.exports = isBuffer;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 101 */
/***/ function(module, exports) {
module.exports = function(module) {
if(!module.webpackPolyfill) {
module.deprecate = function() {};
module.paths = [];
// module.parent = undefined by default
module.children = [];
module.webpackPolyfill = 1;
}
return module;
}
/***/ },
/* 102 */
/***/ function(module, exports) {
/**
* A method that returns `false`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `false`.
* @example
*
* _.times(2, _.stubFalse);
* // => [false, false]
*/
function stubFalse() {
return false;
}
module.exports = stubFalse;
/***/ },
/* 103 */
/***/ function(module, exports, __webpack_require__) {
var getPrototype = __webpack_require__(55),
isHostObject = __webpack_require__(28),
isObjectLike = __webpack_require__(65);
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = Function.prototype.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object,
* else `false`.
* @example
*
* function Foo() {
* this.a = 1;
* }
*
* _.isPlainObject(new Foo);
* // => false
*
* _.isPlainObject([1, 2, 3]);
* // => false
*
* _.isPlainObject({ 'x': 0, 'y': 0 });
* // => true
*
* _.isPlainObject(Object.create(null));
* // => true
*/
function isPlainObject(value) {
if (!isObjectLike(value) ||
objectToString.call(value) != objectTag || isHostObject(value)) {
return false;
}
var proto = getPrototype(value);
if (proto === null) {
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return (typeof Ctor == 'function' &&
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
}
module.exports = isPlainObject;
/***/ },
/* 104 */
/***/ function(module, exports, __webpack_require__) {
var isLength = __webpack_require__(64),
isObjectLike = __webpack_require__(65);
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a typed array.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
* // => true
*
* _.isTypedArray([]);
* // => false
*/
function isTypedArray(value) {
return isObjectLike(value) &&
isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
}
module.exports = isTypedArray;
/***/ },
/* 105 */
/***/ function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(52),
keysIn = __webpack_require__(106);
/**
* Converts `value` to a plain object flattening inherited enumerable string
* keyed properties of `value` to own properties of the plain object.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {Object} Returns the converted plain object.
* @example
*
* function Foo() {
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.assign({ 'a': 1 }, new Foo);
* // => { 'a': 1, 'b': 2 }
*
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
* // => { 'a': 1, 'b': 2, 'c': 3 }
*/
function toPlainObject(value) {
return copyObject(value, keysIn(value));
}
module.exports = toPlainObject;
/***/ },
/* 106 */
/***/ function(module, exports, __webpack_require__) {
var baseKeysIn = __webpack_require__(107),
indexKeys = __webpack_require__(57),
isIndex = __webpack_require__(67),
isPrototype = __webpack_require__(68);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Creates an array of the own and inherited enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keysIn(new Foo);
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
*/
function keysIn(object) {
var index = -1,
isProto = isPrototype(object),
props = baseKeysIn(object),
propsLength = props.length,
indexes = indexKeys(object),
skipIndexes = !!indexes,
result = indexes || [],
length = result.length;
while (++index < propsLength) {
var key = props[index];
if (!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
module.exports = keysIn;
/***/ },
/* 107 */
/***/ function(module, exports, __webpack_require__) {
var Reflect = __webpack_require__(108),
iteratorToArray = __webpack_require__(109);
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Built-in value references. */
var enumerate = Reflect ? Reflect.enumerate : undefined,
propertyIsEnumerable = objectProto.propertyIsEnumerable;
/**
* The base implementation of `_.keysIn` which doesn't skip the constructor
* property of prototypes or treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
object = object == null ? object : Object(object);
var result = [];
for (var key in object) {
result.push(key);
}
return result;
}
// Fallback for IE < 9 with es6-shim.
if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
baseKeysIn = function(object) {
return iteratorToArray(enumerate(object));
};
}
module.exports = baseKeysIn;
/***/ },
/* 108 */
/***/ function(module, exports, __webpack_require__) {
var root = __webpack_require__(31);
/** Built-in value references. */
var Reflect = root.Reflect;
module.exports = Reflect;
/***/ },
/* 109 */
/***/ function(module, exports) {
/**
* Converts `iterator` to an array.
*
* @private
* @param {Object} iterator The iterator to convert.
* @returns {Array} Returns the converted array.
*/
function iteratorToArray(iterator) {
var data,
result = [];
while (!(data = iterator.next()).done) {
result.push(data.value);
}
return result;
}
module.exports = iteratorToArray;
/***/ },
/* 110 */
/***/ function(module, exports, __webpack_require__) {
var isIterateeCall = __webpack_require__(111),
rest = __webpack_require__(112);
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return rest(function(object, sources) {
var index = -1,
length = sources.length,
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
customizer = (assigner.length > 3 && typeof customizer == 'function')
? (length--, customizer)
: undefined;
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
}
object = Object(object);
while (++index < length) {
var source = sources[index];
if (source) {
assigner(object, source, index, customizer);
}
}
return object;
});
}
module.exports = createAssigner;
/***/ },
/* 111 */
/***/ function(module, exports, __webpack_require__) {
var eq = __webpack_require__(12),
isArrayLike = __webpack_require__(61),
isIndex = __webpack_require__(67),
isObject = __webpack_require__(4);
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
return false;
}
var type = typeof index;
if (type == 'number'
? (isArrayLike(object) && isIndex(index, object.length))
: (type == 'string' && index in object)
) {
return eq(object[index], value);
}
return false;
}
module.exports = isIterateeCall;
/***/ },
/* 112 */
/***/ function(module, exports, __webpack_require__) {
var apply = __webpack_require__(113),
toInteger = __webpack_require__(114);
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
/**
* Creates a function that invokes `func` with the `this` binding of the
* created function and arguments from `start` and beyond provided as
* an array.
*
* **Note:** This method is based on the
* [rest parameter](https://mdn.io/rest_parameters).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Function
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
* @example
*
* var say = _.rest(function(what, names) {
* return what + ' ' + _.initial(names).join(', ') +
* (_.size(names) > 1 ? ', & ' : '') + _.last(names);
* });
*
* say('hello', 'fred', 'barney', 'pebbles');
* // => 'hello fred, barney, & pebbles'
*/
function rest(func, start) {
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0);
return function() {
var args = arguments,
index = -1,
length = nativeMax(args.length - start, 0),
array = Array(length);
while (++index < length) {
array[index] = args[start + index];
}
switch (start) {
case 0: return func.call(this, array);
case 1: return func.call(this, args[0], array);
case 2: return func.call(this, args[0], args[1], array);
}
var otherArgs = Array(start + 1);
index = -1;
while (++index < start) {
otherArgs[index] = args[index];
}
otherArgs[start] = array;
return apply(func, this, otherArgs);
};
}
module.exports = rest;
/***/ },
/* 113 */
/***/ function(module, exports) {
/**
* A faster alternative to `Function#apply`, this function invokes `func`
* with the `this` binding of `thisArg` and the arguments of `args`.
*
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
* @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
var length = args.length;
switch (length) {
case 0: return func.call(thisArg);
case 1: return func.call(thisArg, args[0]);
case 2: return func.call(thisArg, args[0], args[1]);
case 3: return func.call(thisArg, args[0], args[1], args[2]);
}
return func.apply(thisArg, args);
}
module.exports = apply;
/***/ },
/* 114 */
/***/ function(module, exports, __webpack_require__) {
var toFinite = __webpack_require__(115);
/**
* Converts `value` to an integer.
*
* **Note:** This method is loosely based on
* [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
* @example
*
* _.toInteger(3.2);
* // => 3
*
* _.toInteger(Number.MIN_VALUE);
* // => 0
*
* _.toInteger(Infinity);
* // => 1.7976931348623157e+308
*
* _.toInteger('3.2');
* // => 3
*/
function toInteger(value) {
var result = toFinite(value),
remainder = result % 1;
return result === result ? (remainder ? result - remainder : result) : 0;
}
module.exports = toInteger;
/***/ },
/* 115 */
/***/ function(module, exports, __webpack_require__) {
var toNumber = __webpack_require__(116);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_INTEGER = 1.7976931348623157e+308;
/**
* Converts `value` to a finite number.
*
* @static
* @memberOf _
* @since 4.12.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted number.
* @example
*
* _.toFinite(3.2);
* // => 3.2
*
* _.toFinite(Number.MIN_VALUE);
* // => 5e-324
*
* _.toFinite(Infinity);
* // => 1.7976931348623157e+308
*
* _.toFinite('3.2');
* // => 3.2
*/
function toFinite(value) {
if (!value) {
return value === 0 ? value : 0;
}
value = toNumber(value);
if (value === INFINITY || value === -INFINITY) {
var sign = (value < 0 ? -1 : 1);
return sign * MAX_INTEGER;
}
return value === value ? value : 0;
}
module.exports = toFinite;
/***/ },
/* 116 */
/***/ function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(3),
isObject = __webpack_require__(4),
isSymbol = __webpack_require__(117);
/** Used as references for various `Number` constants. */
var NAN = 0 / 0;
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
/**
* Converts `value` to a number.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
* @example
*
* _.toNumber(3.2);
* // => 3.2
*
* _.toNumber(Number.MIN_VALUE);
* // => 5e-324
*
* _.toNumber(Infinity);
* // => Infinity
*
* _.toNumber('3.2');
* // => 3.2
*/
function toNumber(value) {
if (typeof value == 'number') {
return value;
}
if (isSymbol(value)) {
return NAN;
}
if (isObject(value)) {
var other = isFunction(value.valueOf) ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {
return value === 0 ? value : +value;
}
value = value.replace(reTrim, '');
var isBinary = reIsBinary.test(value);
return (isBinary || reIsOctal.test(value))
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
: (reIsBadHex.test(value) ? NAN : +value);
}
module.exports = toNumber;
/***/ },
/* 117 */
/***/ function(module, exports, __webpack_require__) {
var isObjectLike = __webpack_require__(65);
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
module.exports = isSymbol;
/***/ },
/* 118 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _get = __webpack_require__(119);
var _get2 = _interopRequireDefault(_get);
var _each = __webpack_require__(128);
var _each2 = _interopRequireDefault(_each);
var _capitalize = __webpack_require__(157);
var _capitalize2 = _interopRequireDefault(_capitalize);
var _isNil = __webpack_require__(1);
var _isNil2 = _interopRequireDefault(_isNil);
var _isArray = __webpack_require__(2);
var _isArray2 = _interopRequireDefault(_isArray);
var _isString = __webpack_require__(66);
var _isString2 = _interopRequireDefault(_isString);
var _isFunction = __webpack_require__(3);
var _isFunction2 = _interopRequireDefault(_isFunction);
var _isNumber = __webpack_require__(164);
var _isNumber2 = _interopRequireDefault(_isNumber);
var _isObject = __webpack_require__(4);
var _isObject2 = _interopRequireDefault(_isObject);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var mersenne = __webpack_require__(165);
var chars = "abcdefghijklmnopqrstuvwxyz";
var any = "0123456789" + chars;
module.exports = function (locale) {
var self = this;
self.locale = locale;
self.seed = function (seed) {
if ((0, _isArray2.default)(seed) && seed.length > 0) mersenne.seed_array(seed);else mersenne.seed(seed);
};
self.random = {
number: function number() {
var max = arguments.length <= 0 || arguments[0] === undefined ? 9999 : arguments[0];
var min = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];
var precision = arguments.length <= 2 || arguments[2] === undefined ? 1 : arguments[2];
if (min > max) {
var _ref = [max, min];
min = _ref[0];
max = _ref[1];
}
max /= precision;
min /= precision;
return precision * Math.floor(mersenne.rand(max + 1, min));
},
boolean: function boolean() {
var likelihood = arguments.length <= 0 || arguments[0] === undefined ? 50 : arguments[0];
return self.random.number(0, 100) <= likelihood;
},
digit: function digit() {
return self.random.number(9);
},
hex: function hex() {
var len = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0];
var res = [];
for (var i = 0; i < len; i++) {
res.push(self.random.number(15).toString(16));
}return res.join("");
},
letter: function letter() {
return self.random.arrayElement(chars);
},
string: function string() {
var len = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var res = [];
if ((0, _isObject2.default)(len)) len = self.random.number(len.min || 5, len.max || 10);
for (var i = 0; i < len; i++) {
res.push(self.random.letter());
}return res.join("");
},
arrayElement: function arrayElement(array) {
if (array && array.length > 0) return array[self.random.number(array.length - 1)];
},
objectElement: function objectElement(obj) {
if (!obj) return;
var key = self.random.arrayElement(Object.keys(obj));
return _defineProperty({}, key, obj[key]);
},
masked: function masked(format) {
if ((0, _isNil2.default)(format)) return;
var result = [];
for (var i = 0; i <= format.length; i++) {
if (format.charAt(i) === "9") result.push(self.random.number(9).toString());else if (format.charAt(i) === "a") result.push(self.random.arrayElement(chars));else if (format.charAt(i) === "A") result.push(self.random.arrayElement(chars).toUpperCase());else if (format.charAt(i) === "*") result.push(self.random.arrayElement(any));else result.push(format.charAt(i));
}
return result.join("");
}
};
self.capitalize = _capitalize2.default;
self.slugify = function () {
var str = arguments.length <= 0 || arguments[0] === undefined ? "" : arguments[0];
return str.trim().replace(/ /g, "-").replace(/[^\w\.\-]+/g, "");
};
self.replaceSymbols = function (format) {
var numberSymbol = arguments.length <= 1 || arguments[1] === undefined ? "#" : arguments[1];
var alphaSymbol = arguments.length <= 2 || arguments[2] === undefined ? "\\?" : arguments[2];
if (format) return format.replace(new RegExp(numberSymbol, "g"), self.random.digit).replace(new RegExp(alphaSymbol, "g"), self.random.letter);
};
self.shuffle = function (o) {
if ((0, _isNil2.default)(o)) return;
for (var j, x, i = o.length - 1; i; j = self.random.number(i), x = o[--i], o[i] = o[j], o[j] = x) {}
return o;
};
var maskRE = new RegExp(locale._meta.mask || "\#\{([A-Za-z0-9_\.]+)\}", "g");
self.populate = function (format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if ((0, _isNil2.default)(format)) return;
var res = format;
res = format.replace(maskRE, function (match, cap) {
var part = (0, _get2.default)(self.locale, cap);
if (part) {
if ((0, _isFunction2.default)(part)) {
var _part;
part = (_part = part).call.apply(_part, [self].concat(args));
}
if ((0, _isArray2.default)(part)) {
if (part.length == 0) return;
return self.populate.apply(self, [self.random.arrayElement(part)].concat(args));
} else if ((0, _isString2.default)(part)) return self.populate.apply(self, [part].concat(args));else if ((0, _isNumber2.default)(part) || (0, _isObject2.default)(part)) return part;
}
return match;
});
if ((0, _isString2.default)(res)) res = self.replaceSymbols(res);
return res;
};
self.times = function (func, n) {
var res = [];
if ((0, _isObject2.default)(n)) n = this.random.number(n.min || 1, n.max || 10);
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
args[_key2 - 2] = arguments[_key2];
}
for (var i = 0; i < n; i++) {
res.push(func.call.apply(func, [self].concat(args)));
}return res;
};
self.utimes = function (func, n) {
var res = [];
if ((0, _isObject2.default)(n)) n = this.random.number(n.min || 1, n.max || 10);
var i = 0;
for (var _len3 = arguments.length, args = Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
args[_key3 - 2] = arguments[_key3];
}
while (res.length < n && i < n * 5) {
var item = func.call.apply(func, [self].concat(args));
if (res.indexOf(item) == -1) res.push(item);
i++;
}
return res;
};
self.generate = function (def) {
var res = void 0;
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
args[_key4 - 1] = arguments[_key4];
}
if ((0, _isFunction2.default)(def)) {
res = def.call.apply(def, [self].concat(args));
} else if ((0, _isArray2.default)(def)) {
if (def.length >= 0) res = self.random.arrayElement(def);
} else if ((0, _isString2.default)(def)) {
if (maskRE.test(def)) res = self.populate.apply(self, [def].concat(args));else return res = self.replaceSymbols(def);
} else if ((0, _isNumber2.default)(def) || (0, _isObject2.default)(def)) {
return def;
}
if (res) return self.generate.apply(self, [res].concat(args));
};
function createGeneratorMethods(obj, definitions, level) {
(0, _each2.default)(Object.keys(definitions), function (item) {
if (item === "_meta") return;
var def = definitions[item];
if ((0, _isObject2.default)(def) && !(0, _isArray2.default)(def) && !(0, _isFunction2.default)(def) && level < 10) {
obj[item] = {};
createGeneratorMethods(obj[item], def, level + 1);
} else {
obj[item] = function () {
for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
args[_key5] = arguments[_key5];
}
return self.generate.apply(self, [def].concat(args));
};
}
});
}
createGeneratorMethods(self, self.locale, 1);
return self;
};
/***/ },
/* 119 */
/***/ function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(120);
/**
* Gets the value at `path` of `object`. If the resolved value is
* `undefined`, the `defaultValue` is used in its place.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.get(object, 'a[0].b.c');
* // => 3
*
* _.get(object, ['a', '0', 'b', 'c']);
* // => 3
*
* _.get(object, 'a.b.c', 'default');
* // => 'default'
*/
function get(object, path, defaultValue) {
var result = object == null ? undefined : baseGet(object, path);
return result === undefined ? defaultValue : result;
}
module.exports = get;
/***/ },
/* 120 */
/***/ function(module, exports, __webpack_require__) {
var castPath = __webpack_require__(121),
isKey = __webpack_require__(126),
toKey = __webpack_require__(127);
/**
* The base implementation of `_.get` without support for default values.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
path = isKey(path, object) ? [path] : castPath(path);
var index = 0,
length = path.length;
while (object != null && index < length) {
object = object[toKey(path[index++])];
}
return (index && index == length) ? object : undefined;
}
module.exports = baseGet;
/***/ },
/* 121 */
/***/ function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(2),
stringToPath = __webpack_require__(122);
/**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value) {
return isArray(value) ? value : stringToPath(value);
}
module.exports = castPath;
/***/ },
/* 122 */
/***/ function(module, exports, __webpack_require__) {
var memoize = __webpack_require__(123),
toString = __webpack_require__(124);
/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
/**
* Converts `string` to a property path array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoize(function(string) {
var result = [];
toString(string).replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});
module.exports = stringToPath;
/***/ },
/* 123 */
/***/ function(module, exports, __webpack_require__) {
var MapCache = __webpack_require__(21);
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
* @returns {Function} Returns the new memoized function.
* @example
*
* var object = { 'a': 1, 'b': 2 };
* var other = { 'c': 3, 'd': 4 };
*
* var values = _.memoize(_.values);
* values(object);
* // => [1, 2]
*
* values(other);
* // => [3, 4]
*
* object.a = 2;
* values(object);
* // => [1, 2]
*
* // Modify the result cache.
* values.cache.set(object, ['a', 'b']);
* values(object);
* // => ['a', 'b']
*
* // Replace `_.memoize.Cache`.
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
var args = arguments,
key = resolver ? resolver.apply(this, args) : args[0],
cache = memoized.cache;
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result);
return result;
};
memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
// Assign cache to `_.memoize`.
memoize.Cache = MapCache;
module.exports = memoize;
/***/ },
/* 124 */
/***/ function(module, exports, __webpack_require__) {
var baseToString = __webpack_require__(125);
/**
* Converts `value` to a string. An empty string is returned for `null`
* and `undefined` values. The sign of `-0` is preserved.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
* @example
*
* _.toString(null);
* // => ''
*
* _.toString(-0);
* // => '-0'
*
* _.toString([1, 2, 3]);
* // => '1,2,3'
*/
function toString(value) {
return value == null ? '' : baseToString(value);
}
module.exports = toString;
/***/ },
/* 125 */
/***/ function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(96),
isSymbol = __webpack_require__(117);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
/**
* The base implementation of `_.toString` which doesn't convert nullish
* values to empty strings.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
// Exit early for strings to avoid a performance hit in some environments.
if (typeof value == 'string') {
return value;
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
module.exports = baseToString;
/***/ },
/* 126 */
/***/ function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(2),
isSymbol = __webpack_require__(117);
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object));
}
module.exports = isKey;
/***/ },
/* 127 */
/***/ function(module, exports, __webpack_require__) {
var isSymbol = __webpack_require__(117);
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value == 'string' || isSymbol(value)) {
return value;
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
module.exports = toKey;
/***/ },
/* 128 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(129);
/***/ },
/* 129 */
/***/ function(module, exports, __webpack_require__) {
var arrayEach = __webpack_require__(46),
baseEach = __webpack_require__(130),
baseIteratee = __webpack_require__(135),
isArray = __webpack_require__(2);
/**
* Iterates over elements of `collection` and invokes `iteratee` for each element.
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* **Note:** As with other "Collections" methods, objects with a "length"
* property are iterated like arrays. To avoid this behavior use `_.forIn`
* or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
* @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
* @see _.forEachRight
* @example
*
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
* // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
var func = isArray(collection) ? arrayEach : baseEach;
return func(collection, baseIteratee(iteratee, 3));
}
module.exports = forEach;
/***/ },
/* 130 */
/***/ function(module, exports, __webpack_require__) {
var baseForOwn = __webpack_require__(131),
createBaseEach = __webpack_require__(134);
/**
* The base implementation of `_.forEach` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
*/
var baseEach = createBaseEach(baseForOwn);
module.exports = baseEach;
/***/ },
/* 131 */
/***/ function(module, exports, __webpack_require__) {
var baseFor = __webpack_require__(132),
keys = __webpack_require__(53);
/**
* The base implementation of `_.forOwn` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
*/
function baseForOwn(object, iteratee) {
return object && baseFor(object, iteratee, keys);
}
module.exports = baseForOwn;
/***/ },
/* 132 */
/***/ function(module, exports, __webpack_require__) {
var createBaseFor = __webpack_require__(133);
/**
* The base implementation of `baseForOwn` which iterates over `object`
* properties returned by `keysFunc` and invokes `iteratee` for each property.
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {Function} keysFunc The function to get the keys of `object`.
* @returns {Object} Returns `object`.
*/
var baseFor = createBaseFor();
module.exports = baseFor;
/***/ },
/* 133 */
/***/ function(module, exports) {
/**
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
var index = -1,
iterable = Object(object),
props = keysFunc(object),
length = props.length;
while (length--) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === false) {
break;
}
}
return object;
};
}
module.exports = createBaseFor;
/***/ },
/* 134 */
/***/ function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(61);
/**
* Creates a `baseEach` or `baseEachRight` function.
*
* @private
* @param {Function} eachFunc The function to iterate over a collection.
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseEach(eachFunc, fromRight) {
return function(collection, iteratee) {
if (collection == null) {
return collection;
}
if (!isArrayLike(collection)) {
return eachFunc(collection, iteratee);
}
var length = collection.length,
index = fromRight ? length : -1,
iterable = Object(collection);
while ((fromRight ? index-- : ++index < length)) {
if (iteratee(iterable[index], index, iterable) === false) {
break;
}
}
return collection;
};
}
module.exports = createBaseEach;
/***/ },
/* 135 */
/***/ function(module, exports, __webpack_require__) {
var baseMatches = __webpack_require__(136),
baseMatchesProperty = __webpack_require__(150),
identity = __webpack_require__(154),
isArray = __webpack_require__(2),
property = __webpack_require__(155);
/**
* The base implementation of `_.iteratee`.
*
* @private
* @param {*} [value=_.identity] The value to convert to an iteratee.
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
if (typeof value == 'object') {
return isArray(value)
? baseMatchesProperty(value[0], value[1])
: baseMatches(value);
}
return property(value);
}
module.exports = baseIteratee;
/***/ },
/* 136 */
/***/ function(module, exports, __webpack_require__) {
var baseIsMatch = __webpack_require__(137),
getMatchData = __webpack_require__(147),
matchesStrictComparable = __webpack_require__(149);
/**
* The base implementation of `_.matches` which doesn't clone `source`.
*
* @private
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
}
return function(object) {
return object === source || baseIsMatch(object, source, matchData);
};
}
module.exports = baseMatches;
/***/ },
/* 137 */
/***/ function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(7),
baseIsEqual = __webpack_require__(138);
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @param {Array} matchData The property names, values, and compare flags to match.
* @param {Function} [customizer] The function to customize comparisons.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
function baseIsMatch(object, source, matchData, customizer) {
var index = matchData.length,
length = index,
noCustomizer = !customizer;
if (object == null) {
return !length;
}
object = Object(object);
while (index--) {
var data = matchData[index];
if ((noCustomizer && data[2])
? data[1] !== object[data[0]]
: !(data[0] in object)
) {
return false;
}
}
while (++index < length) {
data = matchData[index];
var key = data[0],
objValue = object[key],
srcValue = data[1];
if (noCustomizer && data[2]) {
if (objValue === undefined && !(key in object)) {
return false;
}
} else {
var stack = new Stack;
if (customizer) {
var result = customizer(objValue, srcValue, key, object, source, stack);
}
if (!(result === undefined
? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
: result
)) {
return false;
}
}
}
return true;
}
module.exports = baseIsMatch;
/***/ },
/* 138 */
/***/ function(module, exports, __webpack_require__) {
var baseIsEqualDeep = __webpack_require__(139),
isObject = __webpack_require__(4),
isObjectLike = __webpack_require__(65);
/**
* The base implementation of `_.isEqual` which supports partial comparisons
* and tracks traversed objects.
*
* @private
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {Function} [customizer] The function to customize comparisons.
* @param {boolean} [bitmask] The bitmask of comparison flags.
* The bitmask may be composed of the following flags:
* 1 - Unordered comparison
* 2 - Partial comparison
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
*/
function baseIsEqual(value, other, customizer, bitmask, stack) {
if (value === other) {
return true;
}
if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
}
module.exports = baseIsEqual;
/***/ },
/* 139 */
/***/ function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(7),
equalArrays = __webpack_require__(140),
equalByTag = __webpack_require__(145),
equalObjects = __webpack_require__(146),
getTag = __webpack_require__(77),
isArray = __webpack_require__(2),
isHostObject = __webpack_require__(28),
isTypedArray = __webpack_require__(104);
/** Used to compose bitmasks for comparison styles. */
var PARTIAL_COMPARE_FLAG = 2;
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
objectTag = '[object Object]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* A specialized version of `baseIsEqual` for arrays and objects which performs
* deep comparisons and tracks traversed objects enabling objects with circular
* references to be compared.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} [customizer] The function to customize comparisons.
* @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = arrayTag,
othTag = arrayTag;
if (!objIsArr) {
objTag = getTag(object);
objTag = objTag == argsTag ? objectTag : objTag;
}
if (!othIsArr) {
othTag = getTag(other);
othTag = othTag == argsTag ? objectTag : othTag;
}
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
if (isSameTag && !objIsObj) {
stack || (stack = new Stack);
return (objIsArr || isTypedArray(object))
? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
: equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
}
if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
var objUnwrapped = objIsWrapped ? object.value() : object,
othUnwrapped = othIsWrapped ? other.value() : other;
stack || (stack = new Stack);
return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
}
}
if (!isSameTag) {
return false;
}
stack || (stack = new Stack);
return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
}
module.exports = baseIsEqualDeep;
/***/ },
/* 140 */
/***/ function(module, exports, __webpack_require__) {
var SetCache = __webpack_require__(141),
arraySome = __webpack_require__(144);
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
/**
* A specialized version of `baseIsEqualDeep` for arrays with support for
* partial deep comparisons.
*
* @private
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
arrLength = array.length,
othLength = other.length;
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
return false;
}
// Assume cyclic values are equal.
var stacked = stack.get(array);
if (stacked) {
return stacked == other;
}
var index = -1,
result = true,
seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined;
stack.set(array, other);
// Ignore non-index properties.
while (++index < arrLength) {
var arrValue = array[index],
othValue = other[index];
if (customizer) {
var compared = isPartial
? customizer(othValue, arrValue, index, other, array, stack)
: customizer(arrValue, othValue, index, array, other, stack);
}
if (compared !== undefined) {
if (compared) {
continue;
}
result = false;
break;
}
// Recursively compare arrays (susceptible to call stack limits).
if (seen) {
if (!arraySome(other, function(othValue, othIndex) {
if (!seen.has(othIndex) &&
(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
return seen.add(othIndex);
}
})) {
result = false;
break;
}
} else if (!(
arrValue === othValue ||
equalFunc(arrValue, othValue, customizer, bitmask, stack)
)) {
result = false;
break;
}
}
stack['delete'](array);
return result;
}
module.exports = equalArrays;
/***/ },
/* 141 */
/***/ function(module, exports, __webpack_require__) {
var MapCache = __webpack_require__(21),
setCacheAdd = __webpack_require__(142),
setCacheHas = __webpack_require__(143);
/**
*
* Creates an array cache object to store unique values.
*
* @private
* @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
var index = -1,
length = values ? values.length : 0;
this.__data__ = new MapCache;
while (++index < length) {
this.add(values[index]);
}
}
// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;
module.exports = SetCache;
/***/ },
/* 142 */
/***/ function(module, exports) {
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
* Adds `value` to the array cache.
*
* @private
* @name add
* @memberOf SetCache
* @alias push
* @param {*} value The value to cache.
* @returns {Object} Returns the cache instance.
*/
function setCacheAdd(value) {
this.__data__.set(value, HASH_UNDEFINED);
return this;
}
module.exports = setCacheAdd;
/***/ },
/* 143 */
/***/ function(module, exports) {
/**
* Checks if `value` is in the array cache.
*
* @private
* @name has
* @memberOf SetCache
* @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
function setCacheHas(value) {
return this.__data__.has(value);
}
module.exports = setCacheHas;
/***/ },
/* 144 */
/***/ function(module, exports) {
/**
* A specialized version of `_.some` for arrays without support for iteratee
* shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
}
module.exports = arraySome;
/***/ },
/* 145 */
/***/ function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(96),
Uint8Array = __webpack_require__(85),
equalArrays = __webpack_require__(140),
mapToArray = __webpack_require__(90),
setToArray = __webpack_require__(94);
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
mapTag = '[object Map]',
numberTag = '[object Number]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]';
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* A specialized version of `baseIsEqualDeep` for comparing objects of
* the same `toStringTag`.
*
* **Note:** This function only supports comparing values with tags of
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
switch (tag) {
case dataViewTag:
if ((object.byteLength != other.byteLength) ||
(object.byteOffset != other.byteOffset)) {
return false;
}
object = object.buffer;
other = other.buffer;
case arrayBufferTag:
if ((object.byteLength != other.byteLength) ||
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
return false;
}
return true;
case boolTag:
case dateTag:
// Coerce dates and booleans to numbers, dates to milliseconds and
// booleans to `1` or `0` treating invalid dates coerced to `NaN` as
// not equal.
return +object == +other;
case errorTag:
return object.name == other.name && object.message == other.message;
case numberTag:
// Treat `NaN` vs. `NaN` as equal.
return (object != +object) ? other != +other : object == +other;
case regexpTag:
case stringTag:
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
// for more details.
return object == (other + '');
case mapTag:
var convert = mapToArray;
case setTag:
var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
convert || (convert = setToArray);
if (object.size != other.size && !isPartial) {
return false;
}
// Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked) {
return stacked == other;
}
bitmask |= UNORDERED_COMPARE_FLAG;
stack.set(object, other);
// Recursively compare objects (susceptible to call stack limits).
return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
case symbolTag:
if (symbolValueOf) {
return symbolValueOf.call(object) == symbolValueOf.call(other);
}
}
return false;
}
module.exports = equalByTag;
/***/ },
/* 146 */
/***/ function(module, exports, __webpack_require__) {
var baseHas = __webpack_require__(54),
keys = __webpack_require__(53);
/** Used to compose bitmasks for comparison styles. */
var PARTIAL_COMPARE_FLAG = 2;
/**
* A specialized version of `baseIsEqualDeep` for objects with support for
* partial deep comparisons.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
othLength = othProps.length;
if (objLength != othLength && !isPartial) {
return false;
}
var index = objLength;
while (index--) {
var key = objProps[index];
if (!(isPartial ? key in other : baseHas(other, key))) {
return false;
}
}
// Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked) {
return stacked == other;
}
var result = true;
stack.set(object, other);
var skipCtor = isPartial;
while (++index < objLength) {
key = objProps[index];
var objValue = object[key],
othValue = other[key];
if (customizer) {
var compared = isPartial
? customizer(othValue, objValue, key, other, object, stack)
: customizer(objValue, othValue, key, object, other, stack);
}
// Recursively compare objects (susceptible to call stack limits).
if (!(compared === undefined
? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
: compared
)) {
result = false;
break;
}
skipCtor || (skipCtor = key == 'constructor');
}
if (result && !skipCtor) {
var objCtor = object.constructor,
othCtor = other.constructor;
// Non `Object` object instances with different constructors are not equal.
if (objCtor != othCtor &&
('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
result = false;
}
}
stack['delete'](object);
return result;
}
module.exports = equalObjects;
/***/ },
/* 147 */
/***/ function(module, exports, __webpack_require__) {
var isStrictComparable = __webpack_require__(148),
keys = __webpack_require__(53);
/**
* Gets the property names, values, and compare flags of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the match data of `object`.
*/
function getMatchData(object) {
var result = keys(object),
length = result.length;
while (length--) {
var key = result[length],
value = object[key];
result[length] = [key, value, isStrictComparable(value)];
}
return result;
}
module.exports = getMatchData;
/***/ },
/* 148 */
/***/ function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(4);
/**
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` if suitable for strict
* equality comparisons, else `false`.
*/
function isStrictComparable(value) {
return value === value && !isObject(value);
}
module.exports = isStrictComparable;
/***/ },
/* 149 */
/***/ function(module, exports) {
/**
* A specialized version of `matchesProperty` for source values suitable
* for strict equality comparisons, i.e. `===`.
*
* @private
* @param {string} key The key of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function matchesStrictComparable(key, srcValue) {
return function(object) {
if (object == null) {
return false;
}
return object[key] === srcValue &&
(srcValue !== undefined || (key in Object(object)));
};
}
module.exports = matchesStrictComparable;
/***/ },
/* 150 */
/***/ function(module, exports, __webpack_require__) {
var baseIsEqual = __webpack_require__(138),
get = __webpack_require__(119),
hasIn = __webpack_require__(151),
isKey = __webpack_require__(126),
isStrictComparable = __webpack_require__(148),
matchesStrictComparable = __webpack_require__(149),
toKey = __webpack_require__(127);
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
/**
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
*
* @private
* @param {string} path The path of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatchesProperty(path, srcValue) {
if (isKey(path) && isStrictComparable(srcValue)) {
return matchesStrictComparable(toKey(path), srcValue);
}
return function(object) {
var objValue = get(object, path);
return (objValue === undefined && objValue === srcValue)
? hasIn(object, path)
: baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
};
}
module.exports = baseMatchesProperty;
/***/ },
/* 151 */
/***/ function(module, exports, __webpack_require__) {
var baseHasIn = __webpack_require__(152),
hasPath = __webpack_require__(153);
/**
* Checks if `path` is a direct or inherited property of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.hasIn(object, 'a');
* // => true
*
* _.hasIn(object, 'a.b');
* // => true
*
* _.hasIn(object, ['a', 'b']);
* // => true
*
* _.hasIn(object, 'b');
* // => false
*/
function hasIn(object, path) {
return object != null && hasPath(object, path, baseHasIn);
}
module.exports = hasIn;
/***/ },
/* 152 */
/***/ function(module, exports) {
/**
* The base implementation of `_.hasIn` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHasIn(object, key) {
return object != null && key in Object(object);
}
module.exports = baseHasIn;
/***/ },
/* 153 */
/***/ function(module, exports, __webpack_require__) {
var castPath = __webpack_require__(121),
isArguments = __webpack_require__(59),
isArray = __webpack_require__(2),
isIndex = __webpack_require__(67),
isKey = __webpack_require__(126),
isLength = __webpack_require__(64),
isString = __webpack_require__(66),
toKey = __webpack_require__(127);
/**
* Checks if `path` exists on `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @param {Function} hasFunc The function to check properties.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
*/
function hasPath(object, path, hasFunc) {
path = isKey(path, object) ? [path] : castPath(path);
var result,
index = -1,
length = path.length;
while (++index < length) {
var key = toKey(path[index]);
if (!(result = object != null && hasFunc(object, key))) {
break;
}
object = object[key];
}
if (result) {
return result;
}
var length = object ? object.length : 0;
return !!length && isLength(length) && isIndex(key, length) &&
(isArray(object) || isString(object) || isArguments(object));
}
module.exports = hasPath;
/***/ },
/* 154 */
/***/ function(module, exports) {
/**
* This method returns the first argument given to it.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'user': 'fred' };
*
* console.log(_.identity(object) === object);
* // => true
*/
function identity(value) {
return value;
}
module.exports = identity;
/***/ },
/* 155 */
/***/ function(module, exports, __webpack_require__) {
var baseProperty = __webpack_require__(63),
basePropertyDeep = __webpack_require__(156),
isKey = __webpack_require__(126),
toKey = __webpack_require__(127);
/**
* Creates a function that returns the value at `path` of a given object.
*
* @static
* @memberOf _
* @since 2.4.0
* @category Util
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
* @example
*
* var objects = [
* { 'a': { 'b': 2 } },
* { 'a': { 'b': 1 } }
* ];
*
* _.map(objects, _.property('a.b'));
* // => [2, 1]
*
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}
module.exports = property;
/***/ },
/* 156 */
/***/ function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(120);
/**
* A specialized version of `baseProperty` which supports deep paths.
*
* @private
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function basePropertyDeep(path) {
return function(object) {
return baseGet(object, path);
};
}
module.exports = basePropertyDeep;
/***/ },
/* 157 */
/***/ function(module, exports, __webpack_require__) {
var toString = __webpack_require__(124),
upperFirst = __webpack_require__(158);
/**
* Converts the first character of `string` to upper case and the remaining
* to lower case.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to capitalize.
* @returns {string} Returns the capitalized string.
* @example
*
* _.capitalize('FRED');
* // => 'Fred'
*/
function capitalize(string) {
return upperFirst(toString(string).toLowerCase());
}
module.exports = capitalize;
/***/ },
/* 158 */
/***/ function(module, exports, __webpack_require__) {
var createCaseFirst = __webpack_require__(159);
/**
* Converts the first character of `string` to upper case.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the converted string.
* @example
*
* _.upperFirst('fred');
* // => 'Fred'
*
* _.upperFirst('FRED');
* // => 'FRED'
*/
var upperFirst = createCaseFirst('toUpperCase');
module.exports = upperFirst;
/***/ },
/* 159 */
/***/ function(module, exports, __webpack_require__) {
var castSlice = __webpack_require__(160),
reHasComplexSymbol = __webpack_require__(162),
stringToArray = __webpack_require__(163),
toString = __webpack_require__(124);
/**
* Creates a function like `_.lowerFirst`.
*
* @private
* @param {string} methodName The name of the `String` case method to use.
* @returns {Function} Returns the new case function.
*/
function createCaseFirst(methodName) {
return function(string) {
string = toString(string);
var strSymbols = reHasComplexSymbol.test(string)
? stringToArray(string)
: undefined;
var chr = strSymbols
? strSymbols[0]
: string.charAt(0);
var trailing = strSymbols
? castSlice(strSymbols, 1).join('')
: string.slice(1);
return chr[methodName]() + trailing;
};
}
module.exports = createCaseFirst;
/***/ },
/* 160 */
/***/ function(module, exports, __webpack_require__) {
var baseSlice = __webpack_require__(161);
/**
* Casts `array` to a slice if it's needed.
*
* @private
* @param {Array} array The array to inspect.
* @param {number} start The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns the cast slice.
*/
function castSlice(array, start, end) {
var length = array.length;
end = end === undefined ? length : end;
return (!start && end >= length) ? array : baseSlice(array, start, end);
}
module.exports = castSlice;
/***/ },
/* 161 */
/***/ function(module, exports) {
/**
* The base implementation of `_.slice` without an iteratee call guard.
*
* @private
* @param {Array} array The array to slice.
* @param {number} [start=0] The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns the slice of `array`.
*/
function baseSlice(array, start, end) {
var index = -1,
length = array.length;
if (start < 0) {
start = -start > length ? 0 : (length + start);
}
end = end > length ? length : end;
if (end < 0) {
end += length;
}
length = start > end ? 0 : ((end - start) >>> 0);
start >>>= 0;
var result = Array(length);
while (++index < length) {
result[index] = array[index + start];
}
return result;
}
module.exports = baseSlice;
/***/ },
/* 162 */
/***/ function(module, exports) {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsZWJ = '\\u200d';
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
module.exports = reHasComplexSymbol;
/***/ },
/* 163 */
/***/ function(module, exports) {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
rsFitz = '\\ud83c[\\udffb-\\udfff]',
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
rsZWJ = '\\u200d';
/** Used to compose unicode regexes. */
var reOptMod = rsModifier + '?',
rsOptVar = '[' + rsVarRange + ']?',
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
rsSeq = rsOptVar + reOptMod + rsOptJoin,
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/**
* Converts `string` to an array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the converted array.
*/
function stringToArray(string) {
return string.match(reComplexSymbol);
}
module.exports = stringToArray;
/***/ },
/* 164 */
/***/ function(module, exports, __webpack_require__) {
var isObjectLike = __webpack_require__(65);
/** `Object#toString` result references. */
var numberTag = '[object Number]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a `Number` primitive or object.
*
* **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
* classified as numbers, use the `_.isFinite` method.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is correctly classified,
* else `false`.
* @example
*
* _.isNumber(3);
* // => true
*
* _.isNumber(Number.MIN_VALUE);
* // => true
*
* _.isNumber(Infinity);
* // => true
*
* _.isNumber('3');
* // => false
*/
function isNumber(value) {
return typeof value == 'number' ||
(isObjectLike(value) && objectToString.call(value) == numberTag);
}
module.exports = isNumber;
/***/ },
/* 165 */
/***/ function(module, exports) {
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
function MersenneTwister19937() {
var N, M, MATRIX_A, UPPER_MASK, LOWER_MASK;
N = 624;
M = 397;
MATRIX_A = 0x9908b0df;
UPPER_MASK = 0x80000000;
LOWER_MASK = 0x7fffffff;
var mt = new Array(N);
var mti = N + 1;
function unsigned32(n1) {
return n1 < 0 ? (n1 ^ UPPER_MASK) + UPPER_MASK : n1;
}
function subtraction32(n1, n2) {
return n1 < n2 ? unsigned32(0x100000000 - (n2 - n1) & 0xffffffff) : n1 - n2;
}
function addition32(n1, n2) {
return unsigned32(n1 + n2 & 0xffffffff);
}
function multiplication32(n1, n2) {
var sum = 0;
for (var i = 0; i < 32; ++i) {
if (n1 >>> i & 0x1) {
sum = addition32(sum, unsigned32(n2 << i));
}
}
return sum;
}
this.init_genrand = function (s) {
mt[0] = unsigned32(s & 0xffffffff);
for (mti = 1; mti < N; mti++) {
mt[mti] = addition32(multiplication32(1812433253, unsigned32(mt[mti - 1] ^ mt[mti - 1] >>> 30)), mti);
mt[mti] = unsigned32(mt[mti] & 0xffffffff);
}
};
this.init_by_array = function (init_key, key_length) {
var i, j, k, dbg;
this.init_genrand(19650218);
i = 1;j = 0;
k = N > key_length ? N : key_length;
for (; k; k--) {
mt[i] = addition32(addition32(unsigned32(mt[i] ^ multiplication32(unsigned32(mt[i - 1] ^ mt[i - 1] >>> 30), 1664525)), init_key[j]), j);
mt[i] = unsigned32(mt[i] & 0xffffffff);
i++;j++;
if (i >= N) {
mt[0] = mt[N - 1];i = 1;
}
if (j >= key_length) j = 0;
}
for (k = N - 1; k; k--) {
mt[i] = subtraction32(unsigned32((dbg = mt[i]) ^ multiplication32(unsigned32(mt[i - 1] ^ mt[i - 1] >>> 30), 1566083941)), i);
mt[i] = unsigned32(mt[i] & 0xffffffff);
i++;
if (i >= N) {
mt[0] = mt[N - 1];i = 1;
}
}
mt[0] = 0x80000000;
};
var mag01 = [0x0, MATRIX_A];
this.genrand_int32 = function () {
var y;
if (mti >= N) {
var kk;
if (mti == N + 1) this.init_genrand(5489);
for (kk = 0; kk < N - M; kk++) {
y = unsigned32(mt[kk] & UPPER_MASK | mt[kk + 1] & LOWER_MASK);
mt[kk] = unsigned32(mt[kk + M] ^ y >>> 1 ^ mag01[y & 0x1]);
}
for (; kk < N - 1; kk++) {
y = unsigned32(mt[kk] & UPPER_MASK | mt[kk + 1] & LOWER_MASK);
mt[kk] = unsigned32(mt[kk + (M - N)] ^ y >>> 1 ^ mag01[y & 0x1]);
}
y = unsigned32(mt[N - 1] & UPPER_MASK | mt[0] & LOWER_MASK);
mt[N - 1] = unsigned32(mt[M - 1] ^ y >>> 1 ^ mag01[y & 0x1]);
mti = 0;
}
y = mt[mti++];
y = unsigned32(y ^ y >>> 11);
y = unsigned32(y ^ y << 7 & 0x9d2c5680);
y = unsigned32(y ^ y << 15 & 0xefc60000);
y = unsigned32(y ^ y >>> 18);
return y;
};
this.genrand_int31 = function () {
return this.genrand_int32() >>> 1;
};
this.genrand_real1 = function () {
return this.genrand_int32() * (1.0 / 4294967295.0);
};
this.genrand_real2 = function () {
return this.genrand_int32() * (1.0 / 4294967296.0);
};
this.genrand_real3 = function () {
return (this.genrand_int32() + 0.5) * (1.0 / 4294967296.0);
};
this.genrand_res53 = function () {
var a = this.genrand_int32() >>> 5,
b = this.genrand_int32() >>> 6;
return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
};
}
module.exports.MersenneTwister19937 = MersenneTwister19937;
var gen = new MersenneTwister19937();
gen.init_genrand(new Date().getTime() % 1000000000);
module.exports.rand = function (max, min) {
if (max === undefined) {
min = 0;
max = 32768;
}
return Math.floor(gen.genrand_real2() * (max - min) + min);
};
module.exports.seed = function (S) {
if (typeof S != 'number') throw new Error("seed(S) must take numeric argument; is " + (typeof S === 'undefined' ? 'undefined' : _typeof(S)));
gen.init_genrand(S);
};
module.exports.seed_array = function (A) {
if ((typeof A === 'undefined' ? 'undefined' : _typeof(A)) != 'object') throw new Error("seed_array(A) must take array of numbers; is " + (typeof A === 'undefined' ? 'undefined' : _typeof(A)));
gen.init_by_array(A);
};
/***/ },
/* 166 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
_meta: {
id: "pl-PL",
fallback: null,
language: "Polish",
country: "Poland",
countryCode: "PL"
},
names: __webpack_require__(167),
phone: __webpack_require__(170),
address: __webpack_require__(171),
company: __webpack_require__(174),
internet: __webpack_require__(175)
};
/***/ },
/* 167 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
firstNameM: __webpack_require__(168),
firstNameF: __webpack_require__(168),
lastNameM: __webpack_require__(169),
lastNameF: __webpack_require__(169),
prefix: ["Pan", "Pani"],
suffix: [],
name: ["#{names.prefix} #{names.firstName} #{names.lastName}", "#{names.firstName} #{names.lastName}", "#{names.firstName} #{names.lastName}", "#{names.firstName} #{names.lastName}", "#{names.firstName} #{names.lastName}", "#{names.firstName} #{names.lastName}"],
nameM: module.exports.name,
nameF: module.exports.name
};
/***/ },
/* 168 */
/***/ function(module, exports) {
"use strict";
module.exports = ["Aaron", "Abraham", "Adam", "Adrian", "Atanazy", "Agaton", "Alan", "Albert", "Aleksander", "Aleksy", "Alfred", "Alwar", "Ambroży", "Anatol", "Andrzej", "Antoni", "Apollinary", "Apollo", "Arkady", "Arkadiusz", "Archibald", "Arystarch", "Arnold", "Arseniusz", "Artur", "August", "Baldwin", "Bazyli", "Benedykt", "Beniamin", "Bernard", "Bertrand", "Bertram", "Borys", "Brajan", "Bruno", "Cezary", "Cecyliusz", "Karol", "Krystian", "Krzysztof", "Klarencjusz", "Klaudiusz", "Klemens", "Konrad", "Konstanty", "Konstantyn", "Kornel", "Korneliusz", "Korneli", "Cyryl", "Cyrus", "Damian", "Daniel", "Dariusz", "Dawid", "Dionizy", "Demetriusz", "Dominik", "Donald", "Dorian", "Edgar", "Edmund", "Edward", "Edwin", "Efrem", "Efraim", "Eliasz", "Eleazar", "Emil", "Emanuel", "Erast", "Ernest", "Eugeniusz", "Eustracjusz", "Fabian", "Feliks", "Florian", "Franciszek", "Fryderyk", "Gabriel", "Gedeon", "Galfryd", "Jerzy", "Gerald", "Gerazym", "Gilbert", "Gonsalwy", "Grzegorz", "Gwido", "Harald", "Henryk", "Herbert", "Herman", "Hilary", "Horacy", "Hubert", "Hugo", "Ignacy", "Igor", "Hilarion", "Innocenty", "Hipolit", "Ireneusz", "Erwin", "Izaak", "Izajasz", "Izydor", "Jakub", "Jeremi", "Jeremiasz", "Hieronim", "Gerald", "Joachim", "Jan", "Janusz", "Jonatan", "Józef", "Jozue", "Julian", "Juliusz", "Justyn", "Kalistrat", "Kazimierz", "Wawrzyniec", "Laurenty", "Laurencjusz", "Łazarz", "Leon", "Leonard", "Leonid", "Leon", "Ludwik", "Łukasz", "Lucjan", "Magnus", "Makary", "Marceli", "Marek", "Marcin", "Mateusz", "Maurycy", "Maksym", "Maksymilian", "Michał", "Miron", "Modest", "Mojżesz", "Natan", "Natanael", "Nazariusz", "Nazary", "Nestor", "Mikołaj", "Nikodem", "Olaf", "Oleg", "Oliwier", "Onufry", "Orestes", "Oskar", "Ansgary", "Osmund", "Pankracy", "Pantaleon", "Patryk", "Patrycjusz", "Patrycy", "Paweł", "Piotr", "Filemon", "Filip", "Platon", "Polikarp", "Porfiry", "Porfiriusz", "Prokles", "Prokul", "Prokop", "Kwintyn", "Randolf", "Rafał", "Rajmund", "Reginald", "Rajnold", "Ryszard", "Robert", "Roderyk", "Roger", "Roland", "Roman", "Romeo", "Reginald", "Rudolf", "Samson", "Samuel", "Salwator", "Sebastian", "Serafin", "Sergiusz", "Seweryn", "Zygmunt", "Sylwester", "Szymon", "Salomon", "Spirydion", "Stanisław", "Szczepan", "Stefan", "Terencjusz", "Teodor", "Tomasz", "Tymoteusz", "Tobiasz", "Walenty", "Walentyn", "Walerian", "Walery", "Wiktor", "Wincenty", "Witalis", "Włodzimierz", "Władysław", "Błażej", "Walter", "Walgierz", "Wacław", "Wilfryd", "Wilhelm", "Ksawery", "Ksenofont", "Jerzy", "Zachariasz", "Zachary", "Ada", "Adelajda", "Agata", "Agnieszka", "Agrypina", "Aida", "Aleksandra", "Alicja", "Alina", "Amanda", "Anastazja", "Angela", "Andżelika", "Angelina", "Anna", "Hanna", "—", "Antonina", "Ariadna", "Aurora", "Barbara", "Beatrycze", "Berta", "Brygida", "Kamila", "Karolina", "Karolina", "Kornelia", "Katarzyna", "Cecylia", "Karolina", "Chloe", "Krystyna", "Klara", "Klaudia", "Klementyna", "Konstancja", "Koralia", "Daria", "Diana", "Dina", "Dorota", "Edyta", "Eleonora", "Eliza", "Elżbieta", "Izabela", "Elwira", "Emilia", "Estera", "Eudoksja", "Eudokia", "Eugenia", "Ewa", "Ewelina", "Ferdynanda", "Florencja", "Franciszka", "Gabriela", "Gertruda", "Gloria", "Gracja", "Jadwiga", "Helena", "Henryka", "Nadzieja", "Ida", "Ilona", "Helena", "Irena", "Irma", "Izabela", "Izolda", "Jakubina", "Joanna", "Janina", "Żaneta", "Joanna", "Ginewra", "Józefina", "Judyta", "Julia", "Julia", "Julita", "Justyna", "Kira", "Cyra", "Kleopatra", "Larysa", "Laura", "Laurencja", "Laurentyna", "Lea", "Leila", "Eleonora", "Liliana", "Lilianna", "Lilia", "Lilla", "Liza", "Eliza", "Laura", "Ludwika", "Luiza", "Łucja", "Lucja", "Lidia", "Amabela", "Magdalena", "Malwina", "Małgorzata", "Greta", "Marianna", "Maryna", "Marta", "Martyna", "Maria", "Matylda", "Maja", "Maja", "Melania", "Michalina", "Monika", "Nadzieja", "Noemi", "Natalia", "Nikola", "Nina", "Olga", "Olimpia", "Oliwia", "Ofelia", "Patrycja", "Paula", "Pelagia", "Penelopa", "Filipa", "Paulina", "Rachela", "Rebeka", "Regina", "Renata", "Rozalia", "Róża", "Roksana", "Rufina", "Ruta", "Sabina", "Sara", "Serafina", "Sybilla", "Sylwia", "Zofia", "Stella", "Stefania", "Zuzanna", "Tamara", "Tacjana", "Tekla", "Teodora", "Teresa", "Walentyna", "Waleria", "Wanesa", "Wiara", "Weronika", "Wiktoria", "Wirginia", "Bibiana", "Bibianna", "Wanda", "Wilhelmina", "Ksawera", "Ksenia", "Zoe"];
/***/ },
/* 169 */
/***/ function(module, exports) {
"use strict";
module.exports = ["Adamczak", "Adamczyk", "Adamek", "Adamiak", "Adamiec", "Adamowicz", "Adamski", "Adamus", "Aleksandrowicz", "Andrzejczak", "Andrzejewski", "Antczak", "Augustyn", "Augustyniak", "Bagiński", "Balcerzak", "Banach", "Banasiak", "Banasik", "Banaś", "Baran", "Baranowski", "Barański", "Bartczak", "Bartkowiak", "Bartnik", "Bartosik", "Bednarczyk", "Bednarek", "Bednarski", "Bednarz", "Białas", "Białek", "Białkowski", "Bielak", "Bielawski", "Bielecki", "Bielski", "Bieniek", "Biernacki", "Biernat", "Bieńkowski", "Bilski", "Bober", "Bochenek", "Bogucki", "Bogusz", "Borek", "Borkowski", "Borowiec", "Borowski", "Bożek", "Broda", "Brzeziński", "Brzozowski", "Buczek", "Buczkowski", "Buczyński", "Budziński", "Budzyński", "Bujak", "Bukowski", "Burzyński", "Bąk", "Bąkowski", "Błaszczak", "Błaszczyk", "Cebula", "Chmiel", "Chmielewski", "Chmura", "Chojnacki", "Chojnowski", "Cholewa", "Chrzanowski", "Chudzik", "Cichocki", "Cichoń", "Cichy", "Ciesielski", "Cieśla", "Cieślak", "Cieślik", "Ciszewski", "Cybulski", "Cygan", "Czaja", "Czajka", "Czajkowski", "Czapla", "Czarnecki", "Czech", "Czechowski", "Czekaj", "Czerniak", "Czerwiński", "Czyż", "Czyżewski", "Dec", "Dobosz", "Dobrowolski", "Dobrzyński", "Domagała", "Domański", "Dominiak", "Drabik", "Drozd", "Drozdowski", "Drzewiecki", "Dróżdż", "Dubiel", "Duda", "Dudek", "Dudziak", "Dudzik", "Dudziński", "Duszyński", "Dziedzic", "Dziuba", "Dąbek", "Dąbkowski", "Dąbrowski", "Dębowski", "Dębski", "Długosz", "Falkowski", "Fijałkowski", "Filipek", "Filipiak", "Filipowicz", "Flak", "Flis", "Florczak", "Florek", "Frankowski", "Frąckowiak", "Frączek", "Frątczak", "Furman", "Gadomski", "Gajda", "Gajewski", "Gaweł", "Gawlik", "Gawron", "Gawroński", "Gałka", "Gałązka", "Gil", "Godlewski", "Golec", "Gołąb", "Gołębiewski", "Gołębiowski", "Grabowski", "Graczyk", "Grochowski", "Grudzień", "Gruszczyński", "Gruszka", "Grzegorczyk", "Grzelak", "Grzesiak", "Grzesik", "Grześkowiak", "Grzyb", "Grzybowski", "Grzywacz", "Gutowski", "Guzik", "Gwóźdź", "Góra", "Góral", "Górecki", "Górka", "Górniak", "Górny", "Górski", "Gąsior", "Gąsiorowski", "Głogowski", "Głowacki", "Głąb", "Hajduk", "Herman", "Iwański", "Izdebski", "Jabłoński", "Jackowski", "Jagielski", "Jagiełło", "Jagodziński", "Jakubiak", "Jakubowski", "Janas", "Janiak", "Janicki", "Janik", "Janiszewski", "Jankowiak", "Jankowski", "Janowski", "Janus", "Janusz", "Januszewski", "Jaros", "Jarosz", "Jarząbek", "Jasiński", "Jastrzębski", "Jaworski", "Jaśkiewicz", "Jezierski", "Jurek", "Jurkiewicz", "Jurkowski", "Juszczak", "Jóźwiak", "Jóźwik", "Jędrzejczak", "Jędrzejczyk", "Jędrzejewski", "Kacprzak", "Kaczmarczyk", "Kaczmarek", "Kaczmarski", "Kaczor", "Kaczorowski", "Kaczyński", "Kaleta", "Kalinowski", "Kalisz", "Kamiński", "Kania", "Kaniewski", "Kapusta", "Karaś", "Karczewski", "Karpiński", "Karwowski", "Kasperek", "Kasprzak", "Kasprzyk", "Kaszuba", "Kawa", "Kawecki", "Kałuża", "Kaźmierczak", "Kiełbasa", "Kisiel", "Kita", "Klimczak", "Klimek", "Kmiecik", "Kmieć", "Knapik", "Kobus", "Kogut", "Kolasa", "Komorowski", "Konieczna", "Konieczny", "Konopka", "Kopczyński", "Koper", "Kopeć", "Korzeniowski", "Kos", "Kosiński", "Kosowski", "Kostecki", "Kostrzewa", "Kot", "Kotowski", "Kowal", "Kowalczuk", "Kowalczyk", "Kowalewski", "Kowalik", "Kowalski", "Koza", "Kozak", "Kozieł", "Kozioł", "Kozłowski", "Kołakowski", "Kołodziej", "Kołodziejczyk", "Kołodziejski", "Krajewski", "Krakowiak", "Krawczyk", "Krawiec", "Kruk", "Krukowski", "Krupa", "Krupiński", "Kruszewski", "Krysiak", "Krzemiński", "Krzyżanowski", "Król", "Królikowski", "Książek", "Kubacki", "Kubiak", "Kubica", "Kubicki", "Kubik", "Kuc", "Kucharczyk", "Kucharski", "Kuchta", "Kuciński", "Kuczyński", "Kujawa", "Kujawski", "Kula", "Kulesza", "Kulig", "Kulik", "Kuliński", "Kurek", "Kurowski", "Kuś", "Kwaśniewski", "Kwiatkowski", "Kwiecień", "Kwieciński", "Kędzierski", "Kędziora", "Kępa", "Kłos", "Kłosowski", "Lach", "Laskowski", "Lasota", "Lech", "Lenart", "Lesiak", "Leszczyński", "Lewandowski", "Lewicki", "Leśniak", "Leśniewski", "Lipiński", "Lipka", "Lipski", "Lis", "Lisiecki", "Lisowski", "Maciejewski", "Maciąg", "Mackiewicz", "Madej", "Maj", "Majcher", "Majchrzak", "Majewski", "Majka", "Makowski", "Malec", "Malicki", "Malinowski", "Maliszewski", "Marchewka", "Marciniak", "Marcinkowski", "Marczak", "Marek", "Markiewicz", "Markowski", "Marszałek", "Marzec", "Masłowski", "Matusiak", "Matuszak", "Matuszewski", "Matysiak", "Mazur", "Mazurek", "Mazurkiewicz", "Maćkowiak", "Małecki", "Małek", "Maślanka", "Michalak", "Michalczyk", "Michalik", "Michalski", "Michałek", "Michałowski", "Mielczarek", "Mierzejewski", "Mika", "Mikołajczak", "Mikołajczyk", "Mikulski", "Milczarek", "Milewski", "Miller", "Misiak", "Misztal", "Miśkiewicz", "Modzelewski", "Molenda", "Morawski", "Motyka", "Mroczek", "Mroczkowski", "Mrozek", "Mróz", "Mucha", "Murawski", "Musiał", "Muszyński", "Młynarczyk", "Napierała", "Nawrocki", "Nawrot", "Niedziela", "Niedzielski", "Niedźwiecki", "Niemczyk", "Niemiec", "Niewiadomski", "Noga", "Nowacki", "Nowaczyk", "Nowak", "Nowakowski", "Nowicki", "Nowiński", "Olczak", "Olejniczak", "Olejnik", "Olszewski", "Orzechowski", "Orłowski", "Osiński", "Ossowski", "Ostrowski", "Owczarek", "Paczkowski", "Pająk", "Pakuła", "Paluch", "Panek", "Partyka", "Pasternak", "Paszkowski", "Pawelec", "Pawlak", "Pawlicki", "Pawlik", "Pawlikowski", "Pawłowski", "Pałka", "Piasecki", "Piechota", "Piekarski", "Pietras", "Pietruszka", "Pietrzak", "Pietrzyk", "Pilarski", "Pilch", "Piotrowicz", "Piotrowski", "Piwowarczyk", "Piórkowski", "Piątek", "Piątkowski", "Piłat", "Pluta", "Podgórski", "Polak", "Popławski", "Porębski", "Prokop", "Prus", "Przybylski", "Przybysz", "Przybył", "Przybyła", "Ptak", "Puchalski", "Pytel", "Płonka", "Raczyński", "Radecki", "Radomski", "Rak", "Rakowski", "Ratajczak", "Robak", "Rogala", "Rogalski", "Rogowski", "Rojek", "Romanowski", "Rosa", "Rosiak", "Rosiński", "Ruciński", "Rudnicki", "Rudziński", "Rudzki", "Rusin", "Rutkowski", "Rybak", "Rybarczyk", "Rybicki", "Rzepka", "Różański", "Różycki", "Sadowski", "Sawicki", "Serafin", "Siedlecki", "Sienkiewicz", "Sieradzki", "Sikora", "Sikorski", "Sitek", "Siwek", "Skalski", "Skiba", "Skibiński", "Skoczylas", "Skowron", "Skowronek", "Skowroński", "Skrzypczak", "Skrzypek", "Skóra", "Smoliński", "Sobczak", "Sobczyk", "Sobieraj", "Sobolewski", "Socha", "Sochacki", "Sokołowski", "Sokół", "Sosnowski", "Sowa", "Sowiński", "Sołtys", "Sołtysiak", "Sroka", "Stachowiak", "Stachowicz", "Stachura", "Stachurski", "Stanek", "Staniszewski", "Stanisławski", "Stankiewicz", "Stasiak", "Staszewski", "Stawicki", "Stec", "Stefaniak", "Stefański", "Stelmach", "Stolarczyk", "Stolarski", "Strzelczyk", "Strzelecki", "Stępień", "Stępniak", "Surma", "Suski", "Szafrański", "Szatkowski", "Szczepaniak", "Szczepanik", "Szczepański", "Szczerba", "Szcześniak", "Szczygieł", "Szczęsna", "Szczęsny", "Szeląg", "Szewczyk", "Szostak", "Szulc", "Szwarc", "Szwed", "Szydłowski", "Szymański", "Szymczak", "Szymczyk", "Szymkowiak", "Szyszka", "Sławiński", "Słowik", "Słowiński", "Tarnowski", "Tkaczyk", "Tokarski", "Tomala", "Tomaszewski", "Tomczak", "Tomczyk", "Tracz", "Trojanowski", "Trzciński", "Trzeciak", "Turek", "Twardowski", "Urban", "Urbanek", "Urbaniak", "Urbanowicz", "Urbańczyk", "Urbański", "Walczak", "Walkowiak", "Warchoł", "Wasiak", "Wasilewski", "Wawrzyniak", "Wesołowski", "Wieczorek", "Wierzbicki", "Wilczek", "Wilczyński", "Wilk", "Winiarski", "Witczak", "Witek", "Witkowski", "Wiącek", "Więcek", "Więckowski", "Wiśniewski", "Wnuk", "Wojciechowski", "Wojtas", "Wojtasik", "Wojtczak", "Wojtkowiak", "Wolak", "Woliński", "Wolny", "Wolski", "Woś", "Woźniak", "Wrona", "Wroński", "Wróbel", "Wróblewski", "Wypych", "Wysocki", "Wyszyński", "Wójcicki", "Wójcik", "Wójtowicz", "Wąsik", "Węgrzyn", "Włodarczyk", "Włodarski", "Zaborowski", "Zabłocki", "Zagórski", "Zając", "Zajączkowski", "Zakrzewski", "Zalewski", "Zaremba", "Zarzycki", "Zaręba", "Zawada", "Zawadzki", "Zdunek", "Zieliński", "Zielonka", "Ziółkowski", "Zięba", "Ziętek", "Zwoliński", "Zych", "Zygmunt", "Łapiński", "Łuczak", "Łukasiewicz", "Łukasik", "Łukaszewski", "Śliwa", "Śliwiński", "Ślusarczyk", "Świderski", "Świerczyński", "Świątek", "Żak", "Żebrowski", "Żmuda", "Żuk", "Żukowski", "Żurawski", "Żurek", "Żyła"];
/***/ },
/* 170 */
/***/ function(module, exports) {
"use strict";
module.exports = {
number: ["9##-###-###", "9##.###.###", "9## ### ###", "9########"]
};
/***/ },
/* 171 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _countryWithCodes = __webpack_require__(172);
var _countryWithCodes2 = _interopRequireDefault(_countryWithCodes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = {
countryAndCode: function countryAndCode() {
var country = this.random.objectElement(_countryWithCodes2.default);
return {
code: Object.keys(country)[0],
name: country[Object.keys(country)[0]]
};
},
state: ["Dolnośląskie", "Kujawsko-pomorskie", "Lubelskie", "Lubuskie", "Łódzkie", "Małopolskie", "Mazowieckie", "Opolskie", "Podkarpackie", "Podlaskie", "Pomorskie", "Śląskie", "Świętokrzyskie", "Warmińsko-mazurskie", "Wielkopolskie", "Zachodniopomorskie"],
stateAbbr: ["DŚ", "KP", "LB", "LS", "ŁD", "MP", "MZ", "OP", "PK", "PL", "PM", "ŚL", "ŚK", "WM", "WP", "ZP"],
city: __webpack_require__(173),
street: ["#{address.streetName} #{address.buildingNumber}"],
streetName: ["#{address.streetPrefix} #{names.lastName}"],
streetPrefix: ["ul.", "al."],
buildingNumber: ["#####", "####", "###"],
postCode: ["##-###"]
};
/***/ },
/* 172 */
/***/ function(module, exports) {
"use strict";
module.exports = {
"AF": "Afganistan",
"AL": "Albania",
"DZ": "Algieria",
"AD": "Andora",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarktyka",
"AG": "Antigua i Barbuda",
"SA": "Arabia Saudyjska",
"AR": "Argentyna",
"AM": "Armenia",
"AW": "Aruba",
"AU": "Australia",
"AT": "Austria",
"AZ": "Azerbejdżan",
"BS": "Bahamy",
"BH": "Bahrajn",
"BD": "Bangladesz",
"BB": "Barbados",
"BE": "Belgia",
"BZ": "Belize",
"BJ": "Benin",
"BM": "Bermudy",
"BT": "Bhutan",
"BY": "Białoruś",
"BO": "Boliwia",
"BA": "Bośnia i Hercegowina",
"BW": "Botswana",
"BR": "Brazylia",
"BN": "Brunei Darussalam",
"IO": "Brytyjskie Terytorium Oceanu Indyjskiego",
"VG": "Brytyjskie Wyspy Dziewicze",
"BG": "Bułgaria",
"BF": "Burkina Faso",
"BI": "Burundi",
"EA": "Ceuta i Melilla",
"CL": "Chile",
"CN": "Chiny",
"HR": "Chorwacja",
"CI": "Côte d’Ivoire",
"CW": "Curaçao",
"CY": "Cypr",
"TD": "Czad",
"ME": "Czarnogóra",
"CZ": "Czechy",
"UM": "Dalekie Wyspy Mniejsze Stanów Zjednoczonych",
"DK": "Dania",
"CD": "Demokratyczna Republika Konga",
"DG": "Diego Garcia",
"DM": "Dominika",
"DO": "Dominikana",
"DJ": "Dżibuti",
"EG": "Egipt",
"EC": "Ekwador",
"ER": "Erytrea",
"EE": "Estonia",
"ET": "Etiopia",
"FK": "Falklandy",
"FJ": "Fidżi",
"PH": "Filipiny",
"FI": "Finlandia",
"FR": "Francja",
"TF": "Francuskie Terytoria Południowe",
"GA": "Gabon",
"GM": "Gambia",
"GS": "Georgia Południowa i Sandwich Południowy",
"GH": "Ghana",
"GI": "Gibraltar",
"GR": "Grecja",
"GD": "Grenada",
"GL": "Grenlandia",
"GE": "Gruzja",
"GU": "Guam",
"GY": "Gujana",
"GF": "Gujana Francuska",
"GP": "Gwadelupa",
"GT": "Gwatemala",
"GN": "Gwinea",
"GW": "Gwinea Bissau",
"GQ": "Gwinea Równikowa",
"HT": "Haiti",
"ES": "Hiszpania",
"NL": "Holandia",
"HN": "Honduras",
"IN": "Indie",
"ID": "Indonezja",
"IQ": "Irak",
"IR": "Iran",
"IE": "Irlandia",
"IS": "Islandia",
"IL": "Izrael",
"JM": "Jamajka",
"JP": "Japonia",
"YE": "Jemen",
"JO": "Jordania",
"KY": "Kajmany",
"KH": "Kambodża",
"CM": "Kamerun",
"CA": "Kanada",
"QA": "Katar",
"KZ": "Kazachstan",
"KE": "Kenia",
"KG": "Kirgistan",
"KI": "Kiribati",
"CO": "Kolumbia",
"KM": "Komory",
"CG": "Kongo",
"KR": "Korea Południowa",
"KP": "Korea Północna",
"XK": "Kosowo",
"CR": "Kostaryka",
"CU": "Kuba",
"KW": "Kuwejt",
"LA": "Laos",
"LS": "Lesotho",
"LB": "Liban",
"LR": "Liberia",
"LY": "Libia",
"LI": "Liechtenstein",
"LT": "Litwa",
"LU": "Luksemburg",
"LV": "Łotwa",
"MK": "Macedonia",
"MG": "Madagaskar",
"YT": "Majotta",
"MW": "Malawi",
"MV": "Malediwy",
"MY": "Malezja",
"ML": "Mali",
"MT": "Malta",
"MP": "Mariany Północne",
"MA": "Maroko",
"MQ": "Martynika",
"MR": "Mauretania",
"MU": "Mauritius",
"MX": "Meksyk",
"FM": "Mikronezja",
"MM": "Mjanma (Birma)",
"MD": "Mołdawia",
"MC": "Monako",
"MN": "Mongolia",
"MS": "Montserrat",
"MZ": "Mozambik",
"NA": "Namibia",
"NR": "Nauru",
"NP": "Nepal",
"BQ": "Niderlandy Karaibskie",
"DE": "Niemcy",
"NE": "Niger",
"NG": "Nigeria",
"NI": "Nikaragua",
"NU": "Niue",
"NF": "Norfolk",
"NO": "Norwegia",
"NC": "Nowa Kaledonia",
"NZ": "Nowa Zelandia",
"OM": "Oman",
"PK": "Pakistan",
"PW": "Palau",
"PA": "Panama",
"PG": "Papua-Nowa Gwinea",
"PY": "Paragwaj",
"PE": "Peru",
"PN": "Pitcairn",
"PF": "Polinezja Francuska",
"PL": "Polska",
"PR": "Portoryko",
"PT": "Portugalia",
"ZA": "Republika Południowej Afryki",
"CF": "Republika Środkowoafrykańska",
"CV": "Republika Zielonego Przylądka",
"RE": "Reunion",
"RU": "Rosja",
"RO": "Rumunia",
"RW": "Rwanda",
"EH": "Sahara Zachodnia",
"KN": "Saint Kitts i Nevis",
"LC": "Saint Lucia",
"VC": "Saint Vincent i Grenadyny",
"BL": "Saint-Barthélemy",
"MF": "Saint-Martin",
"PM": "Saint-Pierre i Miquelon",
"SV": "Salwador",
"WS": "Samoa",
"AS": "Samoa Amerykańskie",
"SM": "San Marino",
"SN": "Senegal",
"RS": "Serbia",
"SC": "Seszele",
"SL": "Sierra Leone",
"SG": "Singapur",
"SX": "Sint Maarten",
"SK": "Słowacja",
"SI": "Słowenia",
"SO": "Somalia",
"HK": "SRA Hongkong (Chiny)",
"MO": "SRA Makau (Chiny)",
"LK": "Sri Lanka",
"US": "Stany Zjednoczone",
"SZ": "Suazi",
"SD": "Sudan",
"SS": "Sudan Południowy",
"SR": "Surinam",
"SJ": "Svalbard i Jan Mayen",
"SY": "Syria",
"CH": "Szwajcaria",
"SE": "Szwecja",
"TJ": "Tadżykistan",
"TH": "Tajlandia",
"TW": "Tajwan",
"TZ": "Tanzania",
"PS": "Terytoria Palestyńskie",
"TL": "Timor Wschodni",
"TG": "Togo",
"TK": "Tokelau",
"TO": "Tonga",
"TA": "Tristan da Cunha",
"TT": "Trynidad i Tobago",
"TN": "Tunezja",
"TR": "Turcja",
"TM": "Turkmenistan",
"TC": "Turks i Caicos",
"TV": "Tuvalu",
"UG": "Uganda",
"UA": "Ukraina",
"UY": "Urugwaj",
"UZ": "Uzbekistan",
"VU": "Vanuatu",
"WF": "Wallis i Futuna",
"VA": "Watykan",
"VE": "Wenezuela",
"HU": "Węgry",
"GB": "Wielka Brytania",
"VN": "Wietnam",
"IT": "Włochy",
"CX": "Wyspa Bożego Narodzenia",
"GG": "Wyspa Guernsey",
"JE": "Wyspa Jersey",
"IM": "Wyspa Man",
"SH": "Wyspa Świętej Heleny",
"AC": "Wyspa Wniebowstąpienia",
"AX": "Wyspy Alandzkie",
"CK": "Wyspy Cooka",
"VI": "Wyspy Dziewicze Stanów Zjednoczonych",
"IC": "Wyspy Kanaryjskie",
"CC": "Wyspy Kokosowe",
"MH": "Wyspy Marshalla",
"FO": "Wyspy Owcze",
"SB": "Wyspy Salomona",
"ST": "Wyspy Świętego Tomasza i Książęca",
"ZM": "Zambia",
"ZW": "Zimbabwe",
"AE": "Zjednoczone Emiraty Arabskie"
};
/***/ },
/* 173 */
/***/ function(module, exports) {
"use strict";
module.exports = ["Aleksandrów Kujawski", "Aleksandrów Łódzki", "Alwernia", "Andrychów", "Annopol", "Augustów", "Babimost", "Baborów", "Baranów Sandomierski", "Barcin", "Barczewo", "Bardo", "Barlinek", "Bartoszyce", "Barwice", "Bełchatów", "Bełżyce", "Będzin", "Biała", "Biała Piska", "Biała Podlaska", "Biała Rawska", "Białobrzegi", "Białogard", "Biały Bór", "Białystok", "Biecz", "Bielawa", "Bielsk Podlaski", "Bielsko-Biała", "Bieruń", "Bierutów", "Bieżuń", "Biłgoraj", "Biskupiec", "Bisztynek", "Blachownia", "Błaszki", "Błażowa", "Błonie", "Bobolice", "Bobowa", "Bochnia", "Bodzentyn", "Bogatynia", "Boguchwała", "Boguszów-Gorce", "Bojanowo", "Bolesławiec", "Bolków", "Borek Wielkopolski", "Borne Sulinowo", "Braniewo", "Brańsk", "Brodnica", "Brok", "Brusy", "Brwinów", "Brzeg", "Brzeg Dolny", "Brzesko", "Brzeszcze", "Brześć Kujawski", "Brzeziny", "Brzostek", "Brzozów", "Buk", "Bukowno", "Busko-Zdrój", "Bychawa", "Byczyna", "Bydgoszcz", "Bystrzyca Kłodzka", "Bytom", "Bytom Odrzański", "Bytów", "Cedynia", "Chełm", "Chełmek", "Chełmno", "Chełmża", "Chęciny", "Chmielnik", "Chocianów", "Chociwel", "Chodecz", "Chodzież", "Chojna", "Chojnice", "Chojnów", "Choroszcz", "Chorzele", "Chorzów", "Choszczno", "Chrzanów", "Ciechanowiec", "Ciechanów", "Ciechocinek", "Cieszanów", "Cieszyn", "Ciężkowice", "Cybinka", "Czaplinek", "Czarna Białostocka", "Czarna Woda", "Czarne", "Czarnków", "Czchów", "Czechowice-Dziedzice", "Czeladź", "Czempiń", "Czerniejewo", "Czersk", "Czerwieńsk", "Czerwionka-Leszczyny", "Częstochowa", "Człopa", "Człuchów", "Czyżew", "Ćmielów", "Daleszyce", "Darłowo", "Dąbie", "Dąbrowa Białostocka", "Dąbrowa Górnicza", "Dąbrowa Tarnowska", "Debrzno", "Dębica", "Dęblin", "Dębno", "Dobczyce", "Dobiegniew", "Dobra (powiat łobeski)", "Dobra (powiat turecki)", "Dobre Miasto", "Dobrodzień", "Dobrzany", "Dobrzyń nad Wisłą", "Dolsk", "Drawno", "Drawsko Pomorskie", "Drezdenko", "Drobin", "Drohiczyn", "Drzewica", "Dukla", "Duszniki-Zdrój", "Dynów", "Działdowo", "Działoszyce", "Działoszyn", "Dzierzgoń", "Dzierżoniów", "Dziwnów", "Elbląg", "Ełk", "Frampol", "Frombork", "Garwolin", "Gąbin", "Gdańsk", "Gdynia", "Giżycko", "Glinojeck", "Gliwice", "Głogów", "Głogów Małopolski", "Głogówek", "Głowno", "Głubczyce", "Głuchołazy", "Głuszyca", "Gniew", "Gniewkowo", "Gniezno", "Gogolin", "Golczewo", "Goleniów", "Golina", "Golub-Dobrzyń", "Gołańcz", "Gołdap", "Goniądz", "Gorlice", "Gorzów Śląski", "Gorzów Wielkopolski", "Gostynin", "Gostyń", "Gościno", "Gozdnica", "Góra", "Góra Kalwaria", "Górowo Iławeckie", "Górzno", "Grabów nad Prosną", "Grajewo", "Grodków", "Grodzisk Mazowiecki", "Grodzisk Wielkopolski", "Grójec", "Grudziądz", "Grybów", "Gryfice", "Gryfino", "Gryfów Śląski", "Gubin", "Hajnówka", "Halinów", "Hel", "Hrubieszów", "Iława", "Iłowa", "Iłża", "Imielin", "Inowrocław", "Ińsko", "Iwonicz-Zdrój", "Izbica Kujawska", "Jabłonowo Pomorskie", "Janikowo", "Janowiec Wielkopolski", "Janów Lubelski", "Jarocin", "Jarosław", "Jasień", "Jasło", "Jastarnia", "Jastrowie", "Jastrzębie-Zdrój", "Jawor", "Jaworzno", "Jaworzyna Śląska", "Jedlicze", "Jedlina-Zdrój", "Jedwabne", "Jelcz-Laskowice", "Jelenia Góra", "Jeziorany", "Jędrzejów", "Jordanów", "Józefów (powiat biłgorajski)", "Józefów (powiat otwocki)", "Jutrosin", "Kalety", "Kalisz", "Kalisz Pomorski", "Kalwaria Zebrzydowska", "Kałuszyn", "Kamienna Góra", "Kamień Krajeński", "Kamień Pomorski", "Kamieńsk", "Kańczuga", "Karczew", "Kargowa", "Karlino", "Karpacz", "Kartuzy", "Katowice", "Kazimierz Dolny", "Kazimierza Wielka", "Kąty Wrocławskie", "Kcynia", "Kędzierzyn-Koźle", "Kępice", "Kępno", "Kętrzyn", "Kęty", "Kielce", "Kietrz", "Kisielice", "Kleczew", "Kleszczele", "Kluczbork", "Kłecko", "Kłobuck", "Kłodawa", "Kłodzko", "Knurów", "Knyszyn", "Kobylin", "Kobyłka", "Kock", "Kolbuszowa", "Kolno", "Kolonowskie", "Koluszki", "Kołaczyce", "Koło", "Kołobrzeg", "Koniecpol", "Konin", "Konstancin-Jeziorna", "Konstantynów Łódzki", "Końskie", "Koprzywnica", "Korfantów", "Koronowo", "Korsze", "Kosów Lacki", "Kostrzyn", "Kostrzyn nad Odrą", "Koszalin", "Kościan", "Kościerzyna", "Kowal", "Kowalewo Pomorskie", "Kowary", "Koziegłowy", "Kozienice", "Koźmin Wielkopolski", "Kożuchów", "Kórnik", "Krajenka", "Kraków", "Krapkowice", "Krasnobród", "Krasnystaw", "Kraśnik", "Krobia", "Krosno", "Krosno Odrzańskie", "Krośniewice", "Krotoszyn", "Kruszwica", "Krynica Morska", "Krynica-Zdrój", "Krynki", "Krzanowice", "Krzepice", "Krzeszowice", "Krzywiń", "Krzyż Wielkopolski", "Książ Wielkopolski", "Kudowa-Zdrój", "Kunów", "Kutno", "Kuźnia Raciborska", "Kwidzyn", "Lądek-Zdrój", "Legionowo", "Legnica", "Lesko", "Leszno", "Leśna", "Leśnica", "Lewin Brzeski", "Leżajsk", "Lębork", "Lędziny", "Libiąż", "Lidzbark", "Lidzbark Warmiński", "Limanowa", "Lipiany", "Lipno", "Lipsk", "Lipsko", "Lubaczów", "Lubań", "Lubartów", "Lubawa", "Lubawka", "Lubień Kujawski", "Lubin", "Lublin", "Lubliniec", "Lubniewice", "Lubomierz", "Luboń", "Lubraniec", "Lubsko", "Lwówek", "Lwówek Śląski", "Łabiszyn", "Łańcut", "Łapy", "Łasin", "Łask", "Łaskarzew", "Łaszczów", "Łaziska Górne", "Łazy", "Łeba", "Łęczna", "Łęczyca", "Łęknica", "Łobez", "Łobżenica", "Łochów", "Łomianki", "Łomża", "Łosice", "Łowicz", "Łódź", "Łuków", "Maków Mazowiecki", "Maków Podhalański", "Malbork", "Małogoszcz", "Małomice", "Margonin", "Marki", "Maszewo", "Miasteczko Śląskie", "Miastko", "Michałowo", "Miechów", "Miejska Górka", "Mielec", "Mieroszów", "Mieszkowice", "Międzybórz", "Międzychód", "Międzylesie", "Międzyrzec Podlaski", "Międzyrzecz", "Międzyzdroje", "Mikołajki", "Mikołów", "Mikstat", "Milanówek", "Milicz", "Miłakowo", "Miłomłyn", "Miłosław", "Mińsk Mazowiecki", "Mirosławiec", "Mirsk", "Mława", "Młynary", "Mogielnica", "Mogilno", "Mońki", "Morąg", "Mordy", "Moryń", "Mosina", "Mrągowo", "Mrocza", "Mszana Dolna", "Mszczonów", "Murowana Goślina", "Muszyna", "Mysłowice", "Myszków", "Myszyniec", "Myślenice", "Myślibórz", "Nakło nad Notecią", "Nałęczów", "Namysłów", "Narol", "Nasielsk", "Nekla", "Nidzica", "Niemcza", "Niemodlin", "Niepołomice", "Nieszawa", "Nisko", "Nowa Dęba", "Nowa Ruda", "Nowa Sarzyna", "Nowa Sól", "Nowe", "Nowe Brzesko", "Nowe Miasteczko", "Nowe Miasto Lubawskie", "Nowe Miasto nad Pilicą", "Nowe Skalmierzyce", "Nowe Warpno", "Nowogard", "Nowogrodziec", "Nowogród", "Nowogród Bobrzański", "Nowy Dwór Gdański", "Nowy Dwór Mazowiecki", "Nowy Sącz", "Nowy Staw", "Nowy Targ", "Nowy Tomyśl", "Nowy Wiśnicz", "Nysa", "Oborniki", "Oborniki Śląskie", "Obrzycko", "Odolanów", "Ogrodzieniec", "Okonek", "Olecko", "Olesno", "Oleszyce", "Oleśnica", "Olkusz", "Olsztyn", "Olsztynek", "Olszyna", "Oława", "Opalenica", "Opatów", "Opoczno", "Opole", "Opole Lubelskie", "Orneta", "Orzesze", "Orzysz", "Osieczna", "Osiek", "Ostrołęka", "Ostroróg", "Ostrowiec Świętokrzyski", "Ostróda", "Ostrów Lubelski", "Ostrów Mazowiecka", "Ostrów Wielkopolski", "Ostrzeszów", "Ośno Lubuskie", "Oświęcim", "Otmuchów", "Otwock", "Ozimek", "Ozorków", "Ożarów", "Ożarów Mazowiecki", "Pabianice", "Paczków", "Pajęczno", "Pakość", "Parczew", "Pasłęk", "Pasym", "Pelplin", "Pełczyce", "Piaseczno", "Piaski", "Piastów", "Piechowice", "Piekary Śląskie", "Pieniężno", "Pieńsk", "Pieszyce", "Pilawa", "Pilica", "Pilzno", "Piła", "Piława Górna", "Pińczów", "Pionki", "Piotrków Kujawski", "Piotrków Trybunalski", "Pisz", "Piwniczna-Zdrój", "Pleszew", "Płock", "Płońsk", "Płoty", "Pniewy", "Pobiedziska", "Poddębice", "Podkowa Leśna", "Pogorzela", "Polanica-Zdrój", "Polanów", "Police", "Polkowice", "Połaniec", "Połczyn-Zdrój", "Poniatowa", "Poniec", "Poręba", "Poznań", "Prabuty", "Praszka", "Prochowice", "Proszowice", "Prószków", "Pruchnik", "Prudnik", "Prusice", "Pruszcz Gdański", "Pruszków", "Przasnysz", "Przecław", "Przedbórz", "Przedecz", "Przemków", "Przemyśl", "Przeworsk", "Przysucha", "Pszczyna", "Pszów", "Puck", "Puławy", "Pułtusk", "Puszczykowo", "Pyrzyce", "Pyskowice", "Pyzdry", "Rabka-Zdrój", "Raciąż", "Racibórz", "Radków", "Radlin", "Radłów", "Radom", "Radomsko", "Radomyśl Wielki", "Radymno", "Radziejów", "Radzionków", "Radzymin", "Radzyń Chełmiński", "Radzyń Podlaski", "Rajgród", "Rakoniewice", "Raszków", "Rawa Mazowiecka", "Rawicz", "Recz", "Reda", "Rejowiec Fabryczny", "Resko", "Reszel", "Rogoźno", "Ropczyce", "Różan", "Ruciane-Nida", "Ruda Śląska", "Rudnik nad Sanem", "Rumia", "Rybnik", "Rychwał", "Rydułtowy", "Rydzyna", "Ryglice", "Ryki", "Rymanów", "Ryn", "Rypin", "Rzepin", "Rzeszów", "Rzgów", "Sandomierz", "Sanok", "Sejny", "Serock", "Sędziszów", "Sędziszów Małopolski", "Sępopol", "Sępólno Krajeńskie", "Sianów", "Siechnice", "Siedlce", "Siemianowice Śląskie", "Siemiatycze", "Sieniawa", "Sieradz", "Sieraków", "Sierpc", "Siewierz", "Skalbmierz", "Skała", "Skarszewy", "Skaryszew", "Skarżysko-Kamienna", "Skawina", "Skępe", "Skierniewice", "Skoczów", "Skoki", "Skórcz", "Skwierzyna", "Sława", "Sławków", "Sławno", "Słomniki", "Słubice", "Słupca", "Słupsk", "Sobótka", "Sochaczew", "Sokołów Małopolski", "Sokołów Podlaski", "Sokółka", "Solec Kujawski", "Sompolno", "Sopot", "Sosnowiec", "Sośnicowice", "Stalowa Wola", "Starachowice", "Stargard Szczeciński", "Starogard Gdański", "Stary Sącz", "Staszów", "Stawiski", "Stawiszyn", "Stąporków", "Stęszew", "Stoczek Łukowski", "Stronie Śląskie", "Strumień", "Stryków", "Strzegom", "Strzelce Krajeńskie", "Strzelce Opolskie", "Strzelin", "Strzelno", "Strzyżów", "Sucha Beskidzka", "Suchań", "Suchedniów", "Suchowola", "Sulechów", "Sulejów", "Sulejówek", "Sulęcin", "Sulmierzyce", "Sułkowice", "Supraśl", "Suraż", "Susz", "Suwałki", "Swarzędz", "Syców", "Szadek", "Szamocin", "Szamotuły", "Szczawnica", "Szczawno-Zdrój", "Szczebrzeszyn", "Szczecin", "Szczecinek", "Szczekociny", "Szczucin", "Szczuczyn", "Szczyrk", "Szczytna", "Szczytno", "Szepietowo", "Szklarska Poręba", "Szlichtyngowa", "Szprotawa", "Sztum", "Szubin", "Szydłowiec", "Ścinawa", "Ślesin", "Śmigiel", "Śrem", "Środa Śląska", "Środa Wielkopolska", "Świątniki Górne", "Świdnica", "Świdnik", "Świdwin", "Świebodzice", "Świebodzin", "Świecie", "Świeradów-Zdrój", "Świerzawa", "Świętochłowice", "Świnoujście", "Tarczyn", "Tarnobrzeg", "Tarnogród", "Tarnowskie Góry", "Tarnów", "Tczew", "Terespol", "Tłuszcz", "Tolkmicko", "Tomaszów Lubelski", "Tomaszów Mazowiecki", "Toruń", "Torzym", "Toszek", "Trzcianka", "Trzciel", "Trzcińsko-Zdrój", "Trzebiatów", "Trzebinia", "Trzebnica", "Trzemeszno", "Tuchola", "Tuchów", "Tuczno", "Tuliszków", "Turek", "Tuszyn", "Twardogóra", "Tychowo", "Tychy", "Tyczyn", "Tykocin", "Tyszowce", "Ujazd", "Ujście", "Ulanów", "Uniejów", "Ustka", "Ustroń", "Ustrzyki Dolne", "Wadowice", "Wałbrzych", "Wałcz", "Warka", "Warszawa", "Warta", "Wasilków", "Wąbrzeźno", "Wąchock", "Wągrowiec", "Wąsosz", "Wejherowo", "Węgliniec", "Węgorzewo", "Węgorzyno", "Węgrów", "Wiązów", "Wieleń", "Wielichowo", "Wieliczka", "Wieluń", "Wieruszów", "Więcbork", "Wilamowice", "Wisła", "Witkowo", "Witnica", "Wleń", "Władysławowo", "Włocławek", "Włodawa", "Włoszczowa", "Wodzisław Śląski", "Wojcieszów", "Wojkowice", "Wojnicz", "Wolbórz", "Wolbrom", "Wolin", "Wolsztyn", "Wołczyn", "Wołomin", "Wołów", "Woźniki", "Wrocław", "Wronki", "Września", "Wschowa", "Wyrzysk", "Wysoka", "Wysokie Mazowieckie", "Wyszków", "Wyszogród", "Wyśmierzyce", "Zabłudów", "Zabrze", "Zagórów", "Zagórz", "Zakliczyn", "Zakopane", "Zakroczym", "Zalewo", "Zambrów", "Zamość", "Zator", "Zawadzkie", "Zawichost", "Zawidów", "Zawiercie", "Ząbki", "Ząbkowice Śląskie", "Zbąszynek", "Zbąszyń", "Zduny", "Zduńska Wola", "Zdzieszowice", "Zelów", "Zgierz", "Zgorzelec", "Zielona Góra", "Zielonka", "Ziębice", "Złocieniec", "Złoczew", "Złotoryja", "Złotów", "Złoty Stok", "Zwierzyniec", "Zwoleń", "Żabno", "Żagań", "Żarki", "Żarów", "Żary", "Żelechów", "Żerków", "Żmigród", "Żnin", "Żory", "Żukowo", "Żuromin", "Żychlin", "Żyrardów", "Żywiec"];
/***/ },
/* 174 */
/***/ function(module, exports) {
"use strict";
module.exports = {};
/***/ },
/* 175 */
/***/ function(module, exports) {
"use strict";
module.exports = {
tld: ["com", "pl", "com.pl", "net", "org"]
};
/***/ },
/* 176 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
_meta: {
id: "default",
fallback: null,
mask: "\#\{([A-Za-z0-9_\.]+)\}",
language: "English",
country: "United Kingdom",
countryCode: "UK"
},
names: __webpack_require__(177),
phone: __webpack_require__(181),
address: __webpack_require__(182),
company: __webpack_require__(188),
internet: __webpack_require__(189),
lorem: __webpack_require__(216),
date: __webpack_require__(219),
misc: __webpack_require__(221),
entity: __webpack_require__(224)
};
/***/ },
/* 177 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
firstNameM: __webpack_require__(178),
firstNameF: __webpack_require__(179),
firstName: ["#{names.firstNameM}", "#{names.firstNameF}"],
lastNameM: __webpack_require__(180),
lastNameF: __webpack_require__(180),
lastName: ["#{names.lastNameM}", "#{names.lastNameF}"],
prefix: ["Mr.", "Mrs.", "Ms.", "Miss", "Dr."],
suffix: ["Jr.", "Sr.", "I", "II", "III", "IV", "V", "MD", "DDS", "PhD", "DVM"],
nameM: ["#{names.prefix} #{names.firstNameM} #{names.lastNameM}", "#{names.firstNameM} #{names.lastNameM} #{names.suffix}", "#{names.firstNameM} #{names.lastNameM}", "#{names.firstNameM} #{names.lastNameM}", "#{names.firstNameM} #{names.lastNameM}", "#{names.firstNameM} #{names.lastNameM}"],
nameF: ["#{names.prefix} #{names.firstNameF} #{names.lastNameF}", "#{names.firstNameF} #{names.lastNameF} #{names.suffix}", "#{names.firstNameF} #{names.lastNameF}", "#{names.firstNameF} #{names.lastNameF}", "#{names.firstNameF} #{names.lastNameF}", "#{names.firstNameF} #{names.lastNameF}"],
name: ["#{names.nameM}", "#{names.nameF}"]
};
/***/ },
/* 178 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["James", "John", "Robert", "Michael", "William", "David", "Richard", "Charles", "Joseph", "Thomas", "Christopher", "Daniel", "Paul", "Mark", "Donald", "George", "Kenneth", "Steven", "Edward", "Brian", "Ronald", "Anthony", "Kevin", "Jason", "Matthew", "Gary", "Timothy", "Jose", "Larry", "Jeffrey", "Frank", "Scott", "Eric", "Stephen", "Andrew", "Raymond", "Gregory", "Joshua", "Jerry", "Dennis", "Walter", "Patrick", "Peter", "Harold", "Douglas", "Henry", "Carl", "Arthur", "Ryan", "Roger", "Joe", "Juan", "Jack", "Albert", "Jonathan", "Justin", "Terry", "Gerald", "Keith", "Samuel", "Willie", "Ralph", "Lawrence", "Nicholas", "Roy", "Benjamin", "Bruce", "Brandon", "Adam", "Harry", "Fred", "Wayne", "Billy", "Steve", "Louis", "Jeremy", "Aaron", "Randy", "Howard", "Eugene", "Carlos", "Russell", "Bobby", "Victor", "Martin", "Ernest", "Phillip", "Todd", "Jesse", "Craig", "Alan", "Shawn", "Clarence", "Sean", "Philip", "Chris", "Johnny", "Earl", "Jimmy", "Antonio", "Danny", "Bryan", "Tony", "Luis", "Mike", "Stanley", "Leonard", "Nathan", "Dale", "Manuel", "Rodney", "Curtis", "Norman", "Allen", "Marvin", "Vincent", "Glenn", "Jeffery", "Travis", "Jeff", "Chad", "Jacob", "Lee", "Melvin", "Alfred", "Kyle", "Francis", "Bradley", "Jesus", "Herbert", "Frederick", "Ray", "Joel", "Edwin", "Don", "Eddie", "Ricky", "Troy", "Randall", "Barry", "Alexander", "Bernard", "Mario", "Leroy", "Francisco", "Marcus", "Micheal", "Theodore", "Clifford", "Miguel", "Oscar", "Jay", "Jim", "Tom", "Calvin", "Alex", "Jon", "Ronnie", "Bill", "Lloyd", "Tommy", "Leon", "Derek", "Warren", "Darrell", "Jerome", "Floyd", "Leo", "Alvin", "Tim", "Wesley", "Gordon", "Dean", "Greg", "Jorge", "Dustin", "Pedro", "Derrick", "Dan", "Lewis", "Zachary", "Corey", "Herman", "Maurice", "Vernon", "Roberto", "Clyde", "Glen", "Hector", "Shane", "Ricardo", "Sam", "Rick", "Lester", "Brent", "Ramon", "Charlie", "Tyler", "Gilbert", "Gene", "Marc", "Reginald", "Ruben", "Brett", "Angel", "Nathaniel", "Rafael", "Leslie", "Edgar", "Milton", "Raul", "Ben", "Chester", "Cecil", "Duane", "Franklin", "Andre", "Elmer", "Brad", "Gabriel", "Ron", "Mitchell", "Roland", "Arnold", "Harvey", "Jared", "Adrian", "Karl", "Cory", "Claude", "Erik", "Darryl", "Jamie", "Neil", "Jessie", "Christian", "Javier", "Fernando", "Clinton", "Ted", "Mathew", "Tyrone", "Darren", "Lonnie", "Lance", "Cody", "Julio", "Kelly", "Kurt", "Allan", "Nelson", "Guy", "Clayton", "Hugh", "Max", "Dwayne", "Dwight", "Armando", "Felix", "Jimmie", "Everett", "Jordan", "Ian", "Wallace", "Ken", "Bob", "Jaime", "Casey", "Alfredo", "Alberto", "Dave", "Ivan", "Johnnie", "Sidney", "Byron", "Julian", "Isaac", "Morris", "Clifton", "Willard", "Daryl", "Ross", "Virgil", "Andy", "Marshall", "Salvador", "Perry", "Kirk", "Sergio", "Marion", "Tracy", "Seth", "Kent", "Terrance", "Rene", "Eduardo", "Terrence", "Enrique", "Freddie", "Wade", "Austin", "Stuart", "Fredrick", "Arturo", "Alejandro", "Jackie", "Joey", "Nick", "Luther", "Wendell", "Jeremiah", "Evan", "Julius", "Dana", "Donnie", "Otis", "Shannon", "Trevor", "Oliver", "Luke", "Homer", "Gerard", "Doug", "Kenny", "Hubert", "Angelo", "Shaun", "Lyle", "Matt", "Lynn", "Alfonso", "Orlando", "Rex", "Carlton", "Ernesto", "Cameron", "Neal", "Pablo", "Lorenzo", "Omar", "Wilbur", "Blake", "Grant", "Horace", "Roderick", "Kerry", "Abraham", "Willis", "Rickey", "Jean", "Ira", "Andres", "Cesar", "Johnathan", "Malcolm", "Rudolph", "Damon", "Kelvin", "Rudy", "Preston", "Alton", "Archie", "Marco", "Wm", "Pete", "Randolph", "Garry", "Geoffrey", "Jonathon", "Felipe", "Bennie", "Gerardo", "Ed", "Dominic", "Robin", "Loren", "Delbert", "Colin", "Guillermo", "Earnest", "Lucas", "Benny", "Noel", "Spencer", "Rodolfo", "Myron", "Edmund", "Garrett", "Salvatore", "Cedric", "Lowell", "Gregg", "Sherman", "Wilson", "Devin", "Sylvester", "Kim", "Roosevelt", "Israel", "Jermaine", "Forrest", "Wilbert", "Leland", "Simon", "Guadalupe", "Clark", "Irving", "Carroll", "Bryant", "Owen", "Rufus", "Woodrow", "Sammy", "Kristopher", "Mack", "Levi", "Marcos", "Gustavo", "Jake", "Lionel", "Marty", "Taylor", "Ellis", "Dallas", "Gilberto", "Clint", "Nicolas", "Laurence", "Ismael", "Orville", "Drew", "Jody", "Ervin", "Dewey", "Al", "Wilfred", "Josh", "Hugo", "Ignacio", "Caleb", "Tomas", "Sheldon", "Erick", "Frankie", "Stewart", "Doyle", "Darrel", "Rogelio", "Terence", "Santiago", "Alonzo", "Elias", "Bert", "Elbert", "Ramiro", "Conrad", "Pat", "Noah", "Grady", "Phil", "Cornelius", "Lamar", "Rolando", "Clay", "Percy", "Dexter", "Bradford", "Merle", "Darin", "Amos", "Terrell", "Moses", "Irvin", "Saul", "Roman", "Darnell", "Randal", "Tommie", "Timmy", "Darrin", "Winston", "Brendan", "Toby", "Van", "Abel", "Dominick", "Boyd", "Courtney", "Jan", "Emilio", "Elijah", "Cary", "Domingo", "Santos", "Aubrey", "Emmett", "Marlon", "Emanuel", "Jerald", "Edmond"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 179 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["Mary", "Patricia", "Linda", "Barbara", "Elizabeth", "Jennifer", "Maria", "Susan", "Margaret", "Dorothy", "Lisa", "Nancy", "Karen", "Betty", "Helen", "Sandra", "Donna", "Carol", "Ruth", "Sharon", "Michelle", "Laura", "Sarah", "Kimberly", "Deborah", "Jessica", "Shirley", "Cynthia", "Angela", "Melissa", "Brenda", "Amy", "Anna", "Rebecca", "Virginia", "Kathleen", "Pamela", "Martha", "Debra", "Amanda", "Stephanie", "Carolyn", "Christine", "Marie", "Janet", "Catherine", "Frances", "Ann", "Joyce", "Diane", "Alice", "Julie", "Heather", "Teresa", "Doris", "Gloria", "Evelyn", "Jean", "Cheryl", "Mildred", "Katherine", "Joan", "Ashley", "Judith", "Rose", "Janice", "Kelly", "Nicole", "Judy", "Christina", "Kathy", "Theresa", "Beverly", "Denise", "Tammy", "Irene", "Jane", "Lori", "Rachel", "Marilyn", "Andrea", "Kathryn", "Louise", "Sara", "Anne", "Jacqueline", "Wanda", "Bonnie", "Julia", "Ruby", "Lois", "Tina", "Phyllis", "Norma", "Paula", "Diana", "Annie", "Lillian", "Emily", "Robin", "Peggy", "Crystal", "Gladys", "Rita", "Dawn", "Connie", "Florence", "Tracy", "Edna", "Tiffany", "Carmen", "Rosa", "Cindy", "Grace", "Wendy", "Victoria", "Edith", "Kim", "Sherry", "Sylvia", "Josephine", "Thelma", "Shannon", "Sheila", "Ethel", "Ellen", "Elaine", "Marjorie", "Carrie", "Charlotte", "Monica", "Esther", "Pauline", "Emma", "Juanita", "Anita", "Rhonda", "Hazel", "Amber", "Eva", "Debbie", "April", "Leslie", "Clara", "Lucille", "Jamie", "Joanne", "Eleanor", "Valerie", "Danielle", "Megan", "Alicia", "Suzanne", "Michele", "Gail", "Bertha", "Darlene", "Veronica", "Jill", "Erin", "Geraldine", "Lauren", "Cathy", "Joann", "Lorraine", "Lynn", "Sally", "Regina", "Erica", "Beatrice", "Dolores", "Bernice", "Audrey", "Yvonne", "Annette", "June", "Samantha", "Marion", "Dana", "Stacy", "Ana", "Renee", "Ida", "Vivian", "Roberta", "Holly", "Brittany", "Melanie", "Loretta", "Yolanda", "Jeanette", "Laurie", "Katie", "Kristen", "Vanessa", "Alma", "Sue", "Elsie", "Beth", "Jeanne", "Vicki", "Carla", "Tara", "Rosemary", "Eileen", "Terri", "Gertrude", "Lucy", "Tonya", "Ella", "Stacey", "Wilma", "Gina", "Kristin", "Jessie", "Natalie", "Agnes", "Vera", "Willie", "Charlene", "Bessie", "Delores", "Melinda", "Pearl", "Arlene", "Maureen", "Colleen", "Allison", "Tamara", "Joy", "Georgia", "Constance", "Lillie", "Claudia", "Jackie", "Marcia", "Tanya", "Nellie", "Minnie", "Marlene", "Heidi", "Glenda", "Lydia", "Viola", "Courtney", "Marian", "Stella", "Caroline", "Dora", "Jo", "Vickie", "Mattie", "Terry", "Maxine", "Irma", "Mabel", "Marsha", "Myrtle", "Lena", "Christy", "Deanna", "Patsy", "Hilda", "Gwendolyn", "Jennie", "Nora", "Margie", "Nina", "Cassandra", "Leah", "Penny", "Kay", "Priscilla", "Naomi", "Carole", "Brandy", "Olga", "Billie", "Dianne", "Tracey", "Leona", "Jenny", "Felicia", "Sonia", "Miriam", "Velma", "Becky", "Bobbie", "Violet", "Kristina", "Toni", "Misty", "Mae", "Shelly", "Daisy", "Ramona", "Sherri", "Erika", "Katrina", "Claire", "Lindsey", "Lindsay", "Geneva", "Guadalupe", "Belinda", "Margarita", "Sheryl", "Cora", "Faye", "Ada", "Natasha", "Sabrina", "Isabel", "Marguerite", "Hattie", "Harriet", "Molly", "Cecilia", "Kristi", "Brandi", "Blanche", "Sandy", "Rosie", "Joanna", "Iris", "Eunice", "Angie", "Inez", "Lynda", "Madeline", "Amelia", "Alberta", "Genevieve", "Monique", "Jodi", "Janie", "Maggie", "Kayla", "Sonya", "Jan", "Lee", "Kristine", "Candace", "Fannie", "Maryann", "Opal", "Alison", "Yvette", "Melody", "Luz", "Susie", "Olivia", "Flora", "Shelley", "Kristy", "Mamie", "Lula", "Lola", "Verna", "Beulah", "Antoinette", "Candice", "Juana", "Jeannette", "Pam", "Kelli", "Hannah", "Whitney", "Bridget", "Karla", "Celia", "Latoya", "Patty", "Shelia", "Gayle", "Della", "Vicky", "Lynne", "Sheri", "Marianne", "Kara", "Jacquelyn", "Erma", "Blanca", "Myra", "Leticia", "Pat", "Krista", "Roxanne", "Angelica", "Johnnie", "Robyn", "Francis", "Adrienne", "Rosalie", "Alexandra", "Brooke", "Bethany", "Sadie", "Bernadette", "Traci", "Jody", "Kendra", "Jasmine", "Nichole", "Rachael", "Chelsea", "Mable", "Ernestine", "Muriel", "Marcella", "Elena", "Krystal", "Angelina", "Nadine", "Kari", "Estelle", "Dianna", "Paulette", "Lora", "Mona", "Doreen", "Rosemarie", "Angel", "Desiree", "Antonia", "Hope", "Ginger", "Janis", "Betsy", "Christie", "Freda", "Mercedes", "Meredith", "Lynette", "Teri", "Cristina", "Eula", "Leigh", "Meghan", "Sophia", "Eloise", "Rochelle", "Gretchen", "Cecelia", "Raquel", "Henrietta", "Alyssa", "Jana", "Kelley", "Gwen", "Kerry", "Jenna", "Tricia", "Laverne", "Olive", "Alexis", "Tasha", "Silvia", "Elvira", "Casey", "Delia", "Sophie", "Kate", "Patti", "Lorena", "Kellie", "Sonja", "Lila", "Lana", "Darla", "May", "Mindy", "Essie", "Mandy", "Lorene", "Elsa", "Josefina", "Jeannie", "Miranda", "Dixie", "Lucia", "Marta", "Faith", "Lela", "Johanna", "Shari", "Camille", "Tami", "Shawna", "Elisa", "Ebony", "Melba", "Ora", "Nettie", "Tabitha", "Ollie", "Jaime", "Winifred", "Kristie"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 180 */
/***/ function(module, exports) {
"use strict";
module.exports = ["Abbott", "Abernathy", "Abshire", "Adams", "Altenwerth", "Anderson", "Ankunding", "Armstrong", "Auer", "Aufderhar", "Bahringer", "Bailey", "Balistreri", "Barrows", "Bartell", "Bartoletti", "Barton", "Bashirian", "Batz", "Bauch", "Baumbach", "Bayer", "Beahan", "Beatty", "Bechtelar", "Becker", "Bednar", "Beer", "Beier", "Berge", "Bergnaum", "Bergstrom", "Bernhard", "Bernier", "Bins", "Blanda", "Blick", "Block", "Bode", "Boehm", "Bogan", "Bogisich", "Borer", "Bosco", "Botsford", "Boyer", "Boyle", "Bradtke", "Brakus", "Braun", "Breitenberg", "Brekke", "Brown", "Bruen", "Buckridge", "Carroll", "Carter", "Cartwright", "Casper", "Cassin", "Champlin", "Christiansen", "Cole", "Collier", "Collins", "Conn", "Connelly", "Conroy", "Considine", "Corkery", "Cormier", "Corwin", "Cremin", "Crist", "Crona", "Cronin", "Crooks", "Cruickshank", "Cummerata", "Cummings", "Dach", "D'Amore", "Daniel", "Dare", "Daugherty", "Davis", "Deckow", "Denesik", "Dibbert", "Dickens", "Dicki", "Dickinson", "Dietrich", "Donnelly", "Dooley", "Douglas", "Doyle", "DuBuque", "Durgan", "Ebert", "Effertz", "Eichmann", "Emard", "Emmerich", "Erdman", "Ernser", "Fadel", "Fahey", "Farrell", "Fay", "Feeney", "Feest", "Feil", "Ferry", "Fisher", "Flatley", "Frami", "Franecki", "Friesen", "Fritsch", "Funk", "Gaylord", "Gerhold", "Gerlach", "Gibson", "Gislason", "Gleason", "Gleichner", "Glover", "Goldner", "Goodwin", "Gorczany", "Gottlieb", "Goyette", "Grady", "Graham", "Grant", "Green", "Greenfelder", "Greenholt", "Grimes", "Gulgowski", "Gusikowski", "Gutkowski", "Gutmann", "Haag", "Hackett", "Hagenes", "Hahn", "Haley", "Halvorson", "Hamill", "Hammes", "Hand", "Hane", "Hansen", "Harber", "Harris", "Hartmann", "Harvey", "Hauck", "Hayes", "Heaney", "Heathcote", "Hegmann", "Heidenreich", "Heller", "Herman", "Hermann", "Hermiston", "Herzog", "Hessel", "Hettinger", "Hickle", "Hilll", "Hills", "Hilpert", "Hintz", "Hirthe", "Hodkiewicz", "Hoeger", "Homenick", "Hoppe", "Howe", "Howell", "Hudson", "Huel", "Huels", "Hyatt", "Jacobi", "Jacobs", "Jacobson", "Jakubowski", "Jaskolski", "Jast", "Jenkins", "Jerde", "Johns", "Johnson", "Johnston", "Jones", "Kassulke", "Kautzer", "Keebler", "Keeling", "Kemmer", "Kerluke", "Kertzmann", "Kessler", "Kiehn", "Kihn", "Kilback", "King", "Kirlin", "Klein", "Kling", "Klocko", "Koch", "Koelpin", "Koepp", "Kohler", "Konopelski", "Koss", "Kovacek", "Kozey", "Krajcik", "Kreiger", "Kris", "Kshlerin", "Kub", "Kuhic", "Kuhlman", "Kuhn", "Kulas", "Kunde", "Kunze", "Kuphal", "Kutch", "Kuvalis", "Labadie", "Lakin", "Lang", "Langosh", "Langworth", "Larkin", "Larson", "Leannon", "Lebsack", "Ledner", "Leffler", "Legros", "Lehner", "Lemke", "Lesch", "Leuschke", "Lind", "Lindgren", "Littel", "Little", "Lockman", "Lowe", "Lubowitz", "Lueilwitz", "Luettgen", "Lynch", "Macejkovic", "MacGyver", "Maggio", "Mann", "Mante", "Marks", "Marquardt", "Marvin", "Mayer", "Mayert", "McClure", "McCullough", "McDermott", "McGlynn", "McKenzie", "McLaughlin", "Medhurst", "Mertz", "Metz", "Miller", "Mills", "Mitchell", "Moen", "Mohr", "Monahan", "Moore", "Morar", "Morissette", "Mosciski", "Mraz", "Mueller", "Muller", "Murazik", "Murphy", "Murray", "Nader", "Nicolas", "Nienow", "Nikolaus", "Nitzsche", "Nolan", "Oberbrunner", "O'Connell", "O'Conner", "O'Hara", "O'Keefe", "O'Kon", "Okuneva", "Olson", "Ondricka", "O'Reilly", "Orn", "Ortiz", "Osinski", "Pacocha", "Padberg", "Pagac", "Parisian", "Parker", "Paucek", "Pfannerstill", "Pfeffer", "Pollich", "Pouros", "Powlowski", "Predovic", "Price", "Prohaska", "Prosacco", "Purdy", "Quigley", "Quitzon", "Rath", "Ratke", "Rau", "Raynor", "Reichel", "Reichert", "Reilly", "Reinger", "Rempel", "Renner", "Reynolds", "Rice", "Rippin", "Ritchie", "Robel", "Roberts", "Rodriguez", "Rogahn", "Rohan", "Rolfson", "Romaguera", "Roob", "Rosenbaum", "Rowe", "Ruecker", "Runolfsdottir", "Runolfsson", "Runte", "Russel", "Rutherford", "Ryan", "Sanford", "Satterfield", "Sauer", "Sawayn", "Schaden", "Schaefer", "Schamberger", "Schiller", "Schimmel", "Schinner", "Schmeler", "Schmidt", "Schmitt", "Schneider", "Schoen", "Schowalter", "Schroeder", "Schulist", "Schultz", "Schumm", "Schuppe", "Schuster", "Senger", "Shanahan", "Shields", "Simonis", "Sipes", "Skiles", "Smith", "Smitham", "Spencer", "Spinka", "Sporer", "Stamm", "Stanton", "Stark", "Stehr", "Steuber", "Stiedemann", "Stokes", "Stoltenberg", "Stracke", "Streich", "Stroman", "Strosin", "Swaniawski", "Swift", "Terry", "Thiel", "Thompson", "Tillman", "Torp", "Torphy", "Towne", "Toy", "Trantow", "Tremblay", "Treutel", "Tromp", "Turcotte", "Turner", "Ullrich", "Upton", "Vandervort", "Veum", "Volkman", "Von", "VonRueden", "Waelchi", "Walker", "Walsh", "Walter", "Ward", "Waters", "Watsica", "Weber", "Wehner", "Weimann", "Weissnat", "Welch", "West", "White", "Wiegand", "Wilderman", "Wilkinson", "Will", "Williamson", "Willms", "Windler", "Wintheiser", "Wisoky", "Wisozk", "Witting", "Wiza", "Wolf", "Wolff", "Wuckert", "Wunsch", "Wyman", "Yost", "Yundt", "Zboncak", "Zemlak", "Ziemann", "Zieme", "Zulauf"];
/***/ },
/* 181 */
/***/ function(module, exports) {
"use strict";
module.exports = {
number: ["###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-#### x###", "(###) ###-#### x###", "1-###-###-#### x###", "###.###.#### x###", "###-###-#### x####", "(###) ###-#### x####", "1-###-###-#### x####", "###.###.#### x####", "###-###-#### x#####", "(###) ###-#### x#####", "1-###-###-#### x#####", "###.###.#### x#####"]
};
/***/ },
/* 182 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _countryWithCodes = __webpack_require__(183);
var _countryWithCodes2 = _interopRequireDefault(_countryWithCodes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = {
countryAndCode: function countryAndCode() {
var country = this.random.objectElement(_countryWithCodes2.default);
return {
code: Object.keys(country)[0],
name: country[Object.keys(country)[0]]
};
},
country: function country() {
return this.address.countryAndCode().name;
},
countryCode: function countryCode() {
return this.address.countryAndCode().code;
},
state: __webpack_require__(184),
stateAbbr: __webpack_require__(185),
city: ["#{address.cityPrefix} #{names.firstName}#{address.citySuffix}", "#{address.cityPrefix} #{names.firstName}", "#{names.firstName}#{address.citySuffix}", "#{names.lastName}#{address.citySuffix}"],
cityPrefix: ["North", "East", "West", "South", "New", "Lake", "Port"],
citySuffix: ["town", "ton", "land", "ville", "berg", "burgh", "borough", "bury", "view", "port", "mouth", "stad", "furt", "chester", "mouth", "fort", "haven", "side", "shire"],
street: ["#{address.buildingNumber} #{address.streetName}", "#{address.buildingNumber} #{address.streetName}", "#{address.buildingNumber} #{address.streetName} Apt. ###", "#{address.buildingNumber} #{address.streetName} Suite ###"],
streetName: ["#{names.firstName} #{address.streetSuffix}", "#{names.lastName} #{address.streetSuffix}"],
streetSuffix: __webpack_require__(186),
buildingNumber: ["#####", "####", "###"],
postCode: ["#####", "#####-####"],
geoLocation: function geoLocation() {
return {
latitude: this.random.number(180 * 10000) / 10000.0 - 90.0,
longitude: this.random.number(360 * 10000) / 10000.0 - 180.0
};
},
altitude: function altitude() {
var opts = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
return this.random.number(opts.min || 0, opts.max || 8848);
},
geoLocationNearBy: __webpack_require__(187)
};
/***/ },
/* 183 */
/***/ function(module, exports) {
"use strict";
module.exports = {
"AF": "Afghanistan",
"AX": "Åland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
"AG": "Antigua & Barbuda",
"AR": "Argentina",
"AM": "Armenia",
"AW": "Aruba",
"AC": "Ascension Island",
"AU": "Australia",
"AT": "Austria",
"AZ": "Azerbaijan",
"BS": "Bahamas",
"BH": "Bahrain",
"BD": "Bangladesh",
"BB": "Barbados",
"BY": "Belarus",
"BE": "Belgium",
"BZ": "Belize",
"BJ": "Benin",
"BM": "Bermuda",
"BT": "Bhutan",
"BO": "Bolivia",
"BA": "Bosnia & Herzegovina",
"BW": "Botswana",
"BR": "Brazil",
"IO": "British Indian Ocean Territory",
"VG": "British Virgin Islands",
"BN": "Brunei",
"BG": "Bulgaria",
"BF": "Burkina Faso",
"BI": "Burundi",
"KH": "Cambodia",
"CM": "Cameroon",
"CA": "Canada",
"IC": "Canary Islands",
"CV": "Cape Verde",
"BQ": "Caribbean Netherlands",
"KY": "Cayman Islands",
"CF": "Central African Republic",
"EA": "Ceuta & Melilla",
"TD": "Chad",
"CL": "Chile",
"CN": "China",
"CX": "Christmas Island",
"CC": "Cocos (Keeling) Islands",
"CO": "Colombia",
"KM": "Comoros",
"CG": "Congo - Brazzaville",
"CD": "Congo - Kinshasa",
"CK": "Cook Islands",
"CR": "Costa Rica",
"CI": "Côte d’Ivoire",
"HR": "Croatia",
"CU": "Cuba",
"CW": "Curaçao",
"CY": "Cyprus",
"CZ": "Czech Republic",
"DK": "Denmark",
"DG": "Diego Garcia",
"DJ": "Djibouti",
"DM": "Dominica",
"DO": "Dominican Republic",
"EC": "Ecuador",
"EG": "Egypt",
"SV": "El Salvador",
"GQ": "Equatorial Guinea",
"ER": "Eritrea",
"EE": "Estonia",
"ET": "Ethiopia",
"FK": "Falkland Islands",
"FO": "Faroe Islands",
"FJ": "Fiji",
"FI": "Finland",
"FR": "France",
"GF": "French Guiana",
"PF": "French Polynesia",
"TF": "French Southern Territories",
"GA": "Gabon",
"GM": "Gambia",
"GE": "Georgia",
"DE": "Germany",
"GH": "Ghana",
"GI": "Gibraltar",
"GR": "Greece",
"GL": "Greenland",
"GD": "Grenada",
"GP": "Guadeloupe",
"GU": "Guam",
"GT": "Guatemala",
"GG": "Guernsey",
"GN": "Guinea",
"GW": "Guinea-Bissau",
"GY": "Guyana",
"HT": "Haiti",
"HN": "Honduras",
"HK": "Hong Kong SAR China",
"HU": "Hungary",
"IS": "Iceland",
"IN": "India",
"ID": "Indonesia",
"IR": "Iran",
"IQ": "Iraq",
"IE": "Ireland",
"IM": "Isle of Man",
"IL": "Israel",
"IT": "Italy",
"JM": "Jamaica",
"JP": "Japan",
"JE": "Jersey",
"JO": "Jordan",
"KZ": "Kazakhstan",
"KE": "Kenya",
"KI": "Kiribati",
"XK": "Kosovo",
"KW": "Kuwait",
"KG": "Kyrgyzstan",
"LA": "Laos",
"LV": "Latvia",
"LB": "Lebanon",
"LS": "Lesotho",
"LR": "Liberia",
"LY": "Libya",
"LI": "Liechtenstein",
"LT": "Lithuania",
"LU": "Luxembourg",
"MO": "Macau SAR China",
"MK": "Macedonia",
"MG": "Madagascar",
"MW": "Malawi",
"MY": "Malaysia",
"MV": "Maldives",
"ML": "Mali",
"MT": "Malta",
"MH": "Marshall Islands",
"MQ": "Martinique",
"MR": "Mauritania",
"MU": "Mauritius",
"YT": "Mayotte",
"MX": "Mexico",
"FM": "Micronesia",
"MD": "Moldova",
"MC": "Monaco",
"MN": "Mongolia",
"ME": "Montenegro",
"MS": "Montserrat",
"MA": "Morocco",
"MZ": "Mozambique",
"MM": "Myanmar (Burma)",
"NA": "Namibia",
"NR": "Nauru",
"NP": "Nepal",
"NL": "Netherlands",
"NC": "New Caledonia",
"NZ": "New Zealand",
"NI": "Nicaragua",
"NE": "Niger",
"NG": "Nigeria",
"NU": "Niue",
"NF": "Norfolk Island",
"KP": "North Korea",
"MP": "Northern Mariana Islands",
"NO": "Norway",
"OM": "Oman",
"PK": "Pakistan",
"PW": "Palau",
"PS": "Palestinian Territories",
"PA": "Panama",
"PG": "Papua New Guinea",
"PY": "Paraguay",
"PE": "Peru",
"PH": "Philippines",
"PN": "Pitcairn Islands",
"PL": "Poland",
"PT": "Portugal",
"PR": "Puerto Rico",
"QA": "Qatar",
"RE": "Réunion",
"RO": "Romania",
"RU": "Russia",
"RW": "Rwanda",
"WS": "Samoa",
"SM": "San Marino",
"ST": "São Tomé & Príncipe",
"SA": "Saudi Arabia",
"SN": "Senegal",
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SX": "Sint Maarten",
"SK": "Slovakia",
"SI": "Slovenia",
"SB": "Solomon Islands",
"SO": "Somalia",
"ZA": "South Africa",
"GS": "South Georgia & South Sandwich Islands",
"KR": "South Korea",
"SS": "South Sudan",
"ES": "Spain",
"LK": "Sri Lanka",
"BL": "St. Barthélemy",
"SH": "St. Helena",
"KN": "St. Kitts & Nevis",
"LC": "St. Lucia",
"MF": "St. Martin",
"PM": "St. Pierre & Miquelon",
"VC": "St. Vincent & Grenadines",
"SD": "Sudan",
"SR": "Suriname",
"SJ": "Svalbard & Jan Mayen",
"SZ": "Swaziland",
"SE": "Sweden",
"CH": "Switzerland",
"SY": "Syria",
"TW": "Taiwan",
"TJ": "Tajikistan",
"TZ": "Tanzania",
"TH": "Thailand",
"TL": "Timor-Leste",
"TG": "Togo",
"TK": "Tokelau",
"TO": "Tonga",
"TT": "Trinidad & Tobago",
"TA": "Tristan da Cunha",
"TN": "Tunisia",
"TR": "Turkey",
"TM": "Turkmenistan",
"TC": "Turks & Caicos Islands",
"TV": "Tuvalu",
"UM": "U.S. Outlying Islands",
"VI": "U.S. Virgin Islands",
"UG": "Uganda",
"UA": "Ukraine",
"AE": "United Arab Emirates",
"GB": "United Kingdom",
"US": "United States",
"UY": "Uruguay",
"UZ": "Uzbekistan",
"VU": "Vanuatu",
"VA": "Vatican City",
"VE": "Venezuela",
"VN": "Vietnam",
"WF": "Wallis & Futuna",
"EH": "Western Sahara",
"YE": "Yemen",
"ZM": "Zambia",
"ZW": "Zimbabwe"
};
/***/ },
/* 184 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 185 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 186 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["Alley", "Avenue", "Branch", "Bridge", "Brook", "Brooks", "Burg", "Burgs", "Bypass", "Camp", "Canyon", "Cape", "Causeway", "Center", "Centers", "Circle", "Circles", "Cliff", "Cliffs", "Club", "Common", "Corner", "Corners", "Course", "Court", "Courts", "Cove", "Coves", "Creek", "Crescent", "Crest", "Crossing", "Crossroad", "Curve", "Dale", "Dam", "Divide", "Drive", "Drive", "Drives", "Estate", "Estates", "Expressway", "Extension", "Extensions", "Fall", "Falls", "Ferry", "Field", "Fields", "Flat", "Flats", "Ford", "Fords", "Forest", "Forge", "Forges", "Fork", "Forks", "Fort", "Freeway", "Garden", "Gardens", "Gateway", "Glen", "Glens", "Green", "Greens", "Grove", "Groves", "Harbor", "Harbors", "Haven", "Heights", "Highway", "Hill", "Hills", "Hollow", "Inlet", "Inlet", "Island", "Island", "Islands", "Islands", "Isle", "Isle", "Junction", "Junctions", "Key", "Keys", "Knoll", "Knolls", "Lake", "Lakes", "Land", "Landing", "Lane", "Light", "Lights", "Loaf", "Lock", "Locks", "Locks", "Lodge", "Lodge", "Loop", "Mall", "Manor", "Manors", "Meadow", "Meadows", "Mews", "Mill", "Mills", "Mission", "Mission", "Motorway", "Mount", "Mountain", "Mountain", "Mountains", "Mountains", "Neck", "Orchard", "Oval", "Overpass", "Park", "Parks", "Parkway", "Parkways", "Pass", "Passage", "Path", "Pike", "Pine", "Pines", "Place", "Plain", "Plains", "Plains", "Plaza", "Plaza", "Point", "Points", "Port", "Port", "Ports", "Ports", "Prairie", "Prairie", "Radial", "Ramp", "Ranch", "Rapid", "Rapids", "Rest", "Ridge", "Ridges", "River", "Road", "Road", "Roads", "Roads", "Route", "Row", "Rue", "Run", "Shoal", "Shoals", "Shore", "Shores", "Skyway", "Spring", "Springs", "Springs", "Spur", "Spurs", "Square", "Square", "Squares", "Squares", "Station", "Station", "Stravenue", "Stravenue", "Stream", "Stream", "Street", "Street", "Streets", "Summit", "Summit", "Terrace", "Throughway", "Trace", "Track", "Trafficway", "Trail", "Trail", "Tunnel", "Tunnel", "Turnpike", "Turnpike", "Underpass", "Union", "Unions", "Valley", "Valleys", "Via", "Viaduct", "View", "Views", "Village", "Village", "Villages", "Ville", "Vista", "Vista", "Walk", "Walks", "Wall", "Way", "Ways", "Well", "Wells"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 187 */
/***/ function(module, exports) {
"use strict";
module.exports = function (coordinate) {
var radius = arguments.length <= 1 || arguments[1] === undefined ? 10.0 : arguments[1];
var isMetric = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2];
function degreesToRadians(degrees) {
return degrees * (Math.PI / 180.0);
}
function radiansToDegrees(radians) {
return radians * (180.0 / Math.PI);
}
function milesToKm(miles) {
return miles * 0.621371;
}
function coordinateWithOffset(coordinate, bearing, distance, isMetric) {
var R = 6378.137;
var d = isMetric ? distance : milesToKm(distance);
var lat1 = degreesToRadians(coordinate.latitude);
var lon1 = degreesToRadians(coordinate.longitude);
var lat2 = Math.asin(Math.sin(lat1) * Math.cos(d / R) + Math.cos(lat1) * Math.sin(d / R) * Math.cos(bearing));
var lon2 = lon1 + Math.atan2(Math.sin(bearing) * Math.sin(d / R) * Math.cos(lat1), Math.cos(d / R) - Math.sin(lat1) * Math.sin(lat2));
if (lon2 > degreesToRadians(180)) {
lon2 = lon2 - degreesToRadians(360);
} else if (lon2 < degreesToRadians(-180)) {
lon2 = lon2 + degreesToRadians(360);
}
return [radiansToDegrees(lat2), radiansToDegrees(lon2)];
}
if (coordinate === undefined) {
return this.address.geoLocation();
}
var randomCoord = coordinateWithOffset(coordinate, degreesToRadians(this.random.number(360)), radius, isMetric);
return {
latitude: randomCoord[0],
longitude: randomCoord[1]
};
};
/***/ },
/* 188 */
/***/ function(module, exports) {
"use strict";
module.exports = {
name: ["#{names.lastName} #{company.suffix}", "#{names.lastName}-#{names.lastName} #{company.suffix}", "#{names.lastName}, #{names.lastName} and #{names.lastName} #{company.suffix}"],
suffix: ["Ltd.", "Inc.", "Corp.", "LLC", "Group"]
};
/***/ },
/* 189 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _passwordGenerator = __webpack_require__(190);
var _passwordGenerator2 = _interopRequireDefault(_passwordGenerator);
var _crypto = __webpack_require__(191);
var _crypto2 = _interopRequireDefault(_crypto);
var _uifaces = __webpack_require__(214);
var _uifaces2 = _interopRequireDefault(_uifaces);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = {
tld: __webpack_require__(215),
userName: function userName(firstName, lastName) {
firstName = this.slugify(firstName ? firstName : this.populate("#{names.firstName}")).toLowerCase();
lastName = this.slugify(lastName ? lastName : this.populate("#{names.lastName}")).toLowerCase();
return this.populate(this.random.arrayElement([firstName + "." + lastName, firstName + "." + lastName + "##", firstName + "." + lastName + "####", firstName + "_" + lastName, firstName + "_" + lastName + "##", "" + firstName + lastName + "##", firstName + "##"]));
},
password: function password(length, memorable, pattern, prefix) {
return (0, _passwordGenerator2.default)(length, memorable, pattern, prefix);
},
domain: function domain() {
return this.slugify(this.populate(this.random.arrayElement(["#{names.firstName}", "#{names.firstName}#{names.lastName}", "#{names.firstName}-#{names.lastName}"]))).toLowerCase() + "." + this.random.arrayElement(module.exports.tld);
},
url: function url(isHttps, hasWWW) {
if (isHttps == null) isHttps = this.random.boolean();
if (hasWWW == null) hasWWW = !this.random.boolean();
var prefix = isHttps ? "https://" : "http://";
if (hasWWW) prefix += "www.";
return prefix + this.internet.domain();
},
emailDomain: ["gmail.com", "yahoo.com", "hotmail.com"],
email: function email(firstName, lastName, domain) {
firstName = this.slugify(firstName ? firstName : this.populate("#{names.firstName}")).toLowerCase();
lastName = this.slugify(lastName ? lastName : this.populate("#{names.lastName}")).toLowerCase();
domain = domain ? domain : this.populate("#{internet.emailDomain}");
return [firstName + "." + lastName + "@" + domain, firstName + "." + lastName + "##@" + domain, "" + firstName + lastName + "##@" + domain, firstName + "##@" + domain];
},
imageCategories: ["abstract", "animals", "business", "cats", "city", "food", "nightlife", "fashion", "people", "nature", "sports", "technics", "transport"],
image: function image() {
var width = arguments.length <= 0 || arguments[0] === undefined ? 640 : arguments[0];
var height = arguments.length <= 1 || arguments[1] === undefined ? 480 : arguments[1];
var category = arguments[2];
var url = "http://lorempixel.com/" + width + "/" + height;
if (category) url += "/" + category;
return url;
},
mac: function mac() {
return this.times(this.random.hex, 6, 2).join(":");
},
ip: function ip() {
return this.times(this.random.number, 4, 1, 254).join(".");
},
ipv6: function ipv6() {
return this.times(this.random.hex, 8, 4).join(":");
},
color: function color() {
var baseRed255 = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];
var baseGreen255 = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];
var baseBlue255 = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2];
var red = Math.floor((this.random.number(256) + baseRed255) / 2);
var green = Math.floor((this.random.number(256) + baseGreen255) / 2);
var blue = Math.floor((this.random.number(256) + baseBlue255) / 2);
var redStr = red.toString(16);
var greenStr = green.toString(16);
var blueStr = blue.toString(16);
return (redStr.length === 1 ? "0" : "") + redStr + (greenStr.length === 1 ? "0" : "") + greenStr + (blueStr.length === 1 ? "0" : "") + blueStr;
},
avatar: function avatar() {
return "https://s3.amazonaws.com/uifaces/faces/twitter/" + this.random.arrayElement(_uifaces2.default) + "/128.jpg";
},
gravatar: function gravatar(email) {
if (email == null) {
email = this.internet.email();
}
return "https://www.gravatar.com/avatar/" + _crypto2.default.createHash("md5").update(email).digest("hex");
}
};
/***/ },
/* 190 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
(function (root) {
var localName, consonant, letter, _password, vowel;
letter = /[a-zA-Z]$/;
vowel = /[aeiouAEIOU]$/;
consonant = /[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/;
localName = "generatePassword", _password = function password(length, memorable, pattern, prefix) {
var char, n;
if (length == null) {
length = 10;
}
if (memorable == null) {
memorable = true;
}
if (pattern == null) {
pattern = /\w/;
}
if (prefix == null) {
prefix = '';
}
if (prefix.length >= length) {
return prefix;
}
if (memorable) {
if (prefix.match(consonant)) {
pattern = vowel;
} else {
pattern = consonant;
}
}
n = Math.floor(Math.random() * 94) + 33;
char = String.fromCharCode(n);
if (memorable) {
char = char.toLowerCase();
}
if (!char.match(pattern)) {
return _password(length, memorable, pattern, prefix);
}
return _password(length, memorable, pattern, "" + prefix + char);
};
( true ? exports : root)[localName] = _password;
if (true) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = _password;
}
}
})(undefined);
/***/ },
/* 191 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {var rng = __webpack_require__(196)
function error () {
var m = [].slice.call(arguments).join(' ')
throw new Error([
m,
'we accept pull requests',
'http://github.com/dominictarr/crypto-browserify'
].join('\n'))
}
exports.createHash = __webpack_require__(198)
exports.createHmac = __webpack_require__(211)
exports.randomBytes = function(size, callback) {
if (callback && callback.call) {
try {
callback.call(this, undefined, new Buffer(rng(size)))
} catch (err) { callback(err) }
} else {
return new Buffer(rng(size))
}
}
function each(a, f) {
for(var i in a)
f(a[i], i)
}
exports.getHashes = function () {
return ['sha1', 'sha256', 'sha512', 'md5', 'rmd160']
}
var p = __webpack_require__(212)(exports)
exports.pbkdf2 = p.pbkdf2
exports.pbkdf2Sync = p.pbkdf2Sync
// the least I can do is make error messages for the rest of the node.js/crypto api.
each(['createCredentials'
, 'createCipher'
, 'createCipheriv'
, 'createDecipher'
, 'createDecipheriv'
, 'createSign'
, 'createVerify'
, 'createDiffieHellman'
], function (name) {
exports[name] = function () {
error('sorry,', name, 'is not implemented yet')
}
})
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 192 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer, global) {/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
/* eslint-disable no-proto */
'use strict'
var base64 = __webpack_require__(193)
var ieee754 = __webpack_require__(194)
var isArray = __webpack_require__(195)
exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
exports.INSPECT_MAX_BYTES = 50
Buffer.poolSize = 8192 // not used by this implementation
var rootParent = {}
/**
* If `Buffer.TYPED_ARRAY_SUPPORT`:
* === true Use Uint8Array implementation (fastest)
* === false Use Object implementation (most compatible, even IE6)
*
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
* Opera 11.6+, iOS 4.2+.
*
* Due to various browser bugs, sometimes the Object implementation will be used even
* when the browser supports typed arrays.
*
* Note:
*
* - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
*
* - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property
* on objects.
*
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
*
* - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
* incorrect length in some situations.
* We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
* get the Object implementation, which is slower but behaves correctly.
*/
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
? global.TYPED_ARRAY_SUPPORT
: typedArraySupport()
function typedArraySupport () {
function Bar () {}
try {
var arr = new Uint8Array(1)
arr.foo = function () { return 42 }
arr.constructor = Bar
return arr.foo() === 42 && // typed array instances can be augmented
arr.constructor === Bar && // constructor can be set
typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
} catch (e) {
return false
}
}
function kMaxLength () {
return Buffer.TYPED_ARRAY_SUPPORT
? 0x7fffffff
: 0x3fffffff
}
/**
* Class: Buffer
* =============
*
* The Buffer constructor returns instances of `Uint8Array` that are augmented
* with function properties for all the node `Buffer` API functions. We use
* `Uint8Array` so that square bracket notation works as expected -- it returns
* a single octet.
*
* By augmenting the instances, we can avoid modifying the `Uint8Array`
* prototype.
*/
function Buffer (arg) {
if (!(this instanceof Buffer)) {
// Avoid going through an ArgumentsAdaptorTrampoline in the common case.
if (arguments.length > 1) return new Buffer(arg, arguments[1])
return new Buffer(arg)
}
if (!Buffer.TYPED_ARRAY_SUPPORT) {
this.length = 0
this.parent = undefined
}
// Common case.
if (typeof arg === 'number') {
return fromNumber(this, arg)
}
// Slightly less common case.
if (typeof arg === 'string') {
return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')
}
// Unusual.
return fromObject(this, arg)
}
function fromNumber (that, length) {
that = allocate(that, length < 0 ? 0 : checked(length) | 0)
if (!Buffer.TYPED_ARRAY_SUPPORT) {
for (var i = 0; i < length; i++) {
that[i] = 0
}
}
return that
}
function fromString (that, string, encoding) {
if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'
// Assumption: byteLength() return value is always < kMaxLength.
var length = byteLength(string, encoding) | 0
that = allocate(that, length)
that.write(string, encoding)
return that
}
function fromObject (that, object) {
if (Buffer.isBuffer(object)) return fromBuffer(that, object)
if (isArray(object)) return fromArray(that, object)
if (object == null) {
throw new TypeError('must start with number, buffer, array or string')
}
if (typeof ArrayBuffer !== 'undefined') {
if (object.buffer instanceof ArrayBuffer) {
return fromTypedArray(that, object)
}
if (object instanceof ArrayBuffer) {
return fromArrayBuffer(that, object)
}
}
if (object.length) return fromArrayLike(that, object)
return fromJsonObject(that, object)
}
function fromBuffer (that, buffer) {
var length = checked(buffer.length) | 0
that = allocate(that, length)
buffer.copy(that, 0, 0, length)
return that
}
function fromArray (that, array) {
var length = checked(array.length) | 0
that = allocate(that, length)
for (var i = 0; i < length; i += 1) {
that[i] = array[i] & 255
}
return that
}
// Duplicate of fromArray() to keep fromArray() monomorphic.
function fromTypedArray (that, array) {
var length = checked(array.length) | 0
that = allocate(that, length)
// Truncating the elements is probably not what people expect from typed
// arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior
// of the old Buffer constructor.
for (var i = 0; i < length; i += 1) {
that[i] = array[i] & 255
}
return that
}
function fromArrayBuffer (that, array) {
if (Buffer.TYPED_ARRAY_SUPPORT) {
// Return an augmented `Uint8Array` instance, for best performance
array.byteLength
that = Buffer._augment(new Uint8Array(array))
} else {
// Fallback: Return an object instance of the Buffer class
that = fromTypedArray(that, new Uint8Array(array))
}
return that
}
function fromArrayLike (that, array) {
var length = checked(array.length) | 0
that = allocate(that, length)
for (var i = 0; i < length; i += 1) {
that[i] = array[i] & 255
}
return that
}
// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.
// Returns a zero-length buffer for inputs that don't conform to the spec.
function fromJsonObject (that, object) {
var array
var length = 0
if (object.type === 'Buffer' && isArray(object.data)) {
array = object.data
length = checked(array.length) | 0
}
that = allocate(that, length)
for (var i = 0; i < length; i += 1) {
that[i] = array[i] & 255
}
return that
}
if (Buffer.TYPED_ARRAY_SUPPORT) {
Buffer.prototype.__proto__ = Uint8Array.prototype
Buffer.__proto__ = Uint8Array
} else {
// pre-set for values that may exist in the future
Buffer.prototype.length = undefined
Buffer.prototype.parent = undefined
}
function allocate (that, length) {
if (Buffer.TYPED_ARRAY_SUPPORT) {
// Return an augmented `Uint8Array` instance, for best performance
that = Buffer._augment(new Uint8Array(length))
that.__proto__ = Buffer.prototype
} else {
// Fallback: Return an object instance of the Buffer class
that.length = length
that._isBuffer = true
}
var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1
if (fromPool) that.parent = rootParent
return that
}
function checked (length) {
// Note: cannot use `length < kMaxLength` here because that fails when
// length is NaN (which is otherwise coerced to zero.)
if (length >= kMaxLength()) {
throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
'size: 0x' + kMaxLength().toString(16) + ' bytes')
}
return length | 0
}
function SlowBuffer (subject, encoding) {
if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)
var buf = new Buffer(subject, encoding)
delete buf.parent
return buf
}
Buffer.isBuffer = function isBuffer (b) {
return !!(b != null && b._isBuffer)
}
Buffer.compare = function compare (a, b) {
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
throw new TypeError('Arguments must be Buffers')
}
if (a === b) return 0
var x = a.length
var y = b.length
var i = 0
var len = Math.min(x, y)
while (i < len) {
if (a[i] !== b[i]) break
++i
}
if (i !== len) {
x = a[i]
y = b[i]
}
if (x < y) return -1
if (y < x) return 1
return 0
}
Buffer.isEncoding = function isEncoding (encoding) {
switch (String(encoding).toLowerCase()) {
case 'hex':
case 'utf8':
case 'utf-8':
case 'ascii':
case 'binary':
case 'base64':
case 'raw':
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return true
default:
return false
}
}
Buffer.concat = function concat (list, length) {
if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')
if (list.length === 0) {
return new Buffer(0)
}
var i
if (length === undefined) {
length = 0
for (i = 0; i < list.length; i++) {
length += list[i].length
}
}
var buf = new Buffer(length)
var pos = 0
for (i = 0; i < list.length; i++) {
var item = list[i]
item.copy(buf, pos)
pos += item.length
}
return buf
}
function byteLength (string, encoding) {
if (typeof string !== 'string') string = '' + string
var len = string.length
if (len === 0) return 0
// Use a for loop to avoid recursion
var loweredCase = false
for (;;) {
switch (encoding) {
case 'ascii':
case 'binary':
// Deprecated
case 'raw':
case 'raws':
return len
case 'utf8':
case 'utf-8':
return utf8ToBytes(string).length
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return len * 2
case 'hex':
return len >>> 1
case 'base64':
return base64ToBytes(string).length
default:
if (loweredCase) return utf8ToBytes(string).length // assume utf8
encoding = ('' + encoding).toLowerCase()
loweredCase = true
}
}
}
Buffer.byteLength = byteLength
function slowToString (encoding, start, end) {
var loweredCase = false
start = start | 0
end = end === undefined || end === Infinity ? this.length : end | 0
if (!encoding) encoding = 'utf8'
if (start < 0) start = 0
if (end > this.length) end = this.length
if (end <= start) return ''
while (true) {
switch (encoding) {
case 'hex':
return hexSlice(this, start, end)
case 'utf8':
case 'utf-8':
return utf8Slice(this, start, end)
case 'ascii':
return asciiSlice(this, start, end)
case 'binary':
return binarySlice(this, start, end)
case 'base64':
return base64Slice(this, start, end)
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return utf16leSlice(this, start, end)
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
encoding = (encoding + '').toLowerCase()
loweredCase = true
}
}
}
Buffer.prototype.toString = function toString () {
var length = this.length | 0
if (length === 0) return ''
if (arguments.length === 0) return utf8Slice(this, 0, length)
return slowToString.apply(this, arguments)
}
Buffer.prototype.equals = function equals (b) {
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
if (this === b) return true
return Buffer.compare(this, b) === 0
}
Buffer.prototype.inspect = function inspect () {
var str = ''
var max = exports.INSPECT_MAX_BYTES
if (this.length > 0) {
str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
if (this.length > max) str += ' ... '
}
return '<Buffer ' + str + '>'
}
Buffer.prototype.compare = function compare (b) {
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
if (this === b) return 0
return Buffer.compare(this, b)
}
Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff
else if (byteOffset < -0x80000000) byteOffset = -0x80000000
byteOffset >>= 0
if (this.length === 0) return -1
if (byteOffset >= this.length) return -1
// Negative offsets start from the end of the buffer
if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)
if (typeof val === 'string') {
if (val.length === 0) return -1 // special case: looking for empty string always fails
return String.prototype.indexOf.call(this, val, byteOffset)
}
if (Buffer.isBuffer(val)) {
return arrayIndexOf(this, val, byteOffset)
}
if (typeof val === 'number') {
if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {
return Uint8Array.prototype.indexOf.call(this, val, byteOffset)
}
return arrayIndexOf(this, [ val ], byteOffset)
}
function arrayIndexOf (arr, val, byteOffset) {
var foundIndex = -1
for (var i = 0; byteOffset + i < arr.length; i++) {
if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {
if (foundIndex === -1) foundIndex = i
if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex
} else {
foundIndex = -1
}
}
return -1
}
throw new TypeError('val must be string, number or Buffer')
}
// `get` is deprecated
Buffer.prototype.get = function get (offset) {
console.log('.get() is deprecated. Access using array indexes instead.')
return this.readUInt8(offset)
}
// `set` is deprecated
Buffer.prototype.set = function set (v, offset) {
console.log('.set() is deprecated. Access using array indexes instead.')
return this.writeUInt8(v, offset)
}
function hexWrite (buf, string, offset, length) {
offset = Number(offset) || 0
var remaining = buf.length - offset
if (!length) {
length = remaining
} else {
length = Number(length)
if (length > remaining) {
length = remaining
}
}
// must be an even number of digits
var strLen = string.length
if (strLen % 2 !== 0) throw new Error('Invalid hex string')
if (length > strLen / 2) {
length = strLen / 2
}
for (var i = 0; i < length; i++) {
var parsed = parseInt(string.substr(i * 2, 2), 16)
if (isNaN(parsed)) throw new Error('Invalid hex string')
buf[offset + i] = parsed
}
return i
}
function utf8Write (buf, string, offset, length) {
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
}
function asciiWrite (buf, string, offset, length) {
return blitBuffer(asciiToBytes(string), buf, offset, length)
}
function binaryWrite (buf, string, offset, length) {
return asciiWrite(buf, string, offset, length)
}
function base64Write (buf, string, offset, length) {
return blitBuffer(base64ToBytes(string), buf, offset, length)
}
function ucs2Write (buf, string, offset, length) {
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
}
Buffer.prototype.write = function write (string, offset, length, encoding) {
// Buffer#write(string)
if (offset === undefined) {
encoding = 'utf8'
length = this.length
offset = 0
// Buffer#write(string, encoding)
} else if (length === undefined && typeof offset === 'string') {
encoding = offset
length = this.length
offset = 0
// Buffer#write(string, offset[, length][, encoding])
} else if (isFinite(offset)) {
offset = offset | 0
if (isFinite(length)) {
length = length | 0
if (encoding === undefined) encoding = 'utf8'
} else {
encoding = length
length = undefined
}
// legacy write(string, encoding, offset, length) - remove in v0.13
} else {
var swap = encoding
encoding = offset
offset = length | 0
length = swap
}
var remaining = this.length - offset
if (length === undefined || length > remaining) length = remaining
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
throw new RangeError('attempt to write outside buffer bounds')
}
if (!encoding) encoding = 'utf8'
var loweredCase = false
for (;;) {
switch (encoding) {
case 'hex':
return hexWrite(this, string, offset, length)
case 'utf8':
case 'utf-8':
return utf8Write(this, string, offset, length)
case 'ascii':
return asciiWrite(this, string, offset, length)
case 'binary':
return binaryWrite(this, string, offset, length)
case 'base64':
// Warning: maxLength not taken into account in base64Write
return base64Write(this, string, offset, length)
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return ucs2Write(this, string, offset, length)
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
encoding = ('' + encoding).toLowerCase()
loweredCase = true
}
}
}
Buffer.prototype.toJSON = function toJSON () {
return {
type: 'Buffer',
data: Array.prototype.slice.call(this._arr || this, 0)
}
}
function base64Slice (buf, start, end) {
if (start === 0 && end === buf.length) {
return base64.fromByteArray(buf)
} else {
return base64.fromByteArray(buf.slice(start, end))
}
}
function utf8Slice (buf, start, end) {
end = Math.min(buf.length, end)
var res = []
var i = start
while (i < end) {
var firstByte = buf[i]
var codePoint = null
var bytesPerSequence = (firstByte > 0xEF) ? 4
: (firstByte > 0xDF) ? 3
: (firstByte > 0xBF) ? 2
: 1
if (i + bytesPerSequence <= end) {
var secondByte, thirdByte, fourthByte, tempCodePoint
switch (bytesPerSequence) {
case 1:
if (firstByte < 0x80) {
codePoint = firstByte
}
break
case 2:
secondByte = buf[i + 1]
if ((secondByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint
}
}
break
case 3:
secondByte = buf[i + 1]
thirdByte = buf[i + 2]
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint
}
}
break
case 4:
secondByte = buf[i + 1]
thirdByte = buf[i + 2]
fourthByte = buf[i + 3]
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint
}
}
}
}
if (codePoint === null) {
// we did not generate a valid codePoint so insert a
// replacement char (U+FFFD) and advance only 1 byte
codePoint = 0xFFFD
bytesPerSequence = 1
} else if (codePoint > 0xFFFF) {
// encode to utf16 (surrogate pair dance)
codePoint -= 0x10000
res.push(codePoint >>> 10 & 0x3FF | 0xD800)
codePoint = 0xDC00 | codePoint & 0x3FF
}
res.push(codePoint)
i += bytesPerSequence
}
return decodeCodePointsArray(res)
}
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
var MAX_ARGUMENTS_LENGTH = 0x1000
function decodeCodePointsArray (codePoints) {
var len = codePoints.length
if (len <= MAX_ARGUMENTS_LENGTH) {
return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
}
// Decode in chunks to avoid "call stack size exceeded".
var res = ''
var i = 0
while (i < len) {
res += String.fromCharCode.apply(
String,
codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
)
}
return res
}
function asciiSlice (buf, start, end) {
var ret = ''
end = Math.min(buf.length, end)
for (var i = start; i < end; i++) {
ret += String.fromCharCode(buf[i] & 0x7F)
}
return ret
}
function binarySlice (buf, start, end) {
var ret = ''
end = Math.min(buf.length, end)
for (var i = start; i < end; i++) {
ret += String.fromCharCode(buf[i])
}
return ret
}
function hexSlice (buf, start, end) {
var len = buf.length
if (!start || start < 0) start = 0
if (!end || end < 0 || end > len) end = len
var out = ''
for (var i = start; i < end; i++) {
out += toHex(buf[i])
}
return out
}
function utf16leSlice (buf, start, end) {
var bytes = buf.slice(start, end)
var res = ''
for (var i = 0; i < bytes.length; i += 2) {
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
}
return res
}
Buffer.prototype.slice = function slice (start, end) {
var len = this.length
start = ~~start
end = end === undefined ? len : ~~end
if (start < 0) {
start += len
if (start < 0) start = 0
} else if (start > len) {
start = len
}
if (end < 0) {
end += len
if (end < 0) end = 0
} else if (end > len) {
end = len
}
if (end < start) end = start
var newBuf
if (Buffer.TYPED_ARRAY_SUPPORT) {
newBuf = Buffer._augment(this.subarray(start, end))
} else {
var sliceLen = end - start
newBuf = new Buffer(sliceLen, undefined)
for (var i = 0; i < sliceLen; i++) {
newBuf[i] = this[i + start]
}
}
if (newBuf.length) newBuf.parent = this.parent || this
return newBuf
}
/*
* Need to make sure that buffer isn't trying to write out of bounds.
*/
function checkOffset (offset, ext, length) {
if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
}
Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) checkOffset(offset, byteLength, this.length)
var val = this[offset]
var mul = 1
var i = 0
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul
}
return val
}
Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) {
checkOffset(offset, byteLength, this.length)
}
var val = this[offset + --byteLength]
var mul = 1
while (byteLength > 0 && (mul *= 0x100)) {
val += this[offset + --byteLength] * mul
}
return val
}
Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
if (!noAssert) checkOffset(offset, 1, this.length)
return this[offset]
}
Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length)
return this[offset] | (this[offset + 1] << 8)
}
Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length)
return (this[offset] << 8) | this[offset + 1]
}
Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return ((this[offset]) |
(this[offset + 1] << 8) |
(this[offset + 2] << 16)) +
(this[offset + 3] * 0x1000000)
}
Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return (this[offset] * 0x1000000) +
((this[offset + 1] << 16) |
(this[offset + 2] << 8) |
this[offset + 3])
}
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) checkOffset(offset, byteLength, this.length)
var val = this[offset]
var mul = 1
var i = 0
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul
}
mul *= 0x80
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
return val
}
Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) checkOffset(offset, byteLength, this.length)
var i = byteLength
var mul = 1
var val = this[offset + --i]
while (i > 0 && (mul *= 0x100)) {
val += this[offset + --i] * mul
}
mul *= 0x80
if (val >= mul) val -= Math.pow(2, 8 * byteLength)
return val
}
Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
if (!noAssert) checkOffset(offset, 1, this.length)
if (!(this[offset] & 0x80)) return (this[offset])
return ((0xff - this[offset] + 1) * -1)
}
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length)
var val = this[offset] | (this[offset + 1] << 8)
return (val & 0x8000) ? val | 0xFFFF0000 : val
}
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length)
var val = this[offset + 1] | (this[offset] << 8)
return (val & 0x8000) ? val | 0xFFFF0000 : val
}
Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return (this[offset]) |
(this[offset + 1] << 8) |
(this[offset + 2] << 16) |
(this[offset + 3] << 24)
}
Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return (this[offset] << 24) |
(this[offset + 1] << 16) |
(this[offset + 2] << 8) |
(this[offset + 3])
}
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return ieee754.read(this, offset, true, 23, 4)
}
Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length)
return ieee754.read(this, offset, false, 23, 4)
}
Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 8, this.length)
return ieee754.read(this, offset, true, 52, 8)
}
Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 8, this.length)
return ieee754.read(this, offset, false, 52, 8)
}
function checkInt (buf, value, offset, ext, max, min) {
if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')
if (value > max || value < min) throw new RangeError('value is out of bounds')
if (offset + ext > buf.length) throw new RangeError('index out of range')
}
Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
value = +value
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
var mul = 1
var i = 0
this[offset] = value & 0xFF
while (++i < byteLength && (mul *= 0x100)) {
this[offset + i] = (value / mul) & 0xFF
}
return offset + byteLength
}
Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
value = +value
offset = offset | 0
byteLength = byteLength | 0
if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
var i = byteLength - 1
var mul = 1
this[offset + i] = value & 0xFF
while (--i >= 0 && (mul *= 0x100)) {
this[offset + i] = (value / mul) & 0xFF
}
return offset + byteLength
}
Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
this[offset] = (value & 0xff)
return offset + 1
}
function objectWriteUInt16 (buf, value, offset, littleEndian) {
if (value < 0) value = 0xffff + value + 1
for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {
buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
(littleEndian ? i : 1 - i) * 8
}
}
Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff)
this[offset + 1] = (value >>> 8)
} else {
objectWriteUInt16(this, value, offset, true)
}
return offset + 2
}
Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 8)
this[offset + 1] = (value & 0xff)
} else {
objectWriteUInt16(this, value, offset, false)
}
return offset + 2
}
function objectWriteUInt32 (buf, value, offset, littleEndian) {
if (value < 0) value = 0xffffffff + value + 1
for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {
buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
}
}
Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset + 3] = (value >>> 24)
this[offset + 2] = (value >>> 16)
this[offset + 1] = (value >>> 8)
this[offset] = (value & 0xff)
} else {
objectWriteUInt32(this, value, offset, true)
}
return offset + 4
}
Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 24)
this[offset + 1] = (value >>> 16)
this[offset + 2] = (value >>> 8)
this[offset + 3] = (value & 0xff)
} else {
objectWriteUInt32(this, value, offset, false)
}
return offset + 4
}
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1)
checkInt(this, value, offset, byteLength, limit - 1, -limit)
}
var i = 0
var mul = 1
var sub = value < 0 ? 1 : 0
this[offset] = value & 0xFF
while (++i < byteLength && (mul *= 0x100)) {
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
}
return offset + byteLength
}
Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1)
checkInt(this, value, offset, byteLength, limit - 1, -limit)
}
var i = byteLength - 1
var mul = 1
var sub = value < 0 ? 1 : 0
this[offset + i] = value & 0xFF
while (--i >= 0 && (mul *= 0x100)) {
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
}
return offset + byteLength
}
Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
if (value < 0) value = 0xff + value + 1
this[offset] = (value & 0xff)
return offset + 1
}
Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff)
this[offset + 1] = (value >>> 8)
} else {
objectWriteUInt16(this, value, offset, true)
}
return offset + 2
}
Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 8)
this[offset + 1] = (value & 0xff)
} else {
objectWriteUInt16(this, value, offset, false)
}
return offset + 2
}
Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff)
this[offset + 1] = (value >>> 8)
this[offset + 2] = (value >>> 16)
this[offset + 3] = (value >>> 24)
} else {
objectWriteUInt32(this, value, offset, true)
}
return offset + 4
}
Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
value = +value
offset = offset | 0
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
if (value < 0) value = 0xffffffff + value + 1
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 24)
this[offset + 1] = (value >>> 16)
this[offset + 2] = (value >>> 8)
this[offset + 3] = (value & 0xff)
} else {
objectWriteUInt32(this, value, offset, false)
}
return offset + 4
}
function checkIEEE754 (buf, value, offset, ext, max, min) {
if (value > max || value < min) throw new RangeError('value is out of bounds')
if (offset + ext > buf.length) throw new RangeError('index out of range')
if (offset < 0) throw new RangeError('index out of range')
}
function writeFloat (buf, value, offset, littleEndian, noAssert) {
if (!noAssert) {
checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
}
ieee754.write(buf, value, offset, littleEndian, 23, 4)
return offset + 4
}
Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
return writeFloat(this, value, offset, true, noAssert)
}
Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
return writeFloat(this, value, offset, false, noAssert)
}
function writeDouble (buf, value, offset, littleEndian, noAssert) {
if (!noAssert) {
checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
}
ieee754.write(buf, value, offset, littleEndian, 52, 8)
return offset + 8
}
Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
return writeDouble(this, value, offset, true, noAssert)
}
Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
return writeDouble(this, value, offset, false, noAssert)
}
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
if (!start) start = 0
if (!end && end !== 0) end = this.length
if (targetStart >= target.length) targetStart = target.length
if (!targetStart) targetStart = 0
if (end > 0 && end < start) end = start
// Copy 0 bytes; we're done
if (end === start) return 0
if (target.length === 0 || this.length === 0) return 0
// Fatal error conditions
if (targetStart < 0) {
throw new RangeError('targetStart out of bounds')
}
if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
if (end < 0) throw new RangeError('sourceEnd out of bounds')
// Are we oob?
if (end > this.length) end = this.length
if (target.length - targetStart < end - start) {
end = target.length - targetStart + start
}
var len = end - start
var i
if (this === target && start < targetStart && targetStart < end) {
// descending copy from end
for (i = len - 1; i >= 0; i--) {
target[i + targetStart] = this[i + start]
}
} else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
// ascending copy from start
for (i = 0; i < len; i++) {
target[i + targetStart] = this[i + start]
}
} else {
target._set(this.subarray(start, start + len), targetStart)
}
return len
}
// fill(value, start=0, end=buffer.length)
Buffer.prototype.fill = function fill (value, start, end) {
if (!value) value = 0
if (!start) start = 0
if (!end) end = this.length
if (end < start) throw new RangeError('end < start')
// Fill 0 bytes; we're done
if (end === start) return
if (this.length === 0) return
if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')
if (end < 0 || end > this.length) throw new RangeError('end out of bounds')
var i
if (typeof value === 'number') {
for (i = start; i < end; i++) {
this[i] = value
}
} else {
var bytes = utf8ToBytes(value.toString())
var len = bytes.length
for (i = start; i < end; i++) {
this[i] = bytes[i % len]
}
}
return this
}
/**
* Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.
* Added in Node 0.12. Only available in browsers that support ArrayBuffer.
*/
Buffer.prototype.toArrayBuffer = function toArrayBuffer () {
if (typeof Uint8Array !== 'undefined') {
if (Buffer.TYPED_ARRAY_SUPPORT) {
return (new Buffer(this)).buffer
} else {
var buf = new Uint8Array(this.length)
for (var i = 0, len = buf.length; i < len; i += 1) {
buf[i] = this[i]
}
return buf.buffer
}
} else {
throw new TypeError('Buffer.toArrayBuffer not supported in this browser')
}
}
// HELPER FUNCTIONS
// ================
var BP = Buffer.prototype
/**
* Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods
*/
Buffer._augment = function _augment (arr) {
arr.constructor = Buffer
arr._isBuffer = true
// save reference to original Uint8Array set method before overwriting
arr._set = arr.set
// deprecated
arr.get = BP.get
arr.set = BP.set
arr.write = BP.write
arr.toString = BP.toString
arr.toLocaleString = BP.toString
arr.toJSON = BP.toJSON
arr.equals = BP.equals
arr.compare = BP.compare
arr.indexOf = BP.indexOf
arr.copy = BP.copy
arr.slice = BP.slice
arr.readUIntLE = BP.readUIntLE
arr.readUIntBE = BP.readUIntBE
arr.readUInt8 = BP.readUInt8
arr.readUInt16LE = BP.readUInt16LE
arr.readUInt16BE = BP.readUInt16BE
arr.readUInt32LE = BP.readUInt32LE
arr.readUInt32BE = BP.readUInt32BE
arr.readIntLE = BP.readIntLE
arr.readIntBE = BP.readIntBE
arr.readInt8 = BP.readInt8
arr.readInt16LE = BP.readInt16LE
arr.readInt16BE = BP.readInt16BE
arr.readInt32LE = BP.readInt32LE
arr.readInt32BE = BP.readInt32BE
arr.readFloatLE = BP.readFloatLE
arr.readFloatBE = BP.readFloatBE
arr.readDoubleLE = BP.readDoubleLE
arr.readDoubleBE = BP.readDoubleBE
arr.writeUInt8 = BP.writeUInt8
arr.writeUIntLE = BP.writeUIntLE
arr.writeUIntBE = BP.writeUIntBE
arr.writeUInt16LE = BP.writeUInt16LE
arr.writeUInt16BE = BP.writeUInt16BE
arr.writeUInt32LE = BP.writeUInt32LE
arr.writeUInt32BE = BP.writeUInt32BE
arr.writeIntLE = BP.writeIntLE
arr.writeIntBE = BP.writeIntBE
arr.writeInt8 = BP.writeInt8
arr.writeInt16LE = BP.writeInt16LE
arr.writeInt16BE = BP.writeInt16BE
arr.writeInt32LE = BP.writeInt32LE
arr.writeInt32BE = BP.writeInt32BE
arr.writeFloatLE = BP.writeFloatLE
arr.writeFloatBE = BP.writeFloatBE
arr.writeDoubleLE = BP.writeDoubleLE
arr.writeDoubleBE = BP.writeDoubleBE
arr.fill = BP.fill
arr.inspect = BP.inspect
arr.toArrayBuffer = BP.toArrayBuffer
return arr
}
var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
function base64clean (str) {
// Node strips out invalid characters like \n and \t from the string, base64-js does not
str = stringtrim(str).replace(INVALID_BASE64_RE, '')
// Node converts strings with length < 2 to ''
if (str.length < 2) return ''
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
while (str.length % 4 !== 0) {
str = str + '='
}
return str
}
function stringtrim (str) {
if (str.trim) return str.trim()
return str.replace(/^\s+|\s+$/g, '')
}
function toHex (n) {
if (n < 16) return '0' + n.toString(16)
return n.toString(16)
}
function utf8ToBytes (string, units) {
units = units || Infinity
var codePoint
var length = string.length
var leadSurrogate = null
var bytes = []
for (var i = 0; i < length; i++) {
codePoint = string.charCodeAt(i)
// is surrogate component
if (codePoint > 0xD7FF && codePoint < 0xE000) {
// last char was a lead
if (!leadSurrogate) {
// no lead yet
if (codePoint > 0xDBFF) {
// unexpected trail
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
continue
} else if (i + 1 === length) {
// unpaired lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
continue
}
// valid lead
leadSurrogate = codePoint
continue
}
// 2 leads in a row
if (codePoint < 0xDC00) {
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
leadSurrogate = codePoint
continue
}
// valid surrogate pair
codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
} else if (leadSurrogate) {
// valid bmp char, but last char was a lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
}
leadSurrogate = null
// encode utf8
if (codePoint < 0x80) {
if ((units -= 1) < 0) break
bytes.push(codePoint)
} else if (codePoint < 0x800) {
if ((units -= 2) < 0) break
bytes.push(
codePoint >> 0x6 | 0xC0,
codePoint & 0x3F | 0x80
)
} else if (codePoint < 0x10000) {
if ((units -= 3) < 0) break
bytes.push(
codePoint >> 0xC | 0xE0,
codePoint >> 0x6 & 0x3F | 0x80,
codePoint & 0x3F | 0x80
)
} else if (codePoint < 0x110000) {
if ((units -= 4) < 0) break
bytes.push(
codePoint >> 0x12 | 0xF0,
codePoint >> 0xC & 0x3F | 0x80,
codePoint >> 0x6 & 0x3F | 0x80,
codePoint & 0x3F | 0x80
)
} else {
throw new Error('Invalid code point')
}
}
return bytes
}
function asciiToBytes (str) {
var byteArray = []
for (var i = 0; i < str.length; i++) {
// Node's code seems to be doing this and not & 0x7F..
byteArray.push(str.charCodeAt(i) & 0xFF)
}
return byteArray
}
function utf16leToBytes (str, units) {
var c, hi, lo
var byteArray = []
for (var i = 0; i < str.length; i++) {
if ((units -= 2) < 0) break
c = str.charCodeAt(i)
hi = c >> 8
lo = c % 256
byteArray.push(lo)
byteArray.push(hi)
}
return byteArray
}
function base64ToBytes (str) {
return base64.toByteArray(base64clean(str))
}
function blitBuffer (src, dst, offset, length) {
for (var i = 0; i < length; i++) {
if ((i + offset >= dst.length) || (i >= src.length)) break
dst[i + offset] = src[i]
}
return i
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer, (function() { return this; }())))
/***/ },
/* 193 */
/***/ function(module, exports, __webpack_require__) {
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
;(function (exports) {
'use strict';
var Arr = (typeof Uint8Array !== 'undefined')
? Uint8Array
: Array
var PLUS = '+'.charCodeAt(0)
var SLASH = '/'.charCodeAt(0)
var NUMBER = '0'.charCodeAt(0)
var LOWER = 'a'.charCodeAt(0)
var UPPER = 'A'.charCodeAt(0)
var PLUS_URL_SAFE = '-'.charCodeAt(0)
var SLASH_URL_SAFE = '_'.charCodeAt(0)
function decode (elt) {
var code = elt.charCodeAt(0)
if (code === PLUS ||
code === PLUS_URL_SAFE)
return 62 // '+'
if (code === SLASH ||
code === SLASH_URL_SAFE)
return 63 // '/'
if (code < NUMBER)
return -1 //no match
if (code < NUMBER + 10)
return code - NUMBER + 26 + 26
if (code < UPPER + 26)
return code - UPPER
if (code < LOWER + 26)
return code - LOWER + 26
}
function b64ToByteArray (b64) {
var i, j, l, tmp, placeHolders, arr
if (b64.length % 4 > 0) {
throw new Error('Invalid string. Length must be a multiple of 4')
}
// the number of equal signs (place holders)
// if there are two placeholders, than the two characters before it
// represent one byte
// if there is only one, then the three characters before it represent 2 bytes
// this is just a cheap hack to not do indexOf twice
var len = b64.length
placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
// base64 is 4/3 + up to two characters of the original data
arr = new Arr(b64.length * 3 / 4 - placeHolders)
// if there are placeholders, only get up to the last complete 4 chars
l = placeHolders > 0 ? b64.length - 4 : b64.length
var L = 0
function push (v) {
arr[L++] = v
}
for (i = 0, j = 0; i < l; i += 4, j += 3) {
tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
push((tmp & 0xFF0000) >> 16)
push((tmp & 0xFF00) >> 8)
push(tmp & 0xFF)
}
if (placeHolders === 2) {
tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
push(tmp & 0xFF)
} else if (placeHolders === 1) {
tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
push((tmp >> 8) & 0xFF)
push(tmp & 0xFF)
}
return arr
}
function uint8ToBase64 (uint8) {
var i,
extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
output = "",
temp, length
function encode (num) {
return lookup.charAt(num)
}
function tripletToBase64 (num) {
return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
}
// go through the array every three bytes, we'll deal with trailing stuff later
for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
output += tripletToBase64(temp)
}
// pad the end with zeros, but make sure to not forget the extra bytes
switch (extraBytes) {
case 1:
temp = uint8[uint8.length - 1]
output += encode(temp >> 2)
output += encode((temp << 4) & 0x3F)
output += '=='
break
case 2:
temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
output += encode(temp >> 10)
output += encode((temp >> 4) & 0x3F)
output += encode((temp << 2) & 0x3F)
output += '='
break
}
return output
}
exports.toByteArray = b64ToByteArray
exports.fromByteArray = uint8ToBase64
}( false ? (this.base64js = {}) : exports))
/***/ },
/* 194 */
/***/ function(module, exports) {
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m
var eLen = nBytes * 8 - mLen - 1
var eMax = (1 << eLen) - 1
var eBias = eMax >> 1
var nBits = -7
var i = isLE ? (nBytes - 1) : 0
var d = isLE ? -1 : 1
var s = buffer[offset + i]
i += d
e = s & ((1 << (-nBits)) - 1)
s >>= (-nBits)
nBits += eLen
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
m = e & ((1 << (-nBits)) - 1)
e >>= (-nBits)
nBits += mLen
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
if (e === 0) {
e = 1 - eBias
} else if (e === eMax) {
return m ? NaN : ((s ? -1 : 1) * Infinity)
} else {
m = m + Math.pow(2, mLen)
e = e - eBias
}
return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
}
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
var e, m, c
var eLen = nBytes * 8 - mLen - 1
var eMax = (1 << eLen) - 1
var eBias = eMax >> 1
var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
var i = isLE ? 0 : (nBytes - 1)
var d = isLE ? 1 : -1
var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
value = Math.abs(value)
if (isNaN(value) || value === Infinity) {
m = isNaN(value) ? 1 : 0
e = eMax
} else {
e = Math.floor(Math.log(value) / Math.LN2)
if (value * (c = Math.pow(2, -e)) < 1) {
e--
c *= 2
}
if (e + eBias >= 1) {
value += rt / c
} else {
value += rt * Math.pow(2, 1 - eBias)
}
if (value * c >= 2) {
e++
c /= 2
}
if (e + eBias >= eMax) {
m = 0
e = eMax
} else if (e + eBias >= 1) {
m = (value * c - 1) * Math.pow(2, mLen)
e = e + eBias
} else {
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
e = 0
}
}
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
e = (e << mLen) | m
eLen += mLen
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
buffer[offset + i - d] |= s * 128
}
/***/ },
/* 195 */
/***/ function(module, exports) {
var toString = {}.toString;
module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
/***/ },
/* 196 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, Buffer) {(function() {
var g = ('undefined' === typeof window ? global : window) || {}
_crypto = (
g.crypto || g.msCrypto || __webpack_require__(197)
)
module.exports = function(size) {
// Modern Browsers
if(_crypto.getRandomValues) {
var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array
/* This will not work in older browsers.
* See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
*/
_crypto.getRandomValues(bytes);
return bytes;
}
else if (_crypto.randomBytes) {
return _crypto.randomBytes(size)
}
else
throw new Error(
'secure random number generation not supported by this browser\n'+
'use chrome, FireFox or Internet Explorer 11'
)
}
}())
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(192).Buffer))
/***/ },
/* 197 */
/***/ function(module, exports) {
/* (ignored) */
/***/ },
/* 198 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(199)
var md5 = toConstructor(__webpack_require__(208))
var rmd160 = toConstructor(__webpack_require__(210))
function toConstructor (fn) {
return function () {
var buffers = []
var m= {
update: function (data, enc) {
if(!Buffer.isBuffer(data)) data = new Buffer(data, enc)
buffers.push(data)
return this
},
digest: function (enc) {
var buf = Buffer.concat(buffers)
var r = fn(buf)
buffers = null
return enc ? r.toString(enc) : r
}
}
return m
}
}
module.exports = function (alg) {
if('md5' === alg) return new md5()
if('rmd160' === alg) return new rmd160()
return createHash(alg)
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 199 */
/***/ function(module, exports, __webpack_require__) {
var exports = module.exports = function (alg) {
var Alg = exports[alg]
if(!Alg) throw new Error(alg + ' is not supported (we accept pull requests)')
return new Alg()
}
var Buffer = __webpack_require__(192).Buffer
var Hash = __webpack_require__(200)(Buffer)
exports.sha1 = __webpack_require__(201)(Buffer, Hash)
exports.sha256 = __webpack_require__(206)(Buffer, Hash)
exports.sha512 = __webpack_require__(207)(Buffer, Hash)
/***/ },
/* 200 */
/***/ function(module, exports) {
module.exports = function (Buffer) {
//prototype class for hash functions
function Hash (blockSize, finalSize) {
this._block = new Buffer(blockSize) //new Uint32Array(blockSize/4)
this._finalSize = finalSize
this._blockSize = blockSize
this._len = 0
this._s = 0
}
Hash.prototype.init = function () {
this._s = 0
this._len = 0
}
Hash.prototype.update = function (data, enc) {
if ("string" === typeof data) {
enc = enc || "utf8"
data = new Buffer(data, enc)
}
var l = this._len += data.length
var s = this._s = (this._s || 0)
var f = 0
var buffer = this._block
while (s < l) {
var t = Math.min(data.length, f + this._blockSize - (s % this._blockSize))
var ch = (t - f)
for (var i = 0; i < ch; i++) {
buffer[(s % this._blockSize) + i] = data[i + f]
}
s += ch
f += ch
if ((s % this._blockSize) === 0) {
this._update(buffer)
}
}
this._s = s
return this
}
Hash.prototype.digest = function (enc) {
// Suppose the length of the message M, in bits, is l
var l = this._len * 8
// Append the bit 1 to the end of the message
this._block[this._len % this._blockSize] = 0x80
// and then k zero bits, where k is the smallest non-negative solution to the equation (l + 1 + k) === finalSize mod blockSize
this._block.fill(0, this._len % this._blockSize + 1)
if (l % (this._blockSize * 8) >= this._finalSize * 8) {
this._update(this._block)
this._block.fill(0)
}
// to this append the block which is equal to the number l written in binary
// TODO: handle case where l is > Math.pow(2, 29)
this._block.writeInt32BE(l, this._blockSize - 4)
var hash = this._update(this._block) || this._hash()
return enc ? hash.toString(enc) : hash
}
Hash.prototype._update = function () {
throw new Error('_update must be implemented by subclass')
}
return Hash
}
/***/ },
/* 201 */
/***/ function(module, exports, __webpack_require__) {
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
var inherits = __webpack_require__(202).inherits
module.exports = function (Buffer, Hash) {
var A = 0|0
var B = 4|0
var C = 8|0
var D = 12|0
var E = 16|0
var W = new (typeof Int32Array === 'undefined' ? Array : Int32Array)(80)
var POOL = []
function Sha1 () {
if(POOL.length)
return POOL.pop().init()
if(!(this instanceof Sha1)) return new Sha1()
this._w = W
Hash.call(this, 16*4, 14*4)
this._h = null
this.init()
}
inherits(Sha1, Hash)
Sha1.prototype.init = function () {
this._a = 0x67452301
this._b = 0xefcdab89
this._c = 0x98badcfe
this._d = 0x10325476
this._e = 0xc3d2e1f0
Hash.prototype.init.call(this)
return this
}
Sha1.prototype._POOL = POOL
Sha1.prototype._update = function (X) {
var a, b, c, d, e, _a, _b, _c, _d, _e
a = _a = this._a
b = _b = this._b
c = _c = this._c
d = _d = this._d
e = _e = this._e
var w = this._w
for(var j = 0; j < 80; j++) {
var W = w[j] = j < 16 ? X.readInt32BE(j*4)
: rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)
var t = add(
add(rol(a, 5), sha1_ft(j, b, c, d)),
add(add(e, W), sha1_kt(j))
)
e = d
d = c
c = rol(b, 30)
b = a
a = t
}
this._a = add(a, _a)
this._b = add(b, _b)
this._c = add(c, _c)
this._d = add(d, _d)
this._e = add(e, _e)
}
Sha1.prototype._hash = function () {
if(POOL.length < 100) POOL.push(this)
var H = new Buffer(20)
//console.log(this._a|0, this._b|0, this._c|0, this._d|0, this._e|0)
H.writeInt32BE(this._a|0, A)
H.writeInt32BE(this._b|0, B)
H.writeInt32BE(this._c|0, C)
H.writeInt32BE(this._d|0, D)
H.writeInt32BE(this._e|0, E)
return H
}
/*
* Perform the appropriate triplet combination function for the current
* iteration
*/
function sha1_ft(t, b, c, d) {
if(t < 20) return (b & c) | ((~b) & d);
if(t < 40) return b ^ c ^ d;
if(t < 60) return (b & c) | (b & d) | (c & d);
return b ^ c ^ d;
}
/*
* Determine the appropriate additive constant for the current iteration
*/
function sha1_kt(t) {
return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :
(t < 60) ? -1894007588 : -899497514;
}
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
* //dominictarr: this is 10 years old, so maybe this can be dropped?)
*
*/
function add(x, y) {
return (x + y ) | 0
//lets see how this goes on testling.
// var lsw = (x & 0xFFFF) + (y & 0xFFFF);
// var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
// return (msw << 16) | (lsw & 0xFFFF);
}
/*
* Bitwise rotate a 32-bit number to the left.
*/
function rol(num, cnt) {
return (num << cnt) | (num >>> (32 - cnt));
}
return Sha1
}
/***/ },
/* 202 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var formatRegExp = /%[sdj%]/g;
exports.format = function(f) {
if (!isString(f)) {
var objects = [];
for (var i = 0; i < arguments.length; i++) {
objects.push(inspect(arguments[i]));
}
return objects.join(' ');
}
var i = 1;
var args = arguments;
var len = args.length;
var str = String(f).replace(formatRegExp, function(x) {
if (x === '%%') return '%';
if (i >= len) return x;
switch (x) {
case '%s': return String(args[i++]);
case '%d': return Number(args[i++]);
case '%j':
try {
return JSON.stringify(args[i++]);
} catch (_) {
return '[Circular]';
}
default:
return x;
}
});
for (var x = args[i]; i < len; x = args[++i]) {
if (isNull(x) || !isObject(x)) {
str += ' ' + x;
} else {
str += ' ' + inspect(x);
}
}
return str;
};
// Mark that a method should not be used.
// Returns a modified function which warns once by default.
// If --no-deprecation is set, then it is a no-op.
exports.deprecate = function(fn, msg) {
// Allow for deprecating things in the process of starting up.
if (isUndefined(global.process)) {
return function() {
return exports.deprecate(fn, msg).apply(this, arguments);
};
}
if (process.noDeprecation === true) {
return fn;
}
var warned = false;
function deprecated() {
if (!warned) {
if (process.throwDeprecation) {
throw new Error(msg);
} else if (process.traceDeprecation) {
console.trace(msg);
} else {
console.error(msg);
}
warned = true;
}
return fn.apply(this, arguments);
}
return deprecated;
};
var debugs = {};
var debugEnviron;
exports.debuglog = function(set) {
if (isUndefined(debugEnviron))
debugEnviron = ({"NODE_ENV":"production"}).NODE_DEBUG || '';
set = set.toUpperCase();
if (!debugs[set]) {
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
var pid = process.pid;
debugs[set] = function() {
var msg = exports.format.apply(exports, arguments);
console.error('%s %d: %s', set, pid, msg);
};
} else {
debugs[set] = function() {};
}
}
return debugs[set];
};
/**
* Echos the value of a value. Trys to print the value out
* in the best way possible given the different types.
*
* @param {Object} obj The object to print out.
* @param {Object} opts Optional options object that alters the output.
*/
/* legacy: obj, showHidden, depth, colors*/
function inspect(obj, opts) {
// default options
var ctx = {
seen: [],
stylize: stylizeNoColor
};
// legacy...
if (arguments.length >= 3) ctx.depth = arguments[2];
if (arguments.length >= 4) ctx.colors = arguments[3];
if (isBoolean(opts)) {
// legacy...
ctx.showHidden = opts;
} else if (opts) {
// got an "options" object
exports._extend(ctx, opts);
}
// set default options
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
if (isUndefined(ctx.depth)) ctx.depth = 2;
if (isUndefined(ctx.colors)) ctx.colors = false;
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
if (ctx.colors) ctx.stylize = stylizeWithColor;
return formatValue(ctx, obj, ctx.depth);
}
exports.inspect = inspect;
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
inspect.colors = {
'bold' : [1, 22],
'italic' : [3, 23],
'underline' : [4, 24],
'inverse' : [7, 27],
'white' : [37, 39],
'grey' : [90, 39],
'black' : [30, 39],
'blue' : [34, 39],
'cyan' : [36, 39],
'green' : [32, 39],
'magenta' : [35, 39],
'red' : [31, 39],
'yellow' : [33, 39]
};
// Don't use 'blue' not visible on cmd.exe
inspect.styles = {
'special': 'cyan',
'number': 'yellow',
'boolean': 'yellow',
'undefined': 'grey',
'null': 'bold',
'string': 'green',
'date': 'magenta',
// "name": intentionally not styling
'regexp': 'red'
};
function stylizeWithColor(str, styleType) {
var style = inspect.styles[styleType];
if (style) {
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
'\u001b[' + inspect.colors[style][1] + 'm';
} else {
return str;
}
}
function stylizeNoColor(str, styleType) {
return str;
}
function arrayToHash(array) {
var hash = {};
array.forEach(function(val, idx) {
hash[val] = true;
});
return hash;
}
function formatValue(ctx, value, recurseTimes) {
// Provide a hook for user-specified inspect functions.
// Check that value is an object with an inspect function on it
if (ctx.customInspect &&
value &&
isFunction(value.inspect) &&
// Filter out the util module, it's inspect function is special
value.inspect !== exports.inspect &&
// Also filter out any prototype objects using the circular check.
!(value.constructor && value.constructor.prototype === value)) {
var ret = value.inspect(recurseTimes, ctx);
if (!isString(ret)) {
ret = formatValue(ctx, ret, recurseTimes);
}
return ret;
}
// Primitive types cannot have properties
var primitive = formatPrimitive(ctx, value);
if (primitive) {
return primitive;
}
// Look up the keys of the object.
var keys = Object.keys(value);
var visibleKeys = arrayToHash(keys);
if (ctx.showHidden) {
keys = Object.getOwnPropertyNames(value);
}
// IE doesn't make error fields non-enumerable
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
if (isError(value)
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
return formatError(value);
}
// Some type of object without properties can be shortcutted.
if (keys.length === 0) {
if (isFunction(value)) {
var name = value.name ? ': ' + value.name : '';
return ctx.stylize('[Function' + name + ']', 'special');
}
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
}
if (isDate(value)) {
return ctx.stylize(Date.prototype.toString.call(value), 'date');
}
if (isError(value)) {
return formatError(value);
}
}
var base = '', array = false, braces = ['{', '}'];
// Make Array say that they are Array
if (isArray(value)) {
array = true;
braces = ['[', ']'];
}
// Make functions say that they are functions
if (isFunction(value)) {
var n = value.name ? ': ' + value.name : '';
base = ' [Function' + n + ']';
}
// Make RegExps say that they are RegExps
if (isRegExp(value)) {
base = ' ' + RegExp.prototype.toString.call(value);
}
// Make dates with properties first say the date
if (isDate(value)) {
base = ' ' + Date.prototype.toUTCString.call(value);
}
// Make error with message first say the error
if (isError(value)) {
base = ' ' + formatError(value);
}
if (keys.length === 0 && (!array || value.length == 0)) {
return braces[0] + base + braces[1];
}
if (recurseTimes < 0) {
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
} else {
return ctx.stylize('[Object]', 'special');
}
}
ctx.seen.push(value);
var output;
if (array) {
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
} else {
output = keys.map(function(key) {
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
});
}
ctx.seen.pop();
return reduceToSingleString(output, base, braces);
}
function formatPrimitive(ctx, value) {
if (isUndefined(value))
return ctx.stylize('undefined', 'undefined');
if (isString(value)) {
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
.replace(/'/g, "\\'")
.replace(/\\"/g, '"') + '\'';
return ctx.stylize(simple, 'string');
}
if (isNumber(value))
return ctx.stylize('' + value, 'number');
if (isBoolean(value))
return ctx.stylize('' + value, 'boolean');
// For some reason typeof null is "object", so special case here.
if (isNull(value))
return ctx.stylize('null', 'null');
}
function formatError(value) {
return '[' + Error.prototype.toString.call(value) + ']';
}
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
var output = [];
for (var i = 0, l = value.length; i < l; ++i) {
if (hasOwnProperty(value, String(i))) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
String(i), true));
} else {
output.push('');
}
}
keys.forEach(function(key) {
if (!key.match(/^\d+$/)) {
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
key, true));
}
});
return output;
}
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
var name, str, desc;
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
if (desc.get) {
if (desc.set) {
str = ctx.stylize('[Getter/Setter]', 'special');
} else {
str = ctx.stylize('[Getter]', 'special');
}
} else {
if (desc.set) {
str = ctx.stylize('[Setter]', 'special');
}
}
if (!hasOwnProperty(visibleKeys, key)) {
name = '[' + key + ']';
}
if (!str) {
if (ctx.seen.indexOf(desc.value) < 0) {
if (isNull(recurseTimes)) {
str = formatValue(ctx, desc.value, null);
} else {
str = formatValue(ctx, desc.value, recurseTimes - 1);
}
if (str.indexOf('\n') > -1) {
if (array) {
str = str.split('\n').map(function(line) {
return ' ' + line;
}).join('\n').substr(2);
} else {
str = '\n' + str.split('\n').map(function(line) {
return ' ' + line;
}).join('\n');
}
}
} else {
str = ctx.stylize('[Circular]', 'special');
}
}
if (isUndefined(name)) {
if (array && key.match(/^\d+$/)) {
return str;
}
name = JSON.stringify('' + key);
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
name = name.substr(1, name.length - 2);
name = ctx.stylize(name, 'name');
} else {
name = name.replace(/'/g, "\\'")
.replace(/\\"/g, '"')
.replace(/(^"|"$)/g, "'");
name = ctx.stylize(name, 'string');
}
}
return name + ': ' + str;
}
function reduceToSingleString(output, base, braces) {
var numLinesEst = 0;
var length = output.reduce(function(prev, cur) {
numLinesEst++;
if (cur.indexOf('\n') >= 0) numLinesEst++;
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
}, 0);
if (length > 60) {
return braces[0] +
(base === '' ? '' : base + '\n ') +
' ' +
output.join(',\n ') +
' ' +
braces[1];
}
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
}
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(ar) {
return Array.isArray(ar);
}
exports.isArray = isArray;
function isBoolean(arg) {
return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;
function isNull(arg) {
return arg === null;
}
exports.isNull = isNull;
function isNullOrUndefined(arg) {
return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;
function isNumber(arg) {
return typeof arg === 'number';
}
exports.isNumber = isNumber;
function isString(arg) {
return typeof arg === 'string';
}
exports.isString = isString;
function isSymbol(arg) {
return typeof arg === 'symbol';
}
exports.isSymbol = isSymbol;
function isUndefined(arg) {
return arg === void 0;
}
exports.isUndefined = isUndefined;
function isRegExp(re) {
return isObject(re) && objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;
function isObject(arg) {
return typeof arg === 'object' && arg !== null;
}
exports.isObject = isObject;
function isDate(d) {
return isObject(d) && objectToString(d) === '[object Date]';
}
exports.isDate = isDate;
function isError(e) {
return isObject(e) &&
(objectToString(e) === '[object Error]' || e instanceof Error);
}
exports.isError = isError;
function isFunction(arg) {
return typeof arg === 'function';
}
exports.isFunction = isFunction;
function isPrimitive(arg) {
return arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;
exports.isBuffer = __webpack_require__(204);
function objectToString(o) {
return Object.prototype.toString.call(o);
}
function pad(n) {
return n < 10 ? '0' + n.toString(10) : n.toString(10);
}
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
'Oct', 'Nov', 'Dec'];
// 26 Feb 16:19:34
function timestamp() {
var d = new Date();
var time = [pad(d.getHours()),
pad(d.getMinutes()),
pad(d.getSeconds())].join(':');
return [d.getDate(), months[d.getMonth()], time].join(' ');
}
// log is just a thin wrapper to console.log that prepends a timestamp
exports.log = function() {
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
};
/**
* Inherit the prototype methods from one constructor into another.
*
* The Function.prototype.inherits from lang.js rewritten as a standalone
* function (not on Function.prototype). NOTE: If this file is to be loaded
* during bootstrapping this function needs to be rewritten using some native
* functions as prototype setup using normal JavaScript does not work as
* expected during bootstrapping (see mirror.js in r114903).
*
* @param {function} ctor Constructor function which needs to inherit the
* prototype.
* @param {function} superCtor Constructor function to inherit prototype from.
*/
exports.inherits = __webpack_require__(205);
exports._extend = function(origin, add) {
// Don't do anything if add isn't an object
if (!add || !isObject(add)) return origin;
var keys = Object.keys(add);
var i = keys.length;
while (i--) {
origin[keys[i]] = add[keys[i]];
}
return origin;
};
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(203)))
/***/ },
/* 203 */
/***/ function(module, exports) {
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
(function () {
try {
cachedSetTimeout = setTimeout;
} catch (e) {
cachedSetTimeout = function () {
throw new Error('setTimeout is not defined');
}
}
try {
cachedClearTimeout = clearTimeout;
} catch (e) {
cachedClearTimeout = function () {
throw new Error('clearTimeout is not defined');
}
}
} ())
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = cachedSetTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
cachedClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
cachedSetTimeout(drainQueue, 0);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ },
/* 204 */
/***/ function(module, exports) {
module.exports = function isBuffer(arg) {
return arg && typeof arg === 'object'
&& typeof arg.copy === 'function'
&& typeof arg.fill === 'function'
&& typeof arg.readUInt8 === 'function';
}
/***/ },
/* 205 */
/***/ function(module, exports) {
if (typeof Object.create === 'function') {
// implementation from standard node.js 'util' module
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor
ctor.prototype = Object.create(superCtor.prototype, {
constructor: {
value: ctor,
enumerable: false,
writable: true,
configurable: true
}
});
};
} else {
// old school shim for old browsers
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor
var TempCtor = function () {}
TempCtor.prototype = superCtor.prototype
ctor.prototype = new TempCtor()
ctor.prototype.constructor = ctor
}
}
/***/ },
/* 206 */
/***/ function(module, exports, __webpack_require__) {
/**
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
*
*/
var inherits = __webpack_require__(202).inherits
module.exports = function (Buffer, Hash) {
var K = [
0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,
0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,
0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,
0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,
0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,
0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,
0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,
0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2
]
var W = new Array(64)
function Sha256() {
this.init()
this._w = W //new Array(64)
Hash.call(this, 16*4, 14*4)
}
inherits(Sha256, Hash)
Sha256.prototype.init = function () {
this._a = 0x6a09e667|0
this._b = 0xbb67ae85|0
this._c = 0x3c6ef372|0
this._d = 0xa54ff53a|0
this._e = 0x510e527f|0
this._f = 0x9b05688c|0
this._g = 0x1f83d9ab|0
this._h = 0x5be0cd19|0
this._len = this._s = 0
return this
}
function S (X, n) {
return (X >>> n) | (X << (32 - n));
}
function R (X, n) {
return (X >>> n);
}
function Ch (x, y, z) {
return ((x & y) ^ ((~x) & z));
}
function Maj (x, y, z) {
return ((x & y) ^ (x & z) ^ (y & z));
}
function Sigma0256 (x) {
return (S(x, 2) ^ S(x, 13) ^ S(x, 22));
}
function Sigma1256 (x) {
return (S(x, 6) ^ S(x, 11) ^ S(x, 25));
}
function Gamma0256 (x) {
return (S(x, 7) ^ S(x, 18) ^ R(x, 3));
}
function Gamma1256 (x) {
return (S(x, 17) ^ S(x, 19) ^ R(x, 10));
}
Sha256.prototype._update = function(M) {
var W = this._w
var a, b, c, d, e, f, g, h
var T1, T2
a = this._a | 0
b = this._b | 0
c = this._c | 0
d = this._d | 0
e = this._e | 0
f = this._f | 0
g = this._g | 0
h = this._h | 0
for (var j = 0; j < 64; j++) {
var w = W[j] = j < 16
? M.readInt32BE(j * 4)
: Gamma1256(W[j - 2]) + W[j - 7] + Gamma0256(W[j - 15]) + W[j - 16]
T1 = h + Sigma1256(e) + Ch(e, f, g) + K[j] + w
T2 = Sigma0256(a) + Maj(a, b, c);
h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2;
}
this._a = (a + this._a) | 0
this._b = (b + this._b) | 0
this._c = (c + this._c) | 0
this._d = (d + this._d) | 0
this._e = (e + this._e) | 0
this._f = (f + this._f) | 0
this._g = (g + this._g) | 0
this._h = (h + this._h) | 0
};
Sha256.prototype._hash = function () {
var H = new Buffer(32)
H.writeInt32BE(this._a, 0)
H.writeInt32BE(this._b, 4)
H.writeInt32BE(this._c, 8)
H.writeInt32BE(this._d, 12)
H.writeInt32BE(this._e, 16)
H.writeInt32BE(this._f, 20)
H.writeInt32BE(this._g, 24)
H.writeInt32BE(this._h, 28)
return H
}
return Sha256
}
/***/ },
/* 207 */
/***/ function(module, exports, __webpack_require__) {
var inherits = __webpack_require__(202).inherits
module.exports = function (Buffer, Hash) {
var K = [
0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
]
var W = new Array(160)
function Sha512() {
this.init()
this._w = W
Hash.call(this, 128, 112)
}
inherits(Sha512, Hash)
Sha512.prototype.init = function () {
this._a = 0x6a09e667|0
this._b = 0xbb67ae85|0
this._c = 0x3c6ef372|0
this._d = 0xa54ff53a|0
this._e = 0x510e527f|0
this._f = 0x9b05688c|0
this._g = 0x1f83d9ab|0
this._h = 0x5be0cd19|0
this._al = 0xf3bcc908|0
this._bl = 0x84caa73b|0
this._cl = 0xfe94f82b|0
this._dl = 0x5f1d36f1|0
this._el = 0xade682d1|0
this._fl = 0x2b3e6c1f|0
this._gl = 0xfb41bd6b|0
this._hl = 0x137e2179|0
this._len = this._s = 0
return this
}
function S (X, Xl, n) {
return (X >>> n) | (Xl << (32 - n))
}
function Ch (x, y, z) {
return ((x & y) ^ ((~x) & z));
}
function Maj (x, y, z) {
return ((x & y) ^ (x & z) ^ (y & z));
}
Sha512.prototype._update = function(M) {
var W = this._w
var a, b, c, d, e, f, g, h
var al, bl, cl, dl, el, fl, gl, hl
a = this._a | 0
b = this._b | 0
c = this._c | 0
d = this._d | 0
e = this._e | 0
f = this._f | 0
g = this._g | 0
h = this._h | 0
al = this._al | 0
bl = this._bl | 0
cl = this._cl | 0
dl = this._dl | 0
el = this._el | 0
fl = this._fl | 0
gl = this._gl | 0
hl = this._hl | 0
for (var i = 0; i < 80; i++) {
var j = i * 2
var Wi, Wil
if (i < 16) {
Wi = W[j] = M.readInt32BE(j * 4)
Wil = W[j + 1] = M.readInt32BE(j * 4 + 4)
} else {
var x = W[j - 15*2]
var xl = W[j - 15*2 + 1]
var gamma0 = S(x, xl, 1) ^ S(x, xl, 8) ^ (x >>> 7)
var gamma0l = S(xl, x, 1) ^ S(xl, x, 8) ^ S(xl, x, 7)
x = W[j - 2*2]
xl = W[j - 2*2 + 1]
var gamma1 = S(x, xl, 19) ^ S(xl, x, 29) ^ (x >>> 6)
var gamma1l = S(xl, x, 19) ^ S(x, xl, 29) ^ S(xl, x, 6)
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
var Wi7 = W[j - 7*2]
var Wi7l = W[j - 7*2 + 1]
var Wi16 = W[j - 16*2]
var Wi16l = W[j - 16*2 + 1]
Wil = gamma0l + Wi7l
Wi = gamma0 + Wi7 + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0)
Wil = Wil + gamma1l
Wi = Wi + gamma1 + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0)
Wil = Wil + Wi16l
Wi = Wi + Wi16 + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0)
W[j] = Wi
W[j + 1] = Wil
}
var maj = Maj(a, b, c)
var majl = Maj(al, bl, cl)
var sigma0h = S(a, al, 28) ^ S(al, a, 2) ^ S(al, a, 7)
var sigma0l = S(al, a, 28) ^ S(a, al, 2) ^ S(a, al, 7)
var sigma1h = S(e, el, 14) ^ S(e, el, 18) ^ S(el, e, 9)
var sigma1l = S(el, e, 14) ^ S(el, e, 18) ^ S(e, el, 9)
// t1 = h + sigma1 + ch + K[i] + W[i]
var Ki = K[j]
var Kil = K[j + 1]
var ch = Ch(e, f, g)
var chl = Ch(el, fl, gl)
var t1l = hl + sigma1l
var t1 = h + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0)
t1l = t1l + chl
t1 = t1 + ch + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0)
t1l = t1l + Kil
t1 = t1 + Ki + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0)
t1l = t1l + Wil
t1 = t1 + Wi + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0)
// t2 = sigma0 + maj
var t2l = sigma0l + majl
var t2 = sigma0h + maj + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0)
h = g
hl = gl
g = f
gl = fl
f = e
fl = el
el = (dl + t1l) | 0
e = (d + t1 + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0
d = c
dl = cl
c = b
cl = bl
b = a
bl = al
al = (t1l + t2l) | 0
a = (t1 + t2 + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0
}
this._al = (this._al + al) | 0
this._bl = (this._bl + bl) | 0
this._cl = (this._cl + cl) | 0
this._dl = (this._dl + dl) | 0
this._el = (this._el + el) | 0
this._fl = (this._fl + fl) | 0
this._gl = (this._gl + gl) | 0
this._hl = (this._hl + hl) | 0
this._a = (this._a + a + ((this._al >>> 0) < (al >>> 0) ? 1 : 0)) | 0
this._b = (this._b + b + ((this._bl >>> 0) < (bl >>> 0) ? 1 : 0)) | 0
this._c = (this._c + c + ((this._cl >>> 0) < (cl >>> 0) ? 1 : 0)) | 0
this._d = (this._d + d + ((this._dl >>> 0) < (dl >>> 0) ? 1 : 0)) | 0
this._e = (this._e + e + ((this._el >>> 0) < (el >>> 0) ? 1 : 0)) | 0
this._f = (this._f + f + ((this._fl >>> 0) < (fl >>> 0) ? 1 : 0)) | 0
this._g = (this._g + g + ((this._gl >>> 0) < (gl >>> 0) ? 1 : 0)) | 0
this._h = (this._h + h + ((this._hl >>> 0) < (hl >>> 0) ? 1 : 0)) | 0
}
Sha512.prototype._hash = function () {
var H = new Buffer(64)
function writeInt64BE(h, l, offset) {
H.writeInt32BE(h, offset)
H.writeInt32BE(l, offset + 4)
}
writeInt64BE(this._a, this._al, 0)
writeInt64BE(this._b, this._bl, 8)
writeInt64BE(this._c, this._cl, 16)
writeInt64BE(this._d, this._dl, 24)
writeInt64BE(this._e, this._el, 32)
writeInt64BE(this._f, this._fl, 40)
writeInt64BE(this._g, this._gl, 48)
writeInt64BE(this._h, this._hl, 56)
return H
}
return Sha512
}
/***/ },
/* 208 */
/***/ function(module, exports, __webpack_require__) {
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
var helpers = __webpack_require__(209);
/*
* Calculate the MD5 of an array of little-endian words, and a bit length
*/
function core_md5(x, len)
{
/* append padding */
x[len >> 5] |= 0x80 << ((len) % 32);
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
for(var i = 0; i < x.length; i += 16)
{
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd);
}
return Array(a, b, c, d);
}
/*
* These functions implement the four basic operations the algorithm uses.
*/
function md5_cmn(q, a, b, x, s, t)
{
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
}
function md5_ff(a, b, c, d, x, s, t)
{
return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
}
function md5_gg(a, b, c, d, x, s, t)
{
return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
}
function md5_hh(a, b, c, d, x, s, t)
{
return md5_cmn(b ^ c ^ d, a, b, x, s, t);
}
function md5_ii(a, b, c, d, x, s, t)
{
return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
}
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function safe_add(x, y)
{
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 0xFFFF);
}
/*
* Bitwise rotate a 32-bit number to the left.
*/
function bit_rol(num, cnt)
{
return (num << cnt) | (num >>> (32 - cnt));
}
module.exports = function md5(buf) {
return helpers.hash(buf, core_md5, 16);
};
/***/ },
/* 209 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {var intSize = 4;
var zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0);
var chrsz = 8;
function toArray(buf, bigEndian) {
if ((buf.length % intSize) !== 0) {
var len = buf.length + (intSize - (buf.length % intSize));
buf = Buffer.concat([buf, zeroBuffer], len);
}
var arr = [];
var fn = bigEndian ? buf.readInt32BE : buf.readInt32LE;
for (var i = 0; i < buf.length; i += intSize) {
arr.push(fn.call(buf, i));
}
return arr;
}
function toBuffer(arr, size, bigEndian) {
var buf = new Buffer(size);
var fn = bigEndian ? buf.writeInt32BE : buf.writeInt32LE;
for (var i = 0; i < arr.length; i++) {
fn.call(buf, arr[i], i * 4, true);
}
return buf;
}
function hash(buf, fn, hashSize, bigEndian) {
if (!Buffer.isBuffer(buf)) buf = new Buffer(buf);
var arr = fn(toArray(buf, bigEndian), buf.length * chrsz);
return toBuffer(arr, hashSize, bigEndian);
}
module.exports = { hash: hash };
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 210 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {
module.exports = ripemd160
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// Constants table
var zl = [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13];
var zr = [
5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11];
var sl = [
11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ];
var sr = [
8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ];
var hl = [ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E];
var hr = [ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000];
var bytesToWords = function (bytes) {
var words = [];
for (var i = 0, b = 0; i < bytes.length; i++, b += 8) {
words[b >>> 5] |= bytes[i] << (24 - b % 32);
}
return words;
};
var wordsToBytes = function (words) {
var bytes = [];
for (var b = 0; b < words.length * 32; b += 8) {
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
}
return bytes;
};
var processBlock = function (H, M, offset) {
// Swap endian
for (var i = 0; i < 16; i++) {
var offset_i = offset + i;
var M_offset_i = M[offset_i];
// Swap
M[offset_i] = (
(((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
(((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
);
}
// Working variables
var al, bl, cl, dl, el;
var ar, br, cr, dr, er;
ar = al = H[0];
br = bl = H[1];
cr = cl = H[2];
dr = dl = H[3];
er = el = H[4];
// Computation
var t;
for (var i = 0; i < 80; i += 1) {
t = (al + M[offset+zl[i]])|0;
if (i<16){
t += f1(bl,cl,dl) + hl[0];
} else if (i<32) {
t += f2(bl,cl,dl) + hl[1];
} else if (i<48) {
t += f3(bl,cl,dl) + hl[2];
} else if (i<64) {
t += f4(bl,cl,dl) + hl[3];
} else {// if (i<80) {
t += f5(bl,cl,dl) + hl[4];
}
t = t|0;
t = rotl(t,sl[i]);
t = (t+el)|0;
al = el;
el = dl;
dl = rotl(cl, 10);
cl = bl;
bl = t;
t = (ar + M[offset+zr[i]])|0;
if (i<16){
t += f5(br,cr,dr) + hr[0];
} else if (i<32) {
t += f4(br,cr,dr) + hr[1];
} else if (i<48) {
t += f3(br,cr,dr) + hr[2];
} else if (i<64) {
t += f2(br,cr,dr) + hr[3];
} else {// if (i<80) {
t += f1(br,cr,dr) + hr[4];
}
t = t|0;
t = rotl(t,sr[i]) ;
t = (t+er)|0;
ar = er;
er = dr;
dr = rotl(cr, 10);
cr = br;
br = t;
}
// Intermediate hash value
t = (H[1] + cl + dr)|0;
H[1] = (H[2] + dl + er)|0;
H[2] = (H[3] + el + ar)|0;
H[3] = (H[4] + al + br)|0;
H[4] = (H[0] + bl + cr)|0;
H[0] = t;
};
function f1(x, y, z) {
return ((x) ^ (y) ^ (z));
}
function f2(x, y, z) {
return (((x)&(y)) | ((~x)&(z)));
}
function f3(x, y, z) {
return (((x) | (~(y))) ^ (z));
}
function f4(x, y, z) {
return (((x) & (z)) | ((y)&(~(z))));
}
function f5(x, y, z) {
return ((x) ^ ((y) |(~(z))));
}
function rotl(x,n) {
return (x<<n) | (x>>>(32-n));
}
function ripemd160(message) {
var H = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0];
if (typeof message == 'string')
message = new Buffer(message, 'utf8');
var m = bytesToWords(message);
var nBitsLeft = message.length * 8;
var nBitsTotal = message.length * 8;
// Add padding
m[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
m[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
(((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
(((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
);
for (var i=0 ; i<m.length; i += 16) {
processBlock(H, m, i);
}
// Swap endian
for (var i = 0; i < 5; i++) {
// Shortcut
var H_i = H[i];
// Swap
H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
(((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
}
var digestbytes = wordsToBytes(H);
return new Buffer(digestbytes);
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 211 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(198)
var zeroBuffer = new Buffer(128)
zeroBuffer.fill(0)
module.exports = Hmac
function Hmac (alg, key) {
if(!(this instanceof Hmac)) return new Hmac(alg, key)
this._opad = opad
this._alg = alg
var blocksize = (alg === 'sha512') ? 128 : 64
key = this._key = !Buffer.isBuffer(key) ? new Buffer(key) : key
if(key.length > blocksize) {
key = createHash(alg).update(key).digest()
} else if(key.length < blocksize) {
key = Buffer.concat([key, zeroBuffer], blocksize)
}
var ipad = this._ipad = new Buffer(blocksize)
var opad = this._opad = new Buffer(blocksize)
for(var i = 0; i < blocksize; i++) {
ipad[i] = key[i] ^ 0x36
opad[i] = key[i] ^ 0x5C
}
this._hash = createHash(alg).update(ipad)
}
Hmac.prototype.update = function (data, enc) {
this._hash.update(data, enc)
return this
}
Hmac.prototype.digest = function (enc) {
var h = this._hash.digest()
return createHash(this._alg).update(this._opad).update(h).digest(enc)
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 212 */
/***/ function(module, exports, __webpack_require__) {
var pbkdf2Export = __webpack_require__(213)
module.exports = function (crypto, exports) {
exports = exports || {}
var exported = pbkdf2Export(crypto)
exports.pbkdf2 = exported.pbkdf2
exports.pbkdf2Sync = exported.pbkdf2Sync
return exports
}
/***/ },
/* 213 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = function(crypto) {
function pbkdf2(password, salt, iterations, keylen, digest, callback) {
if ('function' === typeof digest) {
callback = digest
digest = undefined
}
if ('function' !== typeof callback)
throw new Error('No callback provided to pbkdf2')
setTimeout(function() {
var result
try {
result = pbkdf2Sync(password, salt, iterations, keylen, digest)
} catch (e) {
return callback(e)
}
callback(undefined, result)
})
}
function pbkdf2Sync(password, salt, iterations, keylen, digest) {
if ('number' !== typeof iterations)
throw new TypeError('Iterations not a number')
if (iterations < 0)
throw new TypeError('Bad iterations')
if ('number' !== typeof keylen)
throw new TypeError('Key length not a number')
if (keylen < 0)
throw new TypeError('Bad key length')
digest = digest || 'sha1'
if (!Buffer.isBuffer(password)) password = new Buffer(password)
if (!Buffer.isBuffer(salt)) salt = new Buffer(salt)
var hLen, l = 1, r, T
var DK = new Buffer(keylen)
var block1 = new Buffer(salt.length + 4)
salt.copy(block1, 0, 0, salt.length)
for (var i = 1; i <= l; i++) {
block1.writeUInt32BE(i, salt.length)
var U = crypto.createHmac(digest, password).update(block1).digest()
if (!hLen) {
hLen = U.length
T = new Buffer(hLen)
l = Math.ceil(keylen / hLen)
r = keylen - (l - 1) * hLen
if (keylen > (Math.pow(2, 32) - 1) * hLen)
throw new TypeError('keylen exceeds maximum length')
}
U.copy(T, 0, 0, hLen)
for (var j = 1; j < iterations; j++) {
U = crypto.createHmac(digest, password).update(U).digest()
for (var k = 0; k < hLen; k++) {
T[k] ^= U[k]
}
}
var destPos = (i - 1) * hLen
var len = (i == l ? r : hLen)
T.copy(DK, destPos, 0, len)
}
return DK
}
return {
pbkdf2: pbkdf2,
pbkdf2Sync: pbkdf2Sync
}
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(192).Buffer))
/***/ },
/* 214 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["jarjan", "mahdif", "sprayaga", "ruzinav", "Skyhartman", "moscoz", "kurafire", "91bilal", "igorgarybaldi", "calebogden", "malykhinv", "joelhelin", "kushsolitary", "coreyweb", "snowshade", "areus", "holdenweb", "heyimjuani", "envex", "unterdreht", "collegeman", "peejfancher", "andyisonline", "ultragex", "fuck_you_two", "adellecharles", "ateneupopular", "ahmetalpbalkan", "Stievius", "kerem", "osvaldas", "angelceballos", "thierrykoblentz", "peterlandt", "catarino", "wr", "weglov", "brandclay", "flame_kaizar", "ahmetsulek", "nicolasfolliot", "jayrobinson", "victorerixon", "kolage", "michzen", "markjenkins", "nicolai_larsen", "gt", "noxdzine", "alagoon", "idiot", "mizko", "chadengle", "mutlu82", "simobenso", "vocino", "guiiipontes", "soyjavi", "joshaustin", "tomaslau", "VinThomas", "ManikRathee", "langate", "cemshid", "leemunroe", "_shahedk", "enda", "BillSKenney", "divya", "joshhemsley", "sindresorhus", "soffes", "9lessons", "linux29", "Chakintosh", "anaami", "joreira", "shadeed9", "scottkclark", "jedbridges", "salleedesign", "marakasina", "ariil", "BrianPurkiss", "michaelmartinho", "bublienko", "devankoshal", "ZacharyZorbas", "timmillwood", "joshuasortino", "damenleeturks", "tomas_janousek", "herrhaase", "RussellBishop", "brajeshwar", "nachtmeister", "cbracco", "bermonpainter", "abdullindenis", "isacosta", "suprb", "yalozhkin", "chandlervdw", "iamgarth", "_victa", "commadelimited", "roybarberuk", "axel", "vladarbatov", "ffbel", "syropian", "ankitind", "traneblow", "flashmurphy", "ChrisFarina78", "baliomega", "saschamt", "jm_denis", "anoff", "kennyadr", "chatyrko", "dingyi", "mds", "terryxlife", "aaroni", "kinday", "prrstn", "eduardostuart", "dhilipsiva", "GavicoInd", "baires", "rohixx", "bigmancho", "blakesimkins", "leeiio", "tjrus", "uberschizo", "kylefoundry", "claudioguglieri", "ripplemdk", "exentrich", "jakemoore", "joaoedumedeiros", "poormini", "tereshenkov", "keryilmaz", "haydn_woods", "rude", "llun", "sgaurav_baghel", "jamiebrittain", "badlittleduck", "pifagor", "agromov", "benefritz", "erwanhesry", "diesellaws", "jeremiaha", "koridhandy", "chaensel", "andrewcohen", "smaczny", "gonzalorobaina", "nandini_m", "sydlawrence", "cdharrison", "tgerken", "lewisainslie", "charliecwaite", "robbschiller", "flexrs", "mattdetails", "raquelwilson", "karsh", "mrmartineau", "opnsrce", "hgharrygo", "maximseshuk", "uxalex", "samihah", "chanpory", "sharvin", "josemarques", "jefffis", "krystalfister", "lokesh_coder", "thedamianhdez", "dpmachado", "funwatercat", "timothycd", "ivanfilipovbg", "picard102", "marcobarbosa", "krasnoukhov", "g3d", "ademilter", "rickdt", "operatino", "bungiwan", "hugomano", "logorado", "dc_user", "horaciobella", "SlaapMe", "teeragit", "iqonicd", "ilya_pestov", "andrewarrow", "ssiskind", "stan", "HenryHoffman", "rdsaunders", "adamsxu", "curiousoffice", "themadray", "michigangraham", "kohette", "nickfratter", "runningskull", "madysondesigns", "brenton_clarke", "jennyshen", "bradenhamm", "kurtinc", "amanruzaini", "coreyhaggard", "Karimmove", "aaronalfred", "wtrsld", "jitachi", "therealmarvin", "pmeissner", "ooomz", "chacky14", "jesseddy", "thinmatt", "shanehudson", "akmur", "IsaryAmairani", "arthurholcombe1", "andychipster", "boxmodel", "ehsandiary", "LucasPerdidao", "shalt0ni", "swaplord", "kaelifa", "plbabin", "guillemboti", "arindam_", "renbyrd", "thiagovernetti", "jmillspaysbills", "mikemai2awesome", "jervo", "mekal", "sta1ex", "robergd", "felipecsl", "andrea211087", "garand", "dhooyenga", "abovefunction", "pcridesagain", "randomlies", "BryanHorsey", "heykenneth", "dahparra", "allthingssmitty", "danvernon", "beweinreich", "increase", "falvarad", "alxndrustinov", "souuf", "orkuncaylar", "AM_Kn2", "gearpixels", "bassamology", "vimarethomas", "kosmar", "SULiik", "mrjamesnoble", "silvanmuhlemann", "shaneIxD", "nacho", "yigitpinarbasi", "buzzusborne", "aaronkwhite", "rmlewisuk", "giancarlon", "nbirckel", "d_nny_m_cher", "sdidonato", "atariboy", "abotap", "karalek", "psdesignuk", "ludwiczakpawel", "nemanjaivanovic", "baluli", "ahmadajmi", "vovkasolovev", "samgrover", "derienzo777", "jonathansimmons", "nelsonjoyce", "S0ufi4n3", "xtopherpaul", "oaktreemedia", "nateschulte", "findingjenny", "namankreative", "antonyzotov", "we_social", "leehambley", "solid_color", "abelcabans", "mbilderbach", "kkusaa", "jordyvdboom", "carlosgavina", "pechkinator", "vc27", "rdbannon", "croakx", "suribbles", "kerihenare", "catadeleon", "gcmorley", "duivvv", "saschadroste", "victorDubugras", "wintopia", "mattbilotti", "taylorling", "megdraws", "meln1ks", "mahmoudmetwally", "Silveredge9", "derekebradley", "happypeter1983", "travis_arnold", "artem_kostenko", "adobi", "daykiine", "alek_djuric", "scips", "miguelmendes", "justinrhee", "alsobrooks", "fronx", "mcflydesign", "santi_urso", "allfordesign", "stayuber", "bertboerland", "marosholly", "adamnac", "cynthiasavard", "muringa", "danro", "hiemil", "jackiesaik", "zacsnider", "iduuck", "antjanus", "aroon_sharma", "dshster", "thehacker", "michaelbrooksjr", "ryanmclaughlin", "clubb3rry", "taybenlor", "xripunov", "myastro", "adityasutomo", "digitalmaverick", "hjartstrorn", "itolmach", "vaughanmoffitt", "abdots", "isnifer", "sergeysafonov", "maz", "scrapdnb", "chrismj83", "vitorleal", "sokaniwaal", "zaki3d", "illyzoren", "mocabyte", "osmanince", "djsherman", "davidhemphill", "waghner", "necodymiconer", "praveen_vijaya", "fabbrucci", "cliffseal", "travishines", "kuldarkalvik", "Elt_n", "phillapier", "okseanjay", "id835559", "kudretkeskin", "anjhero", "duck4fuck", "scott_riley", "noufalibrahim", "h1brd", "borges_marcos", "devinhalladay", "ciaranr", "stefooo", "mikebeecham", "tonymillion", "joshuaraichur", "irae", "petrangr", "dmitriychuta", "charliegann", "arashmanteghi", "adhamdannaway", "ainsleywagon", "svenlen", "faisalabid", "beshur", "carlyson", "dutchnadia", "teddyzetterlund", "samuelkraft", "aoimedia", "toddrew", "codepoet_ru", "artvavs", "benoitboucart", "jomarmen", "kolmarlopez", "creartinc", "homka", "gaborenton", "robinclediere", "maximsorokin", "plasticine", "j2deme", "peachananr", "kapaluccio", "de_ascanio", "rikas", "dawidwu", "marcoramires", "angelcreative", "rpatey", "popey", "rehatkathuria", "the_purplebunny", "1markiz", "ajaxy_ru", "brenmurrell", "dudestein", "oskarlevinson", "victorstuber", "nehfy", "vicivadeline", "leandrovaranda", "scottgallant", "victor_haydin", "sawrb", "ryhanhassan", "amayvs", "a_brixen", "karolkrakowiak_", "herkulano", "geran7", "cggaurav", "chris_witko", "lososina", "polarity", "mattlat", "brandonburke", "constantx", "teylorfeliz", "craigelimeliah", "rachelreveley", "reabo101", "rahmeen", "ky", "rickyyean", "j04ntoh", "spbroma", "sebashton", "jpenico", "francis_vega", "oktayelipek", "kikillo", "fabbianz", "larrygerard", "BroumiYoussef", "0therplanet", "mbilalsiddique1", "ionuss", "grrr_nl", "liminha", "rawdiggie", "ryandownie", "sethlouey", "pixage", "arpitnj", "switmer777", "josevnclch", "kanickairaj", "puzik", "tbakdesigns", "besbujupi", "supjoey", "lowie", "linkibol", "balintorosz", "imcoding", "agustincruiz", "gusoto", "thomasschrijer", "superoutman", "kalmerrautam", "gabrielizalo", "gojeanyn", "davidbaldie", "_vojto", "laurengray", "jydesign", "mymyboy", "nellleo", "marciotoledo", "ninjad3m0", "to_soham", "hasslunsford", "muridrahhal", "levisan", "grahamkennery", "lepetitogre", "antongenkin", "nessoila", "amandabuzard", "safrankov", "cocolero", "dss49", "matt3224", "bluesix", "quailandquasar", "AlbertoCococi", "lepinski", "sementiy", "mhudobivnik", "thibaut_re", "olgary", "shojberg", "mtolokonnikov", "bereto", "naupintos", "wegotvices", "xadhix", "macxim", "rodnylobos", "madcampos", "madebyvadim", "bartoszdawydzik", "supervova", "markretzloff", "vonachoo", "darylws", "stevedesigner", "mylesb", "herbigt", "depaulawagner", "geshan", "gizmeedevil1991", "_scottburgess", "lisovsky", "davidsasda", "artd_sign", "YoungCutlass", "mgonto", "itstotallyamy", "victorquinn", "osmond", "oksanafrewer", "zauerkraut", "iamkeithmason", "nitinhayaran", "lmjabreu", "mandalareopens", "thinkleft", "ponchomendivil", "juamperro", "brunodesign1206", "caseycavanagh", "luxe", "dotgridline", "spedwig", "madewulf", "mattsapii", "helderleal", "chrisstumph", "jayphen", "nsamoylov", "chrisvanderkooi", "justme_timothyg", "otozk", "prinzadi", "gu5taf", "cyril_gaillard", "d_kobelyatsky", "daniloc", "nwdsha", "romanbulah", "skkirilov", "dvdwinden", "dannol", "thekevinjones", "jwalter14", "timgthomas", "buddhasource", "uxpiper", "thatonetommy", "diansigitp", "adrienths", "klimmka", "gkaam", "derekcramer", "jennyyo", "nerrsoft", "xalionmalik", "edhenderson", "keyuri85", "roxanejammet", "kimcool", "edkf", "matkins", "alessandroribe", "jacksonlatka", "lebronjennan", "kostaspt", "karlkanall", "moynihan", "danpliego", "saulihirvi", "wesleytrankin", "fjaguero", "bowbrick", "mashaaaaal", "yassiryahya", "dparrelli", "fotomagin", "aka_james", "denisepires", "iqbalperkasa", "martinansty", "jarsen", "r_oy", "justinrob", "gabrielrosser", "malgordon", "carlfairclough", "michaelabehsera", "pierrestoffe", "enjoythetau", "loganjlambert", "rpeezy", "coreyginnivan", "michalhron", "msveet", "lingeswaran", "kolsvein", "peter576", "reideiredale", "joeymurdah", "raphaelnikson", "mvdheuvel", "maxlinderman", "jimmuirhead", "begreative", "frankiefreesbie", "robturlinckx", "Talbi_ConSept", "longlivemyword", "vanchesz", "maiklam", "hermanobrother", "rez___a", "gregsqueeb", "greenbes", "_ragzor", "anthonysukow", "fluidbrush", "dactrtr", "jehnglynn", "bergmartin", "hugocornejo", "_kkga", "dzantievm", "sawalazar", "sovesove", "jonsgotwood", "byryan", "vytautas_a", "mizhgan", "cicerobr", "nilshelmersson", "d33pthought", "davecraige", "nckjrvs", "alexandermayes", "jcubic", "craigrcoles", "bagawarman", "rob_thomas10", "cofla", "maikelk", "rtgibbons", "russell_baylis", "mhesslow", "codysanfilippo", "webtanya", "madebybrenton", "dcalonaci", "perfectflow", "jjsiii", "saarabpreet", "kumarrajan12123", "iamsteffen", "themikenagle", "ceekaytweet", "larrybolt", "conspirator", "dallasbpeters", "n3dmax", "terpimost", "kirillz", "byrnecore", "j_drake_", "calebjoyce", "russoedu", "hoangloi", "tobysaxon", "gofrasdesign", "dimaposnyy", "tjisousa", "okandungel", "billyroshan", "oskamaya", "motionthinks", "knilob", "ashocka18", "marrimo", "bartjo", "omnizya", "ernestsemerda", "andreas_pr", "edgarchris99", "thomasgeisen", "gseguin", "joannefournier", "demersdesigns", "adammarsbar", "nasirwd", "n_tassone", "javorszky", "themrdave", "yecidsm", "nicollerich", "canapud", "nicoleglynn", "judzhin_miles", "designervzm", "kianoshp", "evandrix", "alterchuca", "dhrubo", "ma_tiax", "ssbb_me", "dorphern", "mauriolg", "bruno_mart", "mactopus", "the_winslet", "joemdesign", "Shriiiiimp", "jacobbennett", "nfedoroff", "iamglimy", "allagringaus", "aiiaiiaii", "olaolusoga", "buryaknick", "wim1k", "nicklacke", "a1chapone", "steynviljoen", "strikewan", "ryankirkman", "andrewabogado", "doooon", "jagan123", "ariffsetiawan", "elenadissi", "mwarkentin", "thierrymeier_", "r_garcia", "dmackerman", "borantula", "konus", "spacewood_", "ryuchi311", "evanshajed", "tristanlegros", "shoaib253", "aislinnkelly", "okcoker", "timpetricola", "sunshinedgirl", "chadami", "aleclarsoniv", "nomidesigns", "petebernardo", "scottiedude", "millinet", "imsoper", "imammuht", "benjamin_knight", "nepdud", "joki4", "lanceguyatt", "bboy1895", "amywebbb", "rweve", "haruintesettden", "ricburton", "nelshd", "batsirai", "primozcigler", "jffgrdnr", "8d3k", "geneseleznev", "al_li", "souperphly", "mslarkina", "2fockus", "cdavis565", "xiel", "turkutuuli", "uxward", "lebinoclard", "gauravjassal", "davidmerrique", "mdsisto", "andrewofficer", "kojourin", "dnirmal", "kevka", "mr_shiznit", "aluisio_azevedo", "cloudstudio", "danvierich", "alexivanichkin", "fran_mchamy", "perretmagali", "betraydan", "cadikkara", "matbeedotcom", "jeremyworboys", "bpartridge", "michaelkoper", "silv3rgvn", "alevizio", "johnsmithagency", "lawlbwoy", "vitor376", "desastrozo", "thimo_cz", "jasonmarkjones", "lhausermann", "xravil", "guischmitt", "vigobronx", "panghal0", "miguelkooreman", "surgeonist", "christianoliff", "caspergrl", "iamkarna", "ipavelek", "pierre_nel", "y2graphic", "sterlingrules", "elbuscainfo", "bennyjien", "stushona", "estebanuribe", "embrcecreations", "danillos", "elliotlewis", "charlesrpratt", "vladyn", "emmeffess", "carlosblanco_eu", "leonfedotov", "rangafangs", "chris_frees", "tgormtx", "bryan_topham", "jpscribbles", "mighty55", "carbontwelve", "isaacfifth", "iamjdeleon", "snowwrite", "barputro", "drewbyreese", "sachacorazzi", "bistrianiosip", "magoo04", "pehamondello", "yayteejay", "a_harris88", "algunsanabria", "zforrester", "ovall", "carlosjgsousa", "geobikas", "ah_lice", "looneydoodle", "nerdgr8", "ddggccaa", "zackeeler", "normanbox", "el_fuertisimo", "ismail_biltagi", "juangomezw", "jnmnrd", "patrickcoombe", "ryanjohnson_me", "markolschesky", "jeffgolenski", "kvasnic", "lindseyzilla", "gauchomatt", "afusinatto", "kevinoh", "okansurreel", "adamawesomeface", "emileboudeling", "arishi_", "juanmamartinez", "wikiziner", "danthms", "mkginfo", "terrorpixel", "curiousonaut", "prheemo", "michaelcolenso", "foczzi", "martip07", "thaodang17", "johncafazza", "robinlayfield", "franciscoamk", "abdulhyeuk", "marklamb", "edobene", "andresenfredrik", "mikaeljorhult", "chrisslowik", "vinciarts", "meelford", "elliotnolten", "yehudab", "vijaykarthik", "bfrohs", "josep_martins", "attacks", "sur4dye", "tumski", "instalox", "mangosango", "paulfarino", "kazaky999", "kiwiupover", "nvkznemo", "tom_even", "ratbus", "woodsman001", "joshmedeski", "thewillbeard", "psaikali", "joe_black", "aleinadsays", "marcusgorillius", "hota_v", "jghyllebert", "shinze", "janpalounek", "jeremiespoken", "her_ruu", "dansowter", "felipeapiress", "magugzbrand2d", "posterjob", "nathalie_fs", "bobbytwoshoes", "dreizle", "jeremymouton", "elisabethkjaer", "notbadart", "mohanrohith", "jlsolerdeltoro", "itskawsar", "slowspock", "zvchkelly", "wiljanslofstra", "craighenneberry", "trubeatto", "juaumlol", "samscouto", "BenouarradeM", "gipsy_raf", "netonet_il", "arkokoley", "itsajimithing", "smalonso", "victordeanda", "_dwite_", "richardgarretts", "gregrwilkinson", "anatolinicolae", "lu4sh1i", "stefanotirloni", "ostirbu", "darcystonge", "naitanamoreno", "michaelcomiskey", "adhiardana", "marcomano_", "davidcazalis", "falconerie", "gregkilian", "bcrad", "bolzanmarco", "low_res", "vlajki", "petar_prog", "jonkspr", "akmalfikri", "mfacchinello", "atanism", "harry_sistalam", "murrayswift", "bobwassermann", "gavr1l0", "madshensel", "mr_subtle", "deviljho_", "salimianoff", "joetruesdell", "twittypork", "airskylar", "dnezkumar", "dgajjar", "cherif_b", "salvafc", "louis_currie", "deeenright", "cybind", "eyronn", "vickyshits", "sweetdelisa", "cboller1", "andresdjasso", "melvindidit", "andysolomon", "thaisselenator_", "lvovenok", "giuliusa", "belyaev_rs", "overcloacked", "kamal_chaneman", "incubo82", "hellofeverrrr", "mhaligowski", "sunlandictwin", "bu7921", "andytlaw", "jeremery", "finchjke", "manigm", "umurgdk", "scottfeltham", "ganserene", "mutu_krish", "jodytaggart", "ntfblog", "tanveerrao", "hfalucas", "alxleroydeval", "kucingbelang4", "bargaorobalo", "colgruv", "stalewine", "kylefrost", "baumannzone", "angelcolberg", "sachingawas", "jjshaw14", "ramanathan_pdy", "johndezember", "nilshoenson", "brandonmorreale", "nutzumi", "brandonflatsoda", "sergeyalmone", "klefue", "kirangopal", "baumann_alex", "matthewkay_", "jay_wilburn", "shesgared", "apriendeau", "johnriordan", "wake_gs", "aleksitappura", "emsgulam", "xilantra", "imomenui", "sircalebgrove", "newbrushes", "hsinyo23", "m4rio", "katiemdaly", "s4f1", "ecommerceil", "marlinjayakody", "swooshycueb", "sangdth", "coderdiaz", "bluefx_", "vivekprvr", "sasha_shestakov", "eugeneeweb", "dgclegg", "n1ght_coder", "dixchen", "blakehawksworth", "trueblood_33", "hai_ninh_nguyen", "marclgonzales", "yesmeck", "stephcoue", "doronmalki", "ruehldesign", "anasnakawa", "kijanmaharjan", "wearesavas", "stefvdham", "tweetubhai", "alecarpentier", "fiterik", "antonyryndya", "d00maz", "theonlyzeke", "missaaamy", "carlosm", "manekenthe", "reetajayendra", "jeremyshimko", "justinrgraham", "stefanozoffoli", "overra", "mrebay007", "shvelo96", "pyronite", "thedjpetersen", "rtyukmaev", "_williamguerra", "albertaugustin", "vikashpathak18", "kevinjohndayy", "vj_demien", "colirpixoil", "goddardlewis", "laasli", "jqiuss", "heycamtaylor", "nastya_mane", "mastermindesign", "ccinojasso1", "nyancecom", "sandywoodruff", "bighanddesign", "sbtransparent", "aviddayentonbay", "richwild", "kaysix_dizzy", "tur8le", "seyedhossein1", "privetwagner", "emmandenn", "dev_essentials", "jmfsocial", "_yardenoon", "mateaodviteza", "weavermedia", "mufaddal_mw", "hafeeskhan", "ashernatali", "sulaqo", "eddiechen", "josecarlospsh", "vm_f", "enricocicconi", "danmartin70", "gmourier", "donjain", "mrxloka", "_pedropinho", "eitarafa", "oscarowusu", "ralph_lam", "panchajanyag", "woodydotmx", "jerrybai1907", "marshallchen_", "xamorep", "aio___", "chaabane_wail", "txcx", "akashsharma39", "falling_soul", "sainraja", "mugukamil", "johannesneu", "markwienands", "karthipanraj", "balakayuriy", "alan_zhang_", "layerssss", "kaspernordkvist", "mirfanqureshi", "hanna_smi", "VMilescu", "aeon56", "m_kalibry", "sreejithexp", "dicesales", "dhoot_amit", "smenov", "lonesomelemon", "vladimirdevic", "joelcipriano", "haligaliharun", "buleswapnil", "serefka", "ifarafonow", "vikasvinfotech", "urrutimeoli", "areandacom"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 215 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["com", "net", "org", "biz", "info", "eu", "co"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 216 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
word: __webpack_require__(217),
supplemental: __webpack_require__(218),
sentence: function sentence() {
var wordCount = this.random.number(3, 10);
var words = [];
for (wordCount; wordCount > 0; wordCount--) {
words.push(this.lorem.word());
}return this.capitalize(words.join(" ")) + ".";
},
paragraph: function paragraph() {
var sentenceCount = this.random.number(3, 6);
var sentences = [];
for (sentenceCount; sentenceCount > 0; sentenceCount--) {
sentences.push(this.lorem.sentence());
}return sentences.join(" ");
}
};
/***/ },
/* 217 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 218 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 219 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
month: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
weekday: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
weekdayShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
weekdayMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
timezone: __webpack_require__(220),
past: function past() {
var years = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0];
var refDate = arguments[1];
var date = refDate ? new Date(Date.parse(refDate)) : new Date();
var min = 1000;
var max = years * 365 * 24 * 3600 * 1000;
var past = date.getTime();
past -= this.random.number(min, max);
date.setTime(past);
return date;
},
future: function future() {
var years = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0];
var refDate = arguments[1];
var date = refDate ? new Date(Date.parse(refDate)) : new Date();
var min = 1000;
var max = years * 365 * 24 * 3600 * 1000;
var future = date.getTime();
future += this.random.number(min, max);
date.setTime(future);
return date;
},
between: function between(from, to) {
var fromMilli = Date.parse(from);
var dateOffset = this.random.number(Date.parse(to) - fromMilli);
var newDate = new Date(fromMilli + dateOffset);
return newDate;
},
recent: function recent() {
var days = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0];
var date = new Date();
var min = 1000;
var max = days * 24 * 3600 * 1000;
var past = date.getTime();
past -= this.random.number(min, max);
date.setTime(past);
return date;
},
age: function age() {
var min = arguments.length <= 0 || arguments[0] === undefined ? 18 : arguments[0];
var max = arguments.length <= 1 || arguments[1] === undefined ? 80 : arguments[1];
return this.random.number(min, max);
}
};
/***/ },
/* 220 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {"use strict";
module["exports"] = ["Pacific/Midway", "Pacific/Pago_Pago", "Pacific/Honolulu", "America/Juneau", "America/Los_Angeles", "America/Tijuana", "America/Denver", "America/Phoenix", "America/Chihuahua", "America/Mazatlan", "America/Chicago", "America/Regina", "America/Mexico_City", "America/Mexico_City", "America/Monterrey", "America/Guatemala", "America/New_York", "America/Indiana/Indianapolis", "America/Bogota", "America/Lima", "America/Lima", "America/Halifax", "America/Caracas", "America/La_Paz", "America/Santiago", "America/St_Johns", "America/Sao_Paulo", "America/Argentina/Buenos_Aires", "America/Guyana", "America/Godthab", "Atlantic/South_Georgia", "Atlantic/Azores", "Atlantic/Cape_Verde", "Europe/Dublin", "Europe/London", "Europe/Lisbon", "Europe/London", "Africa/Casablanca", "Africa/Monrovia", "Etc/UTC", "Europe/Belgrade", "Europe/Bratislava", "Europe/Budapest", "Europe/Ljubljana", "Europe/Prague", "Europe/Sarajevo", "Europe/Skopje", "Europe/Warsaw", "Europe/Zagreb", "Europe/Brussels", "Europe/Copenhagen", "Europe/Madrid", "Europe/Paris", "Europe/Amsterdam", "Europe/Berlin", "Europe/Berlin", "Europe/Rome", "Europe/Stockholm", "Europe/Vienna", "Africa/Algiers", "Europe/Bucharest", "Africa/Cairo", "Europe/Helsinki", "Europe/Kiev", "Europe/Riga", "Europe/Sofia", "Europe/Tallinn", "Europe/Vilnius", "Europe/Athens", "Europe/Istanbul", "Europe/Minsk", "Asia/Jerusalem", "Africa/Harare", "Africa/Johannesburg", "Europe/Moscow", "Europe/Moscow", "Europe/Moscow", "Asia/Kuwait", "Asia/Riyadh", "Africa/Nairobi", "Asia/Baghdad", "Asia/Tehran", "Asia/Muscat", "Asia/Muscat", "Asia/Baku", "Asia/Tbilisi", "Asia/Yerevan", "Asia/Kabul", "Asia/Yekaterinburg", "Asia/Karachi", "Asia/Karachi", "Asia/Tashkent", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kathmandu", "Asia/Dhaka", "Asia/Dhaka", "Asia/Colombo", "Asia/Almaty", "Asia/Novosibirsk", "Asia/Rangoon", "Asia/Bangkok", "Asia/Bangkok", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Shanghai", "Asia/Chongqing", "Asia/Hong_Kong", "Asia/Urumqi", "Asia/Kuala_Lumpur", "Asia/Singapore", "Asia/Taipei", "Australia/Perth", "Asia/Irkutsk", "Asia/Ulaanbaatar", "Asia/Seoul", "Asia/Tokyo", "Asia/Tokyo", "Asia/Tokyo", "Asia/Yakutsk", "Australia/Darwin", "Australia/Adelaide", "Australia/Melbourne", "Australia/Melbourne", "Australia/Sydney", "Australia/Brisbane", "Australia/Hobart", "Asia/Vladivostok", "Pacific/Guam", "Pacific/Port_Moresby", "Asia/Magadan", "Asia/Magadan", "Pacific/Noumea", "Pacific/Fiji", "Asia/Kamchatka", "Pacific/Majuro", "Pacific/Auckland", "Pacific/Auckland", "Pacific/Tongatapu", "Pacific/Fakaofo", "Pacific/Apia"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module)))
/***/ },
/* 221 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var _uuid = __webpack_require__(222);
var _uuid2 = _interopRequireDefault(_uuid);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = {
uuid: _uuid2.default.v4
};
/***/ },
/* 222 */
/***/ function(module, exports, __webpack_require__) {
// uuid.js
//
// Copyright (c) 2010-2012 Robert Kieffer
// MIT License - http://opensource.org/licenses/mit-license.php
// Unique ID creation requires a high quality random # generator. We feature
// detect to determine the best RNG source, normalizing to a function that
// returns 128-bits of randomness, since that's what's usually required
var _rng = __webpack_require__(223);
// Maps for number <-> hex string conversion
var _byteToHex = [];
var _hexToByte = {};
for (var i = 0; i < 256; i++) {
_byteToHex[i] = (i + 0x100).toString(16).substr(1);
_hexToByte[_byteToHex[i]] = i;
}
// **`parse()` - Parse a UUID into it's component bytes**
function parse(s, buf, offset) {
var i = (buf && offset) || 0, ii = 0;
buf = buf || [];
s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
if (ii < 16) { // Don't overflow!
buf[i + ii++] = _hexToByte[oct];
}
});
// Zero out remaining bytes if string was short
while (ii < 16) {
buf[i + ii++] = 0;
}
return buf;
}
// **`unparse()` - Convert UUID byte array (ala parse()) into a string**
function unparse(buf, offset) {
var i = offset || 0, bth = _byteToHex;
return bth[buf[i++]] + bth[buf[i++]] +
bth[buf[i++]] + bth[buf[i++]] + '-' +
bth[buf[i++]] + bth[buf[i++]] + '-' +
bth[buf[i++]] + bth[buf[i++]] + '-' +
bth[buf[i++]] + bth[buf[i++]] + '-' +
bth[buf[i++]] + bth[buf[i++]] +
bth[buf[i++]] + bth[buf[i++]] +
bth[buf[i++]] + bth[buf[i++]];
}
// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html
// random #'s we need to init node and clockseq
var _seedBytes = _rng();
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
var _nodeId = [
_seedBytes[0] | 0x01,
_seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]
];
// Per 4.2.2, randomize (14 bit) clockseq
var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff;
// Previous uuid creation time
var _lastMSecs = 0, _lastNSecs = 0;
// See https://github.com/broofa/node-uuid for API details
function v1(options, buf, offset) {
var i = buf && offset || 0;
var b = buf || [];
options = options || {};
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
// Per 4.2.1.2, use count of uuid's generated during the current clock
// cycle to simulate higher resolution clock
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
// Time since last uuid creation (in msecs)
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
// Per 4.2.1.2, Bump clockseq on clock regression
if (dt < 0 && options.clockseq === undefined) {
clockseq = clockseq + 1 & 0x3fff;
}
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
// time interval
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
nsecs = 0;
}
// Per 4.2.1.2 Throw error if too many uuids are requested
if (nsecs >= 10000) {
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
}
_lastMSecs = msecs;
_lastNSecs = nsecs;
_clockseq = clockseq;
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
msecs += 12219292800000;
// `time_low`
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
b[i++] = tl >>> 24 & 0xff;
b[i++] = tl >>> 16 & 0xff;
b[i++] = tl >>> 8 & 0xff;
b[i++] = tl & 0xff;
// `time_mid`
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
b[i++] = tmh >>> 8 & 0xff;
b[i++] = tmh & 0xff;
// `time_high_and_version`
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
b[i++] = tmh >>> 16 & 0xff;
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
b[i++] = clockseq >>> 8 | 0x80;
// `clock_seq_low`
b[i++] = clockseq & 0xff;
// `node`
var node = options.node || _nodeId;
for (var n = 0; n < 6; n++) {
b[i + n] = node[n];
}
return buf ? buf : unparse(b);
}
// **`v4()` - Generate random UUID**
// See https://github.com/broofa/node-uuid for API details
function v4(options, buf, offset) {
// Deprecated - 'format' argument, as supported in v1.2
var i = buf && offset || 0;
if (typeof(options) == 'string') {
buf = options == 'binary' ? new Array(16) : null;
options = null;
}
options = options || {};
var rnds = options.random || (options.rng || _rng)();
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds[6] = (rnds[6] & 0x0f) | 0x40;
rnds[8] = (rnds[8] & 0x3f) | 0x80;
// Copy bytes to buffer, if provided
if (buf) {
for (var ii = 0; ii < 16; ii++) {
buf[i + ii] = rnds[ii];
}
}
return buf || unparse(rnds);
}
// Export public API
var uuid = v4;
uuid.v1 = v1;
uuid.v4 = v4;
uuid.parse = parse;
uuid.unparse = unparse;
module.exports = uuid;
/***/ },
/* 223 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {
var rng;
if (global.crypto && crypto.getRandomValues) {
// WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto
// Moderately fast, high quality
var _rnds8 = new Uint8Array(16);
rng = function whatwgRNG() {
crypto.getRandomValues(_rnds8);
return _rnds8;
};
}
if (!rng) {
// Math.random()-based (RNG)
//
// If all else fails, use Math.random(). It's fast, but is of unspecified
// quality.
var _rnds = new Array(16);
rng = function() {
for (var i = 0, r; i < 16; i++) {
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
_rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
}
return _rnds;
};
}
module.exports = rng;
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 224 */
/***/ function(module, exports) {
"use strict";
module.exports = {
address: function address() {
var def = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var country = this.address.countryAndCode();
return {
country: def.country || country.name,
countryCode: def.countryCode || country.code,
state: def.state || this.address.state(),
city: def.city || this.address.city(),
street: def.street || this.address.street(),
zip: def.zip || this.address.postCode(),
geo: def.geo || this.address.geoLocation()
};
},
user: function user(gender) {
var firstName = this.populate("#{names.firstName" + (gender ? gender.toUpperCase() : "") + "}");
var lastName = this.populate("#{names.lastName" + (gender ? gender.toUpperCase() : "") + "}");
return {
firstName: firstName,
lastName: lastName,
userName: this.internet.userName(firstName, lastName),
password: this.internet.password(),
email: this.internet.email(firstName, lastName),
phone: this.phone.number(),
dob: this.date.past(80),
website: this.internet.url(),
ip: this.internet.ip(),
avatar: this.internet.avatar(),
gravatar: this.internet.gravatar(),
address: this.entity.address(),
status: this.random.boolean()
};
},
company: function company(name) {
name = name || this.company.name();
return {
name: name,
email: this.internet.email(name),
phone: this.phone.number(),
website: this.internet.url(),
ip: this.internet.ip(),
address: this.entity.address()
};
},
post: function post() {
var paragraphs = arguments.length <= 0 || arguments[0] === undefined ? 3 : arguments[0];
return {
title: this.lorem.sentence(),
keywords: this.utimes(this.lorem.word, 3),
created: this.date.recent(7),
content: this.times(this.lorem.paragraph, paragraphs).join("\r\n")
};
}
};
/***/ }
/******/ ])
});
;
|
var querystring = require("querystring"),
fs = require("fs");
function music(response, request, query) {
console.log("Request handler 'music' was called.");
var params = query.split("&");
console.log("param = " + params);
var m = {};
for (var i = 0; i<params.length; i++) {
var p = params[i].split("=");
m[p[0]] = p[1];
}
if ("id" in m) {
console.log("Begin streaming the song " + m["id"]);
//
// Website you wish to allow to connect
response.setHeader('Access-Control-Allow-Origin', '*');
// Request methods you wish to allow
response.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
// Request headers you wish to allow
response.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');
// Set to true if you need the website to include cookies in the requests sent
// to the API (e.g. in case you use sessions)
response.setHeader('Access-Control-Allow-Credentials', true);
var filename = "../BlueArmorHero/web/res/music/" + m["id"];
var readStream = fs.createReadStream(filename);
readStream.on('open', function() {
console.log("open is called");
response.writeHead(200, {"Content-Type": "audio/ogg"});
readStream.pipe(response);
});
readStream.on('error', function(err) {
response.end(err);
});
}
else {
console.log("Invalid param");
response.writeHead(200, {"Content-Type": "text/html"});
response.end();
}
}
exports.music = music;
|
$(function() {
var burger = $('.hamburger');
burger.click(function() {
burger.toggleClass('hamburgerActive');
});
});
|
# Uses python3
import sys
def lcm(a, b):
#write your code here
_gcd = gcd(a, b)
return (a*b) // _gcd
def gcd(a, b):
max_number = max(a,b)
min_number = min(a,b)
result = max_number % min_number
if (result == 1):
return result
if (result == 0):
return min_number
else:
return gcd(min_number, result)
if __name__ == '__main__':
input = sys.stdin.read()
a, b = map(int, input.split())
if (a >= 1) and (a <= 2 * 10**9) and (b >= 1) and (b <= 2 * 10**9):
print(lcm(a, b))
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_EXO_SHELL_SURFACE_UTIL_H_
#define COMPONENTS_EXO_SHELL_SURFACE_UTIL_H_
#include <memory>
#include <string>
#include "build/chromeos_buildflags.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace ui {
class PropertyHandler;
}
namespace aura {
class Window;
}
namespace base {
class TimeDelta;
}
namespace ui {
class LocatedEvent;
class KeyEvent;
} // namespace ui
namespace exo {
class ClientControlledShellSurface;
class Surface;
class ShellSurfaceBase;
// Sets the application ID to the property_handler. The application ID
// identifies the general class of applications to which the window belongs.
void SetShellApplicationId(ui::PropertyHandler* property_handler,
const absl::optional<std::string>& id);
const std::string* GetShellApplicationId(const aura::Window* window);
// Sets the startup ID to the property handler. The startup ID identifies the
// application using startup notification protocol.
void SetShellStartupId(ui::PropertyHandler* property_handler,
const absl::optional<std::string>& id);
const std::string* GetShellStartupId(const aura::Window* window);
// Shows/hides the shelf when fullscreen. If true, titlebar/shelf will show when
// the mouse moves to the top/bottom of the screen. If false (plain fullscreen),
// the titlebar and shelf are always hidden.
void SetShellUseImmersiveForFullscreen(aura::Window* window, bool value);
#if BUILDFLAG(IS_CHROMEOS_ASH)
// Sets the client accessibility ID for the window. The accessibility ID
// identifies the accessibility tree provided by client.
void SetShellClientAccessibilityId(aura::Window* window,
const absl::optional<int32_t>& id);
const absl::optional<int32_t> GetShellClientAccessibilityId(
aura::Window* window);
// Sets the ClientControlledShellSurface to the property handler.
void SetShellClientControlledShellSurface(
ui::PropertyHandler* property_handler,
const absl::optional<ClientControlledShellSurface*>& shell_surface);
ClientControlledShellSurface* GetShellClientControlledShellSurface(
ui::PropertyHandler* property_handler);
// Returns |index| for the window.
// Returns -1 for |index| when window is visible on all workspaces,
// otherwise, 0-based indexing for desk index.
int GetWindowDeskStateChanged(const aura::Window* window);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
// Sets the root surface to the property handler.
void SetShellRootSurface(ui::PropertyHandler* property_handler,
Surface* surface);
// Returns the main Surface instance or nullptr if it is not set.
// |window| must not be nullptr.
Surface* GetShellRootSurface(const aura::Window* window);
// Returns the ShellSurfaceBase for the given |window|, or nullptr if no such
// surface exists.
ShellSurfaceBase* GetShellSurfaceBaseForWindow(aura::Window* window);
// Returns the target surface for the located event |event|. If an
// event handling is grabbed by an window, it'll first examine that
// window, then traverse to its transient parent if the parent also
// requested grab.
Surface* GetTargetSurfaceForLocatedEvent(const ui::LocatedEvent* event);
// Returns the focused surface for given 'focused_window'. If a surface is
// attached to the window, this will return that surface. If the window is
// either the shell surface's window, or host window, it will return the root
// surface, otherwise returns nullptr.
Surface* GetTargetSurfaceForKeyboardFocus(aura::Window* focused_window);
// Allows the |window| to activate itself for the duration of |timeout|. Revokes
// any existing permission.
void GrantPermissionToActivate(aura::Window* window, base::TimeDelta timeout);
// Allows the |window| to activate itself indefinitely. Revokes any existing
// permission.
void GrantPermissionToActivateIndefinitely(aura::Window* window);
// Revokes the permission for |window| to activate itself.
void RevokePermissionToActivate(aura::Window* window);
// Returns true if the |window| has permission to activate itself.
bool HasPermissionToActivate(aura::Window* window);
// Returns true if event is/will be consumed by IME.
bool ConsumedByIme(aura::Window* window, const ui::KeyEvent& event);
// Set aura::client::kSkipImeProcessing to all Surface descendants.
void SetSkipImeProcessingToDescendentSurfaces(aura::Window* window, bool value);
} // namespace exo
#endif // COMPONENTS_EXO_SHELL_SURFACE_UTIL_H_
|
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/*!******************************************************************!*\
!*** ../demo6/src/js/pages/crud/datatables/basic/paginations.js ***!
\******************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: */
var KTDatatablesBasicPaginations = function() {
var initTable1 = function() {
var table = $('#kt_datatable');
// begin first table
table.DataTable({
responsive: true,
pagingType: 'full_numbers',
columnDefs: [
{
targets: -1,
width: '125px',
title: 'Actions',
orderable: false,
render: function(data, type, full, meta) {
return '\
<div class="dropdown dropdown-inline">\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon mr-2" data-toggle="dropdown">\
<span class="svg-icon svg-icon-md">\
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">\
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\
<rect x="0" y="0" width="24" height="24"/>\
<path d="M5,8.6862915 L5,5 L8.6862915,5 L11.5857864,2.10050506 L14.4852814,5 L19,5 L19,9.51471863 L21.4852814,12 L19,14.4852814 L19,19 L14.4852814,19 L11.5857864,21.8994949 L8.6862915,19 L5,19 L5,15.3137085 L1.6862915,12 L5,8.6862915 Z M12,15 C13.6568542,15 15,13.6568542 15,12 C15,10.3431458 13.6568542,9 12,9 C10.3431458,9 9,10.3431458 9,12 C9,13.6568542 10.3431458,15 12,15 Z" fill="#000000"/>\
</g>\
</svg>\
</span>\
</a>\
<div class="dropdown-menu dropdown-menu-sm dropdown-menu-right">\
<ul class="navi flex-column navi-hover py-2">\
<li class="navi-header font-weight-bolder text-uppercase font-size-xs text-primary pb-2">\
Choose an action:\
</li>\
<li class="navi-item">\
<a href="#" class="navi-link">\
<span class="navi-icon"><i class="la la-print"></i></span>\
<span class="navi-text">Print</span>\
</a>\
</li>\
<li class="navi-item">\
<a href="#" class="navi-link">\
<span class="navi-icon"><i class="la la-copy"></i></span>\
<span class="navi-text">Copy</span>\
</a>\
</li>\
<li class="navi-item">\
<a href="#" class="navi-link">\
<span class="navi-icon"><i class="la la-file-excel-o"></i></span>\
<span class="navi-text">Excel</span>\
</a>\
</li>\
<li class="navi-item">\
<a href="#" class="navi-link">\
<span class="navi-icon"><i class="la la-file-text-o"></i></span>\
<span class="navi-text">CSV</span>\
</a>\
</li>\
<li class="navi-item">\
<a href="#" class="navi-link">\
<span class="navi-icon"><i class="la la-file-pdf-o"></i></span>\
<span class="navi-text">PDF</span>\
</a>\
</li>\
</ul>\
</div>\
</div>\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon mr-2" title="Edit details">\
<span class="svg-icon svg-icon-md">\
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">\
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\
<rect x="0" y="0" width="24" height="24"/>\
<path d="M8,17.9148182 L8,5.96685884 C8,5.56391781 8.16211443,5.17792052 8.44982609,4.89581508 L10.965708,2.42895648 C11.5426798,1.86322723 12.4640974,1.85620921 13.0496196,2.41308426 L15.5337377,4.77566479 C15.8314604,5.0588212 16,5.45170806 16,5.86258077 L16,17.9148182 C16,18.7432453 15.3284271,19.4148182 14.5,19.4148182 L9.5,19.4148182 C8.67157288,19.4148182 8,18.7432453 8,17.9148182 Z" fill="#000000" fill-rule="nonzero"\ transform="translate(12.000000, 10.707409) rotate(-135.000000) translate(-12.000000, -10.707409) "/>\
<rect fill="#000000" opacity="0.3" x="5" y="20" width="15" height="2" rx="1"/>\
</g>\
</svg>\
</span>\
</a>\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon" title="Delete">\
<span class="svg-icon svg-icon-md">\
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">\
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\
<rect x="0" y="0" width="24" height="24"/>\
<path d="M6,8 L6,20.5 C6,21.3284271 6.67157288,22 7.5,22 L16.5,22 C17.3284271,22 18,21.3284271 18,20.5 L18,8 L6,8 Z" fill="#000000" fill-rule="nonzero"/>\
<path d="M14,4.5 L14,4 C14,3.44771525 13.5522847,3 13,3 L11,3 C10.4477153,3 10,3.44771525 10,4 L10,4.5 L5.5,4.5 C5.22385763,4.5 5,4.72385763 5,5 L5,5.5 C5,5.77614237 5.22385763,6 5.5,6 L18.5,6 C18.7761424,6 19,5.77614237 19,5.5 L19,5 C19,4.72385763 18.7761424,4.5 18.5,4.5 L14,4.5 Z" fill="#000000" opacity="0.3"/>\
</g>\
</svg>\
</span>\
</a>\
';
},
},
{
targets: 8,
width: '75px',
render: function(data, type, full, meta) {
var status = {
1: {'title': 'Pending', 'class': 'label-light-success'},
2: {'title': 'Delivered', 'class': ' label-light-danger'},
3: {'title': 'Canceled', 'class': ' label-light-primary'},
4: {'title': 'Success', 'class': ' label-light-success'},
5: {'title': 'Info', 'class': ' label-light-info'},
6: {'title': 'Danger', 'class': ' label-light-danger'},
7: {'title': 'Warning', 'class': ' label-light-warning'},
};
if (typeof status[data] === 'undefined') {
return data;
}
return '<span class="label label-lg font-weight-bold' + status[data].class + ' label-inline">' + status[data].title + '</span>';
},
},
{
targets: 9,
width: '75px',
render: function(data, type, full, meta) {
var status = {
1: {'title': 'Online', 'state': 'danger'},
2: {'title': 'Retail', 'state': 'primary'},
3: {'title': 'Direct', 'state': 'success'},
};
if (typeof status[data] === 'undefined') {
return data;
}
return '<span class="label label-' + status[data].state + ' label-dot mr-2"></span>' +
'<span class="font-weight-bold text-' + status[data].state + '">' + status[data].title + '</span>';
},
},
],
});
};
return {
//main function to initiate the module
init: function() {
initTable1();
},
};
}();
jQuery(document).ready(function() {
KTDatatablesBasicPaginations.init();
});
/******/ })()
;
//# sourceMappingURL=paginations.js.map
|
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
/** @file
*
* @defgroup ble_sdk_uart_over_ble_main main.c
* @{
* @ingroup ble_sdk_app_nus_eval
* @brief UART over BLE application main file.
*
* This file contains the source code for a sample application that uses the Nordic UART service.
* This application uses the @ref srvlib_conn_params module.
*/
#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include "nrf.h"
#include "ble_hci.h"
#include "ble_advdata.h"
#include "ble_advertising.h"
#include "ble_conn_params.h"
#include "app_scheduler.h"
#include "softdevice_handler_appsh.h"
#include "app_timer_appsh.h"
/* #include "softdevice_handler.h" */
/* #include "app_timer.h" */
#include "app_button.h"
#include "ble_nus.h"
#include "app_uart.h"
#include "app_util_platform.h"
#include "bsp.h"
#include "bsp_btn_ble.h"
#define IS_SRVC_CHANGED_CHARACT_PRESENT 0 /**< Include the service_changed characteristic. If not enabled, the server's database cannot be changed for the lifetime of the device. */
#if (NRF_SD_BLE_API_VERSION == 3)
#define NRF_BLE_MAX_MTU_SIZE GATT_MTU_SIZE_DEFAULT /**< MTU size used in the softdevice enabling and to reply to a BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST event. */
#endif
#define APP_FEATURE_NOT_SUPPORTED BLE_GATT_STATUS_ATTERR_APP_BEGIN + 2 /**< Reply when unsupported features are requested. */
#define CENTRAL_LINK_COUNT 0 /**< Number of central links used by the application. When changing this number remember to adjust the RAM settings*/
#define PERIPHERAL_LINK_COUNT 1 /**< Number of peripheral links used by the application. When changing this number remember to adjust the RAM settings*/
#define DEVICE_NAME "Nordic_UART" /**< Name of device. Will be included in the advertising data. */
#define NUS_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**< UUID type for the Nordic UART Service (vendor specific). */
#define APP_ADV_INTERVAL 64 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 40 ms). */
#define APP_ADV_TIMEOUT_IN_SECONDS 180 /**< The advertising timeout (in units of seconds). */
#define APP_TIMER_PRESCALER 0 /**< Value of the RTC1 PRESCALER register. */
#define APP_TIMER_OP_QUEUE_SIZE 4 /**< Size of timer operation queues. */
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(20, UNIT_1_25_MS) /**< Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(75, UNIT_1_25_MS) /**< Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */
#define SLAVE_LATENCY 0 /**< Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS) /**< Connection supervisory timeout (4 seconds), Supervision Timeout uses 10 ms units. */
#define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) /**< Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER) /**< Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT 3 /**< Number of attempts before giving up the connection parameter negotiation. */
#define DEAD_BEEF 0xDEADBEEF /**< Value used as error code on stack dump, can be used to identify stack location on stack unwind. */
#define UART_TX_BUF_SIZE 256 /**< UART TX buffer size. */
#define UART_RX_BUF_SIZE 256 /**< UART RX buffer size. */
#define KEY_SCAN_INTERVAL APP_TIMER_TICKS(1, APP_TIMER_PRESCALER) /**< Battery level measurement interval (ticks). */
#define SCHED_MAX_EVENT_DATA_SIZE MAX(APP_TIMER_SCHED_EVT_SIZE, \
BLE_STACK_HANDLER_SCHED_EVT_SIZE) /**< Maximum size of scheduler events. */
#ifdef SVCALL_AS_NORMAL_FUNCTION
#define SCHED_QUEUE_SIZE 20 /**< Maximum number of events in the scheduler queue. More is needed in case of Serialization. */
#else
#define SCHED_QUEUE_SIZE 10 /**< Maximum number of events in the scheduler queue. */
#endif
#define DEBOUNCE 5
APP_TIMER_DEF(m_key_scan_timer_id); /**< Battery timer. */
static ble_nus_t m_nus; /**< Structure to identify the Nordic UART Service. */
static uint16_t m_conn_handle = BLE_CONN_HANDLE_INVALID; /**< Handle of the current connection. */
static ble_uuid_t m_adv_uuids[] = {{BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE}}; /**< Universally unique service identifier. */
/* static uint8_t debouncing = DEBOUNCE; */
static uint8_t matrix[MATRIX_ROWS];
/* static uint8_t matrix_debouncing[MATRIX_ROWS]; */
static const uint8_t row_pin_array[MATRIX_ROWS] = {20, 19, 18, 17, 16};
static const uint8_t column_pin_array[8] = {3, 4, 5, 6, 7, 8, 9, 10};
/**@brief Function for assert macro callback.
*
* @details This function will be called in case of an assert in the SoftDevice.
*
* @warning This handler is an example only and does not fit a final product. You need to analyse
* how your product is supposed to react in case of Assert.
* @warning On assert from the SoftDevice, the system can only recover on reset.
*
* @param[in] line_num Line number of the failing ASSERT call.
* @param[in] p_file_name File name of the failing ASSERT call.
*/
void assert_nrf_callback(uint16_t line_num, const uint8_t * p_file_name)
{
app_error_handler(DEAD_BEEF, line_num, p_file_name);
}
/**@brief Function for the GAP initialization.
*
* @details This function will set up all the necessary GAP (Generic Access Profile) parameters of
* the device. It also sets the permissions and appearance.
*/
static void gap_params_init(void)
{
uint32_t err_code;
ble_gap_conn_params_t gap_conn_params;
ble_gap_conn_sec_mode_t sec_mode;
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode);
err_code = sd_ble_gap_device_name_set(&sec_mode,
(const uint8_t *) DEVICE_NAME,
strlen(DEVICE_NAME));
APP_ERROR_CHECK(err_code);
memset(&gap_conn_params, 0, sizeof(gap_conn_params));
gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
gap_conn_params.slave_latency = SLAVE_LATENCY;
gap_conn_params.conn_sup_timeout = CONN_SUP_TIMEOUT;
err_code = sd_ble_gap_ppcp_set(&gap_conn_params);
APP_ERROR_CHECK(err_code);
}
/**@brief Function for handling the data from the Nordic UART Service.
*
* @details This function will process the data received from the Nordic UART BLE Service and send
* it to the UART module.
*
* @param[in] p_nus Nordic UART Service structure.
* @param[in] p_data Data to be send to UART module.
* @param[in] length Length of the data.
*/
/**@snippet [Handling the data received over BLE] */
static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
/* for (uint32_t i = 0; i < length; i++) */
/* { */
/* while (app_uart_put(p_data[i]) != NRF_SUCCESS); */
/* } */
/* while (app_uart_put('\r') != NRF_SUCCESS); */
/* while (app_uart_put('\n') != NRF_SUCCESS); */
}
/**@snippet [Handling the data received over BLE] */
/**@brief Function for initializing services that will be used by the application.
*/
static void services_init(void)
{
uint32_t err_code;
ble_nus_init_t nus_init;
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;
err_code = ble_nus_init(&m_nus, &nus_init);
APP_ERROR_CHECK(err_code);
}
/**@brief Function for handling an event from the Connection Parameters Module.
*
* @details This function will be called for all events in the Connection Parameters Module
* which are passed to the application.
*
* @note All this function does is to disconnect. This could have been done by simply setting
* the disconnect_on_fail config parameter, but instead we use the event handler
* mechanism to demonstrate its use.
*
* @param[in] p_evt Event received from the Connection Parameters Module.
*/
static void on_conn_params_evt(ble_conn_params_evt_t * p_evt)
{
uint32_t err_code;
if (p_evt->evt_type == BLE_CONN_PARAMS_EVT_FAILED)
{
err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);
APP_ERROR_CHECK(err_code);
}
}
/**@brief Function for handling errors from the Connection Parameters module.
*
* @param[in] nrf_error Error code containing information about what went wrong.
*/
static void conn_params_error_handler(uint32_t nrf_error)
{
APP_ERROR_HANDLER(nrf_error);
}
/**@brief Function for initializing the Connection Parameters module.
*/
static void conn_params_init(void)
{
uint32_t err_code;
ble_conn_params_init_t cp_init;
memset(&cp_init, 0, sizeof(cp_init));
cp_init.p_conn_params = NULL;
cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
cp_init.next_conn_params_update_delay = NEXT_CONN_PARAMS_UPDATE_DELAY;
cp_init.max_conn_params_update_count = MAX_CONN_PARAMS_UPDATE_COUNT;
cp_init.start_on_notify_cccd_handle = BLE_GATT_HANDLE_INVALID;
cp_init.disconnect_on_fail = false;
cp_init.evt_handler = on_conn_params_evt;
cp_init.error_handler = conn_params_error_handler;
err_code = ble_conn_params_init(&cp_init);
APP_ERROR_CHECK(err_code);
}
/**@brief Function for putting the chip into sleep mode.
*
* @note This function will not return.
*/
static void sleep_mode_enter(void)
{
uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE);
APP_ERROR_CHECK(err_code);
// Prepare wakeup buttons.
err_code = bsp_btn_ble_sleep_mode_prepare();
APP_ERROR_CHECK(err_code);
// Go to system-off mode (this function will not return; wakeup will cause a reset).
err_code = sd_power_system_off();
APP_ERROR_CHECK(err_code);
}
/**@brief Function for handling advertising events.
*
* @details This function will be called for advertising events which are passed to the application.
*
* @param[in] ble_adv_evt Advertising event.
*/
static void on_adv_evt(ble_adv_evt_t ble_adv_evt)
{
uint32_t err_code;
switch (ble_adv_evt)
{
case BLE_ADV_EVT_FAST:
err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
APP_ERROR_CHECK(err_code);
break;
case BLE_ADV_EVT_IDLE:
sleep_mode_enter();
break;
default:
break;
}
}
/**@brief Function for the application's SoftDevice event handler.
*
* @param[in] p_ble_evt SoftDevice event.
*/
static void on_ble_evt(ble_evt_t * p_ble_evt)
{
uint32_t err_code;
switch (p_ble_evt->header.evt_id)
{
case BLE_GAP_EVT_CONNECTED:
err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
APP_ERROR_CHECK(err_code);
m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
break; // BLE_GAP_EVT_CONNECTED
case BLE_GAP_EVT_DISCONNECTED:
err_code = bsp_indication_set(BSP_INDICATE_IDLE);
APP_ERROR_CHECK(err_code);
m_conn_handle = BLE_CONN_HANDLE_INVALID;
break; // BLE_GAP_EVT_DISCONNECTED
case BLE_GAP_EVT_SEC_PARAMS_REQUEST:
// Pairing not supported
err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);
APP_ERROR_CHECK(err_code);
break; // BLE_GAP_EVT_SEC_PARAMS_REQUEST
case BLE_GATTS_EVT_SYS_ATTR_MISSING:
// No system attributes have been stored.
err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
APP_ERROR_CHECK(err_code);
break; // BLE_GATTS_EVT_SYS_ATTR_MISSING
case BLE_GATTC_EVT_TIMEOUT:
// Disconnect on GATT Client timeout event.
err_code = sd_ble_gap_disconnect(p_ble_evt->evt.gattc_evt.conn_handle,
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
APP_ERROR_CHECK(err_code);
break; // BLE_GATTC_EVT_TIMEOUT
case BLE_GATTS_EVT_TIMEOUT:
// Disconnect on GATT Server timeout event.
err_code = sd_ble_gap_disconnect(p_ble_evt->evt.gatts_evt.conn_handle,
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
APP_ERROR_CHECK(err_code);
break; // BLE_GATTS_EVT_TIMEOUT
case BLE_EVT_USER_MEM_REQUEST:
err_code = sd_ble_user_mem_reply(p_ble_evt->evt.gattc_evt.conn_handle, NULL);
APP_ERROR_CHECK(err_code);
break; // BLE_EVT_USER_MEM_REQUEST
case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST:
{
ble_gatts_evt_rw_authorize_request_t req;
ble_gatts_rw_authorize_reply_params_t auth_reply;
req = p_ble_evt->evt.gatts_evt.params.authorize_request;
if (req.type != BLE_GATTS_AUTHORIZE_TYPE_INVALID)
{
if ((req.request.write.op == BLE_GATTS_OP_PREP_WRITE_REQ) ||
(req.request.write.op == BLE_GATTS_OP_EXEC_WRITE_REQ_NOW) ||
(req.request.write.op == BLE_GATTS_OP_EXEC_WRITE_REQ_CANCEL))
{
if (req.type == BLE_GATTS_AUTHORIZE_TYPE_WRITE)
{
auth_reply.type = BLE_GATTS_AUTHORIZE_TYPE_WRITE;
}
else
{
auth_reply.type = BLE_GATTS_AUTHORIZE_TYPE_READ;
}
auth_reply.params.write.gatt_status = APP_FEATURE_NOT_SUPPORTED;
err_code = sd_ble_gatts_rw_authorize_reply(p_ble_evt->evt.gatts_evt.conn_handle,
&auth_reply);
APP_ERROR_CHECK(err_code);
}
}
} break; // BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST
#if (NRF_SD_BLE_API_VERSION == 3)
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle,
NRF_BLE_MAX_MTU_SIZE);
APP_ERROR_CHECK(err_code);
break; // BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
#endif
default:
// No implementation needed.
break;
}
}
/**@brief Function for dispatching a SoftDevice event to all modules with a SoftDevice
* event handler.
*
* @details This function is called from the SoftDevice event interrupt handler after a
* SoftDevice event has been received.
*
* @param[in] p_ble_evt SoftDevice event.
*/
static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
ble_conn_params_on_ble_evt(p_ble_evt);
ble_nus_on_ble_evt(&m_nus, p_ble_evt);
on_ble_evt(p_ble_evt);
ble_advertising_on_ble_evt(p_ble_evt);
bsp_btn_ble_on_ble_evt(p_ble_evt);
}
/**@brief Function for the SoftDevice initialization.
*
* @details This function initializes the SoftDevice and the BLE event interrupt.
*/
static void ble_stack_init(void)
{
uint32_t err_code;
nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
// Initialize SoftDevice.
SOFTDEVICE_HANDLER_APPSH_INIT(&clock_lf_cfg, true);
ble_enable_params_t ble_enable_params;
err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
PERIPHERAL_LINK_COUNT,
&ble_enable_params);
APP_ERROR_CHECK(err_code);
//Check the ram settings against the used number of links
CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);
// Enable BLE stack.
#if (NRF_SD_BLE_API_VERSION == 3)
ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
#endif
err_code = softdevice_enable(&ble_enable_params);
APP_ERROR_CHECK(err_code);
// Subscribe for BLE events.
err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
APP_ERROR_CHECK(err_code);
}
/**@brief Function for handling events from the BSP module.
*
* @param[in] event Event generated by button press.
*/
void bsp_event_handler(bsp_event_t event)
{
uint32_t err_code;
switch (event)
{
case BSP_EVENT_SLEEP:
sleep_mode_enter();
break;
case BSP_EVENT_DISCONNECT:
err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
if (err_code != NRF_ERROR_INVALID_STATE)
{
APP_ERROR_CHECK(err_code);
}
break;
case BSP_EVENT_WHITELIST_OFF:
if (m_conn_handle == BLE_CONN_HANDLE_INVALID)
{
err_code = ble_advertising_restart_without_whitelist();
if (err_code != NRF_ERROR_INVALID_STATE)
{
APP_ERROR_CHECK(err_code);
}
}
break;
default:
break;
}
}
/**@brief Function for handling app_uart events.
*
* @details This function will receive a single character from the app_uart module and append it to
* a string. The string will be be sent over BLE when the last character received was a
* 'new line' i.e '\r\n' (hex 0x0D) or if the string has reached a length of
* @ref NUS_MAX_DATA_LENGTH.
*/
/**@snippet [Handling the data received over UART] */
void uart_event_handle(app_uart_evt_t * p_event)
{
static uint8_t data_array[BLE_NUS_MAX_DATA_LEN];
static uint8_t index = 0;
/* uint32_t err_code; */
switch (p_event->evt_type)
{
case APP_UART_DATA_READY:
UNUSED_VARIABLE(app_uart_get(&data_array[index]));
index++;
if ((data_array[index - 1] == '\n') || (index >= (BLE_NUS_MAX_DATA_LEN)))
{
/* err_code = ble_nus_string_send(&m_nus, data_array, index); */
/* if (err_code != NRF_ERROR_INVALID_STATE) */
/* { */
/* APP_ERROR_CHECK(err_code); */
/* } */
index = 0;
}
break;
case APP_UART_COMMUNICATION_ERROR:
APP_ERROR_HANDLER(p_event->data.error_communication);
break;
case APP_UART_FIFO_ERROR:
APP_ERROR_HANDLER(p_event->data.error_code);
break;
default:
break;
}
}
/**@snippet [Handling the data received over UART] */
/**@brief Function for initializing the UART module.
*/
/**@snippet [UART Initialization] */
static void uart_init(void)
{
uint32_t err_code;
const app_uart_comm_params_t comm_params =
{
RX_PIN_NUMBER,
TX_PIN_NUMBER,
RTS_PIN_NUMBER,
CTS_PIN_NUMBER,
APP_UART_FLOW_CONTROL_DISABLED,
false,
UART_BAUDRATE_BAUDRATE_Baud115200
};
APP_UART_FIFO_INIT( &comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_event_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
}
/**@snippet [UART Initialization] */
/**@brief Function for initializing the Advertising functionality.
*/
static void advertising_init(void)
{
uint32_t err_code;
ble_advdata_t advdata;
ble_advdata_t scanrsp;
ble_adv_modes_config_t options;
// Build advertising data struct to pass into @ref ble_advertising_init.
memset(&advdata, 0, sizeof(advdata));
advdata.name_type = BLE_ADVDATA_FULL_NAME;
advdata.include_appearance = false;
advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
memset(&scanrsp, 0, sizeof(scanrsp));
scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
scanrsp.uuids_complete.p_uuids = m_adv_uuids;
memset(&options, 0, sizeof(options));
options.ble_adv_fast_enabled = true;
options.ble_adv_fast_interval = APP_ADV_INTERVAL;
options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
err_code = ble_advertising_init(&advdata, &scanrsp, &options, on_adv_evt, NULL);
APP_ERROR_CHECK(err_code);
}
/**@brief Function for initializing buttons and leds.
*
* @param[out] p_erase_bonds Will be true if the clear bonding button was pressed to wake the application up.
*/
static void buttons_leds_init(bool * p_erase_bonds)
{
bsp_event_t startup_event;
uint32_t err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS,
APP_TIMER_TICKS(100, APP_TIMER_PRESCALER),
bsp_event_handler);
APP_ERROR_CHECK(err_code);
err_code = bsp_btn_ble_init(NULL, &startup_event);
APP_ERROR_CHECK(err_code);
*p_erase_bonds = (startup_event == BSP_EVENT_CLEAR_BONDING_DATA);
}
// Setup switch pins with pullups
static void gpio_config(void)
{
for (uint_fast8_t i = 0; i < MATRIX_ROWS; i++)
{
nrf_gpio_cfg_output((uint32_t)row_pin_array[i]);
NRF_GPIO->PIN_CNF[(uint32_t)row_pin_array[i]] |= 0x400; //Set pin to be "Disconnected 0 and standard 1"
nrf_gpio_pin_clear((uint32_t)row_pin_array[i]); //Set pin to low
}
for (uint_fast8_t i = 0; i < 8; i++)
{
nrf_gpio_cfg_input((uint32_t)column_pin_array[i], NRF_GPIO_PIN_PULLDOWN);
}
}
void select_row(uint8_t row)
{
nrf_gpio_pin_set((uint32_t)row_pin_array[row]);
}
void unselect_row(uint8_t row)
{
nrf_gpio_pin_clear((uint32_t)row_pin_array[row]);
}
uint8_t read_cols(uint8_t row)
{
uint8_t result = 0;
for (uint_fast8_t c = 0; c < 8; c++)
{
if (nrf_gpio_pin_read((uint32_t)column_pin_array[c]))
result |= 1 << c;
}
return result;
}
static void key_scan_handler(void * p_context)
{
UNUSED_PARAMETER(p_context);
int changed = 0;
for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
select_row(i);
uint8_t cols = read_cols(i);
if (matrix[i] != cols) {
matrix[i] = cols;
changed = 1;
}
unselect_row(i);
}
if (changed == 1 && m_conn_handle != BLE_CONN_HANDLE_INVALID) {
uint8_t data[MATRIX_ROWS];
for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
data[i] = matrix[i];
}
ble_nus_string_send(&m_nus, data, 5);
}
}
/**@brief Function for placing the application in low power state while waiting for events.
*/
static void power_manage(void)
{
uint32_t err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
}
/**@brief Application main function.
*/
int main(void)
{
uint32_t err_code;
bool erase_bonds;
// Initialize.
APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, true);
// Create key scan timer
err_code = app_timer_create(&m_key_scan_timer_id,
APP_TIMER_MODE_REPEATED,
key_scan_handler);
uart_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();
APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);
gap_params_init();
services_init();
advertising_init();
conn_params_init();
gpio_config();
printf("\r\nUART Start!\r\n");
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
app_timer_start(m_key_scan_timer_id, KEY_SCAN_INTERVAL, NULL);
// Enter main loop.
for (;;)
{
app_sched_execute();
power_manage();
}
}
/**
* @}
*/
|
/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <archive.h>
int main(int argc, char *argv[])
{
struct archive *tgz;
(void)argc;
(void)argv;
tgz = archive_write_new();
archive_write_set_options(tgz, "gzip=9");
archive_write_set_format_ustar(tgz);
archive_write_free(tgz);
return 0;
}
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[827],{lq7H:function(e,a,c){"use strict";c.r(a);var t=c("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"filled"},n=i,s=c("6VBw"),r=function(e,a){return t["createElement"](s["a"],Object.assign({},e,{ref:a,icon:n}))};r.displayName="WeiboCircleFilled";a["default"]=t["forwardRef"](r)}}]);
|
/*
* Copyright 2016 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var eventEmitter = require('minimal-event-emitter');
var mat4 = require('gl-matrix').mat4;
var vec4 = require('gl-matrix').vec4;
var pixelRatio = require('../util/pixelRatio');
var convertFov = require('../util/convertFov');
var mod = require('../util/mod');
var real = require('../util/real');
var clamp = require('../util/clamp');
var decimal = require('../util/decimal');
var compose = require('../util/compose');
var clearOwnProperties = require('../util/clearOwnProperties');
// Default viewport dimensions.
// Start with zero to ensure that those values are handled correctly.
var defaultWidth = 0;
var defaultHeight = 0;
// Default view parameters.
var defaultYaw = 0;
var defaultPitch = 0;
var defaultRoll = 0;
var defaultFov = Math.PI/4;
var defaultProjectionCenterX = 0;
var defaultProjectionCenterY = 0;
// A fov of exactly 0 or π breaks some computations, so we constrain it to the
// [fovLimitEpsilon, π - fovLimitEpsilon] interval. We use 6 decimal places for
// the epsilon value to avoid broken rendering due to loss of precision in
// floating point computations.
var fovLimitEpsilon = 0.000001;
/**
* @interface RectilinearViewParams
*
* A camera configuration for a {@link RectilinearView}.
*
* @property {number} yaw The yaw angle, in the [-π, π] range.
* When `yaw < 0`, the view rotates to the left.
* When `yaw > 0`, the view rotates to the right.
*
* @property {number} pitch The pitch angle, in the [-π, π] range.
* When `pitch < 0`, the view rotates downwards.
* When `pitch > 0`, the view rotates upwards.
*
* @property {number} roll The roll angle, in the [-π, π] range.
* When `roll < 0`, the view rotates clockwise.
* When `roll > 0`, the view rotates counter-clockwise.
*
* @property {fov} fov The vertical field of view, in the [0, π] range.
*/
/**
* @interface RectilinearViewCoords
*
* The position of a point in a 360° image.
*
* @property {number} yaw The yaw angle, in the [-π, π] range.
* @property {number} pitch The pitch angle, in the [-π, π] range.
*/
/**
* @typedef {function} RectilinearViewLimiter
*
* View limiter for a {@link RectilinearView}.
*
* A view limiter is a function that receives a {@link RectilinearViewParams}
* object, optionally modifies it in place, and returns it. It can be used to
* enforce constraints on the view parameters.
*
* See {@link RectilinearView.limit} for commonly used limiters. They may be
* composed together or with user-defined limiters with {@link util.compose}.
*
* @param {RectilinearViewParams} params
* @return {RectilinearViewParams}
*/
/**
* @class RectilinearView
* @implements View
* @classdesc
*
* A {@link View} implementing a rectilinear projection for 360° images.
*
* @param {RectilinearViewParams=} params The initial view parameters. If
* unspecified, defaults to `{yaw: 0, pitch: 0, roll: 0, fov: Math.PI/4 }`.
* @param {RectilinearViewLimiter=} limiter The view limiter. If unspecified,
* no view limiting is applied. See {@link RectilinearView.limit} for
* commonly used limiters.
*/
function RectilinearView(params, limiter) {
// The initial values for the view parameters.
this._yaw = params && params.yaw != null ? params.yaw : defaultYaw;
this._pitch = params && params.pitch != null ? params.pitch : defaultPitch;
this._roll = params && params.roll != null ? params.roll : defaultRoll;
this._fov = params && params.fov != null ? params.fov : defaultFov;
this._width = params && params.width != null ?
params.width : defaultWidth;
this._height = params && params.height != null ?
params.height : defaultHeight;
this._projectionCenterX = params && params.projectionCenterX != null ?
params.projectionCenterX : defaultProjectionCenterX;
this._projectionCenterY = params && params.projectionCenterY != null ?
params.projectionCenterY : defaultProjectionCenterY;
// The initial value for the view limiter.
this._limiter = limiter || null;
// The last calculated projection matrix.
this._projectionMatrix = mat4.create();
// Whether the projection matrix needs to be updated.
this._projectionChanged = true;
// The last calculated view frustum.
this._viewFrustum = [
vec4.create(), // left
vec4.create(), // right
vec4.create(), // bottom
vec4.create(), // top
vec4.create() // camera
];
// Temporary variables used for calculations.
this._params = {};
this._fovs = {};
this._tmpVec = vec4.create();
this._tmpMat = mat4.create();
// Force view limiting on initial parameters.
this._update();
}
eventEmitter(RectilinearView);
/**
* Destructor.
*/
RectilinearView.prototype.destroy = function() {
clearOwnProperties(this);
};
/**
* Get the yaw angle.
* @return {number}
*/
RectilinearView.prototype.yaw = function() {
return this._yaw;
};
/**
* Get the pitch angle.
* @return {number}
*/
RectilinearView.prototype.pitch = function() {
return this._pitch;
};
/**
* Get the roll angle.
* @return {number}
*/
RectilinearView.prototype.roll = function() {
return this._roll;
};
RectilinearView.prototype.projectionCenterX = function() {
return this._projectionCenterX;
};
RectilinearView.prototype.projectionCenterY = function() {
return this._projectionCenterY;
};
/**
* Get the fov value.
* @return {number}
*/
RectilinearView.prototype.fov = function() {
return this._fov;
};
/**
* Get the viewport width.
* @return {number}
*/
RectilinearView.prototype.width = function() {
return this._width;
};
/**
* Get the viewport height.
* @return {number}
*/
RectilinearView.prototype.height = function() {
return this._height;
};
/**
* Get the viewport dimensions. If an argument is supplied, it is filled in with
* the result and returned. Otherwise, a fresh object is filled in and returned.
* @param {Size=} size
* @return {Size}
*/
RectilinearView.prototype.size = function(size) {
size = size || {};
size.width = this._width;
size.height = this._height;
return size;
};
/**
* Get the view parameters. If an argument is supplied, it is filled in with the
* result and returned. Otherwise, a fresh object is filled in and returned.
* @param {RectilinearViewParams=} obj
* @return {RectilinearViewParams}
*/
RectilinearView.prototype.parameters = function(params) {
params = params || {};
params.yaw = this._yaw;
params.pitch = this._pitch;
params.roll = this._roll;
params.fov = this._fov;
return params;
};
/**
* Get the view limiter, or null if unset.
* @return {?RectilinearViewLimiter}
*/
RectilinearView.prototype.limiter = function() {
return this._limiter;
};
/**
* Set the yaw angle.
* @param {number} yaw
*/
RectilinearView.prototype.setYaw = function(yaw) {
this._resetParams();
this._params.yaw = yaw;
this._update(this._params);
};
/**
* Set the pitch angle.
* @param {number} pitch
*/
RectilinearView.prototype.setPitch = function(pitch) {
this._resetParams();
this._params.pitch = pitch;
this._update(this._params);
};
/**
* Set the roll angle.
* @param {number} roll
*/
RectilinearView.prototype.setRoll = function(roll) {
this._resetParams();
this._params.roll = roll;
this._update(this._params);
};
/**
* Set the fov value.
* @param {number} fov
*/
RectilinearView.prototype.setFov = function(fov) {
this._resetParams();
this._params.fov = fov;
this._update(this._params);
};
RectilinearView.prototype.setProjectionCenterX = function(projectionCenterX) {
this._resetParams();
this._params.projectionCenterX = projectionCenterX;
this._update(this._params);
};
RectilinearView.prototype.setProjectionCenterY = function(projectionCenterY) {
this._resetParams();
this._params.projectionCenterY = projectionCenterY;
this._update(this._params);
};
/**
* Add yawOffset to the current yaw value.
* @param {number} yawOffset
*/
RectilinearView.prototype.offsetYaw = function(yawOffset) {
this.setYaw(this._yaw + yawOffset);
};
/**
* Add pitchOffset to the current pitch value.
* @param {number} pitchOffset
*/
RectilinearView.prototype.offsetPitch = function(pitchOffset) {
this.setPitch(this._pitch + pitchOffset);
};
/**
* Add rollOffset to the current roll value.
* @param {number} rollOffset
*/
RectilinearView.prototype.offsetRoll = function(rollOffset) {
this.setRoll(this._roll + rollOffset);
};
/**
* Add fovOffset to the current fov value.
* @param {number} fovOffset
*/
RectilinearView.prototype.offsetFov = function(fovOffset) {
this.setFov(this._fov + fovOffset);
};
/**
* Set the viewport dimensions.
* @param {Size} size
*/
RectilinearView.prototype.setSize = function(size) {
this._resetParams();
this._params.width = size.width;
this._params.height = size.height;
this._update(this._params);
};
/**
* Set the view parameters. Unspecified parameters are left unchanged.
* @param {RectilinearViewParameters} params
*/
RectilinearView.prototype.setParameters = function(params) {
this._resetParams();
this._params.yaw = params.yaw;
this._params.pitch = params.pitch;
this._params.roll = params.roll;
this._params.fov = params.fov;
this._params.projectionCenterX = params.projectionCenterX;
this._params.projectionCenterY = params.projectionCenterY;
this._update(this._params);
};
/**
* Set the view limiter.
* @param {?RectilinearViewLimiter} limiter The new limiter, or null to unset.
*/
RectilinearView.prototype.setLimiter = function(limiter) {
this._limiter = limiter || null;
this._update();
};
RectilinearView.prototype._resetParams = function() {
var params = this._params;
params.yaw = null;
params.pitch = null;
params.roll = null;
params.fov = null;
params.width = null;
params.height = null;
};
RectilinearView.prototype._update = function(params) {
// Avoid object allocation when no parameters are supplied.
if (params == null) {
this._resetParams();
params = this._params;
}
// Save old parameters for later comparison.
var oldYaw = this._yaw;
var oldPitch = this._pitch;
var oldRoll = this._roll;
var oldFov = this._fov;
var oldProjectionCenterX = this._projectionCenterX;
var oldProjectionCenterY = this._projectionCenterY;
var oldWidth = this._width;
var oldHeight = this._height;
// Fill in object with the new set of parameters to pass into the limiter.
params.yaw = params.yaw != null ? params.yaw : oldYaw;
params.pitch = params.pitch != null ? params.pitch : oldPitch;
params.roll = params.roll != null ? params.roll : oldRoll;
params.fov = params.fov != null ? params.fov : oldFov;
params.width = params.width != null ? params.width : oldWidth;
params.height = params.height != null ? params.height : oldHeight;
params.projectionCenterX = params.projectionCenterX != null ?
params.projectionCenterX : oldProjectionCenterX;
params.projectionCenterY = params.projectionCenterY != null ?
params.projectionCenterY : oldProjectionCenterY;
// Apply view limiting when defined.
if (this._limiter) {
params = this._limiter(params);
if (!params) {
throw new Error('Bad view limiter');
}
}
// Normalize parameters.
params = this._normalize(params);
// Grab the limited parameters.
var newYaw = params.yaw;
var newPitch = params.pitch;
var newRoll = params.roll;
var newFov = params.fov;
var newWidth = params.width;
var newHeight = params.height;
var newProjectionCenterX = params.projectionCenterX;
var newProjectionCenterY = params.projectionCenterY;
// Consistency check.
if (!real(newYaw) || !real(newPitch) || !real(newRoll) ||
!real(newFov) || !real(newWidth) || !real(newHeight) ||
!real(newProjectionCenterX) || !real(newProjectionCenterY)) {
throw new Error('Bad view - suspect a broken limiter');
}
// Update parameters.
this._yaw = newYaw;
this._pitch = newPitch;
this._roll = newRoll;
this._fov = newFov;
this._width = newWidth;
this._height = newHeight;
this._projectionCenterX = newProjectionCenterX;
this._projectionCenterY = newProjectionCenterY;
// Check whether the parameters changed and emit the corresponding events.
if (newYaw !== oldYaw || newPitch !== oldPitch || newRoll !== oldRoll ||
newFov !== oldFov || newWidth !== oldWidth || newHeight !== oldHeight ||
newProjectionCenterX !== oldProjectionCenterX ||
newProjectionCenterY !== oldProjectionCenterY) {
this._projectionChanged = true;
this.emit('change');
}
if (newWidth !== oldWidth || newHeight !== oldHeight) {
this.emit('resize');
}
};
RectilinearView.prototype._normalize = function(params) {
this._normalizeCoordinates(params);
// Make sure that neither the horizontal nor the vertical fields of view
// exceed π - fovLimitEpsilon.
var hfovPi = convertFov.htov(Math.PI, params.width, params.height);
var maxFov = isNaN(hfovPi) ? Math.PI : Math.min(Math.PI, hfovPi);
params.fov = clamp(params.fov, fovLimitEpsilon, maxFov - fovLimitEpsilon);
return params;
};
RectilinearView.prototype._normalizeCoordinates = function(params) {
// Constrain yaw, pitch and roll to the [-π, π] interval.
if ('yaw' in params) {
params.yaw = mod(params.yaw - Math.PI, -2*Math.PI) + Math.PI;
}
if ('pitch' in params) {
params.pitch = mod(params.pitch - Math.PI, -2*Math.PI) + Math.PI;
}
if ('roll' in params) {
params.roll = mod(params.roll - Math.PI, -2*Math.PI) + Math.PI;
}
return params;
};
/**
* Normalize view coordinates so that they are the closest to the current view.
* Useful for tweening the view through the shortest path. If a result argument
* is supplied, it is filled in with the result and returned. Otherwise, a fresh
* object is filled in and returned.
*
* @param {RectilinearViewCoords} coords The view coordinates.
* @param {RectilinearViewCoords} result The result argument for the normalized
* view coordinates.
*/
RectilinearView.prototype.normalizeToClosest = function(coords, result) {
var viewYaw = this._yaw;
var viewPitch = this._pitch;
var coordYaw = coords.yaw;
var coordPitch = coords.pitch;
// Check if the yaw is closer after subtracting or adding a full circle.
var prevYaw = coordYaw - 2*Math.PI;
var nextYaw = coordYaw + 2*Math.PI;
if (Math.abs(prevYaw - viewYaw) < Math.abs(coordYaw - viewYaw)) {
coordYaw = prevYaw;
}
else if (Math.abs(nextYaw - viewYaw) < Math.abs(coordYaw - viewYaw)) {
coordYaw = nextYaw;
}
// Check if the pitch is closer after subtracting or adding a full circle.
var prevPitch = coordPitch - 2*Math.PI;
var nextPitch = coordPitch + 2*Math.PI;
if (Math.abs(prevPitch - viewPitch) < Math.abs(coordPitch - viewPitch)) {
coordPitch = prevPitch;
}
else if (Math.abs(prevPitch - viewPitch) < Math.abs(coordPitch - viewPitch)) {
coordPitch = nextPitch;
}
result = result || {};
result.yaw = coordYaw;
result.pitch = coordPitch;
return result;
};
RectilinearView.prototype.updateWithControlParameters = function(parameters) {
// axisScaledX and axisScaledY are scaled according to their own axis
// x and y are scaled by the same value
// If the viewport dimensions are zero, assume a square viewport
// when converting from hfov to vfov.
var vfov = this._fov;
var hfov = convertFov.vtoh(vfov, this._width, this._height);
if (isNaN(hfov)) {
hfov = vfov;
}
// TODO: revisit this after we rethink the control parameters.
this.offsetYaw(parameters.axisScaledX * hfov + parameters.x * 2 * hfov + parameters.yaw);
this.offsetPitch(parameters.axisScaledY * vfov + parameters.y * 2 * hfov + parameters.pitch);
this.offsetRoll(-parameters.roll);
this.offsetFov(parameters.zoom * vfov);
};
/**
* Compute and return the projection matrix for the current view.
* @returns {mat4}
*/
RectilinearView.prototype.projection = function() {
var p = this._projectionMatrix;
var f = this._viewFrustum;
if (this._projectionChanged) {
// Recalculate the projection matrix.
var width = this._width;
var height = this._height;
var vfov = this._fov;
var hfov = convertFov.vtoh(vfov, width, height);
var aspect = width / height;
var projectionCenterX = this._projectionCenterX;
var projectionCenterY = this._projectionCenterY;
if (projectionCenterX !== 0 || projectionCenterY !== 0) {
var offsetAngleX = Math.atan(projectionCenterX * 2 * Math.tan(hfov/2));
var offsetAngleY = Math.atan(projectionCenterY * 2 * Math.tan(vfov/2));
var fovs = this._fovs;
fovs.leftDegrees = (hfov/2 + offsetAngleX) * 180/Math.PI;
fovs.rightDegrees = (hfov/2 - offsetAngleX) * 180/Math.PI;
fovs.upDegrees = (vfov/2 + offsetAngleY) * 180/Math.PI;
fovs.downDegrees = (vfov/2 - offsetAngleY) * 180/Math.PI;
mat4.perspectiveFromFieldOfView(p, fovs, -1, 1);
} else {
mat4.perspective(p, vfov, aspect, -1, 1);
}
mat4.rotateZ(p, p, this._roll);
mat4.rotateX(p, p, this._pitch);
mat4.rotateY(p, p, this._yaw);
// Extract frustum planes from projection matrix.
// http://www8.cs.umu.se/kurser/5DV051/HT12/lab/plane_extraction.pdf
vec4.set(f[0], p[3] + p[0], p[7] + p[4], p[11] + p[8], 0); // left
vec4.set(f[1], p[3] - p[0], p[7] - p[4], p[11] - p[8], 0); // right
vec4.set(f[2], p[3] + p[1], p[7] + p[5], p[11] + p[9], 0); // top
vec4.set(f[3], p[3] - p[1], p[7] - p[5], p[11] - p[9], 0); // bottom
vec4.set(f[4], p[3] + p[2], p[7] + p[6], p[11] + p[10], 0); // camera
this._projectionChanged = false;
}
return p;
};
/**
* Return whether the view frustum intersects the given rectangle.
*
* This function may return false positives, but never false negatives.
* It is used for frustum culling, i.e., excluding invisible tiles from the
* rendering process.
*
* @param {vec2[]} rectangle The vertices of the rectangle.
*/
RectilinearView.prototype.intersects = function(rectangle) {
var planes = this._viewFrustum;
var vertex = this._tmpVec;
// Call projection() for the side effect of updating the view frustum.
this.projection();
// Check whether the rectangle is on the outer side of any of the frustum
// planes. This is a sufficient condition, though not necessary, for the
// rectangle to be completely outside the frustum.
for (var i = 0; i < planes.length; i++) {
var plane = planes[i];
var inside = false;
for (var j = 0; j < rectangle.length; j++) {
var corner = rectangle[j];
vec4.set(vertex, corner[0], corner[1], corner[2], 0);
if (vec4.dot(plane, vertex) >= 0) {
inside = true;
}
}
if (!inside) {
return false;
}
}
return true;
};
/**
* Select the level that should be used to render the view.
* @param {Level[]} levelList the list of levels from which to select.
* @return {Level} the selected level.
*/
RectilinearView.prototype.selectLevel = function(levelList) {
// Multiply the viewport width by the device pixel ratio to get the required
// horizontal resolution in pixels.
//
// Calculate the fraction of a cube face that would be visible given the
// current vertical field of view. Then, for each level, multiply by the
// level height to get the height in pixels of the portion that would be
// visible.
//
// Search for the smallest level that satifies the the required height,
// falling back on the largest level if none do.
var requiredPixels = pixelRatio() * this._height;
var coverFactor = Math.tan(0.5 * this._fov);
for (var i = 0; i < levelList.length; i++) {
var level = levelList[i];
if (coverFactor * level.height() >= requiredPixels) {
return level;
}
}
return levelList[levelList.length - 1];
};
/**
* Convert view parameters into screen position. If a result argument is
* provided, it is filled in and returned. Otherwise, a fresh object is filled
* in and returned.
*
* @param {RectilinearViewCoords} coords The view coordinates.
* @param {Coords=} result The result argument for the screen coordinates.
* @return {Coords}
*/
RectilinearView.prototype.coordinatesToScreen = function(coords, result) {
var ray = this._tmpVec;
if (!result) {
result = {};
}
var width = this._width;
var height = this._height;
// Undefined on a null viewport.
if (width <= 0 || height <= 0) {
result.x = null;
result.y = null;
return null;
}
// Compute view ray pointing into the (yaw, pitch) direction.
var yaw = coords.yaw;
var pitch = coords.pitch;
var x = Math.sin(yaw) * Math.cos(pitch);
var y = -Math.sin(coords.pitch);
var z = -Math.cos(yaw) * Math.cos(pitch);
vec4.set(ray, x, y, z, 1);
// Project view ray onto clip space.
vec4.transformMat4(ray, ray, this.projection());
// w in clip space equals -z in camera space.
if (ray[3] >= 0) {
// Point is in front of camera.
// Convert to viewport coordinates.
result.x = width * (ray[0] / ray[3] + 1) / 2;
result.y = height * (1 - ray[1] / ray[3]) / 2;
} else {
// Point is behind camera.
result.x = null;
result.y = null;
return null;
}
return result;
};
/**
* Convert screen coordinates into view coordinates. If a result argument is
* provided, it is filled in with the result and returned. Otherwise, a fresh
* object is filled in and returned.
*
* @param {Coords} coords The screen coordinates.
* @param {RectilinearViewCoords=} result The view coordinates.
* @return {RectilinearViewCoords}
*/
RectilinearView.prototype.screenToCoordinates = function(coords, result) {
var ray = this._tmpVec;
var invProj = this._tmpMat;
if (!result) {
result = {};
}
var width = this._width;
var height = this._height;
// Calculate the inverse projection matrix.
// TODO: cache result?
mat4.invert(invProj, this.projection());
// Convert viewport coordinates to clip space.
var vecx = 2.0 * coords.x / width - 1.0;
var vecy = 1.0 - 2.0 * coords.y / height;
vec4.set(ray, vecx, vecy, 1, 1);
// Project back to world space.
vec4.transformMat4(ray, ray, invProj);
// Convert to spherical coordinates.
var r = Math.sqrt(ray[0] * ray[0] + ray[1] * ray[1] + ray[2] * ray[2]);
result.yaw = Math.atan2(ray[0], -ray[2]);
result.pitch = Math.acos(ray[1] / r) - Math.PI/2;
this._normalizeCoordinates(result);
return result;
};
/**
* Calculate the perspective transform required to position an element with
* perspective.
*
* @param {RectilinearViewCoords} coords The view coordinates.
* @param {number} radius Radius of the sphere embedding the element.
* @param {string} extraTransforms Extra transformations to be applied after
* the element is positioned. This may be used to rotate the element.
* @return {string} The CSS 3D transform to be applied to the element.
*/
RectilinearView.prototype.coordinatesToPerspectiveTransform = function(
coords, radius, extraTransforms) {
extraTransforms = extraTransforms || "";
var height = this._height;
var width = this._width;
var fov = this._fov;
var perspective = 0.5 * height / Math.tan(fov / 2);
var transform = '';
// Center hotspot in screen.
transform += 'translateX(' + decimal(width/2) + 'px) ';
transform += 'translateY(' + decimal(height/2) + 'px) ';
transform += 'translateX(-50%) translateY(-50%) ';
// Set the perspective depth.
transform += 'perspective(' + decimal(perspective) + 'px) ';
transform += 'translateZ(' + decimal(perspective) + 'px) ';
// Set the camera rotation.
transform += 'rotateZ(' + decimal(-this._roll) + 'rad) ';
transform += 'rotateX(' + decimal(-this._pitch) + 'rad) ';
transform += 'rotateY(' + decimal(this._yaw) + 'rad) ';
// Set the hotspot rotation.
transform += 'rotateY(' + decimal(-coords.yaw) + 'rad) ';
transform += 'rotateX(' + decimal(coords.pitch) + 'rad) ';
// Move back to sphere.
transform += 'translateZ(' + decimal(-radius) + 'px) ';
// Apply the extra transformations
transform += extraTransforms + ' ';
return transform;
};
/**
* Factory functions for view limiters. See {@link RectilinearViewLimiter}.
* @namespace
*/
RectilinearView.limit = {
/**
* Returns a view limiter that constrains the yaw angle.
* @param {number} min The minimum yaw value.
* @param {number} max The maximum yaw value.
* @return {RectilinearViewLimiter}
*/
yaw: function(min, max) {
return function limitYaw(params) {
params.yaw = clamp(params.yaw, min, max);
return params;
};
},
/**
* Returns a view limiter that constrains the pitch angle.
* @param {number} min The minimum pitch value.
* @param {number} max The maximum pitch value.
* @return {RectilinearViewLimiter}
*/
pitch: function(min, max) {
return function limitPitch(params) {
params.pitch = clamp(params.pitch, min, max);
return params;
};
},
/**
* Returns a view limiter that constrains the roll angle.
* @param {number} min The minimum roll value.
* @param {number} max The maximum roll value.
* @return {RectilinearViewLimiter}
*/
roll: function(min, max) {
return function limitRoll(params) {
params.roll = clamp(params.roll, min, max);
return params;
};
},
/**
* Returns a view limiter that constrains the horizontal field of view.
* @param {number} min The minimum horizontal field of view.
* @param {number} max The maximum horizontal field of view.
* @return {RectilinearViewLimiter}
*/
hfov: function(min, max) {
return function limitHfov(params) {
var width = params.width;
var height = params.height;
if (width > 0 && height > 0) {
var vmin = convertFov.htov(min, width, height);
var vmax = convertFov.htov(max, width, height);
params.fov = clamp(params.fov, vmin, vmax);
}
return params;
};
},
/**
* Returns a view limiter that constrains the vertical field of view.
* @param {number} min The minimum vertical field of view.
* @param {number} max The maximum vertical field of view.
* @return {RectilinearViewLimiter}
*/
vfov: function(min, max) {
return function limitVfov(params) {
params.fov = clamp(params.fov, min, max);
return params;
};
},
/**
* Returns a view limiter that prevents zooming in beyond the given
* resolution.
* @param {number} size The cube face width in pixels or, equivalently, one
* fourth of the equirectangular width in pixels.
* @return {RectilinearViewLimiter}
*/
resolution: function(size) {
return function limitResolution(params) {
var height = params.height;
if (height) {
var requiredPixels = pixelRatio() * height;
var minFov = 2 * Math.atan(requiredPixels / size);
params.fov = clamp(params.fov, minFov, Infinity);
}
return params;
};
},
/**
* Returns a view limiter that limits the horizontal and vertical field of
* view, prevents zooming in past the image resolution, and limits the pitch
* range to prevent the camera wrapping around at the poles. These are the
* most common view constraints for a 360° panorama.
* @param {number} maxResolution The cube face width in pixels or,
* equivalently, one fourth of the equirectangular width in pixels.
* @param {number} maxVFov The maximum vertical field of view.
* @param {number} [maxHFov=maxVFov] The maximum horizontal field of view.
* @return {RectilinearViewLimiter}
*/
traditional: function(maxResolution, maxVFov, maxHFov) {
maxHFov = maxHFov != null ? maxHFov : maxVFov;
return compose(
RectilinearView.limit.resolution(maxResolution),
RectilinearView.limit.vfov(0, maxVFov),
RectilinearView.limit.hfov(0, maxHFov),
RectilinearView.limit.pitch(-Math.PI/2, Math.PI/2));
}
};
RectilinearView.type = RectilinearView.prototype.type = 'rectilinear';
module.exports = RectilinearView;
|
// Copyright 2019 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script_Extensions=Bhaiksuki`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.1.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
---*/
const matchSymbols = buildString({
loneCodePoints: [],
ranges: [
[0x011C00, 0x011C08],
[0x011C0A, 0x011C36],
[0x011C38, 0x011C45],
[0x011C50, 0x011C6C]
]
});
testPropertyEscapes(
/^\p{Script_Extensions=Bhaiksuki}+$/u,
matchSymbols,
"\\p{Script_Extensions=Bhaiksuki}"
);
testPropertyEscapes(
/^\p{Script_Extensions=Bhks}+$/u,
matchSymbols,
"\\p{Script_Extensions=Bhks}"
);
testPropertyEscapes(
/^\p{scx=Bhaiksuki}+$/u,
matchSymbols,
"\\p{scx=Bhaiksuki}"
);
testPropertyEscapes(
/^\p{scx=Bhks}+$/u,
matchSymbols,
"\\p{scx=Bhks}"
);
const nonMatchSymbols = buildString({
loneCodePoints: [
0x011C09,
0x011C37
],
ranges: [
[0x00DC00, 0x00DFFF],
[0x000000, 0x00DBFF],
[0x00E000, 0x011BFF],
[0x011C46, 0x011C4F],
[0x011C6D, 0x10FFFF]
]
});
testPropertyEscapes(
/^\P{Script_Extensions=Bhaiksuki}+$/u,
nonMatchSymbols,
"\\P{Script_Extensions=Bhaiksuki}"
);
testPropertyEscapes(
/^\P{Script_Extensions=Bhks}+$/u,
nonMatchSymbols,
"\\P{Script_Extensions=Bhks}"
);
testPropertyEscapes(
/^\P{scx=Bhaiksuki}+$/u,
nonMatchSymbols,
"\\P{scx=Bhaiksuki}"
);
testPropertyEscapes(
/^\P{scx=Bhks}+$/u,
nonMatchSymbols,
"\\P{scx=Bhks}"
);
|
// 一个栈和一个 steque 实现的双向队列。使用一个栈和一个 steque 实现一个双向队列(请见练习 1.3.32),使得双向队列的每个操作所需的栈和 steque 操作均摊后为一个常数。
const Stack = require('../../LinkedStack');
class Steque {
constructor() {
this.leftStack = new Stack();
this.rightStack = new Stack();
this.size = 0;
}
_rightToLeft() {
while (!this.rightStack.isEmpty()) {
this.leftStack.push(this.rightStack.pop());
}
}
_leftToRight() {
while (!this.leftStack.isEmpty()) {
this.rightStack.push(this.leftStack.pop());
}
}
push(item) {
this._rightToLeft();
this.leftStack.push(item);
this.size++;
}
pop() {
this._rightToLeft();
this.size--;
return this.leftStack.pop();
}
enqueue(item) {
this._leftToRight();
this.size++;
return this.rightStack.push(item);
}
isEmpty() {
return this.size === 0;
}
}
// steque 作为队列的头部,stack 作为队列的尾部。
class Deque {
constructor() {
this.stack = new Stack();
this.steque = new Steque();
}
_stackToSteque() {
while (!this.stack.isEmpty()) {
this.steque.pop(this.stack.pop());
}
}
_stequeToStack() {
while (!this.steque.isEmpty()) {
this.stack.push(this.steque.pop());
}
}
pushLeft(item) {
this.steque.push(item);
}
pushRight(item) {
if (this.stack.isEmpty()) {
this.steque.enqueue(item);
} else {
this.stack.push(item);
}
}
popLeft() {
if (this.steque.isEmpty()) {
this._stackToSteque();
}
return this.steque.pop();
}
popRight() {
if (this.stack.isEmpty()) {
this._stequeToStack();
}
return this.stack.pop();
}
isEmpty() {
return this.stack.isEmpty() && this.steque.isEmpty();
}
}
const d = new Deque();
d.pushLeft(1)
d.pushLeft(2);
d.pushRight(3);
d.pushRight(4);
let s = d.popLeft();
s = d.popRight();
debugger
|
import subprocess
from typing import TYPE_CHECKING, Tuple
from linz_logger import get_log
from topo_processor.util.time import time_in_ms
if TYPE_CHECKING:
from .command import Command
class ExecutionLocal:
cmd: "Command"
@staticmethod
def run(cmd: "Command") -> Tuple[int, str, str]:
start_time = time_in_ms()
proc = subprocess.run(cmd.to_full_command(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if proc.returncode != 0:
get_log().trace("Ran command failed", command=cmd.redacted_command(), duration=time_in_ms() - start_time)
raise Exception(proc.stderr.decode())
get_log().trace("Ran command succeeded", command=cmd.redacted_command(), duration=time_in_ms() - start_time)
return proc.returncode, proc.stdout.decode(), proc.stderr.decode()
class ExecutionDocker:
cmd: "Command"
@staticmethod
def run(cmd: "Command") -> Tuple[int, str, str]:
return ExecutionLocal.run(cmd.to_docker())
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"https://unpkg.com/iview@1.0.0/dist/==typeof define&&define.amd?define("iview",["vue"],t):"object"==typeof exports?exports.iview=t(require("vue")):e.iview=t(e.Vue)}(this,function(e){return function(e){function t(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var i={};return t.m=e,t.c=i,t.p="/dist/",t(0)}([function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var s=i(21),o=n(s),r=i(14),a=n(r);i(308);var l=i(122),u=n(l),c=i(123),d=n(c),f=i(124),h=n(f),p=i(125),v=n(p),m=i(126),y=n(m),g=i(127),x=n(g),b=i(128),w=n(b),C=i(129),_=n(C),k=i(130),M=n(k),S=i(131),O=n(S),P=i(132),D=n(P),$=i(133),T=n($),j=i(134),E=n(j),F=i(137),N=n(F),I=i(138),A=n(I),B=i(13),H=n(B),L=i(140),z=n(L),V=i(139),R=n(V),q=i(142),W=n(q),Y=i(144),K=n(Y),U=i(145),G=n(U),J=i(147),X=n(J),Z=i(148),Q=n(Z),ee=i(149),te=n(ee),ie=i(150),ne=n(ie),se=i(151),oe=n(se),re=i(152),ae=n(re),le=i(153),ue=n(le),ce=i(155),de=n(ce),fe=i(156),he=n(fe),pe=i(157),ve=n(pe),me=i(158),ye=n(me),ge=i(160),xe=n(ge),be=i(161),we=n(be),Ce=i(162),_e=n(Ce),ke=i(164),Me=n(ke),Se=i(163),Oe=n(Se),Pe=i(165),De=n(Pe),$e=i(166),Te=n($e),je=i(167),Ee=n(je),Fe=i(169),Ne=n(Fe),Ie=i(141),Ae=i(154),Be=i(9),He=n(Be),Le={Affix:u["default"],Alert:d["default"],BackTop:h["default"],Badge:v["default"],Breadcrumb:y["default"],BreadcrumbItem:y["default"].Item,iButton:x["default"],ButtonGroup:x["default"].Group,Card:w["default"],Carousel:_["default"],CarouselItem:_["default"].Item,Cascader:M["default"],Checkbox:O["default"],CheckboxGroup:O["default"].Group,Circle:D["default"],DatePicker:E["default"],Dropdown:N["default"],DropdownItem:N["default"].Item,DropdownMenu:N["default"].Menu,iForm:A["default"],FormItem:A["default"].Item,iCol:Ie.Col,Collapse:T["default"],Icon:H["default"],iInput:z["default"],InputNumber:R["default"],LoadingBar:W["default"],Menu:K["default"],MenuGroup:K["default"].Group,MenuItem:K["default"].Item,Submenu:K["default"].Sub,Message:G["default"],Modal:X["default"],Notice:Q["default"],iOption:Ae.Option,OptionGroup:Ae.OptionGroup,Page:te["default"],Panel:T["default"].Panel,Poptip:ne["default"],Progress:oe["default"],Radio:ae["default"],RadioGroup:ae["default"].Group,Rate:ue["default"],Row:Ie.Row,iSelect:Ae.Select,Slider:de["default"],Spin:he["default"],Step:ve["default"].Step,Steps:ve["default"],Switch:ye["default"],iTable:xe["default"],Tabs:we["default"],TabPane:we["default"].Pane,Tag:_e["default"],Timeline:Me["default"],TimelineItem:Me["default"].Item,TimePicker:Oe["default"],Tooltip:De["default"],Transfer:Te["default"],Tree:Ee["default"],Upload:Ne["default"]},ze=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];He["default"].use(t.locale),He["default"].i18n(t.i18n),(0,a["default"])(Le).forEach(function(t){e.component(t,Le[t])}),e.prototype.$Loading=W["default"],e.prototype.$Message=G["default"],e.prototype.$Modal=X["default"],e.prototype.$Notice=Q["default"]};"undefined"!=typeof window&&window.Vue&&ze(window.Vue),e.exports=(0,o["default"])(Le,{install:ze})},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var s=i(257),o=n(s);t["default"]=function(e,t,i){return t in e?(0,o["default"])(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},function(e,t){"use strict";function i(e,t){for(var i=0;i<t.length;i++)if(e===t[i])return!0;return!1}function n(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function s(e){if(e||void 0===f){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var i=document.createElement("div"),n=i.style;n.position="absolute",n.top=0,n.left=0,n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",i.appendChild(t),document.body.appendChild(i);var s=t.offsetWidth;i.style.overflow="scroll";var o=t.offsetWidth;s===o&&(o=i.clientWidth),document.body.removeChild(i),f=s-o}return f}function o(e){return e.replace(h,function(e,t,i,n){return n?i.toUpperCase():i}).replace(p,"Moz$1")}function r(e,t){if(!e||!t)return null;t=o(t),"float"===t&&(t="cssFloat");try{var i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch(n){return e.style[t]}}function a(e){return e.toString()[0].toUpperCase()+e.toString().slice(1)}function l(e,t,i,n){i=a(i),n=a(n),console.error("[iView warn]: Invalid prop: type check failed for prop "+t+". Expected "+i+", got "+n+". (found in component: "+e+")")}function u(e){var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return i[t.call(e)]}function c(e){var t=u(e),i=void 0;if("array"===t)i=[];else{if("object"!==t)return e;i={}}if("array"===t)for(var n=0;n<e.length;n++)i.push(c(e[n]));else if("object"===t)for(var s in e)i[s]=c(e[s]);return i}function d(e){function t(i,n,s){if(i!==n){var o=i+s>n?n:i+s;i>n&&(o=i-s<n?n:i-s),e===window?window.scrollTo(o,o):e.scrollTop=o,window.requestAnimationFrame(function(){return t(o,n,s)})}}var i=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments[2],s=arguments.length<=3||void 0===arguments[3]?500:arguments[3];window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)});var o=Math.abs(i-n),r=Math.ceil(o/s*50);t(i,n,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.oneOf=i,t.camelcaseToHyphen=n,t.getScrollBarSize=s,t.getStyle=r,t.warnProp=l,t.scrollTop=d;var f=void 0,h=(t.MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver||!1,/([\:\-\_]+(.))/g),p=/^moz([A-Z])/;t.firstUpperCase=a,t.deepCopy=c},function(e,t,i){"use strict";function n(e,t){t.every(function(e){return"string"==typeof e})&&y(e,t)}function s(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=1,s=t[0],o=t.length;if("function"==typeof s)return s.apply(null,t.slice(1));if("string"==typeof s){for(var r=String(s).replace(m,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(i){return"[Circular]"}break;default:return e}}),a=t[n];n<o;a=t[++n])r+=" "+a;return r}return s}function o(e){return"string"===e||"url"===e||"hex"===e||"email"===e}function r(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!o(t)||"string"!=typeof e||e))}function a(e){return 0===Object.keys(e).length}function l(e,t,i){function n(e){s.push.apply(s,e),o++,o===r&&i(s)}var s=[],o=0,r=e.length;e.forEach(function(e){t(e,n)})}function u(e,t,i){function n(r){if(r&&r.length)return void i(r);var a=s;s+=1,a<o?t(e[a],n):i([])}var s=0,o=e.length;n([])}function c(e){var t=[];return Object.keys(e).forEach(function(i){t.push.apply(t,e[i])}),t}function d(e,t,i,n){if(t.first){var s=c(e);return u(s,i,n)}var o=t.firstFields||[];o===!0&&(o=Object.keys(e));var r=Object.keys(e),a=r.length,d=0,f=[],h=function(e){f.push.apply(f,e),d++,d===a&&n(f)};r.forEach(function(t){var n=e[t];o.indexOf(t)!==-1?u(n,i,h):l(n,i,h)})}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function h(e,t){if(t)for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];"object"===("undefined"==typeof n?"undefined":v(n))&&"object"===v(e[i])?e[i]=p({},e[i],n):e[i]=n}return e}Object.defineProperty(t,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.warning=n,t.format=s,t.isEmptyValue=r,t.isEmptyObject=a,t.asyncMap=d,t.complementError=f,t.deepMerge=h;var m=/%[sdj%]/g,y=function(){}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={required:i(60),whitespace:i(107),type:i(106),range:i(105),"enum":i(103),pattern:i(104)},e.exports=t["default"]},function(e,t){var i=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n,s;n=i(211),s=i(368),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(9);t["default"]={methods:{t:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.t.apply(this,t)}}}},function(e,t,i){var n=i(51)("wks"),s=i(37),o=i(10).Symbol,r="function"==typeof o,a=e.exports=function(e){return n[e]||(n[e]=r&&o[e]||(r?o:s)("Symbol."+e))};a.store=n},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.use=t.t=void 0;var s=i(259),o=n(s),r=i(171),a=n(r),l=i(33),u=n(l),c=i(331),d=n(c),f=i(170),h=n(f),p=(0,h["default"])(u["default"]),v=a["default"],m=!1,y=function(){var e=(0,o["default"])(this||u["default"]).$t;if("function"==typeof e)return m||(m=!0,u["default"].locale(u["default"].config.lang,(0,d["default"])(v,u["default"].locale(u["default"].config.lang)||{},{clone:!0}))),e.apply(this,arguments)},g=t.t=function(e,t){var i=y.apply(this,arguments);if(null!==i&&void 0!==i)return i;for(var n=e.split("."),s=v,o=0,r=n.length;o<r;o++){var a=n[o];if(i=s[a],o===r-1)return p(i,t);if(!i)return"";s=i}return""},x=t.use=function(e){v=e||v},b=t.i18n=function(e){y=e||y};t["default"]={use:x,t:g,i18n:b}},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){var n=i(22),s=i(70),o=i(53),r=Object.defineProperty;t.f=i(15)?Object.defineProperty:function(e,t,i){if(n(e),t=o(t,!0),n(i),s)try{return r(e,t,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(71),s=i(45);e.exports=function(e){return n(s(e))}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(6),o=n(s);t["default"]=o["default"]},function(e,t,i){e.exports={"default":i(271),__esModule:!0}},function(e,t,i){e.exports=!i(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(10),s=i(5),o=i(68),r=i(24),a="prototype",l=function(e,t,i){var u,c,d,f=e&l.F,h=e&l.G,p=e&l.S,v=e&l.P,m=e&l.B,y=e&l.W,g=h?s:s[t]||(s[t]={}),x=g[a],b=h?n:p?n[t]:(n[t]||{})[a];h&&(i=t);for(u in i)c=!f&&b&&void 0!==b[u],c&&u in g||(d=c?b[u]:i[u],g[u]=h&&"function"!=typeof b[u]?i[u]:m&&c?o(d,n):y&&b[u]==d?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t[a]=e[a],t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((g.virtual||(g.virtual={}))[u]=d,e&l.R&&x&&!x[u]&&r(x,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(76),s=i(46);e.exports=Object.keys||function(e){return n(e,s)}},function(e,t,i){var n,s;n=i(184),s=i(341),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.initTimeDate=t.nextMonth=t.prevMonth=t.getFirstDayOfMonth=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.toDate=void 0;var s=i(174),o=n(s),r=t.toDate=function(e){return e=new Date(e),isNaN(e.getTime())?null:e},a=(t.formatDate=function(e,t){return e=r(e),e?o["default"].format(e,t||"yyyy-MM-dd"):""},t.parseDate=function(e,t){return o["default"].parse(e,t||"yyyy-MM-dd")},t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31});t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevMonth=function(e){var t=e.getFullYear(),i=e.getMonth(),n=e.getDate(),s=0===i?t-1:t,o=0===i?11:i-1,r=a(s,o);return r<n&&e.setDate(r),e.setMonth(o),e.setFullYear(s),new Date(e.getTime())},t.nextMonth=function(e){var t=e.getFullYear(),i=e.getMonth(),n=e.getDate(),s=11===i?t+1:t,o=11===i?0:i+1,r=a(s,o);return r<n&&e.setDate(r),e.setMonth(o),e.setFullYear(s),new Date(e.getTime())},t.initTimeDate=function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}},function(e,t,i){e.exports={"default":i(267),__esModule:!0}},function(e,t,i){var n=i(36);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,i){var n=i(11),s=i(28);e.exports=i(15)?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t){e.exports={}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={bind:function(){var e=this;this.documentHandler=function(t){return!e.el.contains(t.target)&&void(e.expression&&e.vm[e.expression]())},document.addEventListener("click",this.documentHandler)},update:function(){},unbind:function(){document.removeEventListener("click",this.documentHandler)}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(45);e.exports=function(e){return Object(n(e))}},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){var n,s;n=i(192),s=i(349),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(229),s=i(386),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(t,i){t.exports=e},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-picker-panel",n="ivu-date-picker";t["default"]={methods:{iconBtnCls:function(e){var t=arguments.length<=1||void 0===arguments[1]?"":arguments[1];return[i+"-icon-btn",n+"-"+e+"-btn",n+"-"+e+"-btn-arrow"+t]},handleShortcutClick:function(e){e.value&&this.$emit("on-pick",e.value()),e.onClick&&e.onClick(this)},handlePickClear:function(){this.$emit("on-pick-clear")},handlePickSuccess:function(){this.$emit("on-pick-success")},handlePickClick:function(){this.$emit("on-pick-click")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var s=i(261),o=n(s),r=i(260),a=n(r),l="function"==typeof a["default"]&&"symbol"==typeof o["default"]?function(e){return typeof e}:function(e){return e&&"function"==typeof a["default"]&&e.constructor===a["default"]?"symbol":typeof e};t["default"]="function"==typeof a["default"]&&"symbol"===l(o["default"])?function(e){return"undefined"==typeof e?"undefined":l(e)}:function(e){return e&&"function"==typeof a["default"]&&e.constructor===a["default"]?"symbol":"undefined"==typeof e?"undefined":l(e)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){"use strict";var n=i(293)(!0);i(72)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=n(t,i),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){var n,s;n=i(196),s=i(353),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(213),s=i(370),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=e.type,l=[],u=e.required||!e.required&&n.hasOwnProperty(e.field);if(u){if((0,a.isEmptyValue)(t,o)&&!e.required)return i();r["default"].required(e,t,n,l,s,o),(0,a.isEmptyValue)(t,o)||r["default"].type(e,t,n,l,s)}i(l)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var s=i(255),o=n(s);t["default"]=function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return(0,o["default"])(e)}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,i){var n=i(11).f,s=i(17),o=i(8)("toStringTag");e.exports=function(e,t,i){e&&!s(e=i?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,i){var n=i(51)("keys"),s=i(37);e.exports=function(e){return n[e]||(n[e]=s(e))}},function(e,t,i){var n=i(10),s="__core-js_shared__",o=n[s]||(n[s]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(36);e.exports=function(e,t){if(!n(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!n(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){var n=i(10),s=i(5),o=i(47),r=i(55),a=i(11).f;e.exports=function(e){var t=s.Symbol||(s.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:r.f(e)})}},function(e,t,i){t.f=i(8)},function(e,t,i){i(298);for(var n=i(10),s=i(24),o=i(25),r=i(8)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=a[l],c=n[u],d=c&&c.prototype;d&&!d[r]&&s(d,r,u),o[u]=o.Array}},function(e,t){var i=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=i)},function(e,t,i){e.exports=!i(83)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(322),s=i(323);e.exports=i(58)?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function s(e,t,i,n,s,o){!e.required||i.hasOwnProperty(e.field)&&!r.isEmptyValue(t,o)||n.push(r.format(s.messages.required,e.fullField))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=n(o);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(14),o=n(s),r=i(417),a=n(r),l=i(33),u=n(l),c=i(2);a["default"].newInstance=function(e){var t=e||{},i="";(0,o["default"])(t).forEach(function(e){i+=" :"+(0,c.camelcaseToHyphen)(e)+"="+e});var n=document.createElement("div");n.innerHTML="<notification"+i+"></notification>",document.body.appendChild(n);var s=new u["default"]({el:n,data:t,components:{Notification:a["default"]}}).$children[0];return{notice:function(e){s.add(e)},remove:function(e){s.close(e)},component:s,destroy:function(){document.body.removeChild(n)}}},t["default"]=a["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(86),o=n(s);t["default"]={props:{placement:{type:String,"default":"bottom"},boundariesPadding:{type:Number,"default":5},reference:Object,popper:Object,offset:{"default":0},value:Boolean,transition:String,options:{type:Object,"default":function(){return{gpuAcceleration:!1,boundariesElement:"body"}}},visible:{type:Boolean,"default":!1}},watch:{value:{immediate:!0,handler:function(e){this.visible=e,this.$emit("input",e)}},visible:function(e){e?this.updatePopper():(this.destroyPopper(),this.$emit("on-popper-hide")),this.$emit("input",e)}},methods:{createPopper:function(){var e=this;if(/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var t=this.options,i=this.popper||this.$els.popper,n=this.reference||this.$els.reference;i&&n&&(this.popperJS&&this.popperJS.hasOwnProperty("destroy")&&this.popperJS.destroy(),t.placement=this.placement,t.offset=this.offset,this.popperJS=new o["default"](n,i,t),this.popperJS.onCreate(function(t){e.resetTransformOrigin(t),e.$nextTick(e.updatePopper),e.$emit("created",e)}))}},updatePopper:function(){this.popperJS?this.popperJS.update():this.createPopper()},doDestroy:function(){this.visible||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin(this.popperJS)},resetTransformOrigin:function(e){var t={top:"bottom",bottom:"top",left:"right",right:"left"},i=e._popper.getAttribute("x-placement").split("-")[0],n=t[i];e._popper.style.transformOrigin=["top","bottom"].indexOf(i)>-1?"center "+n:n+" center"}},beforeDestroy:function(){this.popperJS&&this.popperJS.destroy()}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={props:{disabledHours:{type:Array,"default":function(){return[]}},disabledMinutes:{type:Array,"default":function(){return[]}},disabledSeconds:{type:Array,"default":function(){return[]}},hideDisabledOptions:{type:Boolean,"default":!1}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s);t["default"]={methods:{alignCls:function(e){var t,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n="";return i.cellClassName&&e.key&&i.cellClassName[e.key]&&(n=i.cellClassName[e.key]),[(t={},(0,o["default"])(t,""+n,n),(0,o["default"])(t,""+e.className,e.className),(0,o["default"])(t,this.prefixCls+"-column-"+e.align,e.align),(0,o["default"])(t,this.prefixCls+"-hidden","left"===this.fixed&&"left"!==e.fixed||"right"===this.fixed&&"right"!==e.fixed||!this.fixed&&e.fixed&&("left"===e.fixed||"right"===e.fixed)),t)]},isPopperShow:function(e){return e.filters&&(!this.fixed&&!e.fixed||"left"===this.fixed&&"left"===e.fixed||"right"===this.fixed&&"right"===e.fixed)},setCellWidth:function(e,t,i){var n="";if(e.width?n=e.width:this.columnsWidth[e._index]&&(n=this.columnsWidth[e._index].width),this.columns.length===t+1&&i&&0!==this.$parent.bodyHeight&&(n+=this.$parent.scrollBarWidth),"right"===this.fixed){var s=this.columns.findIndex(function(e){return"right"===e.fixed});s===t&&(n+=this.$parent.scrollBarWidth)}return n}}}},function(e,t,i){e.exports={"default":i(264),__esModule:!0}},function(e,t,i){e.exports={"default":i(266),__esModule:!0}},function(e,t,i){var n=i(44),s=i(8)("toStringTag"),o="Arguments"==n(function(){return arguments}()),r=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=r(t=Object(e),s))?i:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,i){var n=i(274);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var n=i(36),s=i(10).document,o=n(s)&&n(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,i){e.exports=!i(15)&&!i(23)(function(){return 7!=Object.defineProperty(i(69)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,i){"use strict";var n=i(47),s=i(16),o=i(78),r=i(24),a=i(17),l=i(25),u=i(283),c=i(49),d=i(75),f=i(8)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",y=function(){return this};e.exports=function(e,t,i,g,x,b,w){u(i,t,g);var C,_,k,M=function(e){if(!h&&e in D)return D[e];switch(e){case v:return function(){return new i(this,e)};case m:return function(){return new i(this,e)}}return function(){return new i(this,e)}},S=t+" Iterator",O=x==m,P=!1,D=e.prototype,$=D[f]||D[p]||x&&D[x],T=$||M(x),j=x?O?M("entries"):T:void 0,E="Array"==t?D.entries||$:$;if(E&&(k=d(E.call(new e)),k!==Object.prototype&&(c(k,S,!0),n||a(k,f)||r(k,f,y))),O&&$&&$.name!==m&&(P=!0,T=function(){return $.call(this)}),n&&!w||!h&&!P&&D[f]||r(D,f,T),l[t]=T,l[S]=y,x)if(C={values:O?T:M(m),keys:b?T:M(v),entries:j},w)for(_ in C)_ in D||o(D,_,C[_]);else s(s.P+s.F*(h||P),t,C);return C}},function(e,t,i){var n=i(22),s=i(289),o=i(46),r=i(50)("IE_PROTO"),a=function(){},l="prototype",u=function(){var e,t=i(69)("iframe"),n=o.length,s="<",r=">";for(t.style.display="none",i(279).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(s+"script"+r+"document.F=Object"+s+"/script"+r),e.close(),u=e.F;n--;)delete u[l][o[n]];return u()};e.exports=Object.create||function(e,t){var i;return null!==e?(a[l]=n(e),i=new a,a[l]=null,i[r]=e):i=u(),void 0===t?i:s(i,t)}},function(e,t,i){var n=i(76),s=i(46).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},function(e,t,i){var n=i(17),s=i(29),o=i(50)("IE_PROTO"),r=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=s(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?r:null}},function(e,t,i){var n=i(17),s=i(12),o=i(276)(!1),r=i(50)("IE_PROTO");e.exports=function(e,t){var i,a=s(e),l=0,u=[];for(i in a)i!=r&&n(a,i)&&u.push(i);for(;t.length>l;)n(a,i=t[l++])&&(~o(u,i)||u.push(i));return u}},function(e,t,i){var n=i(16),s=i(5),o=i(23);e.exports=function(e,t){var i=(s.Object||{})[e]||Object[e],r={};r[e]=t(i),n(n.S+n.F*o(function(){i(1)}),"Object",r)}},function(e,t,i){e.exports=i(24)},function(e,t,i){var n=i(52),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},function(e,t,i){var n=i(67),s=i(8)("iterator"),o=i(25);e.exports=i(5).getIteratorMethod=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||o[n(e)]}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(309);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){var n=i(325)("wks"),s=i(84),o=i(30).Symbol,r="function"==typeof o,a=e.exports=function(e){return n[e]||(n[e]=r&&o[e]||(r?o:s)("Symbol."+e))};a.store=n},function(e,t,i){var n,s;!function(o,r){n=r,s="function"==typeof n?n.call(t,i,t,e):n,!(void 0!==s&&(e.exports=s))}(this,function(){"use strict";function e(e,t,i){this._reference=e.jquery?e[0]:e,this.state={onCreateCalled:!1};var n="undefined"==typeof t||null===t,s=t&&"[object Object]"===Object.prototype.toString.call(t);return n||s?this._popper=this.parse(s?t:{}):this._popper=t.jquery?t[0]:t,this._options=Object.assign({},y,i),this._options.modifiers=this._options.modifiers.map(function(e){if(this._options.modifiersIgnored.indexOf(e)===-1)return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),c(this._popper,{position:this.state.position}),this.state.isParentTransformed=this._getIsParentTransformed(this._popper),this.update(),this._setupEventListeners(),this}function t(e){var t=e.style.display,i=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var n=(e.offsetWidth,m.getComputedStyle(e)),s=parseFloat(n.marginTop)+parseFloat(n.marginBottom),o=parseFloat(n.marginLeft)+parseFloat(n.marginRight),r={width:e.offsetWidth+o,height:e.offsetHeight+s};return e.style.display=t,e.style.visibility=i,r}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function n(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function s(e,t){var i,n=0;for(i in e){if(e[i]===t)return n;n++}return null}function o(e,t){var i=m.getComputedStyle(e,null);return i[t]}function r(e){var t=e.offsetParent;return t!==m.document.body&&t?t:m.document.documentElement}function a(e){return e===m.document?m.document.body.scrollTop?m.document.body:m.document.documentElement:["scroll","auto"].indexOf(o(e,"overflow"))!==-1||["scroll","auto"].indexOf(o(e,"overflow-x"))!==-1||["scroll","auto"].indexOf(o(e,"overflow-y"))!==-1?e===m.document.body?a(e.parentNode):e:e.parentNode?a(e.parentNode):e}function l(e){return e!==m.document.body&&"HTML"!==e.nodeName&&("fixed"===o(e,"position")||(e.parentNode?l(e.parentNode):e))}function u(e){return e!==m.document.body&&("none"!==o(e,"transform")||(e.parentNode?u(e.parentNode):e))}function c(e,t){function i(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach(function(n){var s="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&i(t[n])&&(s="px"),e.style[n]=t[n]+s})}function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function f(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function h(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-t.top}}function p(e,t,i,n){var s=h(e),o=h(t);if(i&&!n){var r=a(t);o.top+=r.scrollTop,o.bottom+=r.scrollTop,o.left+=r.scrollLeft,o.right+=r.scrollLeft}var l={top:s.top-o.top,left:s.left-o.left,bottom:s.top-o.top+s.height,right:s.left-o.left+s.width,width:s.width,height:s.height};return l}function v(e){for(var t=["","ms","webkit","moz","o"],i=0;i<t.length;i++){var n=t[i]?t[i]+e.charAt(0).toUpperCase()+e.slice(1):e;if("undefined"!=typeof m.document.body.style[n])return n}return null}var m=window,y={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],
modifiersIgnored:[]};if(e.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[v("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.parentNode.removeChild(this._popper),this},e.prototype.update=function(){var e={instance:this,styles:{}};this.state.position=this._getPosition(this._popper,this._reference),c(this._popper,{position:this.state.position}),m.requestAnimationFrame(function(){var t=m.performance.now();t-this.state.lastFrame<=16||(this.state.lastFrame=t,e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),d(this.state.createCalback)||(this.state.onCreateCalled=!0),this.state.onCreateCalled?d(this.state.updateCallback)&&this.state.updateCallback(e):(this.state.onCreateCalled=!0,d(this.state.createCalback)&&this.state.createCalback(this)))}.bind(this))},e.prototype.onCreate=function(e){return this.state.createCalback=e,this},e.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},e.prototype.parse=function(e){function t(e,t){t.forEach(function(t){e.classList.add(t)})}function i(e,t){t.forEach(function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")})}var n={tagName:"div",classNames:["popper"],attributes:[],parent:m.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},n,e);var s=m.document,o=s.createElement(e.tagName);if(t(o,e.classNames),i(o,e.attributes),"node"===e.contentType?o.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?o.innerHTML=e.content:o.textContent=e.content,e.arrowTagName){var r=s.createElement(e.arrowTagName);t(r,e.arrowClassNames),i(r,e.arrowAttributes),o.appendChild(r)}var a=e.parent.jquery?e.parent[0]:e.parent;if("string"==typeof a){if(a=s.querySelectorAll(e.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(o),o},e.prototype._getPosition=function(e,t){var i=r(t),n=l(i);return n?"fixed":"absolute"},e.prototype._getIsParentTransformed=function(e){return u(e.parentNode)},e.prototype._getOffsets=function(e,i,n){n=n.split("-")[0];var s={};s.position=this.state.position;var o="fixed"===s.position,a=this.state.isParentTransformed,l=r(o&&a?i:e),u=p(i,l,o,a),c=t(e);return["right","left"].indexOf(n)!==-1?(s.top=u.top+u.height/2-c.height/2,"left"===n?s.left=u.left-c.width:s.left=u.right):(s.left=u.left+u.width/2-c.width/2,"top"===n?s.top=u.top-c.height:s.top=u.bottom),s.width=c.width,s.height=c.height,{popper:s,reference:u}},e.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),m.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=a(this._reference);e!==m.document.body&&e!==m.document.documentElement||(e=m),e.addEventListener("scroll",this.state.updateBound)}},e.prototype._removeEventListeners=function(){if(m.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=a(this._reference);e!==m.document.body&&e!==m.document.documentElement||(e=m),e.removeEventListener("scroll",this.state.updateBound)}this.state.updateBound=null},e.prototype._getBoundaries=function(e,t,i){var n,s,o={};if("window"===i){var l=m.document.body,u=m.document.documentElement;s=Math.max(l.scrollHeight,l.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),n=Math.max(l.scrollWidth,l.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),o={top:0,right:n,bottom:s,left:0}}else if("viewport"===i){var c=r(this._popper),d=a(this._popper),h=f(c),p="fixed"===e.offsets.popper.position?0:d.scrollTop,v="fixed"===e.offsets.popper.position?0:d.scrollLeft;o={top:0-(h.top-p),right:m.document.documentElement.clientWidth-(h.left-v),bottom:m.document.documentElement.clientHeight-(h.top-p),left:0-(h.left-v)}}else o=r(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:f(i);return o.left+=t,o.right-=t,o.top=o.top+t,o.bottom=o.bottom-t,o},e.prototype.runModifiers=function(e,t,i){var n=t.slice();return void 0!==i&&(n=this._options.modifiers.slice(0,s(this._options.modifiers,i))),n.forEach(function(t){d(t)&&(e=t.call(this,e))}.bind(this)),e},e.prototype.isModifierRequired=function(e,t){var i=s(this._options.modifiers,e);return!!this._options.modifiers.slice(0,i).filter(function(e){return e===t}).length},e.prototype.modifiers={},e.prototype.modifiers.applyStyle=function(e){var t,i={position:e.offsets.popper.position},n=Math.round(e.offsets.popper.left),s=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=v("transform"))?(i[t]="translate3d("+n+"px, "+s+"px, 0)",i.top=0,i.left=0):(i.left=n,i.top=s),Object.assign(i,e.styles),c(this._popper,i),this._popper.setAttribute("x-placement",e.placement),e.offsets.arrow&&c(e.arrowElement,e.offsets.arrow),e},e.prototype.modifiers.shift=function(e){var t=e.placement,i=t.split("-")[0],s=t.split("-")[1];if(s){var o=e.offsets.reference,r=n(e.offsets.popper),a={y:{start:{top:o.top},end:{top:o.top+o.height-r.height}},x:{start:{left:o.left},end:{left:o.left+o.width-r.width}}},l=["bottom","top"].indexOf(i)!==-1?"x":"y";e.offsets.popper=Object.assign(r,a[l][s])}return e},e.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,i=n(e.offsets.popper),s={left:function(){var t=i.left;return i.left<e.boundaries.left&&(t=Math.max(i.left,e.boundaries.left)),{left:t}},right:function(){var t=i.left;return i.right>e.boundaries.right&&(t=Math.min(i.left,e.boundaries.right-i.width)),{left:t}},top:function(){var t=i.top;return i.top<e.boundaries.top&&(t=Math.max(i.top,e.boundaries.top)),{top:t}},bottom:function(){var t=i.top;return i.bottom>e.boundaries.bottom&&(t=Math.min(i.top,e.boundaries.bottom-i.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(i,s[t]())}),e},e.prototype.modifiers.keepTogether=function(e){var t=n(e.offsets.popper),i=e.offsets.reference,s=Math.floor;return t.right<s(i.left)&&(e.offsets.popper.left=s(i.left)-t.width),t.left>s(i.right)&&(e.offsets.popper.left=s(i.right)),t.bottom<s(i.top)&&(e.offsets.popper.top=s(i.top)-t.height),t.top>s(i.bottom)&&(e.offsets.popper.top=s(i.bottom)),e},e.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],s=i(t),o=e.placement.split("-")[1]||"",r=[];return r="flip"===this._options.flipBehavior?[t,s]:this._options.flipBehavior,r.forEach(function(a,l){if(t===a&&r.length!==l+1){t=e.placement.split("-")[0],s=i(t);var u=n(e.offsets.popper),c=["right","bottom"].indexOf(t)!==-1;(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[s])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[s]))&&(e.flipped=!0,e.placement=r[l+1],o&&(e.placement+="-"+o),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},e.prototype.modifiers.offset=function(e){var t=this._options.offset,i=e.offsets.popper;return e.placement.indexOf("left")!==-1?i.top-=t:e.placement.indexOf("right")!==-1?i.top+=t:e.placement.indexOf("top")!==-1?i.left-=t:e.placement.indexOf("bottom")!==-1&&(i.left+=t),e},e.prototype.modifiers.arrow=function(e){var i=this._options.arrowElement;if("string"==typeof i&&(i=this._popper.querySelector(i)),!i)return e;if(!this._popper.contains(i))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var s={},o=e.placement.split("-")[0],r=n(e.offsets.popper),a=e.offsets.reference,l=["left","right"].indexOf(o)!==-1,u=l?"height":"width",c=l?"top":"left",d=l?"left":"top",f=l?"bottom":"right",h=t(i)[u];a[f]-h<r[c]&&(e.offsets.popper[c]-=r[c]-(a[f]-h)),a[c]+h>r[f]&&(e.offsets.popper[c]+=a[c]+h-r[f]);var p=a[c]+a[u]/2-h/2,v=p-n(e.offsets.popper)[c];return v=Math.max(Math.min(r[u]-h,v),0),s[c]=v,s[d]="",e.offsets.arrow=s,e.arrowElement=i,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(void 0!==n&&null!==n){n=Object(n);for(var s=Object.keys(n),o=0,r=s.length;o<r;o++){var a=s[o],l=Object.getOwnPropertyDescriptor(n,a);void 0!==l&&l.enumerable&&(t[a]=n[a])}}}return t}}),!m.requestAnimationFrame){for(var g=0,x=["ms","moz","webkit","o"],b=0;b<x.length&&!m.requestAnimationFrame;++b)m.requestAnimationFrame=m[x[b]+"RequestAnimationFrame"],m.cancelAnimationFrame=m[x[b]+"CancelAnimationFrame"]||m[x[b]+"CancelRequestAnimationFrame"];m.requestAnimationFrame||(m.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),n=Math.max(0,16-(i-g)),s=m.setTimeout(function(){e(i+n)},n);return g=i+n,s}),m.cancelAnimationFrame||(m.cancelAnimationFrame=function(e){clearTimeout(e)})}return e})},function(e,t,i){var n,s;n=i(191),s=i(348),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(197),s=i(354),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(198),s=i(355),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(199),s=i(356),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(200),s=i(357),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(203),s=i(360),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(204),s=i(361),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(205),s=i(362),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(212),s=i(369),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(224),s=i(381),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(225),s=i(382),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(231),s=i(388),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(232),s=i(389),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(247),s=i(404),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){this.rules=null,this._messages=c.messages,this.define(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(3),l=i(113),u=n(l),c=i(102),d=i(4);s.prototype={messages:function(e){return e&&(this._messages=(0,a.deepMerge)((0,c.newMessages)(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"==typeof e?"undefined":r(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,i=void 0;for(t in e)e.hasOwnProperty(t)&&(i=e[t],this.rules[t]=Array.isArray(i)?i:[i])},validate:function(e){function t(e){function t(e){Array.isArray(e)?s=s.concat.apply(s,e):s.push(e)}var i=void 0,n=void 0,s=[],o={};for(i=0;i<e.length;i++)t(e[i]);if(s.length)for(i=0;i<s.length;i++)n=s[i].field,o[n]=o[n]||[],o[n].push(s[i]);else s=null,o=null;h(s,o)}var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2],u=e,f=n,h=l;if("function"==typeof f&&(h=f,f={}),!this.rules||0===Object.keys(this.rules).length)return void(h&&h());if(f.messages){var p=this.messages();p===c.messages&&(p=(0,c.newMessages)()),(0,a.deepMerge)(p,f.messages),f.messages=p}else f.messages=this.messages();f.error=d.error;var v=void 0,m=void 0,y={},g=f.keys||Object.keys(this.rules);g.forEach(function(t){v=i.rules[t],m=u[t],v.forEach(function(n){var s=n;"function"==typeof s.transform&&(u===e&&(u=o({},u)),m=u[t]=s.transform(m)),s="function"==typeof s?{validator:s}:o({},s),s.validator=i.getValidationMethod(s),s.field=t,s.fullField=s.fullField||t,s.type=i.getType(s),s.validator&&(y[t]=y[t]||[],y[t].push({rule:s,value:m,source:u,field:t}))})});var x={};(0,a.asyncMap)(y,f,function(e,t){function i(e,t){return o({},t,{fullField:l.fullField+"."+e})}function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=n;if(Array.isArray(r)||(r=[r]),r.length&&(0,a.warning)("async-validator:",r),r.length&&l.message&&(r=[].concat(l.message)),r=r.map((0,a.complementError)(l)),(f.first||f.fieldFirst)&&r.length)return x[l.field]=1,t(r);if(u){if(l.required&&!e.value)return r=l.message?[].concat(l.message).map((0,a.complementError)(l)):[f.error(l,(0,a.format)(f.messages.required,l.field))],t(r);var c={};if(l.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(c[d]=l.defaultField);c=o({},c,e.rule.fields);for(var h in c)if(c.hasOwnProperty(h)){var p=Array.isArray(c[h])?c[h]:[c[h]];c[h]=p.map(i.bind(null,h))}var v=new s(c);v.messages(f.messages),e.rule.options&&(e.rule.options.messages=f.messages,e.rule.options.error=f.error),v.validate(e.value,e.rule.options||f,function(e){t(e&&e.length?r.concat(e):e)})}else t(r)}var l=e.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!==r(l.fields)&&"object"!==r(l.defaultField));u=u&&(l.required||!l.required&&e.value),l.field=e.field,l.validator(l,e.value,n,e.source,f)},function(e){t(e)})},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!u["default"].hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),i=t.indexOf("message");return i!==-1&&t.splice(i,1),1===t.length&&"required"===t[0]?u["default"].required:u["default"][this.getType(e)]||!1}},s.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");u["default"][e]=t},s.messages=c.messages,t["default"]=s,e.exports=t["default"]},function(e,t){"use strict";function i(){return{"default":"Validation error on field %s",required:"%s is required","enum":"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s","boolean":"%s is not a %s",integer:"%s is not an %s","float":"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=i;t.messages=i()},function(e,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function s(e,t,i,n,s){e[a]=Array.isArray(e[a])?e[a]:[],e[a].indexOf(t)===-1&&n.push(r.format(s.messages[a],e.fullField,e[a].join(", ")))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=n(o),a="enum";t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function s(e,t,i,n,s){e.pattern instanceof RegExp&&(e.pattern.test(t)||n.push(r.format(s.messages.pattern.mismatch,e.fullField,t,e.pattern)))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=n(o);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function s(e,t,i,n,s){var o="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,d="number"==typeof t,f="string"==typeof t,h=Array.isArray(t);return d?c="number":f?c="string":h&&(c="array"),!!c&&((f||h)&&(u=t.length),void(o?u!==e.len&&n.push(r.format(s.messages[c].len,e.fullField,e.len)):a&&!l&&u<e.min?n.push(r.format(s.messages[c].min,e.fullField,e.min)):l&&!a&&u>e.max?n.push(r.format(s.messages[c].max,e.fullField,e.max)):a&&l&&(u<e.min||u>e.max)&&n.push(r.format(s.messages[c].range,e.fullField,e.min,e.max))))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=n(o);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function o(e,t,i,n,s){if(e.required&&void 0===t)return void(0,c["default"])(e,t,i,n,s);var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?f[a](t)||n.push(l.format(s.messages.types[a],e.fullField,e.type)):a&&("undefined"==typeof t?"undefined":r(t))!==e.type&&n.push(l.format(s.messages.types[a],e.fullField,e.type))}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(3),l=s(a),u=i(60),c=n(u),d={email:/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},f={integer:function(e){return f.number(e)&&parseInt(e,10)===e},"float":function(e){return f.number(e)&&!f.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===("undefined"==typeof e?"undefined":r(e))&&!f.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(d.email)},url:function(e){return"string"==typeof e&&!!e.match(d.url)},hex:function(e){return"string"==typeof e&&!!e.match(d.hex)}};t["default"]=o,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function s(e,t,i,n,s){(/^\s+$/.test(t)||""===t)&&n.push(r.format(s.messages.whitespace,e.fullField))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=n(o);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t,"array")&&!e.required)return i();r["default"].required(e,t,n,o,s,"array"),(0,a.isEmptyValue)(t,"array")||(r["default"].type(e,t,n,o,s),r["default"].range(e,t,n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var r=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,o.isEmptyValue)(t)&&!e.required)return i();a["default"].required(e,t,n,r,s),void 0!==t&&a["default"].type(e,t,n,r,s)}i(r)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),r=i(4),a=n(r);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),(0,a.isEmptyValue)(t)||(r["default"].type(e,t,n,o,s),t&&r["default"].range(e,t.getTime(),n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],u=e.required||!e.required&&n.hasOwnProperty(e.field);if(u){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),t&&r["default"][l](e,t,n,o,s)}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3),l="enum";t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),void 0!==t&&(r["default"].type(e,t,n,o,s),r["default"].range(e,t,n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";e.exports={string:i(121),method:i(115),number:i(116),"boolean":i(109),regexp:i(119),integer:i(114),"float":i(112),array:i(108),object:i(117),"enum":i(111),pattern:i(118),email:i(42),url:i(42),date:i(110),hex:i(42),required:i(120)}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),void 0!==t&&(r["default"].type(e,t,n,o,s),r["default"].range(e,t,n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),void 0!==t&&r["default"].type(e,t,n,o,s)}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),void 0!==t&&(r["default"].type(e,t,n,o,s),r["default"].range(e,t,n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),void 0!==t&&r["default"].type(e,t,n,o,s)}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t,"string")&&!e.required)return i();r["default"].required(e,t,n,o,s),(0,a.isEmptyValue)(t,"string")||r["default"].pattern(e,t,n,o,s)}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t)&&!e.required)return i();r["default"].required(e,t,n,o,s),(0,a.isEmptyValue)(t)||r["default"].type(e,t,n,o,s)}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var r=[],l=Array.isArray(t)?"array":"undefined"==typeof t?"undefined":o(t);a["default"].required(e,t,n,r,s,l),i(r)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(4),a=n(r);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i,n,s){var o=[],l=e.required||!e.required&&n.hasOwnProperty(e.field);if(l){if((0,a.isEmptyValue)(t,"string")&&!e.required)return i();r["default"].required(e,t,n,o,s,"string"),(0,a.isEmptyValue)(t,"string")||(r["default"].type(e,t,n,o,s),r["default"].range(e,t,n,o,s),r["default"].pattern(e,t,n,o,s),e.whitespace===!0&&r["default"].whitespace(e,t,n,o,s))}i(o)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),r=n(o),a=i(3);t["default"]=s,e.exports=t["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(412),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(413),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(414),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(415),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(419),o=n(s),r=i(418),a=n(r);o["default"].Item=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(19),o=n(s),r=i(420),a=n(r);o["default"].Group=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(421),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(423),o=n(s),r=i(422),a=n(r);o["default"].Item=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(424),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(31),o=n(s),r=i(87),a=n(r);o["default"].Group=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(427),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(428),o=n(s),r=i(429),a=n(r);o["default"].Panel=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(135),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(94),o=n(s),r=i(431),a=n(r),l=i(430),u=n(l),c=i(2),d=function(e){return"daterange"===e||"datetimerange"===e?u["default"]:a["default"]};t["default"]={mixins:[o["default"]],props:{type:{validator:function(e){return(0,c.oneOf)(e,["year","month","date","daterange","datetime","datetimerange"])},"default":"date"},value:{}},created:function(){this.value||("daterange"===this.type||"datetimerange"https://unpkg.com/iview@1.0.0/dist/===this.type?this.value=["",""]:this.value=""),this.panel=d(this.type)}}},function(e,t,i){"use strict";function n(e){
return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(94),o=n(s),r=i(93),a=n(r),l=i(92),u=n(l),c=i(63),d=n(c),f=i(2),h=function(e){return"timerange"===e?u["default"]:a["default"]};t["default"]={mixins:[o["default"],d["default"]],props:{type:{validator:function(e){return(0,f.oneOf)(e,["time","timerange"])},"default":"time"},value:{}},created:function(){this.value||("timerange"https://unpkg.com/iview@1.0.0/dist/===this.type?this.value=["",""]:this.value=""),this.panel=h(this.type)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(434),o=n(s),r=i(433),a=n(r),l=i(432),u=n(l);o["default"].Menu=a["default"],o["default"].Item=u["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(436),o=n(s),r=i(435),a=n(r);o["default"].Item=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(95),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(41),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Col=t.Row=void 0;var s=i(438),o=n(s),r=i(437),a=n(r);t.Row=o["default"],t.Col=a["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(){return c=c||u["default"].newInstance({color:d,failedColor:f,height:h})}function o(e){var t=s();t.update(e)}function r(){setTimeout(function(){o({show:!1}),setTimeout(function(){o({percent:0})},200)},800)}function a(){p&&(clearInterval(p),p=null)}Object.defineProperty(t,"__esModule",{value:!0});var l=i(143),u=n(l),c=void 0,d="primary",f="error",h=2,p=void 0;t["default"]={start:function(){if(!p){var e=0;o({percent:e,status:"success",show:!0}),p=setInterval(function(){e+=Math.floor(3*Math.random()+5),e>95&&a(),o({percent:e,status:"success",show:!0})},200)}},update:function(e){a(),o({percent:e,status:"success",show:!0})},finish:function(){a(),o({percent:100,status:"success",show:!0}),r()},error:function(){a(),o({percent:100,status:"error",show:!0}),r()},config:function(e){e.color&&(d=e.color),e.failedColor&&(f=e.failedColor),e.height&&(h=e.height)},destroy:function(){a();var e=s();c=null,e.destroy()}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(14),o=n(s),r=i(439),a=n(r),l=i(33),u=n(l),c=i(2);a["default"].newInstance=function(e){var t=e||{},i="";(0,o["default"])(t).forEach(function(e){i+=" :"+(0,c.camelcaseToHyphen)(e)+"="+e});var n=document.createElement("div");n.innerHTML="<loading-bar"+i+"></loading-bar>",document.body.appendChild(n);var s=new u["default"]({el:n,data:t,components:{LoadingBar:a["default"]}}).$children[0];return{update:function(e){"percent"in e&&(s.percent=e.percent),e.status&&(s.status=e.status),"show"in e&&(s.show=e.show)},component:s,destroy:function(){document.body.removeChild(n)}}},t["default"]=a["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(442),o=n(s),r=i(440),a=n(r),l=i(441),u=n(l),c=i(443),d=n(c);o["default"].Group=a["default"],o["default"].Item=u["default"],o["default"].Sub=d["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(){return h=h||a["default"].newInstance({prefixCls:l,style:{top:f+"px"}})}function o(e){var t=arguments.length<=1||void 0===arguments[1]?d:arguments[1],i=arguments[2],n=arguments[3];n||(n=function(){});var o=v[i],r="loading"===i?" ivu-load-loop":"",a=s();return a.notice({key:""+c+p,duration:t,style:{},transitionName:"move-up",content:'\n <div class="'+l+"-custom-content "+l+"-"+i+'">\n <i class="'+u+" "+u+"-"+o+r+'"></i>\n <span>'+e+"</span>\n </div>\n ",onClose:n}),function(){var e=p++;return function(){a.remove(""+c+e)}}()}Object.defineProperty(t,"__esModule",{value:!0});var r=i(61),a=n(r),l="ivu-message",u="ivu-icon",c="ivu_message_key_",d=1.5,f=void 0,h=void 0,p=1,v={info:"information-circled",success:"checkmark-circled",warning:"android-alert",error:"close-circled",loading:"load-c"};t["default"]={info:function(e,t,i){return o(e,t,"info",i)},success:function(e,t,i){return o(e,t,"success",i)},warning:function(e,t,i){return o(e,t,"warning",i)},error:function(e,t,i){return o(e,t,"error",i)},loading:function(e,t,i){return o(e,t,"loading",i)},config:function(e){e.top&&(f=e.top),e.duration&&(d=e.duration)},destroy:function(){var e=s();h=null,e.destroy()}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(21),o=n(s),r=i(14),a=n(r),l=i(33),u=n(l),c=i(444),d=n(c),f=i(6),h=n(f),p=i(19),v=n(p),m=i(2),y=i(9),g="ivu-modal-confirm";d["default"].newInstance=function(e){var t=e||{},i="";(0,a["default"])(t).forEach(function(e){i+=" :"+(0,m.camelcaseToHyphen)(e)+"="+e});var n=document.createElement("div");n.innerHTML="\n <Modal"+i+' :visible.sync="visible" :width="width">\n <div class="'+g+'">\n <div class="'+g+'-head">\n <div class="'+g+'-head-title">{{{ title }}}</div>\n </div>\n <div class="'+g+'-body">\n <div :class="iconTypeCls"><i :class="iconNameCls"></i></div>\n {{{ body }}}\n </div>\n <div class="'+g+'-footer">\n <i-button type="text" size="large" v-if="showCancel" @click="cancel">{{ cancelText }}</i-button>\n <i-button type="primary" size="large" :loading="buttonLoading" @click="ok">{{ okText }}</i-button>\n </div>\n </div>\n </Modal>\n ',document.body.appendChild(n);var s=new u["default"]({el:n,components:{Modal:d["default"],iButton:v["default"],Icon:h["default"]},data:(0,o["default"])(t,{visible:!1,width:416,title:"",body:"",iconType:"",iconName:"",okText:(0,y.t)("i.modal.okText"),cancelText:(0,y.t)("i.modal.cancelText"),showCancel:!1,loading:!1,buttonLoading:!1}),computed:{iconTypeCls:function(){return[g+"-body-icon",g+"-body-icon-"+this.iconType]},iconNameCls:function(){return["ivu-icon","ivu-icon-"+this.iconName]}},methods:{cancel:function(){this.visible=!1,this.buttonLoading=!1,this.onCancel(),this.remove()},ok:function(){this.loading?this.buttonLoading=!0:(this.visible=!1,this.remove()),this.onOk()},remove:function(){var e=this;setTimeout(function(){e.destroy()},300)},destroy:function(){this.$destroy(),document.body.removeChild(n),this.onRemove()},onOk:function(){},onCancel:function(){},onRemove:function(){}}}).$children[0];return{show:function(e){switch(s.$parent.showCancel=e.showCancel,s.$parent.iconType=e.icon,e.icon){case"info":s.$parent.iconName="information-circled";break;case"success":s.$parent.iconName="checkmark-circled";break;case"warning":s.$parent.iconName="android-alert";break;case"error":s.$parent.iconName="close-circled";break;case"confirm":s.$parent.iconName="help-circled"}"width"in e&&(s.$parent.width=e.width),"title"in e&&(s.$parent.title=e.title),"content"in e&&(s.$parent.body=e.content),"okText"in e&&(s.$parent.okText=e.okText),"cancelText"in e&&(s.$parent.cancelText=e.cancelText),"onCancel"in e&&(s.$parent.onCancel=e.onCancel),"onOk"in e&&(s.$parent.onOk=e.onOk),"loading"in e&&(s.$parent.loading=e.loading),s.$parent.onRemove=e.onRemove,s.visible=!0},remove:function(){s.visible=!1,s.$parent.buttonLoading=!1,s.$parent.remove()},component:s}},t["default"]=d["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(){return l=l||a["default"].newInstance({closable:!1,maskClosable:!1,footerHide:!0})}function o(e){var t=s();e.onRemove=function(){l=null},t.show(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=i(146),a=n(r),l=void 0;a["default"].info=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.icon="info",e.showCancel=!1,o(e)},a["default"].success=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.icon="success",e.showCancel=!1,o(e)},a["default"].warning=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.icon="warning",e.showCancel=!1,o(e)},a["default"].error=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.icon="error",e.showCancel=!1,o(e)},a["default"].confirm=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.icon="confirm",e.showCancel=!0,o(e)},a["default"].remove=function(){if(!l)return!1;var e=s();e.remove()},t["default"]=a["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(){return h=h||a["default"].newInstance({prefixCls:l,style:{top:d+"px",right:0}})}function o(e,t){var i=t.title||"",n=t.desc||"",o=t.key||""+c+p,r=t.onClose||function(){},a=0===t.duration?0:t.duration||f;p++;var d=s(),h=void 0,m=""===n?"":" "+l+"-with-desc";if("normal"==e)h='\n <div class="'+l+"-custom-content "+l+"-with-normal"+m+'">\n <div class="'+l+'-title">'+i+'</div>\n <div class="'+l+'-desc">'+n+"</div>\n </div>\n ";else{var y=v[e];h='\n <div class="'+l+"-custom-content "+l+"-with-icon "+l+"-with-"+e+m+'">\n <span class="'+l+"-icon "+l+"-icon-"+e+'">\n <i class="'+u+" "+u+"-"+y+'"></i>\n </span>\n <div class="'+l+'-title">'+i+'</div>\n <div class="'+l+'-desc">'+n+"</div>\n </div>\n "}d.notice({key:o.toString(),duration:a,style:{},transitionName:"move-notice",content:h,onClose:r,closable:!0})}Object.defineProperty(t,"__esModule",{value:!0});var r=i(61),a=n(r),l="ivu-notice",u="ivu-icon",c="ivu_notice_key_",d=24,f=4.5,h=void 0,p=1,v={info:"information-circled",success:"checkmark-circled",warning:"android-alert",error:"close-circled"};t["default"]={open:function(e){return o("normal",e)},info:function(e){return o("info",e)},success:function(e){return o("success",e)},warning:function(e){return o("warning",e)},error:function(e){return o("error",e)},config:function(e){e.top&&(d=e.top),(e.duration||0===e.duration)&&(f=e.duration)},close:function(e){return!!e&&(e=e.toString(),void(h&&h.remove(e)))},destroy:function(){var e=s();h=null,e.destroy()}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(446),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(96),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(97),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(448),o=n(s),r=i(447),a=n(r);o["default"].Group=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(449),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.OptionGroup=t.Option=t.Select=void 0;var s=i(99),o=n(s),r=i(98),a=n(r),l=i(450),u=n(l);t.Select=o["default"],t.Option=a["default"],t.OptionGroup=u["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(451),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(452),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(454),o=n(s),r=i(453),a=n(r);o["default"].Step=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(455),o=n(s);t["default"]=o["default"]},function(e,t){"use strict";function i(e){var t=navigator.userAgent;if("ie"===e){var i=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1;if(i){var n=new RegExp("MSIE (\\d+\\.\\d+);");return n.test(t),parseFloat(RegExp.$1)}return!1}return t.indexOf(e)>-1}Object.defineProperty(t,"__esModule",{value:!0});var n={_isIE11:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),i=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return t&&(e=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(e=10),i&&n!==-1&&(e=11),11===e},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(e){var t="\ufeff";if(window.Blob&&window.URL&&window.URL.createObjectURL&&!i("Safari")){var n=new Blob([t+e],{type:"text/csv"});return URL.createObjectURL(n)}return"data:attachment/csv;charset=utf-8,"+t+encodeURIComponent(e)},download:function(e,t){if(i("ie")&&i("ie")<10){var n=window.top.open("about:blank","_blank");n.document.charset="utf-8",n.document.write(t),n.document.close(),n.document.execCommand("SaveAs",e),n.close()}else if(10===i("ie")||this._isIE11()||this._isEdge()){var s="\ufeff",o=new Blob([s+t],{type:"text/csv"});navigator.msSaveBlob(o,e)}else{var r=document.createElement("a");r.download=e,r.href=this._getDownloadUrl(t),r.target="_blank",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}};t["default"]=n},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(459),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(461),o=n(s),r=i(460),a=n(r);o["default"].Pane=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(462),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(136),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(464),o=n(s),r=i(463),a=n(r);o["default"].Item=a["default"],t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(100),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(468),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(469),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t,i){var n="fail to post "+e+" "+i.status+"'",s=new Error(n);return s.status=i.status,s.method="post",s.url=e,s}function o(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(i){return t}}function r(e){if("undefined"!=typeof XMLHttpRequest){var t=new XMLHttpRequest,i=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&(0,l["default"])(e.data).map(function(t){n.append(t,e.data[t])}),n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(s(i,e,t),o(t)):void e.onSuccess(o(t))},t.open("post",i,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var a in r)r.hasOwnProperty(a)&&null!==r[a]&&t.setRequestHeader(a,r[a]);t.send(n)}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(14),l=n(a);t["default"]=r},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(471),o=n(s);t["default"]=o["default"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(35),o=n(s);t["default"]=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return 1===n.length&&"object"===(0,o["default"])(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(r,function(t,s,o,r){var a=void 0;return"{"===e[r-1]&&"}"===e[r+t.length]?o:(a=i(n,o)?n[o]:null,null===a||void 0===a?"":a)})}var i=e.util.hasOwn;return t};var r=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={i:{select:{placeholder:"请选择",noMatch:"无匹配数据"},table:{noDataText:"暂无数据",noFilteredDataText:"暂无筛选结果",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部"},datepicker:{selectDate:"选择日期",selectTime:"选择时间",startTime:"开始时间",endTime:"结束时间",clear:"清空",ok:"确定",month:"月",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",year:"年",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{m1:"1月",m2:"2月",m3:"3月",m4:"4月",m5:"5月",m6:"6月",m7:"7月",m8:"8月",m9:"9月",m10:"10月",m11:"11月",m12:"12月"}},transfer:{titles:{source:"源列表",target:"目的列表"},filterPlaceholder:"请输入搜索内容",notFoundText:"列表为空"},modal:{okText:"确定",cancelText:"取消"},poptip:{okText:"确定",cancelText:"取消"},page:{prev:"上一页",next:"下一页",total:"共",item:"条",items:"条",prev5:"向前 5 页",next5:"向后 5 页",page:"条/页","goto":"跳至",p:"页"},rate:{star:"星",stars:"星"},tree:{emptyText:"暂无数据"}}}},function(e,t){"use strict";function i(e){var t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),n=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),s=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=r.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";");return{contextStyle:o,paddingSize:n,borderSize:s,boxSizing:i}}function n(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];s||(s=document.createElement("textarea"),document.body.appendChild(s));var r=i(e),a=r.paddingSize,l=r.borderSize,u=r.boxSizing,c=r.contextStyle;s.setAttribute("style",c+";"+o),s.value=e.value||e.placeholder||"";var d=s.scrollHeight,f=-(1/0),h=1/0;"border-box"===u?d+=l:"content-box"===u&&(d-=a),s.value="";var p=s.scrollHeight-a;return null!==t&&(f=p*t,"border-box"===u&&(f=f+a+l),d=Math.max(f,d)),null!==n&&(h=p*n,"border-box"===u&&(h=h+a+l),d=Math.min(h,d)),{height:d+"px",minHeight:f+"px",maxHeight:h+"px"}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var s=void 0,o="\n height:0 !important;\n min-height:0 !important;\n max-height:none !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",r=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"]},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){var i=arguments.length<=2||void 0===arguments[2]?",":arguments[2],n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],s=void 0,o=[],l=[];return e?(s=e.map(function(e){return"string"==typeof e?e:(n||l.push("undefined"!=typeof e.title?e.title:e.key),e.key)}),l.length>0&&o.push(l.join(i))):(s=[],t.forEach(function(e){Array.isArray(e)||(s=s.concat((0,r["default"])(e)))}),s.length>0&&(s=s.filter(function(e,t,i){return i.indexOf(e)===t}),n||o.push(s.join(i)))),Array.isArray(t)&&t.map(function(e){return Array.isArray(e)?e:s.map(function(t){return"undefined"!=typeof e[t]?e[t]:""})}).forEach(function(e){o.push(e.join(i))}),o.join(a)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(14),r=n(o);t["default"]=s;var a="\r\n"},function(e,t,i){var n;!function(s){"use strict";function o(e,t){for(var i=[],n=0,s=e.length;n<s;n++)i.push(e[n].substr(0,t));return i}function r(e){return function(t,i,n){var s=n[e].indexOf(i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());~s&&(t.month=s)}}function a(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}var l={},u=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,c=/\d\d?/,d=/\d{3}/,f=/\d{4}/,h=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,p=function(){},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"],y=o(m,3),g=o(v,3);l.i18n={dayNamesShort:g,dayNames:v,monthNamesShort:y,monthNames:m,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var x={D:function(e){return e.getDay()},DD:function(e){return a(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return a(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return a(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return a(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return a(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return a(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return a(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return a(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return a(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+a(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},b={d:[c,function(e,t){e.day=t}],M:[c,function(e,t){e.month=t-1}],yy:[c,function(e,t){var i=new Date,n=+(""+i.getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:[c,function(e,t){e.hour=t}],m:[c,function(e,t){e.minute=t}],s:[c,function(e,t){e.second=t}],yyyy:[f,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[d,function(e,t){e.millisecond=t}],D:[c,p],ddd:[h,p],MMM:[h,r("monthNamesShort")],MMMM:[h,r("monthNames")],a:[h,function(e,t,i){var n=t.toLowerCase();n===i.amPm[0]?e.isPm=!1:n===i.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\+\-]\d\d:?\d\d/,function(e,t){var i,n=(t+"").match(/([\+\-]|\d\d)/gi);n&&(i=+(60*n[1])+parseInt(n[2],10),e.timezoneOffset="+"===n[0]?i:-i)}]};b.DD=b.DD,b.dddd=b.ddd,b.Do=b.dd=b.d,b.mm=b.m,b.hh=b.H=b.HH=b.h,b.MM=b.M,b.ss=b.s,b.A=b.a,l.masks={"default":"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},l.format=function(e,t,i){var n=i||l.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return t=l.masks[t]||t||l.masks["default"],t.replace(u,function(t){return t in x?x[t](e,n):t.slice(1,t.length-1)})},l.parse=function(e,t,i){var n=i||l.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=l.masks[t]||t,e.length>1e3)return!1;var s=!0,o={};if(t.replace(u,function(t){if(b[t]){var i=b[t],r=e.search(i[0]);~r?e.replace(i[0],function(t){return i[1](o,t,n),e=e.substr(r+t.length),t}):s=!1}return b[t]?"":t.slice(1,t.length-1)}),!s)return!1;var r=new Date;o.isPm===!0&&null!=o.hour&&12!==+o.hour?o.hour=+o.hour+12:o.isPm===!1&&12===+o.hour&&(o.hour=0);var a;return null!=o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,a=new Date(Date.UTC(o.year||r.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):a=new Date(o.year||r.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0),a},"undefined"!=typeof e&&e.exports?e.exports=l:(n=function(){return l}.call(t,i,t,e),!(void 0!==n&&(e.exports=n)))}(void 0)},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){var i=t?"pageYOffset":"pageXOffset",n=t?"scrollTop":"scrollLeft",s=e[i];return"number"!=typeof s&&(s=window.document.documentElement[n]),s}function o(e){var t=e.getBoundingClientRect(),i=s(window,!0),n=s(window),o=window.document.body,r=o.clientTop||0,a=o.clientLeft||0;return{top:t.top+i-r,left:t.left+n-a}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),a=n(r),l="ivu-affix";t["default"]={props:{offsetTop:{type:Number,"default":0},offsetBottom:{type:Number}},data:function(){return{affix:!1,styles:{}}},computed:{offsetType:function(){var e="top";return this.offsetBottom>=0&&(e="bottom"),e},classes:function(){return[(0,a["default"])({},""+l,this.affix)]}},ready:function(){window.addEventListener("scroll",this.handleScroll,!1),window.addEventListener("resize",this.handleScroll,!1)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll,!1),window.removeEventListener("resize",this.handleScroll,!1)},methods:{handleScroll:function(){var e=this.affix,t=s(window,!0),i=o(this.$el),n=window.innerHeight,r=this.$el.getElementsByTagName("div")[0].offsetHeight;i.top-this.offsetTop<t&&"top"==this.offsetType&&!e?(this.affix=!0,this.styles={top:this.offsetTop+"px",left:i.left+"px",width:this.$el.offsetWidth+"px"},this.$emit("on-change",!0)):i.top-this.offsetTop>t&&"top"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1)),i.top+this.offsetBottom+r>t+n&&"bottom"==this.offsetType&&!e?(this.affix=!0,this.styles={bottom:this.offsetBottom+"px",left:i.left+"px",width:this.$el.offsetWidth+"px"},this.$emit("on-change",!0)):i.top+this.offsetBottom+r<t+n&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(13),a=n(r),l=i(2),u="ivu-alert";t["default"]={components:{Icon:a["default"]},props:{type:{validator:function(e){return(0,l.oneOf)(e,["success","info","warning","error"])},"default":"info"},closable:{type:Boolean,"default":!1},showIcon:{type:Boolean,"default":!1},banner:{type:Boolean,"default":!1}},data:function(){return{closed:!1,desc:!1}},computed:{wrapClasses:function(){var e;return[""+u,u+"-"+this.type,(e={},(0,o["default"])(e,u+"-with-icon",this.showIcon),(0,o["default"])(e,u+"-with-desc",this.desc),(0,o["default"])(e,u+"-with-banner",this.banner),e)]},messageClasses:function(){return u+"-message"},descClasses:function(){return u+"-desc"},closeClasses:function(){return u+"-close"},iconClasses:function(){return u+"-icon"},iconType:function(){var e="";switch(this.type){case"success":e="checkmark-circled";break;case"info":e="information-circled";break;case"warning":e="android-alert";break;case"error":e="close-circled"}return e}},methods:{close:function(e){this.closed=!0,this.$emit("on-close",e)}},compiled:function(){this.desc=""!=this.$els.desc.innerHTML}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-back-top";t["default"]={props:{height:{type:Number,"default":400},bottom:{type:Number,"default":30},right:{type:Number,"default":30},duration:{type:Number,"default":1e3}},data:function(){return{backTop:!1}},ready:function(){window.addEventListener("scroll",this.handleScroll,!1),window.addEventListener("resize",this.handleScroll,!1)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll,!1),window.removeEventListener("resize",this.handleScroll,!1)},computed:{classes:function(){return[""+a,(0,o["default"])({},a+"-show",this.backTop)]},styles:function(){return{bottom:this.bottom+"px",right:this.right+"px"}},innerClasses:function(){return a+"-inner"}},methods:{handleScroll:function(){this.backTop=window.pageYOffset>=this.height},back:function(){(0,r.scrollTop)(window,document.body.scrollTop,0,this.duration),this.$emit("on-click")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-badge";t["default"]={props:{count:[Number,String],dot:{type:Boolean,"default":!1},overflowCount:{type:[Number,String],"default":99},"class":String},computed:{classes:function(){return""+r},dotClasses:function(){return r+"-dot"},countClasses:function(){var e;return[r+"-count",(e={},(0,o["default"])(e,""+this["class"],!!this["class"]),(0,o["default"])(e,r+"-count-alone",this.alone),e)]},finalCount:function(){return parseInt(this.count)>=parseInt(this.overflowCount)?this.overflowCount+"+":this.count},badge:function(){var e=!1;return this.count&&(e=!(0===parseInt(this.count))),this.dot&&(e=!0,this.count&&0===parseInt(this.count)&&(e=!1)),e}},data:function(){return{alone:!1}},compiled:function(){var e=this.$els.badge.children.length;1===e&&(this.alone=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s);t["default"]={props:{prefixCls:{type:String,"default":""},duration:{type:Number,"default":1.5},content:{type:String,"default":""},style:{type:Object,"default":function(){return{right:"50%"}}},closable:{type:Boolean,"default":!1},className:{type:String},key:{type:String,required:!0},onClose:{type:Function},transitionName:{type:String}},data:function(){return{withDesc:!1}},computed:{baseClass:function(){return this.prefixCls+"-notice"},classes:function(){var e;return[this.baseClass,(e={},(0,o["default"])(e,""+this.className,!!this.className),(0,o["default"])(e,this.baseClass+"-closable",this.closable),(0,o["default"])(e,this.baseClass+"-with-desc",this.withDesc),e)]},contentClasses:function(){return this.baseClass+"-content"}},methods:{clearCloseTimer:function(){this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null)},close:function(){this.clearCloseTimer(),this.onClose(),this.$parent.close(this.key)}},compiled:function(){var e=this;this.clearCloseTimer(),0!==this.duration&&(this.closeTimer=setTimeout(function(){e.close()},1e3*this.duration)),"ivu-notice"===this.prefixCls&&(this.withDesc=""!==this.$els.content.querySelectorAll("."+this.prefixCls+"-desc")[0].innerHTML)},beforeDestroy:function(){this.clearCloseTimer()}}},function(e,t,i){"use strict";
function n(e){return e&&e.__esModule?e:{"default":e}}function s(){return"ivuNotification_"+h+"_"+f++}Object.defineProperty(t,"__esModule",{value:!0});var o=i(21),r=n(o),a=i(1),l=n(a),u=i(416),c=n(u),d="ivu-notification",f=0,h=Date.now();t["default"]={components:{Notice:c["default"]},props:{prefixCls:{type:String,"default":d},style:{type:Object,"default":function(){return{top:"65px",left:"50%"}}},content:{type:String},className:{type:String}},data:function(){return{notices:[]}},computed:{classes:function(){return[""+this.prefixCls,(0,l["default"])({},""+this.className,!!this.className)]}},methods:{add:function(e){var t=e.key||s(),i=(0,r["default"])({style:{right:"50%"},content:"",duration:1.5,closable:!1,key:t},e);this.notices.push(i)},close:function(e){for(var t=this.notices,i=0;i<t.length;i++)if(t[i].key===e){this.notices.splice(i,1);break}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-breadcrumb-item";t["default"]={props:{href:{type:String},separator:{type:String,"default":"/"}},computed:{linkClasses:function(){return i+"-link"},separatorClasses:function(){return i+"-separator"}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-breadcrumb";t["default"]={props:{separator:{type:String,"default":"/"}},computed:{classes:function(){return""+i}},compiled:function(){this.updateChildren()},methods:{updateChildren:function(){var e=this;this.$children.forEach(function(t){t.separator=e.separator})}},watch:{separator:function(){this.updateChildren()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-btn-group";t["default"]={props:{size:{validator:function(e){return(0,r.oneOf)(e,["small","large"])}},shape:{validator:function(e){return(0,r.oneOf)(e,["circle","circle-outline"])}},vertical:{type:Boolean,"default":!1}},computed:{classes:function(){var e;return[""+a,(e={},(0,o["default"])(e,a+"-"+this.size,!!this.size),(0,o["default"])(e,a+"-"+this.shape,!!this.shape),(0,o["default"])(e,a+"-vertical",this.vertical),e)]}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(13),a=n(r),l=i(2),u="ivu-btn";t["default"]={components:{Icon:a["default"]},props:{type:{validator:function(e){return(0,l.oneOf)(e,["primary","ghost","dashed","text","info","success","warning","error"])}},shape:{validator:function(e){return(0,l.oneOf)(e,["circle","circle-outline"])}},size:{validator:function(e){return(0,l.oneOf)(e,["small","large"])}},loading:Boolean,disabled:Boolean,htmlType:{"default":"button",validator:function(e){return(0,l.oneOf)(e,["button","submit","reset"])}},icon:String,"long":{type:Boolean,"default":!1}},data:function(){return{showSlot:!0}},computed:{classes:function(){var e;return[""+u,(e={},(0,o["default"])(e,u+"-"+this.type,!!this.type),(0,o["default"])(e,u+"-long",this["long"]),(0,o["default"])(e,u+"-"+this.shape,!!this.shape),(0,o["default"])(e,u+"-"+this.size,!!this.size),(0,o["default"])(e,u+"-loading",null!=this.loading&&this.loading),(0,o["default"])(e,u+"-icon-only",!this.showSlot&&(!!this.icon||this.loading)),e)]}},compiled:function(){this.showSlot=""!==this.$els.slot.innerHTML.replace(/\n/g,"").replace(/<!--[\w\W\r\n]*?-->/gim,"")}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-card";t["default"]={props:{bordered:{type:Boolean,"default":!0},disHover:{type:Boolean,"default":!1},shadow:{type:Boolean,"default":!1}},data:function(){return{showHead:!0,showExtra:!0}},computed:{classes:function(){var e;return[""+r,(e={},(0,o["default"])(e,r+"-bordered",this.bordered&&!this.shadow),(0,o["default"])(e,r+"-dis-hover",this.disHover||this.shadow),(0,o["default"])(e,r+"-shadow",this.shadow),e)]},headClasses:function(){return r+"-head"},extraClasses:function(){return r+"-extra"},bodyClasses:function(){return r+"-body"}},compiled:function(){this.showHead=""!=this.$els.head.innerHTML,this.showExtra=""!=this.$els.extra.innerHTML}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-carousel-item";t["default"]={componentName:"carousel-item",data:function(){return{prefixCls:i,width:0,height:"auto",left:0}},computed:{styles:function(){return{width:this.width+"px",height:""+this.height,left:this.left+"px"}}},compiled:function(){this.$parent.slotChange()},beforeDestroy:function(){this.$parent.slotChange()}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(6),o=n(s),r=i(2),a="ivu-carousel";t["default"]={name:"Carousel",components:{Icon:o["default"]},props:{arrow:{type:String,"default":"hover",validator:function(e){return(0,r.oneOf)(e,["hover","always","never"])}},autoplay:{type:Boolean,"default":!1},autoplaySpeed:{type:Number,"default":2e3},easing:{type:String,"default":"ease"},dots:{type:String,"default":"inside",validator:function(e){return(0,r.oneOf)(e,["inside","outside","none"])}},trigger:{type:String,"default":"click",validator:function(e){return(0,r.oneOf)(e,["click","hover"])}},currentIndex:{type:Number,"default":0},height:{type:[String,Number],"default":"auto",validator:function(e){return"auto"===e||"[object Number]"===Object.prototype.toString.call(e)}}},data:function(){return{prefixCls:a,listWidth:0,trackWidth:0,trackOffset:0,slides:[],slideInstances:[],timer:null,ready:!1}},computed:{classes:function(){return[""+a]},trackStyles:function(){return{width:this.trackWidth+"px",transform:"translate3d(-"+this.trackOffset+"px, 0px, 0px)",transition:"transform 500ms "+this.easing}},arrowClasses:function(){return[a+"-arrow",a+"-arrow-"+this.arrow]},dotsClasses:function(){return[a+"-dots",a+"-dots-"+this.dots]}},methods:{findChild:function(e){var t=function i(t){var n=t.$options.componentName;n?e(t):t.$children.length&&t.$children.forEach(function(t){i(t,e)})};this.slideInstances.length||!this.$children?this.slideInstances.forEach(function(e){t(e)}):this.$children.forEach(function(e){t(e)})},updateSlides:function(e){var t=this,i=[],n=1;this.findChild(function(s){i.push({$el:s.$el}),s.index=n++,e&&t.slideInstances.push(s)}),this.slides=i,this.updatePos()},updatePos:function(){var e=this;this.findChild(function(t){t.width=e.listWidth,t.height="number"==typeof e.height?e.height+"px":e.height}),this.trackWidth=(this.slides.length||0)*this.listWidth},slotChange:function(){var e=this;this.$nextTick(function(){e.slides=[],e.slideInstances=[],e.updateSlides(!0,!0),e.updatePos(),e.updateOffset()})},handleResize:function(){this.listWidth=parseInt((0,r.getStyle)(this.$el,"width")),this.updatePos(),this.updateOffset()},add:function(e){var t=this.currentIndex;for(t+=e;t<0;)t+=this.slides.length;t%=this.slides.length,this.currentIndex=t},arrowEvent:function(e){this.setAutoplay(),this.add(e)},dotsEvent:function(e,t){e===this.trigger&&this.currentIndex!==t&&(this.currentIndex=t,this.setAutoplay())},setAutoplay:function(){var e=this;window.clearInterval(this.timer),this.autoplay&&(this.timer=window.setInterval(function(){e.add(1)},this.autoplaySpeed))},updateOffset:function(){var e=this;this.$nextTick(function(){e.trackOffset=e.currentIndex*e.listWidth})}},compiled:function(){this.updateSlides(!0)},watch:{autoplay:function(){this.setAutoplay()},autoplaySpeed:function(){this.setAutoplay()},currentIndex:function(e,t){this.$emit("on-change",t,e),this.updateOffset()},height:function(){this.updatePos()}},ready:function(){this.handleResize(),this.setAutoplay(),window.addEventListener("resize",this.handleResize,!1)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize,!1)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(66),o=n(s),r=i(1),a=n(r),l=i(41),u=n(l),c=i(32),d=n(c),f=i(6),h=n(f),p=i(426),v=n(p),m=i(26),y=n(m),g=i(2),x="ivu-cascader";t["default"]={components:{iInput:u["default"],Dropdown:d["default"],Icon:h["default"],Caspanel:v["default"]},directives:{clickoutside:y["default"]},props:{data:{type:Array,"default":function(){return[]}},value:{type:Array,"default":function(){return[]}},disabled:{type:Boolean,"default":!1},clearable:{type:Boolean,"default":!0},placeholder:{type:String,"default":"请选择"},size:{validator:function(e){return(0,g.oneOf)(e,["small","large"])}},trigger:{validator:function(e){return(0,g.oneOf)(e,["click","hover"])},"default":"click"},changeOnSelect:{type:Boolean,"default":!1},renderFormat:{type:Function,"default":function(e){return e.join(" / ")}}},data:function(){return{prefixCls:x,visible:!1,selected:[],tmpSelected:[],updatingValue:!1}},computed:{classes:function(){var e;return[""+x,(e={},(0,a["default"])(e,x+"-show-clear",this.showCloseIcon),(0,a["default"])(e,x+"-visible",this.visible),(0,a["default"])(e,x+"-disabled",this.disabled),e)]},showCloseIcon:function(){return this.value&&this.value.length&&this.clearable},displayRender:function(){for(var e=[],t=0;t<this.selected.length;t++)e.push(this.selected[t].label);return this.renderFormat(e,this.selected)}},methods:{clearSelect:function(){var e=(0,o["default"])(this.value);this.value=this.selected=this.tmpSelected=[],this.handleClose(),this.emitValue(this.value,e),this.$broadcast("on-clear")},handleClose:function(){this.visible=!1},toggleOpen:function(){this.visible?this.handleClose():this.onFocus()},onFocus:function(){this.visible=!0,this.value.length||this.$broadcast("on-clear")},updateResult:function(e){this.tmpSelected=e},updateSelected:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];this.changeOnSelect&&!e||this.$broadcast("on-find-selected",this.value)},emitValue:function(e,t){(0,o["default"])(e)!==t&&(this.$emit("on-change",this.value,JSON.parse((0,o["default"])(this.selected))),this.$dispatch("on-form-change",this.value,JSON.parse((0,o["default"])(this.selected))))}},ready:function(){this.updateSelected(!0)},events:{"on-result-change":function(e,t,i){var n=this;(e||t)&&!function(){var e=(0,o["default"])(n.value);n.selected=n.tmpSelected;var t=[];n.selected.forEach(function(e){t.push(e.value)}),i||(n.updatingValue=!0,n.value=t,n.emitValue(n.value,e))}(),e&&!i&&this.handleClose()},"on-form-blur":function(){return!1},"on-form-change":function(){return!1}},watch:{visible:function(e){e&&this.value.length&&this.updateSelected()},value:function(){return this.updatingValue?void(this.updatingValue=!1):void this.updateSelected(!0)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s);t["default"]={props:{data:Object,prefixCls:String,tmpItem:Object},computed:{classes:function(){var e;return[this.prefixCls+"-menu-item",(e={},(0,o["default"])(e,this.prefixCls+"-menu-item-active",this.tmpItem.value===this.data.value),(0,o["default"])(e,this.prefixCls+"-menu-item-disabled",this.data.disabled),e)]}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(43),o=n(s),r=i(21),a=n(r),l=i(425),u=n(l);t["default"]={name:"Caspanel",components:{Casitem:u["default"]},props:{data:{type:Array,"default":function(){return[]}},sublist:{type:Array,"default":function(){return[]}},disabled:Boolean,changeOnSelect:Boolean,trigger:String,prefixCls:String},data:function(){return{tmpItem:{},result:[]}},methods:{handleClickItem:function(e){"click"!==this.trigger&&e.children||this.handleTriggerItem(e)},handleHoverItem:function(e){"hover"===this.trigger&&e.children&&this.handleTriggerItem(e)},handleTriggerItem:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!e.disabled){var i=this.getBaseItem(e);this.tmpItem=i,this.emitUpdate([i]),e.children&&e.children.length?(this.sublist=e.children,this.$dispatch("on-result-change",!1,this.changeOnSelect,t)):(this.sublist=[],this.$dispatch("on-result-change",!0,this.changeOnSelect,t))}},updateResult:function(e){this.result=[this.tmpItem].concat(e),this.emitUpdate(this.result)},getBaseItem:function(e){var t=(0,a["default"])({},e);return t.children&&delete t.children,t},emitUpdate:function(e){"Caspanel"https://unpkg.com/iview@1.0.0/dist/===this.$parent.$options.name?this.$parent.updateResult(e):this.$parent.$parent.updateResult(e)}},watch:{data:function(){this.sublist=[]}},events:{"on-find-selected":function(e){for(var t=this,i=[].concat((0,o["default"])(e)),n=0;n<i.length;n++)for(var s=0;s<this.data.length;s++)if(i[n]===this.data[s].value)return this.handleTriggerItem(this.data[s],!0),i.splice(0,1),this.$nextTick(function(){t.$broadcast("on-find-selected",i)}),!1},"on-clear":function(){this.sublist=[],this.tmpItem={}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-checkbox-group";t["default"]={name:"checkboxGroup",props:{model:{type:Array,"default":function(){return[]}}},computed:{classes:function(){return""+i}},compiled:function(){this.updateModel(!0)},methods:{updateModel:function(e){var t=this.model;this.$children.forEach(function(i){i.model=t,e&&(i.selected=t.indexOf(i.value)>=0,i.group=!0)})},change:function(e){this.model=e,this.$emit("on-change",e),this.$dispatch("on-form-change",e)}},watch:{model:function(){this.updateModel(!0)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-checkbox";t["default"]={props:{disabled:{type:Boolean,"default":!1},value:{type:[String,Number,Boolean]},checked:{type:Boolean,"default":!1},indeterminate:{type:Boolean,"default":!1}},data:function(){return{model:[],selected:!1,group:!1,showSlot:!0}},computed:{wrapClasses:function(){var e;return[r+"-wrapper",(e={},(0,o["default"])(e,r+"-group-item",this.group),(0,o["default"])(e,r+"-wrapper-checked",this.selected),(0,o["default"])(e,r+"-wrapper-disabled",this.disabled),e)]},checkboxClasses:function(){var e;return[""+r,(e={},(0,o["default"])(e,r+"-checked",this.selected),(0,o["default"])(e,r+"-disabled",this.disabled),(0,o["default"])(e,r+"-indeterminate",this.indeterminate),e)]},innerClasses:function(){return r+"-inner"},inputClasses:function(){return r+"-input"}},ready:function(){this.$parent&&"checkboxGroup"===this.$parent.$options.name&&(this.group=!0),this.group||(this.updateModel(),this.$els.slot&&""===this.$els.slot.innerHTML&&(this.showSlot=!1))},methods:{change:function(e){return!this.disabled&&(this.selected=e.target.checked,void(this.group?this.$parent.change(this.model):(this.$emit("on-change",this.checked),this.$dispatch("on-form-change",this.checked))))},updateModel:function(){this.selected=this.checked}},watch:{checked:function(){this.updateModel()}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),s="ivu-chart-circle";t["default"]={props:{percent:{type:Number,"default":0},size:{type:Number,"default":120},strokeWidth:{type:Number,"default":6},strokeColor:{type:String,"default":"#2db7f5"},strokeLinecap:{validator:function(e){return(0,n.oneOf)(e,["square","round"])},"default":"round"},trailWidth:{type:Number,"default":5},trailColor:{type:String,"default":"#eaeef2"}},computed:{circleSize:function(){return{width:this.size+"px",height:this.size+"px"}},radius:function(){return 50-this.strokeWidth/2},pathString:function(){return"M 50,50 m 0,-"+this.radius+"\n a "+this.radius+","+this.radius+" 0 1 1 0,"+2*this.radius+"\n a "+this.radius+","+this.radius+" 0 1 1 0,-"+2*this.radius},len:function(){return 2*Math.PI*this.radius},pathStyle:function(){return{"stroke-dasharray":this.len+"px "+this.len+"px","stroke-dashoffset":(100-this.percent)/100*this.len+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}},wrapClasses:function(){return""+s},innerClasses:function(){return s+"-inner"}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-collapse";t["default"]={props:{accordion:{type:Boolean,"default":!1},activeKey:{type:[Array,String]}},computed:{classes:function(){return""+i}},compiled:function(){this.setActive()},methods:{setActive:function(){var e=this.getActiveKey();this.$children.forEach(function(t,i){var n=t.key||i.toString(),s=!1;s=self.accordion?e===n:e.indexOf(n)>-1,t.isActive=s,t.index=i})},getActiveKey:function(){var e=this.activeKey||[],t=this.accordion;Array.isArray(e)||(e=[e]),t&&e.length>1&&(e=[e[0]]);for(var i=0;i<e.length;i++)e[i]=e[i].toString();return e},toggle:function(e){var t=e.key.toString(),i=[];if(this.accordion)e.isActive||i.push(t);else{var n=this.getActiveKey(),s=n.indexOf(t);e.isActive?s>-1&&n.splice(s,1):s<0&&n.push(t),i=n}this.activeKey=i,this.$emit("on-change",i)}},watch:{activeKey:function(){this.setActive()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(6),a=n(r),l="ivu-collapse";t["default"]={components:{Icon:a["default"]},props:{key:{type:String}},data:function(){return{index:0,isActive:!1}},computed:{itemClasses:function(){return[l+"-item",(0,o["default"])({},l+"-item-active",this.isActive)]},headerClasses:function(){return l+"-header"},concentClasses:function(){return l+"-content"},boxClasses:function(){return l+"-content-box"}},methods:{toggle:function(){this.$parent.toggle({key:this.key||this.index,isActive:this.isActive})}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(19),a=n(r),l=i(7),u=n(l),c="ivu-picker";t["default"]={mixins:[u["default"]],components:{iButton:a["default"]},props:{showTime:!1,isTime:!1,timeDisabled:!1},data:function(){return{prefixCls:c}},computed:{timeClasses:function(){return(0,o["default"])({},c+"-confirm-time-disabled",this.timeDisabled)}},methods:{handleClear:function(){this.$emit("on-pick-clear")},handleSuccess:function(){this.$emit("on-pick-success")},handleToggleTime:function(){this.timeDisabled||this.$emit("on-pick-toggle-time")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(20),a=i(2),l=i(7),u=n(l),c="ivu-date-picker-cells",d=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()};t["default"]={mixins:[u["default"]],props:{date:{},year:{},month:{},selectionMode:{"default":"day"},disabledDate:{},minDate:{},maxDate:{},rangeState:{"default":function(){return{endDate:null,selecting:!1}}},value:""},data:function(){return{prefixCls:c,readCells:[]}},watch:{"rangeState.endDate":function(e){this.markRange(e)},minDate:function(e,t){e&&!t?(this.rangeState.selecting=!0,this.markRange(e)):e?this.markRange():(this.rangeState.selecting=!1,this.markRange(e))},maxDate:function(e,t){e&&!t&&(this.rangeState.selecting=!1,this.markRange(e))},cells:{handler:function(e){this.readCells=e},immediate:!0}},computed:{classes:function(){return[""+c]},cells:function f(){var e=new Date(this.year,this.month,1),t=(0,r.getFirstDayOfMonth)(e);t=0===t?7:t;var i=d(new Date),n=d(new Date(this.value)),s=d(new Date(this.minDate)),o=d(new Date(this.maxDate)),l=(0,r.getDayCountOfMonth)(e.getFullYear(),e.getMonth()),u=(0,r.getDayCountOfMonth)(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1),c=this.disabledDate,f=[],h={text:"",type:"",selected:!1,disabled:!1,range:!1,start:!1,end:!1};if(7!==t)for(var p=0;p<t;p++){var v=(0,a.deepCopy)(h);v.type="prev-month",v.text=u-(t-1)+p;var m=this.month-1,y=this.year;0===this.month&&(m=11,y-=1);var g=d(new Date(y,m,v.text));v.disabled="function"==typeof c&&c(new Date(g)),f.push(v)}for(var x=1;x<=l;x++){var b=(0,a.deepCopy)(h),w=d(new Date(this.year,this.month,x));b.type=w===i?"today":"normal",b.text=x,b.selected=w===n,b.disabled="function"==typeof c&&c(new Date(w)),b.range=w>=s&&w<=o,b.start=this.minDate&&w===s,b.end=this.maxDate&&w===o,f.push(b)}for(var C=42-f.length,_=1;_<=C;_++){var k=(0,a.deepCopy)(h);k.type="next-month",k.text=_;var M=this.month+1,S=this.year;11===this.month&&(M=0,S+=1);var O=d(new Date(S,M,k.text));k.disabled="function"==typeof c&&c(new Date(O)),f.push(k)}return f}},methods:{getDateOfCell:function(e){var t=this.year,i=this.month,n=e.text,s=this.date,o=s.getHours(),r=s.getMinutes(),a=s.getSeconds();return"prev-month"===e.type?0===i?(i=11,t--):i--:"next-month"===e.type&&(11===i?(i=0,t++):i++),new Date(t,i,n,o,r,a)},handleClick:function(e){var t=e.target;if("EM"===t.tagName){var i=this.cells[parseInt(e.target.getAttribute("index"))];if(i.disabled)return;var n=this.getDateOfCell(i);if("range"===this.selectionMode){if(this.minDate&&this.maxDate){var s=new Date(n.getTime()),o=null;this.rangeState.selecting=!0,this.markRange(this.minDate),this.$emit("on-pick",{minDate:s,maxDate:o},!1)}else if(this.minDate&&!this.maxDate)if(n>=this.minDate){var r=new Date(n.getTime());this.rangeState.selecting=!1,this.$emit("on-pick",{minDate:this.minDate,maxDate:r})}else{var a=new Date(n.getTime());this.$emit("on-pick",{minDate:a,maxDate:this.maxDate},!1)}else if(!this.minDate){var l=new Date(n.getTime());this.rangeState.selecting=!0,this.markRange(this.minDate),this.$emit("on-pick",{minDate:l,maxDate:this.maxDate},!1)}}else this.$emit("on-pick",n)}this.$emit("on-pick-click")},handleMouseMove:function(e){if(this.rangeState.selecting){this.$emit("on-changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:this.rangeState});var t=e.target;if("EM"===t.tagName){var i=this.cells[parseInt(e.target.getAttribute("index"))];this.rangeState.endDate=this.getDateOfCell(i)}}},markRange:function(e){var t=this,i=this.minDate;e||(e=this.maxDate);var n=d(new Date(i)),s=d(new Date(e));this.cells.forEach(function(o){if("today"===o.type||"normal"===o.type){var r=d(new Date(t.year,t.month,o.text));o.range=r>=n&&r<=s,o.start=i&&r===n,o.end=e&&r===s}})},getCellCls:function(e){var t;return[c+"-cell",(t={},(0,o["default"])(t,c+"-cell-selected",e.selected||e.start||e.end),(0,o["default"])(t,c+"-cell-disabled",e.disabled),(0,o["default"])(t,c+"-cell-today","today"===e.type),(0,o["default"])(t,c+"-cell-prev-month","prev-month"===e.type),(0,o["default"])(t,c+"-cell-next-month","next-month"===e.type),(0,o["default"])(t,c+"-cell-range",e.range&&!e.start&&!e.end),t)]}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a=i(7),l=n(a),u="ivu-date-picker-cells";t["default"]={mixins:[l["default"]],props:{date:{},month:{type:Number},disabledDate:{},selectionMode:{"default":"month"}},computed:{classes:function(){return[""+u,u+"-month"]},cells:function c(){for(var c=[],e={text:"",selected:!1,disabled:!1},t=0;t<12;t++){var i=(0,r.deepCopy)(e);i.text=t+1;var n=new Date(this.date);n.setMonth(t),i.disabled="function"==typeof this.disabledDate&&this.disabledDate(n)&&"month"===this.selectionMode,i.selected=Number(this.month)===t,c.push(i)}return c}},methods:{getCellCls:function(e){var t;return[u+"-cell",(t={},(0,o["default"])(t,u+"-cell-selected",e.selected),(0,o["default"])(t,u+"-cell-disabled",e.disabled),t)]},handleClick:function(e){var t=e.target;if("EM"===t.tagName){var i=parseInt(e.target.getAttribute("index")),n=this.cells[i];if(n.disabled)return;this.$emit("on-pick",i)}this.$emit("on-pick-click")},tCell:function(e){return this.t("i.datepicker.months.m"+e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(63),a=n(r),l=i(2),u="ivu-time-picker-cells";t["default"]={mixins:[a["default"]],props:{hours:{type:[Number,String],"default":0},minutes:{type:[Number,String],"default":0},seconds:{type:[Number,String],"default":0},showSeconds:{type:Boolean,"default":!0}},data:function(){return{prefixCls:u,compiled:!1}},computed:{classes:function(){return[""+u,(0,o["default"])({},u+"-with-seconds",this.showSeconds)]},hoursList:function(){for(var e=[],t={text:0,selected:!1,disabled:!1,hide:!1},i=0;i<24;i++){var n=(0,l.deepCopy)(t);n.text=i,this.disabledHours.length&&this.disabledHours.indexOf(i)>-1&&(n.disabled=!0,this.hideDisabledOptions&&(n.hide=!0)),this.hours===i&&(n.selected=!0),e.push(n)}return e},minutesList:function(){for(var e=[],t={text:0,selected:!1,disabled:!1,hide:!1},i=0;i<60;i++){var n=(0,l.deepCopy)(t);n.text=i,this.disabledMinutes.length&&this.disabledMinutes.indexOf(i)>-1&&(n.disabled=!0,this.hideDisabledOptions&&(n.hide=!0)),this.minutes===i&&(n.selected=!0),e.push(n)}return e},secondsList:function(){for(var e=[],t={text:0,selected:!1,disabled:!1,hide:!1},i=0;i<60;i++){var n=(0,l.deepCopy)(t);n.text=i,this.disabledSeconds.length&&this.disabledSeconds.indexOf(i)>-1&&(n.disabled=!0,this.hideDisabledOptions&&(n.hide=!0)),this.seconds===i&&(n.selected=!0),e.push(n)}return e}},methods:{getCellCls:function(e){var t;return[u+"-cell",(t={},(0,o["default"])(t,u+"-cell-selected",e.selected),(0,o["default"])(t,u+"-cell-disabled",e.disabled),t)]},handleClickHours:function(e){this.handleClick("hours",e)},handleClickMinutes:function(e){this.handleClick("minutes",e)},handleClickSeconds:function(e){this.handleClick("seconds",e)},handleClick:function(e,t){var i=t.target;if("LI"===i.tagName){var n=this[e+"List"][parseInt(t.target.getAttribute("index"))];if(n.disabled)return;var s={};s[e]=n.text,this.$emit("on-change",s)}this.$emit("on-pick-click")},scroll:function(e,t){var i=this.$els[e].scrollTop,n=24*this.getScrollIndex(e,t);(0,l.scrollTop)(this.$els[e],i,n,500)},getScrollIndex:function(e,t){var i=(0,l.firstUpperCase)(e),n=this["disabled"+i];return n.length&&this.hideDisabledOptions&&!function(){var e=0;n.forEach(function(i){return i<=t?e++:""}),t-=e}(),t},updateScroll:function(){var e=this,t=["hours","minutes","seconds"];this.$nextTick(function(){t.forEach(function(t){e.$els[t].scrollTop=24*e.getScrollIndex(t,e[t])})})},formatTime:function(e){return e<10?"0"+e:e}},watch:{hours:function(e){this.compiled&&this.scroll("hours",e)},minutes:function(e){this.compiled&&this.scroll("minutes",e)},seconds:function(e){this.compiled&&this.scroll("seconds",e)}},compiled:function(){var e=this;this.updateScroll(),this.$nextTick(function(){return e.compiled=!0})}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-date-picker-cells";t["default"]={props:{date:{},year:{},disabledDate:{},selectionMode:{"default":"year"}},computed:{classes:function(){return[""+a,a+"-year"]},startYear:function(){return 10*Math.floor(this.year/10)},cells:function l(){for(var l=[],e={text:"",selected:!1,disabled:!1},t=0;t<10;t++){var i=(0,r.deepCopy)(e);i.text=this.startYear+t;var n=new Date(this.date);n.setFullYear(i.text),i.disabled="function"==typeof this.disabledDate&&this.disabledDate(n)&&"year"===this.selectionMode,i.selected=Number(this.year)===i.text,l.push(i)}return l}},methods:{getCellCls:function(e){var t;return[a+"-cell",(t={},(0,o["default"])(t,a+"-cell-selected",e.selected),(0,o["default"])(t,a+"-cell-disabled",e.disabled),t)]},nextTenYear:function(){this.$emit("on-pick",Number(this.year)+10,!1)},prevTenYear:function(){this.$emit("on-pick",Number(this.year)-10,!1)},handleClick:function(e){var t=e.target;if("EM"===t.tagName){var i=this.cells[parseInt(e.target.getAttribute("index"))];if(i.disabled)return;this.$emit("on-pick",i.text)}this.$emit("on-pick-click")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(6),a=n(r),l=i(88),u=n(l),c=i(91),d=n(c),f=i(89),h=n(f),p=i(92),v=n(p),m=i(40),y=n(m),g=i(20),x=i(34),b=n(x),w=i(7),C=n(w),_="ivu-picker-panel",k="ivu-date-picker";t["default"]={name:"DatePicker",mixins:[b["default"],C["default"]],components:{Icon:a["default"],DateTable:u["default"],YearTable:d["default"],MonthTable:h["default"],TimePicker:v["default"],Confirm:y["default"]},data:function(){return{prefixCls:_,datePrefixCls:k,shortcuts:[],date:(0,g.initTimeDate)(),value:"",minDate:"",maxDate:"",confirm:!1,rangeState:{endDate:null,selecting:!1},showTime:!1,disabledDate:"",leftCurrentView:"date",rightCurrentView:"date",selectionMode:"range",leftTableYear:null,rightTableYear:null,isTime:!1,format:"yyyy-MM-dd"}},computed:{classes:function(){return[_+"-body-wrapper",k+"-with-range",(0,o["default"])({},_+"-with-sidebar",this.shortcuts.length)]},leftYear:function(){return this.date.getFullYear()},leftTableDate:function(){return"year"===this.leftCurrentView||"month"===this.leftCurrentView?new Date(this.leftTableYear):this.date},leftYearLabel:function(){var e=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year");if("year"===this.leftCurrentView){var t=this.leftTableYear;if(!t)return"";var i=10*Math.floor(t/10);return""+i+e+" - "+(i+9)+e}var n="month"===this.leftCurrentView?this.leftTableYear:this.leftYear;return n?""+n+e:""},leftMonth:function(){return this.date.getMonth()},leftMonthLabel:function(){var e=this.leftMonth+1;return this.t("i.datepicker.month"+e)},rightYear:function(){return this.rightDate.getFullYear()},rightTableDate:function(){return"year"===this.rightCurrentView||"month"===this.rightCurrentView?new Date(this.rightTableYear):this.date},rightYearLabel:function(){var e=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year");if("year"===this.rightCurrentView){var t=this.rightTableYear;if(!t)return"";var i=10*Math.floor(t/10);return""+i+e+" - "+(i+9)+e}var n="month"===this.rightCurrentView?this.rightTableYear:this.rightYear;return n?""+n+e:""},rightMonth:function(){return this.rightDate.getMonth()},rightMonthLabel:function(){var e=this.rightMonth+1;return this.t("i.datepicker.month"+e)},rightDate:function(){var e=new Date(this.date),t=e.getMonth();return e.setDate(1),11===t?(e.setFullYear(e.getFullYear()+1),e.setMonth(0)):e.setMonth(t+1),e},timeDisabled:function(){return!(this.minDate&&this.maxDate)}},watch:{value:function(e){e?Array.isArray(e)&&(this.minDate=e[0]?(0,g.toDate)(e[0]):null,this.maxDate=e[1]?(0,g.toDate)(e[1]):null,this.minDate&&(this.date=new Date(this.minDate))):(this.minDate=null,this.maxDate=null),this.showTime&&(this.$refs.timePicker.value=e)},minDate:function(e){this.showTime&&(this.$refs.timePicker.date=e)},maxDate:function(e){this.showTime&&(this.$refs.timePicker.dateEnd=e)},format:function(e){this.showTime&&(this.$refs.timePicker.format=e)},isTime:function(e){e&&this.$refs.timePicker.updateScroll()}},methods:{resetDate:function(){this.date=new Date(this.date),this.leftTableYear=this.date.getFullYear(),this.rightTableYear=this.rightDate.getFullYear()},handleClear:function(){this.minDate=null,this.maxDate=null,this.date=new Date,this.handleConfirm(),this.showTime&&this.$refs.timePicker.handleClear()},resetView:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];this.leftCurrentView="date",this.rightCurrentView="date",this.leftTableYear=this.leftYear,this.rightTableYear=this.rightYear,e&&(this.isTime=!1)},prevYear:function(e){if("year"===this[e+"CurrentView"])this.$refs[e+"YearTable"].prevTenYear();else if("month"===this[e+"CurrentView"])this[e+"TableYear"]--;else{var t=this.date;t.setFullYear(t.getFullYear()-1),this.resetDate()}},nextYear:function(e){if("year"===this[e+"CurrentView"])this.$refs[e+"YearTable"].nextTenYear();else if("month"===this[e+"CurrentView"])this[e+"TableYear"]--;else{var t=this.date;t.setFullYear(t.getFullYear()+1),this.resetDate()}},prevMonth:function(){this.date=(0,g.prevMonth)(this.date)},nextMonth:function(){this.date=(0,g.nextMonth)(this.date)},handleLeftYearPick:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this.handleYearPick(e,t,"left")},handleRightYearPick:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this.handleYearPick(e,t,"right")},handleYearPick:function(e,t,i){this[i+"TableYear"]=e,t&&(this[i+"CurrentView"]="month");
},handleLeftMonthPick:function(e){this.handleMonthPick(e,"left")},handleRightMonthPick:function(e){this.handleMonthPick(e,"right")},handleMonthPick:function(e,t){var i=this[t+"TableYear"];"right"===t&&(0===e?(e=11,i--):e--),this.date.setYear(i),this.date.setMonth(e),this[t+"CurrentView"]="date",this.resetDate()},showYearPicker:function(e){this[e+"CurrentView"]="year",this[e+"TableYear"]=this[e+"Year"]},showMonthPicker:function(e){this[e+"CurrentView"]="month"},handleConfirm:function(e){this.$emit("on-pick",[this.minDate,this.maxDate],e)},handleRangePick:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this.maxDate===e.maxDate&&this.minDate===e.minDate||(this.minDate=e.minDate,this.maxDate=e.maxDate,t&&this.handleConfirm(!1))},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleToggleTime:function(){this.isTime=!this.isTime},handleTimePick:function(e){this.minDate=e[0],this.maxDate=e[1],this.handleConfirm(!1)}},compiled:function(){this.showTime&&(this.$refs.timePicker.date=this.minDate,this.$refs.timePicker.dateEnd=this.maxDate,this.$refs.timePicker.value=this.value,this.$refs.timePicker.format=this.format,this.$refs.timePicker.showDate=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(6),a=n(r),l=i(88),u=n(l),c=i(91),d=n(c),f=i(89),h=n(f),p=i(93),v=n(p),m=i(40),y=n(m),g=i(34),x=n(g),b=i(7),w=n(b),C=i(20),_="ivu-picker-panel",k="ivu-date-picker";t["default"]={name:"DatePicker",mixins:[x["default"],w["default"]],components:{Icon:a["default"],DateTable:u["default"],YearTable:d["default"],MonthTable:h["default"],TimePicker:v["default"],Confirm:y["default"]},data:function(){return{prefixCls:_,datePrefixCls:k,shortcuts:[],currentView:"date",date:(0,C.initTimeDate)(),value:"",showTime:!1,selectionMode:"day",disabledDate:"",year:null,month:null,confirm:!1,isTime:!1,format:"yyyy-MM-dd"}},computed:{classes:function(){return[_+"-body-wrapper",(0,o["default"])({},_+"-with-sidebar",this.shortcuts.length)]},yearLabel:function(){var e=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year"),t=this.year;if(!t)return"";if("year"===this.currentView){var i=10*Math.floor(t/10);return""+i+e+" - "+(i+9)+e}return""+t+e},monthLabel:function(){var e=this.month+1;return this.t("i.datepicker.month"+e)}},watch:{value:function(e){e&&(e=new Date(e),isNaN(e)||(this.date=e,this.year=e.getFullYear(),this.month=e.getMonth()),this.showTime&&(this.$refs.timePicker.value=e))},date:function(e){this.showTime&&(this.$refs.timePicker.date=e)},format:function(e){this.showTime&&(this.$refs.timePicker.format=e)},currentView:function(e){"time"===e&&this.$refs.timePicker.updateScroll()}},methods:{resetDate:function(){this.date=new Date(this.date)},handleClear:function(){this.date=new Date,this.$emit("on-pick",""),this.showTime&&this.$refs.timePicker.handleClear()},resetView:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];("time"!==this.currentView||e)&&("month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"),this.year=this.date.getFullYear(),this.month=this.date.getMonth(),e&&(this.isTime=!1)},prevYear:function(){"year"===this.currentView?this.$refs.yearTable.prevTenYear():(this.year--,this.date.setFullYear(this.year),this.resetDate())},nextYear:function(){"year"===this.currentView?this.$refs.yearTable.nextTenYear():(this.year++,this.date.setFullYear(this.year),this.resetDate())},prevMonth:function(){this.month--,this.month<0&&(this.month=11,this.year--)},nextMonth:function(){this.month++,this.month>11&&(this.month=0,this.year++)},showYearPicker:function(){this.currentView="year"},showMonthPicker:function(){this.currentView="month"},handleToggleTime:function(){"date"===this.currentView?(this.currentView="time",this.isTime=!0):"time"===this.currentView&&(this.currentView="date",this.isTime=!1)},handleYearPick:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this.year=e,t&&(this.date.setFullYear(e),"year"===this.selectionMode?this.$emit("on-pick",new Date(e,0,1)):this.currentView="month",this.resetDate())},handleMonthPick:function(e){this.month=e;var t=this.selectionMode;if("month"!==t)this.date.setMonth(e),this.currentView="date",this.resetDate();else{this.date.setMonth(e),this.year&&this.date.setFullYear(this.year),this.resetDate();var i=new Date(this.date.getFullYear(),e,1);this.$emit("on-pick",i)}},handleDatePick:function(e){"day"===this.selectionMode&&(this.$emit("on-pick",new Date(e.getTime())),this.date.setFullYear(e.getFullYear()),this.date.setMonth(e.getMonth()),this.date.setDate(e.getDate())),this.resetDate()},handleTimePick:function(e){this.handleDatePick(e)}},compiled:function(){"month"===this.selectionMode&&(this.currentView="month"),this.date&&!this.year&&(this.year=this.date.getFullYear(),this.month=this.date.getMonth()),this.showTime&&(this.$refs.timePicker.date=this.date,this.$refs.timePicker.value=this.value,this.$refs.timePicker.format=this.format,this.$refs.timePicker.showDate=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(90),a=n(r),l=i(40),u=n(l),c=i(34),d=n(c),f=i(7),h=n(f),p=i(20),v="ivu-picker-panel",m="ivu-time-picker";t["default"]={mixins:[d["default"],h["default"]],components:{TimeSpinner:a["default"],Confirm:u["default"]},data:function(){return{prefixCls:v,timePrefixCls:m,format:"HH:mm:ss",showDate:!1,date:(0,p.initTimeDate)(),dateEnd:(0,p.initTimeDate)(),value:"",hours:"",minutes:"",seconds:"",hoursEnd:"",minutesEnd:"",secondsEnd:"",disabledHours:[],disabledMinutes:[],disabledSeconds:[],hideDisabledOptions:!1,confirm:!1}},computed:{classes:function(){return[v+"-body-wrapper",m+"-with-range",(0,o["default"])({},m+"-with-seconds",this.showSeconds)]},showSeconds:function(){return(this.format||"").indexOf("ss")!==-1},visibleDate:function(){var e=this.date||(0,p.initTimeDate)(),t=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year"),i=e.getMonth()+1,n=this.t("i.datepicker.month"+i);return""+e.getFullYear()+t+" "+n},visibleDateEnd:function(){var e=this.dateEnd||(0,p.initTimeDate)(),t=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year"),i=e.getMonth()+1,n=this.t("i.datepicker.month"+i);return""+e.getFullYear()+t+" "+n}},watch:{value:function(e){if(e&&Array.isArray(e)){var t=!!e[0]&&(0,p.toDate)(e[0]),i=!!e[1]&&(0,p.toDate)(e[1]);t&&i&&this.handleChange({hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()},{hours:i.getHours(),minutes:i.getMinutes(),seconds:i.getSeconds()},!1)}}},methods:{handleClear:function(){this.date=(0,p.initTimeDate)(),this.dateEnd=(0,p.initTimeDate)(),this.hours="",this.minutes="",this.seconds="",this.hoursEnd="",this.minutesEnd="",this.secondsEnd=""},handleChange:function(e,t){var i=this,n=arguments.length<=2||void 0===arguments[2]||arguments[2],s=new Date(this.dateEnd);void 0!==e.hours&&(this.date.setHours(e.hours),this.hours=this.date.getHours()),void 0!==e.minutes&&(this.date.setMinutes(e.minutes),this.minutes=this.date.getMinutes()),void 0!==e.seconds&&(this.date.setSeconds(e.seconds),this.seconds=this.date.getSeconds()),void 0!==t.hours&&(this.dateEnd.setHours(t.hours),this.hoursEnd=this.dateEnd.getHours()),void 0!==t.minutes&&(this.dateEnd.setMinutes(t.minutes),this.minutesEnd=this.dateEnd.getMinutes()),void 0!==t.seconds&&(this.dateEnd.setSeconds(t.seconds),this.secondsEnd=this.dateEnd.getSeconds()),this.dateEnd<this.date?this.$nextTick(function(){i.dateEnd=new Date(i.date),i.hoursEnd=i.dateEnd.getHours(),i.minutesEnd=i.dateEnd.getMinutes(),i.secondsEnd=i.dateEnd.getSeconds();var e="yyyy-MM-dd HH:mm:ss";(0,p.formatDate)(s,e)!==(0,p.formatDate)(i.dateEnd,e)&&n&&i.$emit("on-pick",[i.date,i.dateEnd],!0)}):n&&this.$emit("on-pick",[this.date,this.dateEnd],!0)},handleStartChange:function(e){this.handleChange(e,{})},handleEndChange:function(e){this.handleChange({},e)},updateScroll:function(){this.$refs.timeSpinner.updateScroll(),this.$refs.timeSpinnerEnd.updateScroll()}},compiled:function(){this.$parent&&"DatePicker"===this.$parent.$options.name&&(this.showDate=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(90),o=n(s),r=i(40),a=n(r),l=i(34),u=n(l),c=i(7),d=n(c),f=i(20),h="ivu-picker-panel",p="ivu-time-picker";t["default"]={mixins:[u["default"],d["default"]],components:{TimeSpinner:o["default"],Confirm:a["default"]},data:function(){return{prefixCls:h,timePrefixCls:p,date:(0,f.initTimeDate)(),value:"",showDate:!1,format:"HH:mm:ss",hours:"",minutes:"",seconds:"",disabledHours:[],disabledMinutes:[],disabledSeconds:[],hideDisabledOptions:!1,confirm:!1}},computed:{showSeconds:function(){return(this.format||"").indexOf("ss")!==-1},visibleDate:function(){var e=this.date,t=e.getMonth()+1,i=this.t("https://unpkg.com/iview@1.0.0/dist/i.datepicker.year"),n=this.t("i.datepicker.month"+t);return""+e.getFullYear()+i+" "+n}},watch:{value:function(e){e&&(e=new Date(e),isNaN(e)||(this.date=e,this.handleChange({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()},!1)))}},methods:{handleClear:function(){this.date=(0,f.initTimeDate)(),this.hours="",this.minutes="",this.seconds=""},handleChange:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];void 0!==e.hours&&(this.date.setHours(e.hours),this.hours=this.date.getHours()),void 0!==e.minutes&&(this.date.setMinutes(e.minutes),this.minutes=this.date.getMinutes()),void 0!==e.seconds&&(this.date.setSeconds(e.seconds),this.seconds=this.date.getSeconds()),t&&this.$emit("on-pick",this.date,!0)},updateScroll:function(){this.$refs.timeSpinner.updateScroll()}},compiled:function(){this.$parent&&"DatePicker"===this.$parent.$options.name&&(this.showDate=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(33),o=n(s),r=i(41),a=n(r),l=i(32),u=n(l),c=i(26),d=n(c),f=i(2),h=i(20),p="ivu-date-picker",v={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},m=" - ",y=function(e,t){return(0,h.formatDate)(e,t)},g=function(e,t){return(0,h.parseDate)(e,t)},x=function(e,t){if(Array.isArray(e)&&2===e.length){var i=e[0],n=e[1];if(i&&n)return(0,h.formatDate)(i,t)+m+(0,h.formatDate)(n,t)}return""},b=function(e,t){var i=e.split(m);if(2===i.length){var n=i[0],s=i[1];return[(0,h.parseDate)(n,t),(0,h.parseDate)(s,t)]}return[]},w={"default":{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:y,parser:g},datetime:{formatter:y,parser:g},daterange:{formatter:x,parser:b},datetimerange:{formatter:x,parser:b},timerange:{formatter:x,parser:b},time:{formatter:y,parser:g},month:{formatter:y,parser:g},year:{formatter:y,parser:g},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}};t["default"]={components:{iInput:a["default"],Drop:u["default"]},directives:{clickoutside:d["default"]},props:{format:{type:String},readonly:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},editable:{type:Boolean,"default":!0},clearable:{type:Boolean,"default":!0},confirm:{type:Boolean,"default":!1},open:{type:Boolean,"default":null},size:{validator:function(e){return(0,f.oneOf)(e,["small","large"])}},placeholder:{type:String,"default":""},placement:{validator:function(e){return(0,f.oneOf)(e,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},"default":"bottom-start"},options:{type:Object}},data:function(){return{prefixCls:p,showClose:!1,visible:!1,picker:null,internalValue:"",disableClickOutSide:!1}},computed:{opened:function(){return null===this.open?this.visible:this.open},iconType:function(){var e="ios-calendar-outline";return"time"!==this.type&&"timerange"!==this.type||(e="ios-clock-outline"),this.showClose&&(e="ios-close"),e},transition:function(){return"bottom-start"===this.placement||"bottom"===this.placement||"bottom-end"===this.placement?"slide-up":"slide-down"},selectionMode:function(){return"month"https://unpkg.com/iview@1.0.0/dist/===this.type?"month":"year"https://unpkg.com/iview@1.0.0/dist/===this.type?"year":"day"},visualValue:{get:function(){var e=this.internalValue;if(e){var t=(w[this.type]||w["default"]).formatter,i=v[this.type];return t(e,this.format||i)}},set:function(e){if(e){var t=this.type,i=(w[t]||w["default"]).parser,n=i(e,this.format||v[t]);return void(n&&this.picker&&(this.picker.value=n))}this.picker&&(this.picker.value=e)}}},methods:{handleClose:function(){null===this.open&&(this.disableClickOutSide||(this.visible=!1),this.disableClickOutSide=!1)},handleFocus:function(){this.readonly||(this.visible=!0)},handleInputChange:function(e){var t=this.visualValue,i=e.target.value,n="",s="",o=this.type,r=this.format||v[o];if("daterange"===o||"timerange"===o||"datetimerange"===o){var a=(w[o]||w["default"]).parser,l=(w[o]||w["default"]).formatter,u=a(i,r);n=u[0]instanceof Date&&u[1]instanceof Date?u[0].getTime()>u[1].getTime()?t:l(u,r):t,s=a(n,r)}else if("time"===o){var c=(0,h.parseDate)(i,r);if(c instanceof Date)if(this.disabledHours.length||this.disabledMinutes.length||this.disabledSeconds.length){var d=c.getHours(),f=c.getMinutes(),p=c.getSeconds();n=this.disabledHours.length&&this.disabledHours.indexOf(d)>-1||this.disabledMinutes.length&&this.disabledMinutes.indexOf(f)>-1||this.disabledSeconds.length&&this.disabledSeconds.indexOf(p)>-1?t:(0,h.formatDate)(c,r)}else n=(0,h.formatDate)(c,r);else n=t;s=(0,h.parseDate)(n,r)}else{var m=(0,h.parseDate)(i,r);if(m instanceof Date){var y=this.options||!1;n=y&&y.disabledDate&&"function"==typeof y.disabledDate&&y.disabledDate(new Date(m))?t:(0,h.formatDate)(m,r)}else n=t;s=(0,h.parseDate)(n,r)}this.visualValue=n,e.target.value=n,this.internalValue=s,n!==t&&this.emitChange(s)},handleInputMouseenter:function(){this.readonly||this.disabled||this.visualValue&&this.clearable&&(this.showClose=!0)},handleInputMouseleave:function(){this.showClose=!1},handleIconClick:function(){this.showClose&&this.handleClear()},handleClear:function(){this.visible=!1,this.internalValue="",this.value="",this.$emit("on-clear"),this.$dispatch("on-form-change","")},showPicker:function(){var e=this;if(!this.picker){var t=this.type;this.picker=new o["default"](this.panel).$mount(this.$els.picker),"datetime"!==t&&"datetimerange"!==t||(this.confirm=!0,this.picker.showTime=!0),this.picker.value=this.internalValue,this.picker.confirm=this.confirm,this.picker.selectionMode=this.selectionMode,this.format&&(this.picker.format=this.format),this.disabledHours&&(this.picker.disabledHours=this.disabledHours),this.disabledMinutes&&(this.picker.disabledMinutes=this.disabledMinutes),this.disabledSeconds&&(this.picker.disabledSeconds=this.disabledSeconds),this.hideDisabledOptions&&(this.picker.hideDisabledOptions=this.hideDisabledOptions);var i=this.options;for(var n in i)this.picker[n]=i[n];this.picker.$on("on-pick",function(t){var i=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];e.confirm||(e.visible=i),e.value=t,e.picker.value=t,e.picker.resetView&&e.picker.resetView(),e.emitChange(t)}),this.picker.$on("on-pick-clear",function(){e.handleClear()}),this.picker.$on("on-pick-success",function(){e.visible=!1,e.$emit("on-ok")}),this.picker.$on("on-pick-click",function(){return e.disableClickOutSide=!0})}this.internalValue instanceof Date?this.picker.date=new Date(this.internalValue.getTime()):this.picker.value=this.internalValue,this.picker.resetView&&this.picker.resetView()},emitChange:function(e){var t=this.type,i=this.format||v[t],n=(w[t]||w["default"]).formatter,s=n(e,i);"daterange"!==t&&"timerange"!==t||(s=[s.split(m)[0],s.split(m)[1]]),this.$emit("on-change",s),this.$dispatch("on-form-change",s)}},watch:{visible:function(e){e?(this.showPicker(),this.$refs.drop.update(),null===this.open&&this.$emit("on-open-change",!0)):(this.picker&&this.picker.resetView&&this.picker.resetView(!0),this.$refs.drop.destroy(),null===this.open&&this.$emit("on-open-change",!1))},internalValue:function(e){!e&&this.picker&&"function"==typeof this.picker.handleClear&&this.picker.handleClear()},value:{immediate:!0,handler:function(e){var t=this.type,i=(w[t]||w["default"]).parser;!e||"time"!==t||e instanceof Date?!e||"timerange"!==t||!Array.isArray(e)||2!==e.length||e[0]instanceof Date||e[1]instanceof Date||(e=e.join(m),e=i(e,this.format||v[t])):e=i(e,this.format||v[t]),this.internalValue=e}},open:function(e){e===!0?(this.visible=e,this.$emit("on-open-change",!0)):e===!1&&this.$emit("on-open-change",!1)}},beforeDestroy:function(){this.picker&&this.picker.$destroy()},ready:function(){null!==this.open&&(this.visible=this.open)},events:{"on-form-blur":function(){return!1},"on-form-change":function(){return!1}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-dropdown-item";t["default"]={props:{key:{type:[String,Number]},disabled:{type:Boolean,"default":!1},selected:{type:Boolean,"default":!1},divided:{type:Boolean,"default":!1}},computed:{classes:function(){var e;return[""+r,(e={},(0,o["default"])(e,r+"-disabled",this.disabled),(0,o["default"])(e,r+"-selected",this.selected),(0,o["default"])(e,r+"-divided",this.divided),e)]}},methods:{handleClick:function(){var e=this.$parent.$parent,t=this.$parent&&"Dropdown"===this.$parent.$options.name;this.disabled?this.$nextTick(function(){e.visible=!0}):t?this.$parent.$emit("on-haschild-click"):e&&"Dropdown"===e.$options.name&&e.$emit("on-hover-click"),e.$emit("on-click",this.key)}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(32),o=n(s),r=i(26),a=n(r),l=i(2),u="ivu-dropdown";t["default"]={name:"Dropdown",directives:{clickoutside:a["default"]},components:{Drop:o["default"]},props:{trigger:{validator:function(e){return(0,l.oneOf)(e,["click","hover","custom"])},"default":"hover"},placement:{validator:function(e){return(0,l.oneOf)(e,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},"default":"bottom"},visible:{type:Boolean,"default":!1}},computed:{transition:function(){return["bottom-start","bottom","bottom-end"].indexOf(this.placement)>-1?"slide-up":"fade"}},data:function(){return{prefixCls:u}},methods:{handleClick:function(){return"custom"!==this.trigger&&("click"===this.trigger&&void(this.visible=!this.visible))},handleMouseenter:function(){var e=this;return"custom"!==this.trigger&&("hover"===this.trigger&&(clearTimeout(this.timeout),void(this.timeout=setTimeout(function(){e.visible=!0},250))))},handleMouseleave:function(){var e=this;return"custom"!==this.trigger&&("hover"===this.trigger&&(clearTimeout(this.timeout),void(this.timeout=setTimeout(function(){e.visible=!1},150))))},handleClose:function(){return"custom"!==this.trigger&&("click"===this.trigger&&void(this.visible=!1))},hasParent:function(){var e=this.$parent.$parent;return!(!e||"Dropdown"!==e.$options.name)&&e}},watch:{visible:function(e){e?this.$refs.drop.update():this.$refs.drop.destroy(),this.$emit("on-visible-change",e)}},events:{"on-click":function(e){var t=this.hasParent();t&&t.$emit("on-click",e)},"on-hover-click":function(){var e=this,t=this.hasParent();t?(this.$nextTick(function(){return"custom"!==e.trigger&&void(e.visible=!1)}),t.$emit("on-hover-click")):this.$nextTick(function(){return"custom"!==e.trigger&&void(e.visible=!1)})},"on-haschild-click":function(){var e=this;this.$nextTick(function(){return"custom"!==e.trigger&&void(e.visible=!0)});var t=this.hasParent();t&&t.$emit("on-haschild-click")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),s=0,o=n.length;s<o-1;++s){var r=n[s];if(!(r in i))throw new Error("[iView warn]: please transfer a valid prop path to form item!");i=i[r]}return{o:i,k:n[s],v:i[n[s]]}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(1),r=n(o),a=i(101),l=n(a),u="ivu-form-item";t["default"]={props:{label:{type:String,"default":""},labelWidth:{type:Number},prop:{type:String},required:{type:Boolean,"default":!1},rules:{type:[Object,Array]},error:{type:String},validateStatus:{type:Boolean},showMessage:{type:Boolean,"default":!0}},data:function(){return{prefixCls:u,isRequired:!1,validateState:"",validateMessage:"",validateDisabled:!1,validator:{}}},watch:{error:function(e){this.validateMessage=e,this.validateState="error"},validateStatus:function(e){this.validateState=e}},computed:{classes:function(){var e;return[""+u,(e={},(0,r["default"])(e,u+"-required",this.required||this.isRequired),(0,r["default"])(e,u+"-error","error"===this.validateState),(0,r["default"])(e,u+"-validating","validating"===this.validateState),e)]},form:function(){for(var e=this.$parent;"iForm"!==e.$options.name;)e=e.$parent;return e},fieldValue:{cache:!1,get:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return t.indexOf(":")!==-1&&(t=t.replace(/:/,".")),s(e,t).v}}},labelStyles:function(){var e={},t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t+"px"),e},contentStyles:function(){var e={},t=this.labelWidth||this.form.labelWidth;return t&&(e.marginLeft=t+"px"),e}},methods:{getRules:function(){var e=this.form.rules,t=this.rules;return e=e?e[this.prop]:[],[].concat(t||e||[])},getFilteredRule:function(e){var t=this.getRules();return t.filter(function(t){return!t.trigger||t.trigger.indexOf(e)!==-1})},validate:function(e){var t=this,i=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],n=this.getFilteredRule(e);if(!n||0===n.length)return i(),!0;this.validateState="validating";var s={};s[this.prop]=n;var o=new l["default"](s),r={};r[this.prop]=this.fieldValue,o.validate(r,{firstFields:!0},function(e){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",i(t.validateMessage)})},resetField:function(){this.validateState="",this.validateMessage="";var e=this.form.model,t=this.fieldValue,i=this.prop;i.indexOf(":")!==-1&&(i=i.replace(/:/,"."));var n=s(e,i);Array.isArray(t)&&t.length>0?(this.validateDisabled=!0,n.o[n.k]=[]):t!==this.initialValue&&(this.validateDisabled=!0,n.o[n.k]=this.initialValue)},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){return this.validateDisabled?void(this.validateDisabled=!1):void this.validate("change")}},ready:function(){var e=this;if(this.prop){this.$dispatch("on-form-item-add",this),Object.defineProperty(this,"initialValue",{value:this.fieldValue});var t=this.getRules();t.length&&(t.every(function(t){if(t.required)return e.isRequired=!0,!1}),this.$on("on-form-blur",this.onFieldBlur),this.$on("on-form-change",this.onFieldChange))}},beforeDestroy:function(){this.$dispatch("on-form-item-remove",this)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-form";t["default"]={name:"iForm",props:{model:{type:Object},rules:{type:Object},labelWidth:{type:Number},labelPosition:{validator:function(e){return(0,r.oneOf)(e,["left","right","top"])},"default":"right"},inline:{type:Boolean,"default":!1},showMessage:{type:Boolean,"default":!0}},data:function(){return{fields:[]}},computed:{classes:function(){return[""+a,a+"-label-"+this.labelPosition,(0,o["default"])({},a+"-inline",this.inline)]}},methods:{resetFields:function(){this.fields.forEach(function(e){e.resetField()})},validate:function(e){var t=this,i=!0,n=0;this.fields.forEach(function(s){s.validate("",function(s){s&&(i=!1),"function"==typeof e&&++n===t.fields.length&&e(i)})})},validateField:function(e,t){var i=this.fields.filter(function(t){return t.prop===e})[0];if(!i)throw new Error("[iView warn]: must call validateField with valid prop string!");i.validate("",t)}},watch:{rules:function(){this.validate()}},events:{"on-form-item-add":function(e){return e&&this.fields.push(e),!1},"on-form-item-remove":function(e){return e.prop&&this.fields.splice(this.fields.indexOf(e),1),!1}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-icon";t["default"]={props:{type:String,size:[Number,String],color:String},computed:{classes:function(){return i+" "+i+"-"+this.type},styles:function(){var e={};return this.size&&(e["font-size"]=this.size+"px"),this.color&&(e.color=this.color),e}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){return/(^-?[0-9]+\.{1}\d+$)|(^-?[1-9][0-9]*$)/.test(e+"")}function o(e,t){var i=void 0,n=void 0,s=void 0;try{i=e.toString().split(".")[1].length}catch(o){i=0}try{n=t.toString().split(".")[1].length}catch(o){n=0}return s=Math.pow(10,Math.max(i,n)),(e*s+t*s)/s}Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),a=n(r),l=i(2),u="ivu-input-number",c="ivu-icon";t["default"]={props:{max:{type:Number,"default":1/0},min:{type:Number,"default":-(1/0)},step:{type:Number,"default":1},value:{type:Number,"default":1},size:{validator:function(e){return(0,l.oneOf)(e,["small","large"])}},disabled:{type:Boolean,"default":!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1}},computed:{wrapClasses:function(){var e;return[""+u,(e={},(0,a["default"])(e,u+"-"+this.size,!!this.size),(0,a["default"])(e,u+"-disabled",this.disabled),(0,a["default"])(e,u+"-focused",this.focused),e)]},handlerClasses:function(){return u+"-handler-wrap"},upClasses:function(){return[u+"-handler",u+"-handler-up",(0,a["default"])({},u+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return u+"-handler-up-inner "+c+" "+c+"-ios-arrow-up"},downClasses:function(){return[u+"-handler",u+"-handler-down",(0,a["default"])({},u+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return u+"-handler-down-inner "+c+" "+c+"-ios-arrow-down"},inputWrapClasses:function(){return u+"-input-wrap"},inputClasses:function(){return u+"-input"}},methods:{preventDefault:function(e){e.preventDefault()},up:function(e){var t=Number(e.target.value);return(!this.upDisabled||!isNaN(t))&&void this.changeStep("up",e)},down:function(e){var t=Number(e.target.value);return(!this.downDisabled||!isNaN(t))&&void this.changeStep("down",e)},changeStep:function(e,t){if(this.disabled)return!1;var i=Number(t.target.value),n=Number(this.value),s=Number(this.step);if(isNaN(n))return!1;if(!isNaN(i))if("up"===e){if(!(o(i,s)<=this.max))return!1;n=i}else if("down"===e){if(!(o(i,-s)>=this.min))return!1;n=i}"up"===e?n=o(n,s):"down"===e&&(n=o(n,-s)),this.setValue(n)},setValue:function(e){var t=this;this.$nextTick(function(){t.value=e,t.$emit("on-change",e),t.$dispatch("on-form-change",e)})},focus:function(){this.focused=!0},blur:function(){this.focused=!1},keyDown:function(e){38===e.keyCode?(e.preventDefault(),this.up(e)):40===e.keyCode&&(e.preventDefault(),this.down(e))},change:function(e){var t=e.target.value.trim(),i=this.max,n=this.min;s(t)?(t=Number(t),this.value=t,t>i?this.setValue(i):t<n?this.setValue(n):this.setValue(t)):e.target.value=this.value},changeVal:function(e){if(s(e)||0===e){e=Number(e);var t=this.step;this.upDisabled=e+t>this.max,this.downDisabled=e-t<this.min}else this.upDisabled=!0,this.downDisabled=!0}},compiled:function(){this.changeVal(this.value)},watch:{value:function(e){this.changeVal(e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a=i(172),l=n(a),u="ivu-input";t["default"]={props:{type:{validator:function(e){return(0,r.oneOf)(e,["text","textarea","password"])},"default":"text"},value:{type:[String,Number],"default":""},size:{validator:function(e){return(0,r.oneOf)(e,["small","large"])}},placeholder:{type:String,"default":""},maxlength:{type:Number},disabled:{type:Boolean,"default":!1},icon:String,autosize:{type:[Boolean,Object],"default":!1},rows:{type:Number,"default":2},readonly:{type:Boolean,"default":!1},name:{type:String},number:{type:Boolean,"default":!1}},data:function(){return{prefixCls:u,prepend:!0,append:!0,slotReady:!1,textareaStyles:{}}},computed:{wrapClasses:function(){var e;return[u+"-wrapper",(e={},(0,o["default"])(e,u+"-wrapper-"+this.size,!!this.size),(0,o["default"])(e,u+"-type",this.type),(0,o["default"])(e,u+"-group",this.prepend||this.append),(0,o["default"])(e,u+"-group-"+this.size,(this.prepend||this.append)&&!!this.size),e)]},inputClasses:function(){var e;return[""+u,(e={},(0,o["default"])(e,u+"-"+this.size,!!this.size),(0,o["default"])(e,u+"-disabled",this.disabled),e)]},textareaClasses:function(){return[""+u,(0,o["default"])({},u+"-disabled",this.disabled)]}},methods:{handleEnter:function(){this.$emit("on-enter")},handleIconClick:function(){this.$emit("on-click")},handleFocus:function(){this.$emit("on-focus")},handleBlur:function(){this.$emit("on-blur"),this.$dispatch("on-form-blur",this.value)},handleChange:function(e){this.$emit("on-change",e)},resizeTextarea:function(){var e=this.autosize;if(!e||"textarea"!==this.type)return!1;var t=e.minRows,i=e.maxRows;this.textareaStyles=(0,l["default"])(this.$els.textarea,t,i)},init:function(){"textarea"https://unpkg.com/iview@1.0.0/dist/!==this.type?(this.prepend=""!==this.$els.prepend.innerHTML,this.append=""!==this.$els.append.innerHTML):(this.prepend=!1,this.append=!1),this.slotReady=!0,this.resizeTextarea()}},watch:{value:function(){var e=this;this.$nextTick(function(){e.resizeTextarea()}),this.$dispatch("on-form-change",this.value)}},compiled:function(){var e=this;this.$nextTick(function(){return e.init()})}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(14),o=n(s),r=i(35),a=n(r),l=i(1),u=n(l),c="ivu-col";t["default"]={props:{span:[Number,String],order:[Number,String],offset:[Number,String],push:[Number,String],pull:[Number,String],className:String,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object]},data:function(){return{gutter:0}},computed:{classes:function(){var e,t=this,i=[""+c,(e={},(0,u["default"])(e,c+"-span-"+this.span,this.span),(0,u["default"])(e,c+"-order-"+this.order,this.order),(0,u["default"])(e,c+"-offset-"+this.offset,this.offset),(0,u["default"])(e,c+"-push-"+this.push,this.push),(0,u["default"])(e,c+"-pull-"+this.pull,this.pull),(0,u["default"])(e,""+this.className,!!this.className),e)];return["xs","sm","md","lg"].forEach(function(e){"number"==typeof t[e]?i.push(c+"-span-"+e+"-"+t[e]):"object"===(0,a["default"])(t[e])&&!function(){var n=t[e];(0,o["default"])(n).forEach(function(t){i.push("span"!==t?c+"-"+e+"-"+t+"-"+n[t]:c+"-span-"+e+"-"+n[t])})}()}),i},styles:function(){var e={};return 0!==this.gutter&&(e={paddingLeft:this.gutter/2+"px",paddingRight:this.gutter/2+"px"}),e}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-row";t["default"]={props:{type:{validator:function(e){return(0,r.oneOf)(e,["flex"])}},align:{validator:function(e){return(0,r.oneOf)(e,["top","middle","bottom"])}},justify:{validator:function(e){return(0,r.oneOf)(e,["start","end","center","space-around","space-between"])}},gutter:{type:Number,"default":0},className:String},computed:{classes:function(){var e;return[(e={},(0,o["default"])(e,""+a,!this.type),(0,o["default"])(e,a+"-"+this.type,!!this.type),(0,o["default"])(e,a+"-"+this.type+"-"+this.align,!!this.align),(0,o["default"])(e,a+"-"+this.type+"-"+this.justify,!!this.justify),(0,o["default"])(e,""+this.className,!!this.className),e)]},styles:function(){var e={};return 0!==this.gutter&&(e={marginLeft:this.gutter/-2+"px",
marginRight:this.gutter/-2+"px"}),e}},methods:{updateGutter:function(e){this.$children.forEach(function(t){0!==e&&(t.gutter=e)})}},watch:{gutter:function(e){this.updateGutter(e)}},ready:function(){this.updateGutter(this.gutter)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-loading-bar";t["default"]={props:{percent:{type:Number,"default":0},color:{type:String,"default":"primary"},failedColor:{type:String,"default":"error"},height:{type:Number,"default":2},status:{type:String,validator:function(e){return(0,r.oneOf)(e,["success","error"])},"default":"success"},show:{type:Boolean,"default":!1}},computed:{classes:function(){return""+a},innerClasses:function(){var e;return[a+"-inner",(e={},(0,o["default"])(e,a+"-inner-color-primary","primary"===this.color&&"success"===this.status),(0,o["default"])(e,a+"-inner-failed-color-error","error"===this.failedColor&&"error"===this.status),e)]},outerStyles:function(){return{height:this.height+"px"}},styles:function(){var e={width:this.percent+"%",height:this.height+"px"};return"primary"!==this.color&&"success"===this.status&&(e.backgroundColor=this.color),"error"!==this.failedColor&&"error"===this.status&&(e.backgroundColor=this.failedColor),e}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-menu";t["default"]={name:"MenuGroup",props:{title:{type:String,"default":""}},data:function(){return{prefixCls:i}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-menu";t["default"]={name:"MenuItem",props:{key:{type:[String,Number],required:!0},disabled:{type:Boolean,"default":!1}},data:function(){return{active:!1}},computed:{classes:function(){var e;return[r+"-item",(e={},(0,o["default"])(e,r+"-item-active",this.active),(0,o["default"])(e,r+"-item-selected",this.active),(0,o["default"])(e,r+"-item-disabled",this.disabled),e)]}},methods:{handleClick:function(){this.disabled||this.$dispatch("on-menu-item-select",this.key)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-menu";t["default"]={props:{mode:{validator:function(e){return(0,r.oneOf)(e,["horizontal","vertical"])},"default":"vertical"},theme:{validator:function(e){return(0,r.oneOf)(e,["light","dark","primary"])},"default":"light"},activeKey:{type:[String,Number]},openKeys:{type:Array,"default":function(){return[]}},accordion:{type:Boolean,"default":!1},width:{type:String,"default":"240px"}},computed:{classes:function(){var e=this.theme;return"vertical"===this.mode&&"primary"===this.theme&&(e="light"),[""+a,a+"-"+e,(0,o["default"])({},a+"-"+this.mode,this.mode)]},styles:function(){var e={};return"vertical"===this.mode&&(e.width=this.width),e}},methods:{updateActiveKey:function(){var e=this;this.$children.forEach(function(t,i){e.activeKey||0!==i||(e.activeKey=-1),"Submenu"https://unpkg.com/iview@1.0.0/dist/===t.$options.name?(t.active=!1,t.$children.forEach(function(t){"MenuGroup"===t.$options.name?t.$children.forEach(function(t){t.key===e.activeKey?(t.active=!0,t.$parent.$parent.active=!0):t.active=!1}):"MenuItem"===t.$options.name&&(t.key===e.activeKey?(t.active=!0,t.$parent.active=!0):t.active=!1)})):"MenuGroup"https://unpkg.com/iview@1.0.0/dist/===t.$options.name?t.$children.forEach(function(t){t.active=t.key===e.activeKey}):"MenuItem"===t.$options.name&&(t.active=t.key===e.activeKey)})},updateOpenKeys:function(e){var t=this.openKeys.indexOf(e);t>-1?this.openKeys.splice(t,1):this.openKeys.push(e)},updateOpened:function(){var e=this;this.$children.forEach(function(t){"Submenu"===t.$options.name&&e.openKeys.indexOf(t.key)>-1&&(t.opened=!0)})}},compiled:function(){this.updateActiveKey(),this.updateOpened()},events:{"on-menu-item-select":function(e){this.activeKey=e,this.$emit("on-select",e)}},watch:{openKeys:function(){this.$emit("on-open-change",this.openKeys)},activeKey:function(){this.updateActiveKey()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(32),a=n(r),l=i(6),u=n(l),c=i(2),d="ivu-menu";t["default"]={name:"Submenu",components:{Icon:u["default"],Drop:a["default"]},props:{key:{type:[String,Number],required:!0},disabled:{type:Boolean,"default":!1}},data:function(){return{prefixCls:d,active:!1,opened:!1,dropWidth:parseFloat((0,c.getStyle)(this.$el,"width"))}},computed:{classes:function(){var e;return[d+"-submenu",(e={},(0,o["default"])(e,d+"-item-active",this.active),(0,o["default"])(e,d+"-opened",this.opened),(0,o["default"])(e,d+"-submenu-disabled",this.disabled),e)]},mode:function(){return this.$parent.mode},accordion:function(){return this.$parent.accordion},dropStyle:function(){var e={};return this.dropWidth&&(e.minWidth=this.dropWidth+"px"),e}},methods:{handleMouseenter:function(){var e=this;this.disabled||"vertical"!==this.mode&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.$parent.updateOpenKeys(e.key),e.opened=!0},250))},handleMouseleave:function(){var e=this;this.disabled||"vertical"!==this.mode&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.$parent.updateOpenKeys(e.key),e.opened=!1},150))},handleClick:function(){if(!this.disabled&&"horizontal"!==this.mode){var e=this.opened;this.accordion&&this.$parent.$children.forEach(function(e){"Submenu"===e.$options.name&&(e.opened=!1)}),this.opened=!e,this.$parent.updateOpenKeys(this.key)}}},watch:{mode:function(e){"horizontal"===e&&this.$refs.drop.update()},opened:function(e){"vertical"!==this.mode&&(e?(this.dropWidth=parseFloat((0,c.getStyle)(this.$el,"width")),this.$refs.drop.update()):this.$refs.drop.destroy())}},events:{"on-menu-item-select":function(){return"horizontal"===this.mode&&(this.opened=!1),!0}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(21),o=n(s),r=i(1),a=n(r),l=i(13),u=n(l),c=i(19),d=n(c),f=i(2),h=i(9),p="ivu-modal";t["default"]={components:{Icon:u["default"],iButton:d["default"]},props:{visible:{type:Boolean,"default":!1},closable:{type:Boolean,"default":!0},maskClosable:{type:Boolean,"default":!0},title:{type:String},width:{type:[Number,String],"default":520},okText:{type:String,"default":function(){return(0,h.t)("i.modal.okText")}},cancelText:{type:String,"default":function(){return(0,h.t)("i.modal.cancelText")}},loading:{type:Boolean,"default":!1},style:{type:Object},className:{type:String},footerHide:{type:Boolean,"default":!1},scrollable:{type:Boolean,"default":!1}},data:function(){return{prefixCls:p,wrapShow:!1,showHead:!0,buttonLoading:!1}},computed:{wrapClasses:function(){var e;return[p+"-wrap",(e={},(0,a["default"])(e,p+"-hidden",!this.wrapShow),(0,a["default"])(e,""+this.className,!!this.className),e)]},maskClasses:function(){return p+"-mask"},classes:function(){return""+p},styles:function(){var e={},t={width:this.width+"px"},i=this.style?this.style:{};return(0,o["default"])(e,t,i),e}},methods:{close:function(){this.visible=!1,this.$emit("on-cancel")},mask:function(){this.maskClosable&&this.close()},cancel:function(){this.close()},ok:function(){this.loading?this.buttonLoading=!0:this.visible=!1,this.$emit("on-ok")},EscClose:function(e){this.visible&&this.closable&&27===e.keyCode&&this.close()},checkScrollBar:function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.bodyIsOverflowing&&(this.scrollBarWidth=(0,f.getScrollBarSize)())},setScrollBar:function(){this.bodyIsOverflowing&&void 0!==this.scrollBarWidth&&(document.body.style.paddingRight=this.scrollBarWidth+"px")},resetScrollBar:function(){document.body.style.paddingRight=""},addScrollEffect:function(){this.checkScrollBar(),this.setScrollBar(),document.body.style.overflow="hidden"},removeScrollEffect:function(){document.body.style.overflow="",this.resetScrollBar()}},ready:function(){this.visible&&(this.wrapShow=!0);var e=!0;this.$els.head.innerHTML!='<div class="'+p+'-header-inner"></div>'||this.title||(e=!1),this.showHead=e,document.addEventListener("keydown",this.EscClose)},beforeDestroy:function(){document.removeEventListener("keydown",this.EscClose),this.removeScrollEffect()},watch:{visible:function(e){var t=this;e===!1?(this.buttonLoading=!1,this.timer=setTimeout(function(){t.wrapShow=!1,t.removeScrollEffect()},300)):(this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect())},loading:function(e){e||(this.buttonLoading=!1)},scrollable:function(e){e?this.removeScrollEffect():this.addScrollEffect()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function s(e){return/^[1-9][0-9]*$/.test(e+"")}Object.defineProperty(t,"__esModule",{value:!0});var o=i(99),r=n(o),a=i(98),l=n(a),u=i(7),c=n(u),d="ivu-page";t["default"]={mixins:[c["default"]],components:{iSelect:r["default"],iOption:l["default"]},props:{pageSizeOpts:Array,showSizer:Boolean,showElevator:Boolean,current:Number,_current:Number,pageSize:Number,allPages:Number,isSmall:Boolean},computed:{size:function(){return this.isSmall?"small":"default"},optsClasses:function(){return[d+"-options"]},sizerClasses:function(){return[d+"-options-sizer"]},ElevatorClasses:function(){return[d+"-options-elevator"]}},methods:{changeSize:function(){this.$emit("on-size",this.pageSize)},changePage:function(e){var t=e.target.value.trim(),i=0;if(s(t)){if(t=Number(t),t!=this.current){var n=this.allPages;i=t>n?n:t}}else i=1;i&&(this.$emit("on-page",i),e.target.value=i)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a=i(445),l=n(a),u=i(7),c=n(u),d="ivu-page";t["default"]={mixins:[c["default"]],components:{Options:l["default"]},props:{current:{type:Number,"default":1},total:{type:Number,"default":0},pageSize:{type:Number,"default":10},pageSizeOpts:{type:Array,"default":function(){return[10,20,30,40]}},size:{validator:function(e){return(0,r.oneOf)(e,["small"])}},simple:{type:Boolean,"default":!1},showTotal:{type:Boolean,"default":!1},showElevator:{type:Boolean,"default":!1},showSizer:{type:Boolean,"default":!1},"class":{type:String},style:{type:Object}},data:function(){return{prefixCls:d}},computed:{isSmall:function(){return!!this.size},allPages:function(){var e=Math.ceil(this.total/this.pageSize);return 0===e?1:e},simpleWrapClasses:function(){return[""+d,d+"-simple",(0,o["default"])({},""+this["class"],!!this["class"])]},simplePagerClasses:function(){return d+"-simple-pager"},wrapClasses:function(){var e;return[""+d,(e={},(0,o["default"])(e,""+this["class"],!!this["class"]),(0,o["default"])(e,"mini",!!this.size),e)]},prevClasses:function(){return[d+"-prev",(0,o["default"])({},d+"-disabled",1===this.current)]},nextClasses:function(){return[d+"-next",(0,o["default"])({},d+"-disabled",this.current===this.allPages)]},firstPageClasses:function(){return[d+"-item",(0,o["default"])({},d+"-item-active",1===this.current)]},lastPageClasses:function(){return[d+"-item",(0,o["default"])({},d+"-item-active",this.current===this.allPages)]}},methods:{changePage:function(e){this.current!=e&&(this.current=e,this.$emit("on-change",e))},prev:function(){var e=this.current;return!(e<=1)&&void this.changePage(e-1)},next:function(){var e=this.current;return!(e>=this.allPages)&&void this.changePage(e+1)},fastPrev:function(){var e=this.current-5;e>0?this.changePage(e):this.changePage(1)},fastNext:function(){var e=this.current+5;e>this.allPages?this.changePage(this.allPages):this.changePage(e)},onSize:function(e){this.pageSize=e,this.changePage(1),this.$emit("on-page-size-change",e)},onPage:function(e){this.changePage(e)},keyDown:function(e){var t=e.keyCode,i=t>=48&&t<=57||8==t||37==t||39==t;i||e.preventDefault()},keyUp:function(e){var t=e.keyCode,i=parseInt(e.target.value);if(38===t)this.prev();else if(40===t)this.next();else if(13==t){var n=1;n=i>this.allPages?this.allPages:i<=0?1:i,e.target.value=n,this.changePage(n)}}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(62),a=n(r),l=i(19),u=n(l),c=i(26),d=n(c),f=i(2),h=i(9),p="ivu-poptip";t["default"]={mixins:[a["default"]],directives:{clickoutside:d["default"]},components:{iButton:u["default"]},props:{trigger:{validator:function(e){return(0,f.oneOf)(e,["click","focus","hover"])},"default":"click"},placement:{validator:function(e){return(0,f.oneOf)(e,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},"default":"top"},title:{type:[String,Number]},content:{type:[String,Number],"default":""},width:{type:[String,Number]},confirm:{type:Boolean,"default":!1},okText:{type:String,"default":function(){return(0,h.t)("i.poptip.okText")}},cancelText:{type:String,"default":function(){return(0,h.t)("i.poptip.cancelText")}}},data:function(){return{prefixCls:p,showTitle:!0,isInput:!1}},computed:{classes:function(){return[""+p,(0,o["default"])({},p+"-confirm",this.confirm)]},styles:function(){var e={};return this.width&&(e.width=this.width+"px"),e}},methods:{handleClick:function(){return this.confirm?(this.visible=!this.visible,!0):"click"===this.trigger&&void(this.visible=!this.visible)},handleClose:function(){return this.confirm?(this.visible=!1,!0):"click"===this.trigger&&void(this.visible=!1)},handleFocus:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];return!("focus"!==this.trigger||this.confirm||this.isInput&&!e)&&void(this.visible=!0)},handleBlur:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];return!("focus"!==this.trigger||this.confirm||this.isInput&&!e)&&void(this.visible=!1)},handleMouseenter:function(){return"hover"===this.trigger&&!this.confirm&&void(this.visible=!0)},handleMouseleave:function(){return"hover"===this.trigger&&!this.confirm&&void(this.visible=!1)},cancel:function(){this.visible=!1,this.$emit("on-cancel")},ok:function(){this.visible=!1,this.$emit("on-ok")},getInputChildren:function(){var e=this.$els.reference.querySelectorAll("input"),t=this.$els.reference.querySelectorAll("textarea"),i=null;return e.length?i=e[0]:t.length&&(i=t[0]),i}},compiled:function(){if(this.confirm||(this.showTitle=this.$els.title.innerHTML!='<div class="'+p+'-title-inner"></div>'),"focus"===this.trigger){var e=this.getInputChildren();e&&(e.addEventListener("focus",this.handleFocus,!1),e.addEventListener("blur",this.handleBlur,!1),this.isInput=!0)}},beforeDestroy:function(){var e=this.getInputChildren();e&&(e.removeEventListener("focus",this.handleFocus,!1),e.removeEventListener("blur",this.handleBlur,!1))}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(13),a=n(r),l=i(2),u="ivu-progress";t["default"]={components:{Icon:a["default"]},props:{percent:{type:Number,"default":0},status:{validator:function(e){return(0,l.oneOf)(e,["normal","active","wrong","success"])},"default":"normal"},hideInfo:{type:Boolean,"default":!1},strokeWidth:{type:Number,"default":10}},computed:{isStatus:function(){return"wrong"==this.status||"success"==this.status},statusIcon:function(){var e="";switch(this.status){case"wrong":e="ios-close";break;case"success":e="ios-checkmark"}return e},bgStyle:function(){return{width:this.percent+"%",height:this.strokeWidth+"px"}},wrapClasses:function(){return[""+u,u+"-"+this.status,(0,o["default"])({},u+"-show-info",!this.hideInfo)]},textClasses:function(){return u+"-text"},textInnerClasses:function(){return u+"-text-inner"},outerClasses:function(){return u+"-outer"},innerClasses:function(){return u+"-inner"},bgClasses:function(){return u+"-bg"}},compiled:function(){this.handleStatus()},methods:{handleStatus:function(e){e?this.status="normal":100==parseInt(this.percent,10)&&(this.status="success")}},watch:{percent:function(e,t){e<t?this.handleStatus(!0):this.handleStatus()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-radio-group";t["default"]={name:"radioGroup",props:{model:{type:[String,Number],"default":""},size:{validator:function(e){return(0,r.oneOf)(e,["small","large"])}},type:{validator:function(e){return(0,r.oneOf)(e,["button"])}},vertical:{type:Boolean,"default":!1}},computed:{classes:function(){var e;return[""+a,(e={},(0,o["default"])(e,a+"-"+this.size,!!this.size),(0,o["default"])(e,a+"-"+this.type,!!this.type),(0,o["default"])(e,a+"-vertical",this.vertical),e)]}},compiled:function(){this.updateModel()},methods:{updateModel:function(){var e=this.model;this.$children.forEach(function(t){t.selected=e==t.value,t.group=!0})},change:function(e){this.model=e.value,this.updateModel(),this.$emit("on-change",e.value),this.$dispatch("on-form-change",e.value)}},watch:{model:function(){this.updateModel()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-radio";t["default"]={props:{checked:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},value:{type:[String,Number]}},data:function(){return{selected:!1,group:!1}},computed:{wrapClasses:function(){var e;return[r+"-wrapper",(e={},(0,o["default"])(e,r+"-group-item",this.group),(0,o["default"])(e,r+"-wrapper-checked",this.selected),(0,o["default"])(e,r+"-wrapper-disabled",this.disabled),e)]},radioClasses:function(){var e;return[""+r,(e={},(0,o["default"])(e,r+"-checked",this.selected),(0,o["default"])(e,r+"-disabled",this.disabled),e)]},innerClasses:function(){return r+"-inner"},inputClasses:function(){return r+"-input"}},ready:function(){this.$parent&&"radioGroup"===this.$parent.$options.name&&(this.group=!0),this.group||this.updateModel()},methods:{change:function(e){return!this.disabled&&(this.selected=e.target.checked,this.checked=this.selected,this.group&&this.checked&&this.$parent.change({value:this.value,checked:this.checked}),void(this.group||this.$dispatch("on-form-change",this.selected)))},updateModel:function(){this.selected=this.checked}},watch:{checked:function(){this.updateModel()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(7),a=n(r),l="ivu-rate";t["default"]={mixins:[a["default"]],props:{count:{type:Number,"default":5},value:{type:Number,"default":0},allowHalf:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},showText:{type:Boolean,"default":!1}},data:function(){return{prefixCls:l,hoverIndex:-1,isHover:!1,isHalf:!1}},computed:{classes:function(){return[""+l,(0,o["default"])({},l+"-disabled",this.disabled)]}},watch:{value:{immediate:!0,handler:function(e){this.setHalf(e)}}},methods:{starCls:function(e){var t,i=this.hoverIndex,n=this.isHover?i:this.value,s=!1,r=!1;return n>e&&(s=!0),r=this.isHover?n===e+1:Math.ceil(this.value)===e+1,[l+"-star",(t={},(0,o["default"])(t,l+"-star-full",!r&&s||r&&!this.isHalf),(0,o["default"])(t,l+"-star-half",r&&this.isHalf),(0,o["default"])(t,l+"-star-zero",!s),t)]},handleMousemove:function(e,t){if(!this.disabled){if(this.isHover=!0,this.allowHalf){var i=t.target.getAttribute("type")||!1;this.isHalf="half"===i}else this.isHalf=!1;this.hoverIndex=e+1}},handleMouseleave:function(){this.disabled||(this.isHover=!1,this.setHalf(this.value),this.hoverIndex=-1)},setHalf:function(e){this.isHalf=e.toString().indexOf(".")>=0},handleClick:function(e){this.disabled||(e++,this.isHalf&&(e-=.5),this.value=e,this.$emit("on-change",e),this.$dispatch("on-form-change",e))}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),o=i(86),r=n(o);t["default"]={props:{placement:{type:String,"default":"bottom-start"}},data:function(){return{popper:null,width:""}},computed:{styles:function(){var e={};return this.width&&(e.width=this.width+"px"),e}},methods:{update:function(){var e=this;this.popper?this.$nextTick(function(){e.popper.update()}):this.$nextTick(function(){e.popper=new r["default"](e.$parent.$els.reference,e.$el,{gpuAcceleration:!1,placement:e.placement,boundariesPadding:0,forceAbsolute:!0,boundariesElement:"body"}),e.popper.onCreate(function(t){e.resetTransformOrigin(t)})}),"iSelect"===this.$parent.$options.name&&(this.width=parseInt((0,s.getStyle)(this.$parent.$el,"width")))},destroy:function(){var e=this;this.popper&&(this.resetTransformOrigin(this.popper),setTimeout(function(){e.popper.destroy(),e.popper=null},300))},resetTransformOrigin:function(e){var t={top:"bottom",bottom:"top"},i=e._popper.getAttribute("x-placement").split("-")[0],n=t[i];e._popper.style.transformOrigin="center "+n}},compiled:function(){this.$on("on-update-popper",this.update),this.$on("on-destroy-popper",this.destroy)},beforeDestroy:function(){this.popper&&this.popper.destroy()}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-select-group";t["default"]={props:{label:{type:String,"default":""}},data:function(){return{prefixCls:i,hidden:!1}},methods:{queryChange:function(){var e=this;this.$nextTick(function(){for(var t=e.$els.options.querySelectorAll(".ivu-select-item"),i=!1,n=0;n<t.length;n++)if("none"!==t[n].style.display){i=!0;break}e.hidden=!i})}},events:{"on-query-change":function(){return this.queryChange(),!0}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-select-item";t["default"]={props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:{type:Boolean,"default":!1}},componentName:"select-item",data:function(){return{selected:!1,index:0,isFocus:!1,hidden:!1,searchLabel:""}},computed:{classes:function(){var e;return[""+r,(e={},(0,o["default"])(e,r+"-disabled",this.disabled),(0,o["default"])(e,r+"-selected",this.selected),(0,o["default"])(e,r+"-focus",this.isFocus),e)]},showLabel:function(){return this.label?this.label:this.value}},methods:{select:function(){return!this.disabled&&void this.$dispatch("on-select-selected",this.value)},blur:function(){this.isFocus=!1},queryChange:function(e){var t=e.replace(/(\^|\(|\)|\[|\]|\$|\*|\+|\.|\?|\\|\{|\}|\|)/g,"\\$1");this.hidden=!new RegExp(t,"i").test(this.searchLabel)}},compiled:function(){this.searchLabel=this.$el.innerHTML},events:{"on-select-close":function(){this.isFocus=!1},"on-query-change":function(e){this.queryChange(e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(35),o=n(s),r=i(1),a=n(r),l=i(13),u=n(l),c=i(32),d=n(c),f=i(26),h=n(f),p=i(2),v=i(9),m="ivu-select";t["default"]={name:"iSelect",components:{Icon:u["default"],Dropdown:d["default"]},directives:{clickoutside:h["default"]},props:{model:{type:[String,Number,Array],"default":""},multiple:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},clearable:{type:Boolean,"default":!1},placeholder:{type:String,"default":function(){return(0,v.t)("i.select.placeholder")}},filterable:{type:Boolean,"default":!1},filterMethod:{type:Function},size:{validator:function(e){return(0,p.oneOf)(e,["small","large","default"])}},labelInValue:{type:Boolean,"default":!1},notFoundText:{type:String,"default":function(){return(0,v.t)("i.select.noMatch")}}},data:function(){return{prefixCls:m,visible:!1,options:[],optionInstances:[],selectedSingle:"",selectedMultiple:[],focusIndex:0,query:"",inputLength:20,notFound:!1,slotChangeDuration:!1}},computed:{classes:function(){var e;return[""+m,(e={},(0,a["default"])(e,m+"-visible",this.visible),(0,a["default"])(e,m+"-disabled",this.disabled),(0,a["default"])(e,m+"-multiple",this.multiple),(0,a["default"])(e,m+"-single",!this.multiple),(0,a["default"])(e,m+"-show-clear",this.showCloseIcon),(0,a["default"])(e,m+"-"+this.size,!!this.size),e)]},showPlaceholder:function(){var e=!1;return"string"==typeof this.model?""===this.model&&(e=!0):Array.isArray(this.model)&&(this.model.length||(e=!0)),e},showCloseIcon:function(){return!this.multiple&&this.clearable&&!this.showPlaceholder},inputStyle:function(){var e={};return this.multiple&&(this.showPlaceholder?e.width="100%":e.width=this.inputLength+"px"),e}},methods:{toggleMenu:function(){return!this.disabled&&void(this.visible=!this.visible)},hideMenu:function(){this.visible=!1,this.focusIndex=0,this.$broadcast("on-select-close")},findChild:function(e){var t=function i(t){var n=t.$options.componentName;n?e(t):t.$children.length&&t.$children.forEach(function(t){i(t,e)})};this.optionInstances.length?this.optionInstances.forEach(function(e){t(e)}):this.$children.forEach(function(e){t(e)})},updateOptions:function(e){var t=this,i=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=[],s=1;this.findChild(function(i){n.push({value:i.value,label:void 0===i.label?i.$el.innerHTML:i.label}),i.index=s++,e&&t.optionInstances.push(i)}),this.options=n,e&&(this.updateSingleSelected(!0,i),this.updateMultipleSelected(!0,i))},updateSingleSelected:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],i=(0,o["default"])(this.model);if("string"===i||"number"===i){for(var n=!1,s=0;s<this.options.length;s++)if(this.model===this.options[s].value){this.selectedSingle=this.options[s].label,n=!0;break}t&&!n&&(this.model="",this.query="")}this.toggleSingleSelected(this.model,e)},clearSingleSelect:function(){this.showCloseIcon&&(this.findChild(function(e){e.selected=!1}),this.model="",this.filterable&&(this.query=""))},updateMultipleSelected:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(this.multiple&&Array.isArray(this.model)){for(var i=[],n=0;n<this.model.length;n++)for(var s=this.model[n],o=0;o<this.options.length;o++){var r=this.options[o];s===r.value&&i.push({value:r.value,label:r.label})}if(this.selectedMultiple=i,t){for(var a=[],l=0;l<i.length;l++)a.push(i[l].value);this.model.length===a.length&&(this.slotChangeDuration=!0),this.model=a}}this.toggleMultipleSelected(this.model,e)},removeTag:function(e){return!this.disabled&&(this.model.splice(e,1),this.filterable&&this.visible&&this.$els.input.focus(),void this.$broadcast("on-update-popper"))},toggleSingleSelected:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!this.multiple){var i="";this.findChild(function(t){t.value===e?(t.selected=!0,i=void 0===t.label?t.$el.innerHTML:t.label):t.selected=!1}),this.hideMenu(),t||(this.labelInValue?(this.$emit("on-change",{value:e,label:i}),this.$dispatch("on-form-change",{value:e,label:i})):(this.$emit("on-change",e),this.$dispatch("on-form-change",e)))}},toggleMultipleSelected:function(e){var t=this,i=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];this.multiple&&!function(){for(var n=[],s=0;s<e.length;s++)n.push({value:e[s]});t.findChild(function(t){var i=e.indexOf(t.value);i>=0?(t.selected=!0,n[i].label=void 0===t.label?t.$el.innerHTML:t.label):t.selected=!1}),i||(t.labelInValue?(t.$emit("on-change",n),t.$dispatch("on-form-change",n)):(t.$emit("on-change",e),t.$dispatch("on-form-change",e)))}()},handleClose:function(){this.hideMenu()},handleKeydown:function(e){if(this.visible){var t=e.keyCode;27===t&&(e.preventDefault(),this.hideMenu()),40===t&&(e.preventDefault(),this.navigateOptions("next")),38===t&&(e.preventDefault(),this.navigateOptions("prev")),13===t&&(e.preventDefault(),this.findChild(function(e){e.isFocus&&e.select()}))}},navigateOptions:function(e){var t=this;if("next"===e){var i=this.focusIndex+1;this.focusIndex=this.focusIndex===this.options.length?1:i}else if("prev"===e){var n=this.focusIndex-1;this.focusIndex=this.focusIndex<=1?this.options.length:n}var s={disabled:!1,hidden:!1},o=!1;this.findChild(function(e){e.index===t.focusIndex?(s.disabled=e.disabled,s.hidden=e.hidden,e.disabled||e.hidden||(e.isFocus=!0)):e.isFocus=!1,e.hidden||e.disabled||(o=!0)}),this.resetScrollTop(),(s.disabled||s.hidden)&&o&&this.navigateOptions(e)},resetScrollTop:function(){var e=this.focusIndex-1,t=this.optionInstances[e].$el.getBoundingClientRect().bottom-this.$refs.dropdown.$el.getBoundingClientRect().bottom,i=this.optionInstances[e].$el.getBoundingClientRect().top-this.$refs.dropdown.$el.getBoundingClientRect().top;t>0&&(this.$refs.dropdown.$el.scrollTop+=t),i<0&&(this.$refs.dropdown.$el.scrollTop+=i)},handleBlur:function(){var e=this;setTimeout(function(){var t=e.model;e.multiple?e.query="":""!==t?e.findChild(function(i){i.value===t&&(e.query=void 0===i.label?i.searchLabel:i.label)}):e.query=""},300)},resetInputState:function(){this.inputLength=12*this.$els.input.value.length+20},handleInputDelete:function(){this.multiple&&this.model.length&&""===this.query&&this.removeTag(this.model.length-1)},slotChange:function(){this.options=[],this.optionInstances=[]},setQuery:function(e){this.filterable&&(this.query=e)},modelToQuery:function(){var e=this;!this.multiple&&this.filterable&&this.model&&this.findChild(function(t){e.model===t.value&&(t.label?e.query=t.label:t.searchLabel?e.query=t.searchLabel:e.query=t.value)})}},compiled:function(){var e=this;this.modelToQuery(),this.updateOptions(!0),document.addEventListener("keydown",this.handleKeydown),p.MutationObserver&&(this.observer=new p.MutationObserver(function(){e.modelToQuery(),e.slotChange(),e.updateOptions(!0,!0)}),this.observer.observe(this.$els.options,{childList:!0,characterData:!0,subtree:!0}))},beforeDestroy:function(){document.removeEventListener("keydown",this.handleKeydown),this.observer&&this.observer.disconnect()},watch:{model:function(){this.modelToQuery(),this.multiple?this.slotChangeDuration?this.slotChangeDuration=!1:this.updateMultipleSelected():this.updateSingleSelected()},visible:function(e){e?(this.multiple&&this.filterable&&this.$els.input.focus(),this.$broadcast("on-update-popper")):(this.filterable&&this.$els.input.blur(),this.$broadcast("on-destroy-popper"))},query:function(e){var t=this;this.$broadcast("on-query-change",e);var i=!0;this.$nextTick(function(){t.findChild(function(e){e.hidden||(i=!1)}),t.notFound=i}),this.$broadcast("on-update-popper")}},events:{"on-select-selected":function(e){var t=this;if(this.model===e)this.hideMenu();else if(this.multiple){var i=this.model.indexOf(e);i>=0?this.removeTag(i):(this.model.push(e),this.$broadcast("on-update-popper")),this.filterable&&(this.query="",this.$els.input.focus())}else this.model=e,this.filterable&&this.findChild(function(i){i.value===e&&(t.query=void 0===i.label?i.searchLabel:i.label)})}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(43),o=n(s),r=i(1),a=n(r),l=i(95),u=n(l),c=i(100),d=n(c),f=i(2),h="ivu-slider";t["default"]={components:{InputNumber:u["default"],Tooltip:d["default"]},props:{min:{type:Number,"default":0},max:{type:Number,"default":100},step:{type:Number,"default":1},range:{type:Boolean,"default":!1},value:{type:[Number,Array],"default":0},disabled:{type:Boolean,"default":!1},showInput:{type:Boolean,"default":!1},showStops:{type:Boolean,"default":!1},tipFormat:{type:Function,"default":function(e){return e}}},data:function(){return{prefixCls:h,dragging:!1,firstDragging:!1,secondDragging:!1,startX:0,currentX:0,startPos:0,newPos:null,oldSingleValue:this.value,oldFirstValue:this.value[0],oldSecondValue:this.value[1],singlePosition:(this.value-this.min)/(this.max-this.min)*100,firstPosition:(this.value[0]-this.min)/(this.max-this.min)*100,secondPosition:(this.value[1]-this.min)/(this.max-this.min)*100
}},computed:{classes:function(){var e;return[""+h,(e={},(0,a["default"])(e,h+"-input",this.showInput&&!this.range),(0,a["default"])(e,h+"-range",this.range),(0,a["default"])(e,h+"-disabled",this.disabled),e)]},buttonClasses:function(){return[h+"-button",(0,a["default"])({},h+"-button-dragging",this.dragging)]},button1Classes:function(){return[h+"-button",(0,a["default"])({},h+"-button-dragging",this.firstDragging)]},button2Classes:function(){return[h+"-button",(0,a["default"])({},h+"-button-dragging",this.secondDragging)]},barStyle:function(){var e=void 0;return e=this.range?{width:(this.value[1]-this.value[0])/(this.max-this.min)*100+"%",left:(this.value[0]-this.min)/(this.max-this.min)*100+"%"}:{width:(this.value-this.min)/(this.max-this.min)*100+"%"}},stops:function(){for(var e=(this.max-this.min)/this.step,t=[],i=100*this.step/(this.max-this.min),n=1;n<e;n++)t.push(n*i);return t},sliderWidth:function(){return parseInt((0,f.getStyle)(this.$els.slider,"width"),10)}},watch:{value:function(e){var t=this;this.$nextTick(function(){t.$refs.tooltip.updatePopper(),t.range&&t.$refs.tooltip2.updatePopper()}),this.updateValue(e),this.$emit("on-input",this.value)}},methods:{updateValue:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(this.range){var i=[].concat((0,o["default"])(e));if(t?i[0]>i[1]&&(i=[this.min,this.max]):i[0]>i[1]&&(i[0]=i[1]),i[0]<this.min&&(i[0]=this.min),i[0]>this.max&&(i[0]=this.max),i[1]<this.min&&(i[1]=this.min),i[1]>this.max&&(i[1]=this.max),this.value[0]===i[0]&&this.value[1]===i[1])return;this.value=i,this.setFirstPosition(this.value[0]),this.setSecondPosition(this.value[1])}else e<this.min&&(this.value=this.min),e>this.max&&(this.value=this.max),this.setSinglePosition(this.value)},sliderClick:function(e){if(!this.disabled){var t=e.clientX,i=this.$els.slider.getBoundingClientRect().left,n=(t-i)/this.sliderWidth*100;if(this.range){var s="";s=n<=this.firstPosition?"First":n>=this.secondPosition?"Second":n-this.firstPosition<=this.secondPosition-n?"First":"Second",this["change"+s+"Position"](n)}else this.changeSinglePosition(n)}},onSingleButtonDown:function(e){this.disabled||(e.preventDefault(),this.onSingleDragStart(e),window.addEventListener("mousemove",this.onSingleDragging),window.addEventListener("mouseup",this.onSingleDragEnd))},onSingleDragStart:function(e){this.dragging=!0,this.startX=e.clientX,this.startPos=parseInt(this.singlePosition,10)},onSingleDragging:function(e){if(this.dragging){this.$refs.tooltip.visible=!0,this.currentX=e.clientX;var t=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+t,this.changeSinglePosition(this.newPos)}},onSingleDragEnd:function(){this.dragging&&(this.dragging=!1,this.$refs.tooltip.visible=!1,this.changeSinglePosition(this.newPos),window.removeEventListener("mousemove",this.onSingleDragging),window.removeEventListener("mouseup",this.onSingleDragEnd))},changeSinglePosition:function(e){if(e>=0&&e<=100){var t=100/((this.max-this.min)/this.step),i=Math.round(e/t);this.value=Math.round(i*t*(this.max-this.min)*.01+this.min),this.setSinglePosition(this.value),this.dragging||this.value!==this.oldSingleValue&&(this.$emit("on-change",this.value),this.$dispatch("on-form-change",this.value),this.oldSingleValue=this.value)}},setSinglePosition:function(e){this.singlePosition=(e-this.min)/(this.max-this.min)*100},handleInputChange:function(e){this.value=e,this.setSinglePosition(e),this.$emit("on-change",this.value),this.$dispatch("on-form-change",this.value)},onFirstButtonDown:function(e){this.disabled||(e.preventDefault(),this.onFirstDragStart(e),window.addEventListener("mousemove",this.onFirstDragging),window.addEventListener("mouseup",this.onFirstDragEnd))},onFirstDragStart:function(e){this.firstDragging=!0,this.startX=e.clientX,this.startPos=parseInt(this.firstPosition,10)},onFirstDragging:function(e){if(this.firstDragging){this.$refs.tooltip.visible=!0,this.currentX=e.clientX;var t=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+t,this.changeFirstPosition(this.newPos)}},onFirstDragEnd:function(){this.firstDragging&&(this.firstDragging=!1,this.$refs.tooltip.visible=!1,this.changeFirstPosition(this.newPos),window.removeEventListener("mousemove",this.onFirstDragging),window.removeEventListener("mouseup",this.onFirstDragEnd))},changeFirstPosition:function(e){if(e>=0&&e<=this.secondPosition){var t=100/((this.max-this.min)/this.step),i=Math.round(e/t);this.value=[Math.round(i*t*(this.max-this.min)*.01+this.min),this.value[1]],this.setFirstPosition(this.value[0]),this.firstDragging||this.value[0]!==this.oldFirstValue&&(this.$emit("on-change",this.value),this.$dispatch("on-form-change",this.value),this.oldFirstValue=this.value[0])}},setFirstPosition:function(e){this.firstPosition=(e-this.min)/(this.max-this.min)*100},onSecondButtonDown:function(e){this.disabled||(e.preventDefault(),this.onSecondDragStart(e),window.addEventListener("mousemove",this.onSecondDragging),window.addEventListener("mouseup",this.onSecondDragEnd))},onSecondDragStart:function(e){this.secondDragging=!0,this.startX=e.clientX,this.startPos=parseInt(this.secondPosition,10)},onSecondDragging:function(e){if(this.secondDragging){this.$refs.tooltip2.visible=!0,this.currentX=e.clientX;var t=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+t,this.changeSecondPosition(this.newPos)}},onSecondDragEnd:function(){this.secondDragging&&(this.secondDragging=!1,this.$refs.tooltip2.visible=!1,this.changeSecondPosition(this.newPos),window.removeEventListener("mousemove",this.onSecondDragging),window.removeEventListener("mouseup",this.onSecondDragEnd))},changeSecondPosition:function(e){if(e>=this.firstPosition&&e<=100){var t=100/((this.max-this.min)/this.step),i=Math.round(e/t);this.value=[this.value[0],Math.round(i*t*(this.max-this.min)*.01+this.min)],this.setSecondPosition(this.value[1]),this.secondDragging||this.value[1]!==this.oldSecondValue&&(this.$emit("on-change",this.value),this.$dispatch("on-form-change",this.value),this.oldSecondValue=this.value[1])}},setSecondPosition:function(e){this.secondPosition=(e-this.min)/(this.max-this.min)*100}},ready:function(){if(this.range){var e=Array.isArray(this.value);!e||e&&2!=this.value.length||e&&(isNaN(this.value[0])||isNaN(this.value[1]))?this.value=[this.min,this.max]:this.updateValue(this.value,!0)}else"number"!=typeof this.value&&(this.value=this.min),this.updateValue(this.value)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-spin";t["default"]={props:{size:{validator:function(e){return(0,r.oneOf)(e,["small","large"])}},fix:{type:Boolean,"default":!1}},data:function(){return{showText:!1}},computed:{classes:function(){var e;return[""+a,(e={},(0,o["default"])(e,a+"-"+this.size,!!this.size),(0,o["default"])(e,a+"-fix",this.fix),(0,o["default"])(e,a+"-show-text",this.showText),e)]},mainClasses:function(){return a+"-main"},dotClasses:function(){return a+"-dot"},textClasses:function(){return a+"-text"}},compiled:function(){var e=this.$els.text.innerHTML;""!=e&&(this.showText=!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-steps",l="ivu-icon";t["default"]={props:{status:{validator:function(e){return(0,r.oneOf)(e,["wait","process","finish","error"])}},title:{type:String,"default":""},content:{type:String},icon:{type:String}},data:function(){return{prefixCls:a,stepNumber:"",nextError:!1,total:1}},computed:{wrapClasses:function(){var e;return[a+"-item",a+"-status-"+this.status,(e={},(0,o["default"])(e,a+"-custom",!!this.icon),(0,o["default"])(e,a+"-next-error",this.nextError),e)]},iconClasses:function(){var e="";return this.icon?e=this.icon:"finish"==this.status?e="ios-checkmark-empty":"error"==this.status&&(e="ios-close-empty"),[a+"-icon",""+l,(0,o["default"])({},l+"-"+e,""!=e)]},styles:function(){return{width:1/this.total*100+"%"}}},watch:{status:function(){"error"==this.status&&this.$parent.setNextError()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-steps";t["default"]={props:{current:{type:Number,"default":0},status:{validator:function(e){return(0,r.oneOf)(e,["wait","process","finish","error"])},"default":"process"},size:{validator:function(e){return(0,r.oneOf)(e,["small"])}},direction:{validator:function(e){return(0,r.oneOf)(e,["horizontal","vertical"])},"default":"horizontal"}},computed:{classes:function(){return[""+a,a+"-"+this.direction,(0,o["default"])({},a+"-"+this.size,!!this.size)]}},ready:function(){this.updateChildProps(!0),this.setNextError(),this.updateCurrent(!0)},methods:{updateChildProps:function(e){var t=this,i=this.$children.length;this.$children.forEach(function(n,s){n.stepNumber=s+1,"horizontal"===t.direction&&(n.total=i),e&&n.status||(s==t.current?"error"!=t.status&&(n.status="process"):s<t.current?n.status="finish":n.status="wait"),"error"!=n.status&&0!=s&&(t.$children[s-1].nextError=!1)})},setNextError:function(){var e=this;this.$children.forEach(function(t,i){"error"==t.status&&0!=i&&(e.$children[i-1].nextError=!0)})},updateCurrent:function(e){if(e){var t=this.$children[this.current].status;t||(this.$children[this.current].status=this.status)}else this.$children[this.current].status=this.status}},watch:{current:function(){this.updateChildProps()},status:function(){this.updateCurrent()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(2),a="ivu-switch";t["default"]={props:{checked:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},size:{validator:function(e){return(0,r.oneOf)(e,["large","small"])}}},computed:{wrapClasses:function(){var e;return[""+a,(e={},(0,o["default"])(e,a+"-checked",this.checked),(0,o["default"])(e,a+"-disabled",this.disabled),(0,o["default"])(e,a+"-"+this.size,!!this.size),e)]},innerClasses:function(){return a+"-inner"}},methods:{toggle:function(){return!this.disabled&&(this.checked=!this.checked,this.$emit("on-change",this.checked),void this.$dispatch("on-form-change",this.checked))}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(31),a=n(r);t["default"]={components:{Checkbox:a["default"]},props:{prefixCls:String,row:Object,column:Object,naturalIndex:Number,index:Number,checked:Boolean,fixed:{type:[Boolean,String],"default":!1}},data:function(){return{renderType:"",uid:-1,content:this.$parent.$parent.content}},computed:{classes:function(){var e;return[this.prefixCls+"-cell",(e={},(0,o["default"])(e,this.prefixCls+"-hidden",!this.fixed&&this.column.fixed&&("left"===this.column.fixed||"right"===this.column.fixed)),(0,o["default"])(e,this.prefixCls+"-cell-ellipsis",this.column.ellipsis||!1),e)]}},methods:{compile:function(){if(this.column.render){var e=this.content,t=this.column.render(this.row,this.column,this.index),i=document.createElement("div");i.innerHTML=t;var n=e.$children.length;e.$compile(i);var s=e.$children.length;n!==s&&(this.uid=e.$children[e.$children.length-1]._uid),this.$el.innerHTML="",this.$el.appendChild(i)}},destroy:function(){for(var e=this.content,t=0;t<e.$children.length;t++)e.$children[t]._uid===this.uid&&e.$children[t].$destroy()},toggleSelect:function(){this.$parent.$parent.toggleSelect(this.index)}},compiled:function(){"index"https://unpkg.com/iview@1.0.0/dist/===this.column.type?this.renderType="index":"selection"https://unpkg.com/iview@1.0.0/dist/===this.column.type?this.renderType="selection":this.column.render?this.renderType="render":this.renderType="normal"},ready:function(){this.compile()},beforeDestroy:function(){this.destroy()},watch:{naturalIndex:function(){this.destroy(),this.compile()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(456),a=n(r),l=i(64),u=n(l);t["default"]={mixins:[u["default"]],components:{Cell:a["default"]},props:{prefixCls:String,style:Object,columns:Array,data:Array,objData:Object,columnsWidth:Object,fixed:{type:[Boolean,String],"default":!1}},methods:{rowClasses:function(e){var t;return[this.prefixCls+"-row",this.rowClsName(e),(t={},(0,o["default"])(t,this.prefixCls+"-row-highlight",this.objData[e]&&this.objData[e]._isHighlight),(0,o["default"])(t,this.prefixCls+"-row-hover",this.objData[e]&&this.objData[e]._isHover),t)]},rowChecked:function(e){return this.objData[e]&&this.objData[e]._isChecked},rowClsName:function(e){return this.$parent.rowClassName(this.objData[e],e)},handleMouseIn:function(e){this.$parent.handleMouseIn(e)},handleMouseOut:function(e){this.$parent.handleMouseOut(e)},clickCurrentRow:function(e){this.$parent.clickCurrentRow(e)},dblclickCurrentRow:function(e){this.$parent.dblclickCurrentRow(e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(21),a=n(r),l=i(87),u=n(l),c=i(31),d=n(c),f=i(96),h=n(f),p=i(19),v=n(p),m=i(64),y=n(m),g=i(7),x=n(g);t["default"]={mixins:[y["default"],x["default"]],components:{CheckboxGroup:u["default"],Checkbox:d["default"],Poptip:h["default"],iButton:v["default"]},props:{prefixCls:String,style:Object,columns:Array,objData:Object,data:Array,columnsWidth:Object,fixed:{type:[Boolean,String],"default":!1}},computed:{styles:function(){var e=(0,a["default"])({},this.style),t=0===this.$parent.bodyHeight?parseInt(this.style.width):parseInt(this.style.width)+this.$parent.scrollBarWidth;return e.width=t+"px",e},isSelectAll:function b(){var b=!0;this.data.length||(b=!1);for(var e=0;e<this.data.length;e++)if(!this.objData[this.data[e]._index]._isChecked){b=!1;break}return b}},methods:{cellClasses:function(e){return[this.prefixCls+"-cell",(0,o["default"])({},this.prefixCls+"-hidden",!this.fixed&&e.fixed&&("left"===e.fixed||"right"===e.fixed))]},itemClasses:function(e,t){return[this.prefixCls+"-filter-select-item",(0,o["default"])({},this.prefixCls+"-filter-select-item-selected",e._filterChecked[0]===t.value)]},itemAllClasses:function(e){return[this.prefixCls+"-filter-select-item",(0,o["default"])({},this.prefixCls+"-filter-select-item-selected",!e._filterChecked.length)]},renderHeader:function(e,t){return"renderHeader"in this.columns[t]?this.columns[t].renderHeader(e,t):e.title||"#"},selectAll:function(){var e=!this.isSelectAll;this.$parent.selectAll(e)},handleSort:function(e,t){this.columns[e]._sortType===t&&(t="normal"),this.$parent.handleSort(e,t)},handleFilter:function(e){this.$parent.handleFilter(e)},handleSelect:function(e,t){this.$parent.handleFilterSelect(e,t)},handleReset:function(e){this.$parent.handleFilterReset(e)},handleFilterHide:function(e){this.$parent.handleFilterHide(e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(66),o=n(s),r=i(1),a=n(r),l=i(458),u=n(l),c=i(457),d=n(c),f=i(2),h=i(9),p=i(173),v=n(p),m=i(159),y=n(m),g="ivu-table";t["default"]={components:{tableHead:u["default"],tableBody:d["default"]},props:{data:{type:Array,"default":function(){return[]}},columns:{type:Array,"default":function(){return[]}},size:{validator:function(e){return(0,f.oneOf)(e,["small","large","default"])}},width:{type:[Number,String]},height:{type:[Number,String]},stripe:{type:Boolean,"default":!1},border:{type:Boolean,"default":!1},showHeader:{type:Boolean,"default":!0},highlightRow:{type:Boolean,"default":!1},rowClassName:{type:Function,"default":function(){return""}},content:{type:Object},noDataText:{type:String,"default":function(){return(0,h.t)("i.table.noDataText")}},noFilteredDataText:{type:String,"default":function(){return(0,h.t)("i.table.noFilteredDataText")}}},data:function(){return{ready:!1,tableWidth:0,columnsWidth:{},prefixCls:g,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,bodyRealHeight:0,scrollBarWidth:(0,f.getScrollBarSize)()}},computed:{wrapClasses:function(){var e;return[g+"-wrapper",(e={},(0,a["default"])(e,g+"-hide",!this.ready),(0,a["default"])(e,g+"-with-header",this.showSlotHeader),(0,a["default"])(e,g+"-with-footer",this.showSlotFooter),e)]},classes:function(){var e;return[""+g,(e={},(0,a["default"])(e,g+"-"+this.size,!!this.size),(0,a["default"])(e,g+"-border",this.border),(0,a["default"])(e,g+"-stripe",this.stripe),(0,a["default"])(e,g+"-with-fixed-top",!!this.height),e)]},styles:function(){var e={};if(this.height){var t=this.isLeftFixed||this.isRightFixed?parseInt(this.height)+this.scrollBarWidth:parseInt(this.height);e.height=t+"px"}return this.width&&(e.width=this.width+"px"),e},tableStyle:function(){var e={};if(0!==this.tableWidth){var t="";t=0===this.bodyHeight?this.tableWidth:this.bodyHeight>this.bodyRealHeight?this.tableWidth:this.tableWidth-this.scrollBarWidth,e.width=t+"px"}return e},fixedTableStyle:function(){var e={},t=0;return this.leftFixedColumns.forEach(function(e){e.fixed&&"left"===e.fixed&&(t+=e._width)}),e.width=t+"px",e},fixedRightTableStyle:function(){var e={},t=0;return this.rightFixedColumns.forEach(function(e){e.fixed&&"right"===e.fixed&&(t+=e._width)}),t+=this.scrollBarWidth,e.width=t+"px",e},bodyStyle:function(){var e={};if(0!==this.bodyHeight){var t=this.isLeftFixed||this.isRightFixed?this.bodyHeight+this.scrollBarWidth:this.bodyHeight;e.height=t+"px"}return e},fixedBodyStyle:function(){var e={};if(0!==this.bodyHeight){var t=this.bodyHeight+this.scrollBarWidth-1;this.width&&this.width<this.tableWidth&&(t=this.bodyHeight),e.height=this.scrollBarWidth>0?t+"px":t-1+"px"}return e},leftFixedColumns:function(){var e=[],t=[];return this.cloneColumns.forEach(function(i){i.fixed&&"left"===i.fixed?e.push(i):t.push(i)}),e.concat(t)},rightFixedColumns:function(){var e=[],t=[];return this.cloneColumns.forEach(function(i){i.fixed&&"right"===i.fixed?e.push(i):t.push(i)}),e.concat(t)},isLeftFixed:function(){return this.columns.some(function(e){return e.fixed&&"left"===e.fixed})},isRightFixed:function(){return this.columns.some(function(e){return e.fixed&&"right"===e.fixed})}},methods:{rowClsName:function(e){return this.rowClassName(this.data[e],e)},handleResize:function(){var e=this;this.$nextTick(function(){var t=!e.columns.some(function(e){return!e.width});t?e.tableWidth=e.columns.map(function(e){return e.width}).reduce(function(e,t){return e+t}):e.tableWidth=parseInt((0,f.getStyle)(e.$el,"width"))-1,e.columnsWidth={},e.$nextTick(function(){var i={},n=-1;if(t&&(n=e.cloneColumns.findIndex(function(e){return!e.width})),e.data.length){for(var s=e.$refs.tbody.$el.querySelectorAll("tbody tr")[0].querySelectorAll("td"),o=0;o<s.length;o++){var r=e.cloneColumns[o],a=parseInt((0,f.getStyle)(s[o],"width"));o===n&&(a=parseInt((0,f.getStyle)(s[o],"width"))-1),r.width&&(a=r.width),e.cloneColumns[o]._width=a,i[r._index]={width:a}}e.columnsWidth=i}}),e.bodyRealHeight=parseInt((0,f.getStyle)(e.$refs.tbody.$el,"height"))})},handleMouseIn:function(e){this.objData[e]._isHover||(this.objData[e]._isHover=!0)},handleMouseOut:function(e){this.objData[e]._isHover=!1},highlightCurrentRow:function(e){if(this.highlightRow&&!this.objData[e]._isHighlight){var t=-1;for(var i in this.objData)this.objData[i]._isHighlight&&(t=parseInt(i),this.objData[i]._isHighlight=!1);this.objData[e]._isHighlight=!0;var n=t<0?null:JSON.parse((0,o["default"])(this.data[t]));this.$emit("on-current-change",JSON.parse((0,o["default"])(this.data[e])),n)}},clickCurrentRow:function(e){this.highlightCurrentRow(e),this.$emit("on-row-click",JSON.parse((0,o["default"])(this.data[e])))},dblclickCurrentRow:function(e){this.highlightCurrentRow(e),this.$emit("on-row-dblclick",JSON.parse((0,o["default"])(this.data[e])))},getSelection:function(){var e=[];for(var t in this.objData)this.objData[t]._isChecked&&e.push(parseInt(t));return JSON.parse((0,o["default"])(this.data.filter(function(t,i){return e.indexOf(i)>-1})))},toggleSelect:function(e){var t={};for(var i in this.objData)parseInt(i)===e&&(t=this.objData[i]);var n=!t._isChecked;this.objData[e]._isChecked=n;var s=this.getSelection();n&&this.$emit("on-select",s,JSON.parse((0,o["default"])(this.data[e]))),this.$emit("on-selection-change",s)},selectAll:function(e){var t=this;this.rebuildData.forEach(function(i){t.objData[i._index]._isChecked=e});var i=this.getSelection();e&&this.$emit("on-select-all",i),this.$emit("on-selection-change",i)},fixedHeader:function(){var e=this;this.height?this.$nextTick(function(){var t=parseInt((0,f.getStyle)(e.$els.title,"height"))||0,i=parseInt((0,f.getStyle)(e.$els.header,"height"))||0,n=parseInt((0,f.getStyle)(e.$els.footer,"height"))||0;e.bodyHeight=e.height-t-i-n}):this.bodyHeight=0},hideColumnFilter:function(){this.cloneColumns.forEach(function(e){return e._filterVisible=!1})},handleBodyScroll:function(e){this.showHeader&&(this.$els.header.scrollLeft=e.target.scrollLeft),this.isLeftFixed&&(this.$els.fixedBody.scrollTop=e.target.scrollTop),this.isRightFixed&&(this.$els.fixedRightBody.scrollTop=e.target.scrollTop),this.hideColumnFilter()},handleMouseWheel:function(e){var t=e.deltaX,i=this.$els.body;t>0?i.scrollLeft=i.scrollLeft+10:i.scrollLeft=i.scrollLeft-10},sortData:function(e,t,i){var n=this,s=this.cloneColumns[i].key;return e.sort(function(e,o){return n.cloneColumns[i].sortMethod?n.cloneColumns[i].sortMethod(e[s],o[s],t):"asc"===t?e[s]>o[s]?1:-1:"desc"===t?e[s]<o[s]?1:-1:void 0}),e},handleSort:function(e,t){this.cloneColumns.forEach(function(e){return e._sortType="normal"});var i=this.cloneColumns[e].key;"custom"!==this.cloneColumns[e].sortable&&("normal"===t?this.rebuildData=this.makeDataWithFilter():this.rebuildData=this.sortData(this.rebuildData,t,e)),this.cloneColumns[e]._sortType=t,this.$emit("on-sort-change",{column:JSON.parse((0,o["default"])(this.columns[this.cloneColumns[e]._index])),key:i,order:t})},handleFilterHide:function(e){this.cloneColumns[e]._isFiltered||(this.cloneColumns[e]._filterChecked=[])},filterData:function(e,t){return e.filter(function(e){for(var i=!t._filterChecked.length,n=0;n<t._filterChecked.length&&!(i=t.filterMethod(t._filterChecked[n],e));n++);return i})},filterOtherData:function(e,t){var i=this;return this.cloneColumns.forEach(function(n,s){s!==t&&(e=i.filterData(e,n))}),e},handleFilter:function(e){var t=this.cloneColumns[e],i=this.makeDataWithSort();i=this.filterOtherData(i,e),this.rebuildData=this.filterData(i,t),this.cloneColumns[e]._isFiltered=!0,this.cloneColumns[e]._filterVisible=!1},handleFilterSelect:function(e,t){this.cloneColumns[e]._filterChecked=[t],this.handleFilter(e)},handleFilterReset:function(e){this.cloneColumns[e]._isFiltered=!1,this.cloneColumns[e]._filterVisible=!1,this.cloneColumns[e]._filterChecked=[];var t=this.makeDataWithSort();t=this.filterOtherData(t,e),this.rebuildData=t},makeData:function(){var e=(0,f.deepCopy)(this.data);return e.forEach(function(e,t){return e._index=t}),e},makeDataWithSort:function(){for(var e=this.makeData(),t="normal",i=-1,n=!1,s=0;s<this.cloneColumns.length;s++)if("normal"!==this.cloneColumns[s]._sortType){t=this.cloneColumns[s]._sortType,i=s,n="custom"===this.cloneColumns[s].sortable;break}return"normal"===t||n||(e=this.sortData(e,t,i)),e},makeDataWithFilter:function(){var e=this,t=this.makeData();return this.cloneColumns.forEach(function(i){return t=e.filterData(t,i)}),t},makeDataWithSortAndFilter:function(){var e=this,t=this.makeDataWithSort();return this.cloneColumns.forEach(function(i){return t=e.filterData(t,i)}),t},makeObjData:function(){var e={};return this.data.forEach(function(t,i){var n=(0,f.deepCopy)(t);n._isHover=!1,n._checked?n._isChecked=n._checked:n._isChecked=!1,n._highlight?n._isHighlight=n._highlight:n._isHighlight=!1,e[i]=n}),e},makeColumns:function(){var e=(0,f.deepCopy)(this.columns),t=[],i=[],n=[];return e.forEach(function(e,s){e._index=s,e._width=e.width?e.width:"",e._sortType="normal",e._filterVisible=!1,e._isFiltered=!1,e._filterChecked=[],"filterMultiple"in e?e._filterMultiple=e.filterMultiple:e._filterMultiple=!0,"filteredValue"in e&&(e._filterChecked=e.filteredValue,e._isFiltered=!0),e.fixed&&"left"===e.fixed?t.push(e):e.fixed&&"right"===e.fixed?i.push(e):n.push(e)}),t.concat(n).concat(i)},exportCsv:function(e){e.filename?e.filename.indexOf(".csv")===-1&&(e.filename+=".csv"):e.filename="https://unpkg.com/iview@1.0.0/dist/table.csv";var t=[],i=[];e.columns&&e.data?(t=e.columns,i=e.data):(t=this.columns,"original"in e||(e.original=!0),i=e.original?this.data:this.rebuildData);var n=!1;"noHeader"in e&&(n=e.noHeader);var s=(0,v["default"])(t,i,",",n);y["default"].download(e.filename,s)}},compiled:function(){this.content||(this.content=this.$parent),this.showSlotHeader=""!==this.$els.title.innerHTML.replace(/\n/g,"").replace(/<!--[\w\W\r\n]*?-->/gim,""),this.showSlotFooter=""!==this.$els.footer.innerHTML.replace(/\n/g,"").replace(/<!--[\w\W\r\n]*?-->/gim,""),this.rebuildData=this.makeDataWithSortAndFilter()},ready:function(){var e=this;this.handleResize(),this.fixedHeader(),this.$nextTick(function(){return e.ready=!0}),window.addEventListener("resize",this.handleResize,!1)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize,!1)},watch:{data:{handler:function(){this.objData=this.makeObjData(),this.rebuildData=this.makeDataWithSortAndFilter(),this.handleResize()},deep:!0},columns:{handler:function(){this.cloneColumns=this.makeColumns(),this.rebuildData=this.makeDataWithSortAndFilter(),this.handleResize()},deep:!0},height:function(){this.fixedHeader()}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="ivu-tabs-tabpane";t["default"]={name:"TabPane",props:{key:{type:String},label:{type:String,"default":""},icon:{type:String},disabled:{type:Boolean,"default":!1},closable:{type:Boolean,"default":null}},data:function(){return{prefixCls:i,show:!0}},methods:{updateNav:function(){this.$parent.updateNav()}},watch:{label:function(){this.updateNav()},icon:function(){this.updateNav()},disabled:function(){this.updateNav()}},ready:function(){this.updateNav()}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(6),a=n(r),l=i(2),u="ivu-tabs";t["default"]={components:{Icon:a["default"]},props:{activeKey:{type:[String,Number]},type:{validator:function(e){return(0,l.oneOf)(e,["line","card"])},"default":"line"},size:{validator:function(e){return(0,l.oneOf)(e,["small","default"])},"default":"default"},animated:{type:Boolean,"default":!0},closable:{type:Boolean,"default":!1}},data:function(){return{prefixCls:u,navList:[],barWidth:0,barOffset:0}},computed:{classes:function(){var e;return[""+u,(e={},(0,o["default"])(e,u+"-card","card"===this.type),(0,o["default"])(e,u+"-mini","small"===this.size&&"line"===this.type),(0,o["default"])(e,u+"-no-animation",!this.animated),e)]},contentClasses:function(){return[u+"-content",(0,o["default"])({},u+"-content-animated",this.animated)]},barClasses:function(){return[u+"-ink-bar",(0,o["default"])({},u+"-ink-bar-animated",this.animated)]},contentStyle:function(){var e=this,t=this.navList.findIndex(function(t){return t.key===e.activeKey}),i=0===t?"0%":"-"+t+"00%",n={};return t>-1&&(n={transform:"translateX("+i+") translateZ(0px)"}),n},barStyle:function(){var e={display:"none",width:this.barWidth+"px"};return"line"===this.type&&(e.display="block"),this.animated?e.transform="translate3d("+this.barOffset+"px, 0px, 0px)":e.left=this.barOffset+"px",e}},methods:{getTabs:function(){return this.$children.filter(function(e){return"TabPane"===e.$options.name})},updateNav:function(){var e=this;this.navList=[],this.getTabs().forEach(function(t,i){e.navList.push({label:t.label,icon:t.icon||"",key:t.key||i,disabled:t.disabled,closable:t.closable}),t.key||(t.key=i),0===i&&(e.activeKey||(e.activeKey=t.key||i))}),this.updateStatus(),this.updateBar()},updateBar:function(){var e=this;this.$nextTick(function(){var t=e.navList.findIndex(function(t){return t.key===e.activeKey}),i=e.$els.nav.querySelectorAll("."+u+"-tab"),n=i[t];if(e.barWidth=parseFloat((0,l.getStyle)(n,"width")),t>0){for(var s=0,o="small"https://unpkg.com/iview@1.0.0/dist/===e.size?0:16,r=0;r<t;r++)s+=parseFloat((0,l.getStyle)(i[r],"width"))+o;e.barOffset=s}else e.barOffset=0})},updateStatus:function(){var e=this,t=this.getTabs();t.forEach(function(t){return t.show=t.key===e.activeKey||e.animated})},tabCls:function(e){var t;return[u+"-tab",(t={},(0,o["default"])(t,u+"-tab-disabled",e.disabled),(0,o["default"])(t,u+"-tab-active",e.key===this.activeKey),t)]},handleChange:function(e){var t=this.navList[e];t.disabled||(this.activeKey=t.key,this.$emit("on-click",t.key))},handleRemove:function(e){var t=this.getTabs(),i=t[e];if(i.$destroy(!0),i.key===this.activeKey){var n=this.getTabs(),s=-1;if(n.length){var o=t.filter(function(t,i){return!t.disabled&&i<e}),r=t.filter(function(t,i){return!t.disabled&&i>e});s=r.length?r[0].key:o.length?o[o.length-1].key:n[0].key}this.activeKey=s}this.$emit("on-tab-remove",i.key),this.updateNav()},showClose:function(e){return"card"===this.type&&(null!==e.closable?e.closable:this.closable)}},watch:{activeKey:function(){this.updateBar(),this.updateStatus()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(13),a=n(r),l=i(2),u="ivu-tag";t["default"]={components:{Icon:a["default"]},props:{closable:{type:Boolean,"default":!1},color:{validator:function(e){return(0,l.oneOf)(e,["blue","green","red","yellow"])}},type:{validator:function(e){return(0,l.oneOf)(e,["border","dot"])}}},computed:{classes:function(){var e;return[""+u,(e={},(0,o["default"])(e,u+"-"+this.color,!!this.color),(0,o["default"])(e,u+"-"+this.type,!!this.type),(0,o["default"])(e,u+"-closable",this.closable),e)]},textClasses:function(){return u+"-text"},dotClasses:function(){return u+"-dot-inner"},showDot:function(){return!!this.type&&"dot"===this.type}},methods:{close:function(e){this.$emit("on-close",e)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-timeline";t["default"]={props:{color:{type:String,"default":"blue"}},data:function(){return{dot:!1}},ready:function(){this.dot=!!this.$els.dot.innerHTML.length},computed:{itemClasses:function(){return r+"-item"},tailClasses:function(){return r+"-item-tail"},headClasses:function(){var e;return[r+"-item-head",(e={},(0,o["default"])(e,r+"-item-head-custom",this.dot),(0,o["default"])(e,r+"-item-head-"+this.color,this.headColorShow),e)]},headColorShow:function(){return"blue"==this.color||"red"==this.color||"green"==this.color},customColor:function(){var e={};return this.color&&(this.headColorShow||(e={color:this.color,"border-color":this.color})),e},contentClasses:function(){return r+"-item-content"}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r="ivu-timeline";t["default"]={props:{pending:{type:Boolean,"default":!1}},computed:{classes:function(){return[""+r,(0,o["default"])({},r+"-pending",this.pending)]}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(62),o=n(s),r=i(2),a="ivu-tooltip";t["default"]={mixins:[o["default"]],props:{placement:{validator:function(e){return(0,r.oneOf)(e,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},"default":"bottom"},content:{type:[String,Number],"default":""},delay:{type:Number,"default":0},disabled:{type:Boolean,"default":!1},controlled:{type:Boolean,"default":!1}},data:function(){return{prefixCls:a}},methods:{handleShowPopper:function(){
var e=this;this.timeout=setTimeout(function(){e.visible=!0},this.delay)},handleClosePopper:function(){clearTimeout(this.timeout),this.controlled||(this.visible=!1)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(467),a=n(r),l=i(31),u=n(l);t["default"]={components:{Search:a["default"],Checkbox:u["default"]},props:{prefixCls:String,data:Array,renderFormat:Function,checkedKeys:Array,style:Object,title:[String,Number],filterable:Boolean,filterPlaceholder:String,filterMethod:Function,notFoundText:String,validKeysCount:Number},data:function(){return{showItems:[],query:"",showFooter:!0}},computed:{classes:function(){return[""+this.prefixCls,(0,o["default"])({},this.prefixCls+"-with-footer",this.showFooter)]},bodyClasses:function(){var e;return[this.prefixCls+"-body",(e={},(0,o["default"])(e,this.prefixCls+"-body-with-search",this.filterable),(0,o["default"])(e,this.prefixCls+"-body-with-footer",this.showFooter),e)]},count:function(){var e=this.validKeysCount;return(e>0?e+"/":"")+(""+this.data.length)},checkedAll:function(){return this.data.filter(function(e){return!e.disabled}).length===this.validKeysCount&&0!==this.validKeysCount},checkedAllDisabled:function(){return this.data.filter(function(e){return!e.disabled}).length<=0}},methods:{itemClasses:function(e){return[this.prefixCls+"-content-item",(0,o["default"])({},this.prefixCls+"-content-item-disabled",e.disabled)]},showLabel:function(e){return this.renderFormat(e)},isCheck:function(e){return this.checkedKeys.some(function(t){return t===e.key})},select:function(e){if(!e.disabled){var t=this.checkedKeys.indexOf(e.key);t>-1?this.checkedKeys.splice(t,1):this.checkedKeys.push(e.key)}},updateFilteredData:function(){this.showItems=this.data},toggleSelectAll:function(e){var t=this;this.checkedKeys=e?this.data.filter(function(e){return!e.disabled||t.checkedKeys.indexOf(e.key)>-1}).map(function(e){return e.key}):this.data.filter(function(e){return e.disabled&&t.checkedKeys.indexOf(e.key)>-1}).map(function(e){return e.key})},filterData:function(e){return this.filterMethod(e,this.query)}},created:function(){this.updateFilteredData()},compiled:function(){this.showFooter=""!==this.$els.footer.innerHTML},watch:{data:function(){this.updateFilteredData()}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(19),o=n(s),r=i(6),a=n(r);t["default"]={components:{iButton:o["default"],Icon:a["default"]},props:{prefixCls:String,operations:Array,leftActive:Boolean,rightActive:Boolean},methods:{moveToLeft:function(){this.$parent.moveTo("left")},moveToRight:function(){this.$parent.moveTo("right")}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(41),o=n(s);t["default"]={components:{iInput:o["default"]},props:{prefixCls:String,placeholder:String,query:String},computed:{icon:function(){return""===this.query?"ios-search":"ios-close"}},methods:{handleClick:function(){""!==this.query&&(this.query="")}},events:{"on-form-blur":function(){return!1},"on-form-change":function(){return!1}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(43),o=n(s),r=i(465),a=n(r),l=i(466),u=n(l),c=i(9),d="ivu-transfer";t["default"]={components:{List:a["default"],Operation:u["default"]},props:{data:{type:Array,"default":function(){return[]}},renderFormat:{type:Function,"default":function(e){return e.label||e.key}},targetKeys:{type:Array,"default":function(){return[]}},selectedKeys:{type:Array,"default":function(){return[]}},listStyle:{type:Object,"default":function(){return{}}},titles:{type:Array,"default":function(){return[(0,c.t)("i.transfer.titles.source"),(0,c.t)("i.transfer.titles.target")]}},operations:{type:Array,"default":function(){return[]}},filterable:{type:Boolean,"default":!1},filterPlaceholder:{type:String,"default":function(){return(0,c.t)("i.transfer.filterPlaceholder")}},filterMethod:{type:Function,"default":function(e,t){var i="label"in e?"label":"key";return e[i].indexOf(t)>-1}},notFoundText:{type:String,"default":function(){return(0,c.t)("i.transfer.notFoundText")}}},data:function(){return{prefixCls:d,leftData:[],rightData:[],leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{classes:function(){return[""+d]},leftValidKeysCount:function(){return this.getValidKeys("left").length},rightValidKeysCount:function(){return this.getValidKeys("right").length}},methods:{getValidKeys:function(e){var t=this;return this[e+"Data"].filter(function(i){return!i.disabled&&t[e+"CheckedKeys"].indexOf(i.key)>-1}).map(function(e){return e.key})},splitData:function(){var e=this,t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];this.leftData=[].concat((0,o["default"])(this.data)),this.rightData=[],this.targetKeys.length>0&&this.targetKeys.forEach(function(t){e.rightData.push(e.leftData.filter(function(i,n){return i.key===t&&(e.leftData.splice(n,1),!0)})[0])}),t&&this.splitSelectedKey()},splitSelectedKey:function(){var e=this.selectedKeys;e.length>0&&(this.leftCheckedKeys=this.leftData.filter(function(t){return e.indexOf(t.key)>-1}).map(function(e){return e.key}),this.rightCheckedKeys=this.rightData.filter(function(t){return e.indexOf(t.key)>-1}).map(function(e){return e.key}))},moveTo:function(e){var t=this.targetKeys,i="left"===e?"right":"left",n=this.getValidKeys(i),s="right"===e?n.concat(t):t.filter(function(e){return!n.some(function(t){return e===t})});this.$refs[i].toggleSelectAll(!1),this.$emit("on-change",s,e,n),this.$dispatch("on-form-change",s,e,n)}},watch:{targetKeys:function(){this.splitData(!1)}},created:function(){this.splitData(!0)}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(258),o=n(s),r=i(262),a=n(r),l=i(65),u=n(l),c=i(1),d=n(c),f=i(6),h=n(f),p=i(31),v=n(p),m=i(9),y="ivu-tree";t["default"]={name:"tree",components:{Icon:h["default"],Checkbox:v["default"]},props:{data:{type:Array,"default":function(){return[]}},key:{type:String,"default":"0"},multiple:{type:Boolean,"default":!1},showCheckbox:{type:Boolean,"default":!1},emptyText:{type:String,"default":function(){return(0,m.t)("i.tree.emptyText")}}},data:function(){return{prefixCls:y}},computed:{classes:function(){return"0"https://unpkg.com/iview@1.0.0/dist/===this.key?this.prefixCls:this.prefixCls+"-child-tree"}},watch:{data:function(){"0"===this.key&&(this.setKey(),this.preHandle())}},methods:{itemCls:function(e){return[(0,d["default"])({},y+"-item-disabled",e.disabled)]},arrowCls:function(e){var t;return[this.prefixCls+"-switcher",(t={},(0,d["default"])(t,this.prefixCls+"-switcher-disabled",e.disabled),(0,d["default"])(t,this.prefixCls+"-noline_close",!e.expand&&!e.isLeaf),(0,d["default"])(t,this.prefixCls+"-noline_open",e.expand&&!e.isLeaf),(0,d["default"])(t,this.prefixCls+"-switcher-noop",e.isLeaf),t)]},titleCls:function(e){return[(0,d["default"])({},this.prefixCls+"-node-selected",e.selected)]},expandCls:function(e){return[(0,d["default"])({},this.prefixCls+"-child-tree-open",e.expand)]},setKey:function(){for(var e=0;e<this.data.length;e++)this.data[e].key=this.key+"."+e},preHandle:function(){var e=!0,t=!1,i=void 0;try{for(var n,s=(0,u["default"])(this.data.entries());!(e=(n=s.next()).done);e=!0){var o=(0,a["default"])(n.value,2),r=o[0],l=o[1];if(l.children&&l.children.length)if(l.checked&&!l.childrenCheckedStatus)this.$set("data["+r+"].childrenCheckedStatus",2),this.$broadcast("parentChecked",!0,this.key+"."+r);else{var c=this.getChildrenCheckedStatus(l.children);this.$set("data["+r+"].childrenCheckedStatus",c),0!==c&&this.$set("data["+r+"].checked",!0)}else this.$set("data["+r+"].isLeaf",!0),this.$set("data["+r+"].childrenCheckedStatus",2)}}catch(d){t=!0,i=d}finally{try{!e&&s["return"]&&s["return"]()}finally{if(t)throw i}}},setExpand:function(e,t){e||this.$set("data["+t+"].expand",!this.data[t].expand)},setSelect:function(e,t){if(!e){var i=!this.data[t].selected;if(this.multiple||!i)this.$set("data["+t+"].selected",i);else for(var n=0;n<this.data.length;n++)n==t?this.$set("data["+n+"].selected",!0):this.$set("data["+n+"].selected",!1);this.$dispatch("nodeSelected",this,i)}},setCheck:function(e,t){if(!e){var i=!this.data[t].checked;this.$set("data["+t+"].checked",i),this.$set("data["+t+"].childrenCheckedStatus",i?2:0),this.$dispatch("childChecked",this,this.key),this.$broadcast("parentChecked",i,this.key+"."+t)}},getNodes:function(e,t){e=e||this.data;var i=[],n=!0,s=!1,r=void 0;try{for(var l,c=(0,u["default"])(e);!(n=(l=c.next()).done);n=!0){var d=l.value,f=!0,h=!0,p=!1,v=void 0;try{for(var m,y=(0,u["default"])((0,o["default"])(t));!(h=(m=y.next()).done);h=!0){var g=(0,a["default"])(m.value,2),x=g[0],b=g[1];if(d[x]!=b){f=!1;break}}}catch(w){p=!0,v=w}finally{try{!h&&y["return"]&&y["return"]()}finally{if(p)throw v}}f&&i.push(d),d.children&&d.children.length&&(i=i.concat(this.getNodes(d.children,t)))}}catch(w){s=!0,r=w}finally{try{!n&&c["return"]&&c["return"]()}finally{if(s)throw r}}return i},getSelectedNodes:function(){return this.getNodes(this.data,{selected:!0})},getCheckedNodes:function(){return this.getNodes(this.data,{checked:!0,childrenCheckedStatus:2})},getChildrenCheckedStatus:function(e){var t=0,i=!0,n=!0,s=!1,o=void 0;try{for(var r,a=(0,u["default"])(e);!(n=(r=a.next()).done);n=!0){var l=r.value;l.checked&&t++,2!==l.childrenCheckedStatus&&(i=!1)}}catch(c){s=!0,o=c}finally{try{!n&&a["return"]&&a["return"]()}finally{if(s)throw o}}return t==e.length?i?2:1:t>0?1:0}},ready:function(){var e=this;this.setKey(),this.preHandle(),this.$on("nodeSelected",function(t,i){if("0"!==e.key)return!0;if(!e.multiple&&i){if(e!==t)for(var n=0;n<e.data.length;n++)e.$set("data["+n+"].selected",!1);e.$broadcast("cancelSelected",t)}e.$nextTick(function(){e.$emit("on-select-change",e.getSelectedNodes())})}),this.$on("cancelSelected",function(t){if(e.$broadcast("cancelSelected",t),e!==t)for(var i=0;i<e.data.length;i++)e.$set("data["+i+"].selected",!1)}),this.$on("parentChecked",function(t,i){if(e.key==i||e.key.startsWith(i+".")){for(var n=0;n<e.data.length;n++)e.$set("data["+n+"].checked",t),e.$set("data["+n+"].childrenCheckedStatus",t?2:0);e.$broadcast("parentChecked",t,i)}}),this.$on("childChecked",function(t,i){if("0"===e.key&&e.$nextTick(function(){e.$emit("on-check-change",e.getCheckedNodes())}),e!==t){var n=!0,s=!1,o=void 0;try{for(var r,l=(0,u["default"])(e.data.entries());!(n=(r=l.next()).done);n=!0){var c=(0,a["default"])(r.value,2),d=c[0],f=c[1];if(e.key+"."+d==i){var h=e.getChildrenCheckedStatus(f.children);h!=f.childrenCheckedStatus&&(e.$set("data["+d+"].checked",!!h),e.$set("data["+d+"].childrenCheckedStatus",h),"0"!==e.key&&e.$dispatch("childChecked",e,e.key))}}}catch(p){s=!0,o=p}finally{try{!n&&l["return"]&&l["return"]()}finally{if(s)throw o}}}})}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),o=n(s),r=i(6),a=n(r),l=i(97),u=n(l),c="ivu-upload";t["default"]={components:{Icon:a["default"],Progress:u["default"]},props:{files:{type:Array,"default":function(){return[]}}},data:function(){return{prefixCls:c}},computed:{},methods:{fileCls:function(e){return[c+"-list-file",(0,o["default"])({},c+"-list-file-finish","finished"===e.status)]},handleClick:function(e){this.$emit("on-file-click",e)},handlePreview:function(e){this.$emit("on-file-preview",e)},handleRemove:function(e){this.$emit("on-file-remove",e)},format:function d(e){var d=e.name.split(".").pop().toLocaleLowerCase()||"",t="document";return["gif","jpg","jpeg","png","bmp","webp"].indexOf(d)>-1&&(t="image"),["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"].indexOf(d)>-1&&(t="ios-film"),["mp3","wav","wma","ogg","aac","flac"].indexOf(d)>-1&&(t="ios-musical-notes"),["doc","txt","docx","pages","epub","pdf"].indexOf(d)>-1&&(t="document-text"),["numbers","csv","xls","xlsx"].indexOf(d)>-1&&(t="stats-bars"),["keynote","ppt","pptx"].indexOf(d)>-1&&(t="ios-videocam"),t},parsePercentage:function(e){return parseInt(e,10)}}}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(35),o=n(s),r=i(1),a=n(r),l=i(470),u=n(l),c=i(168),d=n(c),f=i(2),h="ivu-upload";t["default"]={components:{UploadList:u["default"]},props:{action:{type:String,required:!0},headers:{type:Object,"default":function(){return{}}},multiple:{type:Boolean,"default":!1},data:{type:Object},name:{type:String,"default":"file"},withCredentials:{type:Boolean,"default":!1},showUploadList:{type:Boolean,"default":!0},type:{type:String,validator:function(e){return(0,f.oneOf)(e,["select","drag"])},"default":"select"},format:{type:Array,"default":function(){return[]}},accept:{type:String},maxSize:{type:Number},beforeUpload:Function,onProgress:{type:Function,"default":function(){return{}}},onSuccess:{type:Function,"default":function(){return{}}},onError:{type:Function,"default":function(){return{}}},onRemove:{type:Function,"default":function(){return{}}},onPreview:{type:Function,"default":function(){return{}}},onExceededSize:{type:Function,"default":function(){return{}}},onFormatError:{type:Function,"default":function(){return{}}},defaultFileList:{type:Array,"default":function(){return[]}}},data:function(){return{prefixCls:h,dragOver:!1,fileList:[],tempIndex:1}},computed:{classes:function(){var e;return[""+h,(e={},(0,a["default"])(e,h+"-select","select"===this.type),(0,a["default"])(e,h+"-drag","drag"===this.type),(0,a["default"])(e,h+"-dragOver","drag"===this.type&&this.dragOver),e)]}},methods:{handleClick:function(){this.$els.input.click()},handleChange:function(e){var t=e.target.files;t&&(this.uploadFiles(t),this.$els.input.value=null)},onDrop:function(e){this.dragOver=!1,this.uploadFiles(e.dataTransfer.files)},uploadFiles:function(e){var t=this,i=Array.prototype.slice.call(e);this.multiple||(i=i.slice(0,1)),0!==i.length&&i.forEach(function(e){t.upload(e)})},upload:function(e){var t=this;if(!this.beforeUpload)return this.post(e);var i=this.beforeUpload(e);i&&i.then?i.then(function(i){"[object File]"===Object.prototype.toString.call(i)?t.post(i):t.post(e)},function(){}):i!==!1&&this.post(e)},post:function(e){var t=this;if(this.format.length){var i=function(){var i=e.name.split(".").pop().toLocaleLowerCase(),n=t.format.some(function(e){return e.toLocaleLowerCase()===i});if(!n)return t.onFormatError(e,t.fileList),{v:!1}}();if("object"===("undefined"==typeof i?"undefined":(0,o["default"])(i)))return i.v}if(this.maxSize&&e.size>1024*this.maxSize)return this.onExceededSize(e,this.fileList),!1;this.handleStart(e);var n=new FormData;n.append(this.name,e),(0,d["default"])({headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(i){t.handleProgress(i,e)},onSuccess:function(i){t.handleSuccess(i,e)},onError:function(i,n){t.handleError(i,n,e)}})},handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"uploading",name:e.name,size:e.size,percentage:0,uid:e.uid,showProgress:!0};this.fileList.push(t)},getFile:function(e){var t=this.fileList,i=void 0;return t.every(function(t){return i=e.uid===t.uid?t:null,!i}),i},handleProgress:function(e,t){var i=this.getFile(t);this.onProgress(e,i,this.fileList),i.percentage=e.percent||0},handleSuccess:function(e,t){var i=this.getFile(t);i&&(i.status="finished",i.response=e,this.$dispatch("on-form-change",i),this.onSuccess(e,i,this.fileList),setTimeout(function(){i.showProgress=!1},1e3))},handleError:function(e,t,i){var n=this.getFile(i),s=this.fileList;n.status="fail",s.splice(s.indexOf(n),1),this.onError(e,t,i)},handleRemove:function(e){var t=this.fileList;t.splice(t.indexOf(e),1),this.onRemove(e,t)},handlePreview:function(e){"finished"===e.status&&this.onPreview(e)},clearFiles:function(){this.fileList=[]}},watch:{defaultFileList:{immediate:!0,handler:function(e){var t=this;this.fileList=e.map(function(e){return e.status="finished",e.percentage=100,e.uid=Date.now()+t.tempIndex++,e})}}}}},function(e,t,i){e.exports={"default":i(263),__esModule:!0}},function(e,t,i){e.exports={"default":i(265),__esModule:!0}},function(e,t,i){e.exports={"default":i(268),__esModule:!0}},function(e,t,i){e.exports={"default":i(269),__esModule:!0}},function(e,t,i){e.exports={"default":i(270),__esModule:!0}},function(e,t,i){e.exports={"default":i(272),__esModule:!0}},function(e,t,i){e.exports={"default":i(273),__esModule:!0}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var s=i(256),o=n(s),r=i(65),a=n(r);t["default"]=function(){function e(e,t){var i=[],n=!0,s=!1,o=void 0;try{for(var r,l=(0,a["default"])(e);!(n=(r=l.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(u){s=!0,o=u}finally{try{!n&&l["return"]&&l["return"]()}finally{if(s)throw o}}return i}return function(t,i){if(Array.isArray(t))return t;if((0,o["default"])(Object(t)))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,i){i(38),i(297),e.exports=i(5).Array.from},function(e,t,i){i(56),i(38),e.exports=i(295)},function(e,t,i){i(56),i(38),e.exports=i(296)},function(e,t,i){var n=i(5),s=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return s.stringify.apply(s,arguments)}},function(e,t,i){i(299),e.exports=i(5).Object.assign},function(e,t,i){i(300);var n=i(5).Object;e.exports=function(e,t,i){return n.defineProperty(e,t,i)}},function(e,t,i){i(305),e.exports=i(5).Object.entries},function(e,t,i){i(301),e.exports=i(5).Object.getPrototypeOf},function(e,t,i){i(302),e.exports=i(5).Object.keys},function(e,t,i){i(304),i(303),i(306),i(307),e.exports=i(5).Symbol},function(e,t,i){i(38),i(56),e.exports=i(55).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,i){var n=i(12),s=i(79),o=i(294);e.exports=function(e){return function(t,i,r){var a,l=n(t),u=s(l.length),c=o(r,u);if(e&&i!=i){for(;u>c;)if(a=l[c++],a!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===i)return e||c||0;return!e&&-1}}},function(e,t,i){"use strict";var n=i(11),s=i(28);e.exports=function(e,t,i){t in e?n.f(e,t,s(0,i)):e[t]=i}},function(e,t,i){var n=i(18),s=i(48),o=i(27);e.exports=function(e){var t=n(e),i=s.f;if(i)for(var r,a=i(e),l=o.f,u=0;a.length>u;)l.call(e,r=a[u++])&&t.push(r);return t}},function(e,t,i){e.exports=i(10).document&&document.documentElement},function(e,t,i){var n=i(25),s=i(8)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[s]===e)}},function(e,t,i){var n=i(44);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(22);e.exports=function(e,t,i,s){try{return s?t(n(i)[0],i[1]):t(i)}catch(o){var r=e["return"];throw void 0!==r&&n(r.call(e)),o}}},function(e,t,i){"use strict";var n=i(73),s=i(28),o=i(49),r={};i(24)(r,i(8)("iterator"),function(){return this}),e.exports=function(e,t,i){e.prototype=n(r,{next:s(1,i)}),o(e,t+" Iterator")}},function(e,t,i){var n=i(8)("iterator"),s=!1;try{var o=[7][n]();o["return"]=function(){s=!0},Array.from(o,function(){throw 2})}catch(r){}e.exports=function(e,t){if(!t&&!s)return!1;var i=!1;try{var o=[7],r=o[n]();r.next=function(){return{done:i=!0}},o[n]=function(){return r},e(o)}catch(a){}return i}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,i){var n=i(18),s=i(12);e.exports=function(e,t){for(var i,o=s(e),r=n(o),a=r.length,l=0;a>l;)if(o[i=r[l++]]===t)return i}},function(e,t,i){var n=i(37)("meta"),s=i(36),o=i(17),r=i(11).f,a=0,l=Object.isExtensible||function(){return!0},u=!i(23)(function(){return l(Object.preventExtensions({}))}),c=function(e){r(e,n,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[n].i},f=function(e,t){if(!o(e,n)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[n].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,n)&&c(e),e},p=e.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:h}},function(e,t,i){"use strict";var n=i(18),s=i(48),o=i(27),r=i(29),a=i(71),l=Object.assign;e.exports=!l||i(23)(function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach(function(e){t[e]=e}),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=n})?function(e,t){for(var i=r(e),l=arguments.length,u=1,c=s.f,d=o.f;l>u;)for(var f,h=a(arguments[u++]),p=c?n(h).concat(c(h)):n(h),v=p.length,m=0;v>m;)d.call(h,f=p[m++])&&(i[f]=h[f]);return i}:l},function(e,t,i){var n=i(11),s=i(22),o=i(18);e.exports=i(15)?Object.defineProperties:function(e,t){s(e);for(var i,r=o(t),a=r.length,l=0;a>l;)n.f(e,i=r[l++],t[i]);return e}},function(e,t,i){var n=i(27),s=i(28),o=i(12),r=i(53),a=i(17),l=i(70),u=Object.getOwnPropertyDescriptor;t.f=i(15)?u:function(e,t){if(e=o(e),t=r(t,!0),l)try{return u(e,t)}catch(i){}if(a(e,t))return s(!n.f.call(e,t),e[t])}},function(e,t,i){var n=i(12),s=i(74).f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return s(e)}catch(t){return r.slice()}};e.exports.f=function(e){return r&&"[object Window]"==o.call(e)?a(e):s(n(e))}},function(e,t,i){var n=i(18),s=i(12),o=i(27).f;e.exports=function(e){return function(t){for(var i,r=s(t),a=n(r),l=a.length,u=0,c=[];l>u;)o.call(r,i=a[u++])&&c.push(e?[i,r[i]]:r[i]);return c}}},function(e,t,i){var n=i(52),s=i(45);e.exports=function(e){return function(t,i){var o,r,a=String(s(t)),l=n(i),u=a.length;return l<0||l>=u?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===u||(r=a.charCodeAt(l+1))<56320||r>57343?e?a.charAt(l):o:e?a.slice(l,l+2):(o-55296<<10)+(r-56320)+65536)}}},function(e,t,i){var n=i(52),s=Math.max,o=Math.min;e.exports=function(e,t){return e=n(e),e<0?s(e+t,0):o(e,t)}},function(e,t,i){var n=i(22),s=i(80);e.exports=i(5).getIterator=function(e){var t=s(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,i){var n=i(67),s=i(8)("iterator"),o=i(25);e.exports=i(5).isIterable=function(e){var t=Object(e);return void 0!==t[s]||"@@iterator"in t||o.hasOwnProperty(n(t))}},function(e,t,i){"use strict";var n=i(68),s=i(16),o=i(29),r=i(282),a=i(280),l=i(79),u=i(277),c=i(80);s(s.S+s.F*!i(284)(function(e){Array.from(e)}),"Array",{from:function(e){var t,i,s,d,f=o(e),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,y=0,g=c(f);if(m&&(v=n(v,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&a(g))for(t=l(f.length),i=new h(t);t>y;y++)u(i,y,m?v(f[y],y):f[y]);else for(d=g.call(f),i=new h;!(s=d.next()).done;y++)u(i,y,m?r(d,v,[s.value,y],!0):s.value);return i.length=y,i}})},function(e,t,i){"use strict";var n=i(275),s=i(285),o=i(25),r=i(12);e.exports=i(72)(Array,"Array",function(e,t){this._t=r(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,s(1)):"keys"==t?s(0,i):"values"==t?s(0,e[i]):s(0,[i,e[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t,i){var n=i(16);n(n.S+n.F,"Object",{assign:i(288)})},function(e,t,i){var n=i(16);n(n.S+n.F*!i(15),"Object",{defineProperty:i(11).f})},function(e,t,i){var n=i(29),s=i(75);i(77)("getPrototypeOf",function(){return function(e){return s(n(e))}})},function(e,t,i){var n=i(29),s=i(18);i(77)("keys",function(){return function(e){return s(n(e))}})},function(e,t){},function(e,t,i){"use strict";var n=i(10),s=i(17),o=i(15),r=i(16),a=i(78),l=i(287).KEY,u=i(23),c=i(51),d=i(49),f=i(37),h=i(8),p=i(55),v=i(54),m=i(286),y=i(278),g=i(281),x=i(22),b=i(12),w=i(53),C=i(28),_=i(73),k=i(291),M=i(290),S=i(11),O=i(18),P=M.f,D=S.f,$=k.f,T=n.Symbol,j=n.JSON,E=j&&j.stringify,F="prototype",N=h("_hidden"),I=h("toPrimitive"),A={}.propertyIsEnumerable,B=c("symbol-registry"),H=c("symbols"),L=c("op-symbols"),z=Object[F],V="function"==typeof T,R=n.QObject,q=!R||!R[F]||!R[F].findChild,W=o&&u(function(){return 7!=_(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,i){var n=P(z,t);n&&delete z[t],D(e,t,i),n&&e!==z&&D(z,t,n)}:D,Y=function(e){var t=H[e]=_(T[F]);return t._k=e,t},K=V&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},U=function(e,t,i){return e===z&&U(L,t,i),x(e),t=w(t,!0),x(i),s(H,t)?(i.enumerable?(s(e,N)&&e[N][t]&&(e[N][t]=!1),i=_(i,{enumerable:C(0,!1)})):(s(e,N)||D(e,N,C(1,{})),e[N][t]=!0),W(e,t,i)):D(e,t,i)},G=function(e,t){x(e);for(var i,n=y(t=b(t)),s=0,o=n.length;o>s;)U(e,i=n[s++],t[i]);return e},J=function(e,t){return void 0===t?_(e):G(_(e),t)},X=function(e){var t=A.call(this,e=w(e,!0));return!(this===z&&s(H,e)&&!s(L,e))&&(!(t||!s(this,e)||!s(H,e)||s(this,N)&&this[N][e])||t)},Z=function(e,t){if(e=b(e),t=w(t,!0),e!==z||!s(H,t)||s(L,t)){var i=P(e,t);return!i||!s(H,t)||s(e,N)&&e[N][t]||(i.enumerable=!0),i}},Q=function(e){for(var t,i=$(b(e)),n=[],o=0;i.length>o;)s(H,t=i[o++])||t==N||t==l||n.push(t);return n},ee=function(e){for(var t,i=e===z,n=$(i?L:b(e)),o=[],r=0;n.length>r;)!s(H,t=n[r++])||i&&!s(z,t)||o.push(H[t]);return o};V||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(i){this===z&&t.call(L,i),s(this,N)&&s(this[N],e)&&(this[N][e]=!1),W(this,e,C(1,i))};return o&&q&&W(z,e,{configurable:!0,set:t}),Y(e)},a(T[F],"toString",function(){return this._k}),M.f=Z,S.f=U,i(74).f=k.f=Q,i(27).f=X,i(48).f=ee,o&&!i(47)&&a(z,"propertyIsEnumerable",X,!0),p.f=function(e){return Y(h(e))}),r(r.G+r.W+r.F*!V,{Symbol:T});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;te.length>ie;)h(te[ie++]);for(var te=O(h.store),ie=0;te.length>ie;)v(te[ie++]);r(r.S+r.F*!V,"Symbol",{"for":function(e){return s(B,e+="")?B[e]:B[e]=T(e)},keyFor:function(e){if(K(e))return m(B,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),r(r.S+r.F*!V,"Object",{create:J,defineProperty:U,defineProperties:G,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),j&&r(r.S+r.F*(!V||u(function(){var e=T();return"[null]"!=E([e])||"{}"!=E({a:e})||"{}"!=E(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!K(e)){for(var t,i,n=[e],s=1;arguments.length>s;)n.push(arguments[s++]);return t=n[1],"function"==typeof t&&(i=t),!i&&g(t)||(t=function(e,t){if(i&&(t=i.call(this,e,t)),!K(t))return t}),n[1]=t,E.apply(j,n)}}}),T[F][I]||i(24)(T[F],I,T[F].valueOf),d(T,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(e,t,i){var n=i(16),s=i(292)(!0);n(n.S,"Object",{entries:function(e){return s(e)}})},function(e,t,i){i(54)("asyncIterator")},function(e,t,i){i(54)("observable")},function(e,t,i){i(330),e.exports=i(57).Array.findIndex},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(85)("unscopables"),s=Array.prototype;void 0==s[n]&&i(59)(s,n,{}),e.exports=function(e){s[n][e]=!0}},function(e,t,i){var n=i(39);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){var n=i(82),s=i(320),o=i(328),r=i(327),a=i(314);e.exports=function(e,t){var i=1==e,l=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d,h=t||a;return function(t,a,p){for(var v,m,y=o(t),g=s(y),x=n(a,p,3),b=r(g.length),w=0,C=i?h(t,b):l?h(t,0):void 0;b>w;w++)if((f||w in g)&&(v=g[w],m=x(v,w,y),e))if(i)C[w]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:C.push(v)}else if(c)return!1;return d?-1:u||c?c:C}}},function(e,t,i){var n=i(39),s=i(321),o=i(85)("species");e.exports=function(e){var t;return s(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!s(t.prototype)||(t=void 0),n(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,i){var n=i(313);e.exports=function(e,t){return new(n(e))(t)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(39),s=i(30).document,o=n(s)&&n(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,i){var n=i(30),s=i(57),o=i(59),r=i(324),a=i(82),l="prototype",u=function(e,t,i){var c,d,f,h,p=e&u.F,v=e&u.G,m=e&u.S,y=e&u.P,g=e&u.B,x=v?n:m?n[t]||(n[t]={}):(n[t]||{})[l],b=v?s:s[t]||(s[t]={}),w=b[l]||(b[l]={});v&&(i=t);for(c in i)d=!p&&x&&void 0!==x[c],f=(d?x:i)[c],h=g&&d?a(f,n):y&&"function"==typeof f?a(Function.call,f):f,x&&r(x,c,f,e&u.U),b[c]!=f&&o(b,c,h),y&&w[c]!=f&&(w[c]=f)};n.core=s,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){e.exports=!i(58)&&!i(83)(function(){return 7!=Object.defineProperty(i(316)("div"),"a",{get:function(){return 7}}).a})},function(e,t,i){var n=i(81);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,i){var n=i(81);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(311),s=i(319),o=i(329),r=Object.defineProperty;t.f=i(58)?Object.defineProperty:function(e,t,i){if(n(e),t=o(t,!0),n(i),s)try{return r(e,t,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(30),s=i(59),o=i(318),r=i(84)("src"),a="toString",l=Function[a],u=(""+l).split(a);i(57).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,i,a){var l="function"==typeof i;l&&(o(i,"name")||s(i,"name",t)),e[t]!==i&&(l&&(o(i,r)||s(i,r,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=i:a?e[t]?e[t]=i:s(e,t,i):(delete e[t],s(e,t,i)))})(Function.prototype,a,function(){return"function"==typeof this&&this[r]||l.call(this)})},function(e,t,i){var n=i(30),s="__core-js_shared__",o=n[s]||(n[s]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(326),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},function(e,t,i){var n=i(315);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(39);e.exports=function(e,t){if(!n(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!n(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){"use strict";var n=i(317),s=i(312)(6),o="findIndex",r=!0;o in[]&&Array(1)[o](function(){r=!1}),n(n.P+n.F*r,"Array",{findIndex:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),i(310)(o)},function(e,t,i){var n,s;!function(o,r){n=r,s="function"==typeof n?n.call(t,i,t,e):n,!(void 0!==s&&(e.exports=s))}(this,function(){function e(e){var t=e&&"object"==typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function i(i,n){var s=n&&n.clone===!0;return s&&e(i)?o(t(i),i,n):i}function n(t,n,s){var r=t.slice();return n.forEach(function(n,a){"undefined"==typeof r[a]?r[a]=i(n,s):e(n)?r[a]=o(t[a],n,s):t.indexOf(n)===-1&&r.push(i(n,s))}),r}function s(t,n,s){var r={};return e(t)&&Object.keys(t).forEach(function(e){r[e]=i(t[e],s)}),Object.keys(n).forEach(function(a){e(n[a])&&t[a]?r[a]=o(t[a],n[a],s):r[a]=i(n[a],s)}),r}function o(e,t,o){var r=Array.isArray(t),a=o||{arrayMerge:n},l=a.arrayMerge||n;return r?Array.isArray(e)?l(e,t,o):i(t,o):s(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");
return e.reduce(function(e,i){return o(e,i,t)})},o})},function(e,t){e.exports=" <div> <div :class=classes :style=styles> <slot></slot> </div> </div> "},function(e,t){e.exports=" <div v-if=!closed :class=wrapClasses transition=fade> <span :class=iconClasses v-if=showIcon> <slot name=icon> <icon :type=iconType></icon> </slot> </span> <span :class=messageClasses><slot></slot></span> <span :class=descClasses v-el:desc><slot name=desc></slot></span> <a :class=closeClasses v-if=closable @click=close> <slot name=close> <icon type=ios-close-empty></icon> </slot> </a> </div> "},function(e,t){e.exports=' <div :class=classes :style=styles @click=back> <slot> <div :class=innerClasses> <i class="ivu-icon ivu-icon-chevron-up"></i> </div> </slot> </div> '},function(e,t){e.exports=" <span v-if=dot :class=classes v-el:badge> <slot></slot> <sup :class=dotClasses v-show=badge></sup> </span> <span v-else :class=classes v-el:badge> <slot></slot> <sup v-if=count :class=countClasses v-show=badge>{{ finalCount }}</sup> </span> "},function(e,t){e.exports=' <div :class=classes :style=style :transition=transitionName> <div :class="[baseClass + \'-content\']" v-el:content>{{{ content }}}</div> <a :class="[baseClass + \'-close\']" @click=close v-if=closable> <i class="ivu-icon ivu-icon-ios-close-empty"></i> </a> </div> '},function(e,t){e.exports=' <div :class=classes :style=style> <notice v-for="notice in notices" :prefix-cls=prefixCls :style=notice.style :content=notice.content :duration=notice.duration :closable=notice.closable :key=notice.key :transition-name=notice.transitionName :on-close=notice.onClose> </notice> </div> '},function(e,t){e.exports=" <span> <a v-if=href :href=href :class=linkClasses> <slot></slot> </a> <span v-else :class=linkClasses> <slot></slot> </span> <span :class=separatorClasses> <slot name=separator>{{{ separator }}}</slot> </span> </span> "},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=' <button :type=htmlType :class=classes :disabled=disabled> <icon class=ivu-load-loop type=load-c v-if=loading></icon> <icon :type=icon v-if="icon && !loading"></icon> <span v-if=showSlot v-el:slot><slot></slot></span> </button> '},function(e,t){e.exports=" <div :class=classes> <div :class=headClasses v-if=showHead v-el:head><slot name=title></slot></div> <div :class=extraClasses v-if=showExtra v-el:extra><slot name=extra></slot></div> <div :class=bodyClasses><slot></slot></div> </div> "},function(e,t){e.exports=" <div :class=prefixCls v-bind:style=styles><slot></slot></div> "},function(e,t){e.exports=' <div :class=classes> <button :class=arrowClasses class=left @click=arrowEvent(-1)> <icon type=chevron-left></icon> </button> <div :class="[prefixCls + \'-list\']"> <div :class="[prefixCls + \'-track\']" :style=trackStyles v-el:slides> <slot></slot> </div> </div> <button :class=arrowClasses class=right @click=arrowEvent(1)> <icon type=chevron-right></icon> </button> <ul :class=dotsClasses> <template v-for="n in slides.length"> <li :class="{ [`${prefixCls}-active`]: n === currentIndex }" @click="dotsEvent(\'click\', n)" @mouseover="dotsEvent(\'hover\', n)"> <button></button> </li> </template> </ul> </div> '},function(e,t){e.exports=" <div :class=classes v-clickoutside=handleClose> <div :class=\"[prefixCls + '-rel']\" @click=toggleOpen> <slot> <i-input readonly=readonly :disabled=disabled :value.sync=displayRender :size=size :placeholder=placeholder></i-input> <icon type=ios-close :class=\"[prefixCls + '-arrow']\" v-show=showCloseIcon @click.stop=clearSelect></icon> <icon type=arrow-down-b :class=\"[prefixCls + '-arrow']\"></icon> </slot> </div> <dropdown v-show=visible transition=slide-up> <div> <caspanel v-ref:caspanel :prefix-cls=prefixCls :data.sync=data :disabled=disabled :change-on-select=changeOnSelect :trigger=trigger></caspanel> </div> </dropdown> </div> "},function(e,t){e.exports=' <li :class=classes>{{ data.label }}<i v-if="data.children && data.children.length" class="ivu-icon ivu-icon-ios-arrow-right"></i></li> '},function(e,t){e.exports=' <ul v-if="data && data.length" :class="[prefixCls + \'-menu\']"> <casitem v-for="item in data" :prefix-cls=prefixCls :data.sync=item :tmp-item=tmpItem @click.stop=handleClickItem(item) @mouseenter.stop=handleHoverItem(item)></casitem> </ul><caspanel v-if="sublist && sublist.length" :prefix-cls=prefixCls :data.sync=sublist :disabled=disabled :trigger=trigger :change-on-select=changeOnSelect></caspanel> '},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=" <label :class=wrapClasses> <span :class=checkboxClasses> <span :class=innerClasses></span> <input v-if=group type=checkbox :class=inputClasses :disabled=disabled :value=value v-model=model @change=change> <input v-if=!group type=checkbox :class=inputClasses :disabled=disabled v-model=checked @change=change> </span> <slot v-if=showSlot><span v-el:slot>{{ value }}</span></slot> </label> "},function(e,t){e.exports=' <div :style=circleSize :class=wrapClasses> <svg viewBox="0 0 100 100"> <path :d=pathString :stroke=trailColor :stroke-width=trailWidth :fill-opacity=0 /> <path :d=pathString :stroke-linecap=strokeLinecap :stroke=strokeColor :stroke-width=strokeWidth fill-opacity=0 :style=pathStyle /> </svg> <div :class=innerClasses> <slot></slot> </div> </div> '},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=" <div :class=itemClasses> <div :class=headerClasses @click=toggle> <icon type=arrow-right-b></icon> <slot></slot> </div> <div :class=concentClasses v-show=isActive> <div :class=boxClasses><slot name=content></slot></div> </div> </div> "},function(e,t){e.exports=" <div :class=\"[prefixCls + '-confirm']\"> <span :class=timeClasses v-if=showTime @click=handleToggleTime> <template v-if=isTime>{{ t('i.datepicker.selectDate') }}</template> <template v-else>{{ t('i.datepicker.selectTime') }}</template> </span> <i-button size=small type=text @click=handleClear>{{ t('i.datepicker.clear') }}</i-button> <i-button size=small type=primary @click=handleSuccess>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.ok') }}</i-button> </div> "},function(e,t){e.exports=" <div :class=classes @click=handleClick @mousemove=handleMouseMove> <div :class=\"[prefixCls + '-header']\"> <span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.sun') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.mon') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.tue') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.wed') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.thu') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.fri') }}</span><span>{{ t('https://unpkg.com/iview@1.0.0/dist/i.datepicker.weeks.sat') }}</span> </div> <span :class=getCellCls(cell) v-for=\"cell in readCells\"><em :index=$index>{{ cell.text }}</em></span> </div> "},function(e,t){e.exports=' <div :class=classes @click=handleClick> <span :class=getCellCls(cell) v-for="cell in cells"><em :index=$index>{{ tCell(cell.text) }}</em></span> </div> '},function(e,t){e.exports=' <div :class=classes> <div :class="[prefixCls+ \'-list\']" v-el:hours> <ul :class="[prefixCls + \'-ul\']" @click=handleClickHours> <li :class=getCellCls(item) v-for="item in hoursList" v-show=!item.hide :index=$index>{{ formatTime(item.text) }}</li> </ul> </div> <div :class="[prefixCls+ \'-list\']" v-el:minutes> <ul :class="[prefixCls + \'-ul\']" @click=handleClickMinutes> <li :class=getCellCls(item) v-for="item in minutesList" v-show=!item.hide :index=$index>{{ formatTime(item.text) }}</li> </ul> </div> <div :class="[prefixCls+ \'-list\']" v-show=showSeconds v-el:seconds> <ul :class="[prefixCls + \'-ul\']" @click=handleClickSeconds> <li :class=getCellCls(item) v-for="item in secondsList" v-show=!item.hide :index=$index>{{ formatTime(item.text) }}</li> </ul> </div> </div> '},function(e,t){e.exports=' <div :class=classes @click=handleClick> <span :class=getCellCls(cell) v-for="cell in cells"><em :index=$index>{{ cell.text }}</em></span> </div> '},function(e,t){e.exports=" <div :class=classes> <div :class=\"[prefixCls + '-sidebar']\" v-if=shortcuts.length> <div :class=\"[prefixCls + '-shortcut']\" v-for=\"shortcut in shortcuts\" @click=handleShortcutClick(shortcut)>{{ shortcut.text }}</div> </div> <div :class=\"[prefixCls + '-body']\"> <div :class=\"[prefixCls + '-content', prefixCls + '-content-left']\" v-show=!isTime> <div :class=\"[datePrefixCls + '-header']\" v-show=\"leftCurrentView !== 'time'\"> <span :class=\"iconBtnCls('prev', '-double')\" @click=\"prevYear('left')\"><icon type=ios-arrow-left></icon></span> <span :class=\"iconBtnCls('prev')\" @click=prevMonth v-show=\"leftCurrentView === 'date'\"><icon type=ios-arrow-left></icon></span> <span :class=\"[datePrefixCls + '-header-label']\" @click=\"showYearPicker('left')\">{{ leftYearLabel }}</span> <span :class=\"[datePrefixCls + '-header-label']\" @click=\"showMonthPicker('left')\" v-show=\"leftCurrentView === 'date'\">{{ leftMonthLabel }}</span> <span :class=\"iconBtnCls('next', '-double')\" @click=\"nextYear('left')\" v-show=\"leftCurrentView === 'year' || leftCurrentView === 'month'\"><icon type=ios-arrow-right></icon></span> </div> <date-table v-show=\"leftCurrentView === 'date'\" :year=leftYear :month=leftMonth :date=date :min-date=minDate :max-date=maxDate :range-state=rangeState selection-mode=range :disabled-date=disabledDate @on-changerange=handleChangeRange @on-pick=handleRangePick @on-pick-click=handlePickClick></date-table> <year-table v-ref:left-year-table v-show=\"leftCurrentView === 'year'\" :year=leftTableYear :date=leftTableDate selection-mode=range :disabled-date=disabledDate @on-pick=handleLeftYearPick @on-pick-click=handlePickClick></year-table> <month-table v-ref:left-month-table v-show=\"leftCurrentView === 'month'\" :month=leftMonth :date=leftTableDate selection-mode=range :disabled-date=disabledDate @on-pick=handleLeftMonthPick @on-pick-click=handlePickClick></month-table> </div> <div :class=\"[prefixCls + '-content', prefixCls + '-content-right']\" v-show=!isTime> <div :class=\"[datePrefixCls + '-header']\" v-show=\"rightCurrentView !== 'time'\"> <span :class=\"iconBtnCls('prev', '-double')\" @click=\"prevYear('right')\" v-show=\"rightCurrentView === 'year' || rightCurrentView === 'month'\"><icon type=ios-arrow-left></icon></span> <span :class=\"[datePrefixCls + '-header-label']\" @click=\"showYearPicker('right')\">{{ rightYearLabel }}</span> <span :class=\"[datePrefixCls + '-header-label']\" @click=\"showMonthPicker('right')\" v-show=\"rightCurrentView === 'date'\">{{ rightMonthLabel }}</span> <span :class=\"iconBtnCls('next', '-double')\" @click=\"nextYear('right')\"><icon type=ios-arrow-right></icon></span> <span :class=\"iconBtnCls('next')\" @click=nextMonth v-show=\"rightCurrentView === 'date'\"><icon type=ios-arrow-right></icon></span> </div> <date-table v-show=\"rightCurrentView === 'date'\" :year=rightYear :month=rightMonth :date=rightDate :min-date=minDate :max-date=maxDate :range-state=rangeState selection-mode=range :disabled-date=disabledDate @on-changerange=handleChangeRange @on-pick=handleRangePick @on-pick-click=handlePickClick></date-table> <year-table v-ref:right-year-table v-show=\"rightCurrentView === 'year'\" :year=rightTableYear :date=rightTableDate selection-mode=range :disabled-date=disabledDate @on-pick=handleRightYearPick @on-pick-click=handlePickClick></year-table> <month-table v-ref:right-month-table v-show=\"rightCurrentView === 'month'\" :month=rightMonth :date=rightTableDate selection-mode=range :disabled-date=disabledDate @on-pick=handleRightMonthPick @on-pick-click=handlePickClick></month-table> </div> <div :class=\"[prefixCls + '-content']\" v-show=isTime> <time-picker v-ref:time-picker v-show=isTime @on-pick=handleTimePick @on-pick-click=handlePickClick></time-picker> </div> <confirm v-if=confirm :show-time=showTime :is-time=isTime :time-disabled=timeDisabled @on-pick-toggle-time=handleToggleTime @on-pick-clear=handlePickClear @on-pick-success=handlePickSuccess></confirm> </div> </div> "},function(e,t){e.exports=" <div :class=classes> <div :class=\"[prefixCls + '-sidebar']\" v-if=shortcuts.length> <div :class=\"[prefixCls + '-shortcut']\" v-for=\"shortcut in shortcuts\" @click=handleShortcutClick(shortcut)>{{ shortcut.text }}</div> </div> <div :class=\"[prefixCls + '-body']\"> <div :class=\"[datePrefixCls + '-header']\" v-show=\"currentView !== 'time'\"> <span :class=\"iconBtnCls('prev', '-double')\" @click=prevYear><icon type=ios-arrow-left></icon></span> <span :class=\"iconBtnCls('prev')\" @click=prevMonth v-show=\"currentView === 'date'\"><icon type=ios-arrow-left></icon></span> <span :class=\"[datePrefixCls + '-header-label']\" @click=showYearPicker>{{ yearLabel }}</span> <span :class=\"[datePrefixCls + '-header-label']\" @click=showMonthPicker v-show=\"currentView === 'date'\">{{ monthLabel }}</span> <span :class=\"iconBtnCls('next', '-double')\" @click=nextYear><icon type=ios-arrow-right></icon></span> <span :class=\"iconBtnCls('next')\" @click=nextMonth v-show=\"currentView === 'date'\"><icon type=ios-arrow-right></icon></span> </div> <div :class=\"[prefixCls + '-content']\"> <date-table v-show=\"currentView === 'date'\" :year=year :month=month :date=date :value=value :selection-mode=selectionMode :disabled-date=disabledDate @on-pick=handleDatePick @on-pick-click=handlePickClick></date-table> <year-table v-ref:year-table v-show=\"currentView === 'year'\" :year=year :date=date :selection-mode=selectionMode :disabled-date=disabledDate @on-pick=handleYearPick @on-pick-click=handlePickClick></year-table> <month-table v-ref:month-table v-show=\"currentView === 'month'\" :month=month :date=date :selection-mode=selectionMode :disabled-date=disabledDate @on-pick=handleMonthPick @on-pick-click=handlePickClick></month-table> <time-picker v-ref:time-picker show-date v-show=\"currentView === 'time'\" @on-pick=handleTimePick @on-pick-click=handlePickClick></time-picker> </div> <confirm v-if=confirm :show-time=showTime :is-time=isTime @on-pick-toggle-time=handleToggleTime @on-pick-clear=handlePickClear @on-pick-success=handlePickSuccess></confirm> </div> </div> "},function(e,t){e.exports=" <div :class=classes> <div :class=\"[prefixCls + '-body']\"> <div :class=\"[prefixCls + '-content', prefixCls + '-content-left']\"> <div :class=\"[timePrefixCls + '-header']\"> <template v-if=showDate>{{ visibleDate }}</template> <template v-else>{{ t('i.datepicker.startTime') }}</template> </div> <time-spinner v-ref:time-spinner :show-seconds=showSeconds :hours=hours :minutes=minutes :seconds=seconds :disabled-hours=disabledHours :disabled-minutes=disabledMinutes :disabled-seconds=disabledSeconds :hide-disabled-options=hideDisabledOptions @on-change=handleStartChange @on-pick-click=handlePickClick></time-spinner> </div> <div :class=\"[prefixCls + '-content', prefixCls + '-content-right']\"> <div :class=\"[timePrefixCls + '-header']\"> <template v-if=showDate>{{ visibleDateEnd }}</template> <template v-else>{{ t('i.datepicker.endTime') }}</template> </div> <time-spinner v-ref:time-spinner-end :show-seconds=showSeconds :hours=hoursEnd :minutes=minutesEnd :seconds=secondsEnd :disabled-hours=disabledHours :disabled-minutes=disabledMinutes :disabled-seconds=disabledSeconds :hide-disabled-options=hideDisabledOptions @on-change=handleEndChange @on-pick-click=handlePickClick></time-spinner> </div> <confirm v-if=confirm @on-pick-clear=handlePickClear @on-pick-success=handlePickSuccess></confirm> </div> </div> "},function(e,t){e.exports=" <div :class=\"[prefixCls + '-body-wrapper']\"> <div :class=\"[prefixCls + '-body']\"> <div :class=\"[timePrefixCls + '-header']\" v-if=showDate>{{ visibleDate }}</div> <div :class=\"[prefixCls + '-content']\"> <time-spinner v-ref:time-spinner :show-seconds=showSeconds :hours=hours :minutes=minutes :seconds=seconds :disabled-hours=disabledHours :disabled-minutes=disabledMinutes :disabled-seconds=disabledSeconds :hide-disabled-options=hideDisabledOptions @on-change=handleChange @on-pick-click=handlePickClick></time-spinner> </div> <confirm v-if=confirm @on-pick-clear=handlePickClear @on-pick-success=handlePickSuccess></confirm> </div> </div> "},function(e,t){e.exports=' <div :class=[prefixCls] v-clickoutside=handleClose> <div v-el:reference :class="[prefixCls + \'-rel\']"> <slot> <i-input :class="[prefixCls + \'-editor\']" :readonly="!editable || readonly" :disabled=disabled :size=size :placeholder=placeholder :value=visualValue @on-change=handleInputChange @on-focus=handleFocus @on-click=handleIconClick @mouseenter=handleInputMouseenter @mouseleave=handleInputMouseleave :icon=iconType></i-input> </slot> </div> <drop v-show=opened :placement=placement :transition=transition v-ref:drop> <div v-el:picker></div> </drop> </div> '},function(e,t){e.exports=" <li :class=classes @click=handleClick><slot></slot></li> "},function(e,t){e.exports=" <ul class=ivu-dropdown-menu><slot></slot></ul> "},function(e,t){e.exports=" <div :class=[prefixCls] v-clickoutside=handleClose @mouseenter=handleMouseenter @mouseleave=handleMouseleave> <div :class=[prefixCls-rel] v-el:reference @click=handleClick><slot></slot></div> <drop v-show=visible :placement=placement :transition=transition v-ref:drop><slot name=list></slot></drop> </div> "},function(e,t){e.exports=" <div :class=classes> <label :class=\"[prefixCls + '-label']\" :style=labelStyles v-if=label><slot name=label>{{ label }}</slot></label> <div :class=\"[prefixCls + '-content']\" :style=contentStyles> <slot></slot> <div transition=fade :class=\"[prefixCls + '-error-tip']\" v-if=\"validateState === 'error' && showMessage && form.showMessage\">{{ validateMessage }}</div> </div> </div> "},function(e,t){e.exports=" <form :class=classes><slot></slot></form> "},function(e,t){e.exports=" <i :class=classes :style=styles></i> "},function(e,t){e.exports=" <div :class=wrapClasses> <div :class=handlerClasses> <a @click=up @mouse.down=preventDefault :class=upClasses> <span :class=innerUpClasses @click=preventDefault></span> </a> <a @click=down @mouse.down=preventDefault :class=downClasses> <span :class=innerDownClasses @click=preventDefault></span> </a> </div> <div :class=inputWrapClasses> <input :class=inputClasses :disabled=disabled autocomplete=off @focus=focus @blur=blur @keydown.stop=keyDown @change=change :value=value> </div> </div> "},function(e,t){e.exports=" <div :class=wrapClasses> <template v-if=\"type !== 'textarea'\"> <div :class=\"[prefixCls + '-group-prepend']\" v-if=prepend v-show=slotReady v-el:prepend><slot name=prepend></slot></div> <i class=ivu-icon :class=\"['ivu-icon-' + icon, prefixCls + '-icon']\" v-if=icon @click=handleIconClick></i> <i class=\"ivu-icon ivu-icon-load-c ivu-load-loop\" :class=\"[prefixCls + '-icon', prefixCls + '-icon-validate']\" v-else transition=fade></i> <input :type=type :class=inputClasses :placeholder=placeholder :disabled=disabled :maxlength=maxlength :readonly=readonly :name=name v-model=value :number=number @keyup.enter=handleEnter @focus=handleFocus @blur=handleBlur @change=handleChange> <div :class=\"[prefixCls + '-group-append']\" v-if=append v-show=slotReady v-el:append><slot name=append></slot></div> </template> <textarea v-else v-el:textarea :class=textareaClasses :style=textareaStyles :placeholder=placeholder :disabled=disabled :rows=rows :maxlength=maxlength :readonly=readonly :name=name v-model=value @keyup.enter=handleEnter @focus=handleFocus @blur=handleBlur @change=handleChange>\n </textarea> </div> "},function(e,t){e.exports=" <div :class=classes :style=styles> <slot></slot> </div> "},function(e,t){e.exports=" <div :class=classes :style=styles> <slot></slot> </div> "},function(e,t){e.exports=" <div :class=classes :style=outerStyles v-show=show transition=fade> <div :class=innerClasses :style=styles></div> </div> "},function(e,t){e.exports=" <li :class=\"[prefixCls + '-item-group']\"> <div :class=\"[prefixCls + '-item-group-title']\">{{ title }}</div> <ul><slot></slot></ul> </li> "},function(e,t){e.exports=" <li :class=classes @click.stop=handleClick><slot></slot></li> "},function(e,t){e.exports=" <ul :class=classes :style=styles><slot></slot></ul> "},function(e,t){e.exports=" <li :class=classes @mouseenter=handleMouseenter @mouseleave=handleMouseleave> <div :class=\"[prefixCls + '-submenu-title']\" v-el:reference @click=handleClick> <slot name=title></slot> <icon type=ios-arrow-down :class=\"[prefixCls + '-submenu-title-icon']\"></icon> </div> <ul :class=[prefixCls] v-if=\"mode === 'vertical'\" v-show=opened><slot></slot></ul> <drop v-else v-show=opened placement=bottom transition=slide-up v-ref:drop :style=dropStyle><slot></slot></drop> </li> "},function(e,t){e.exports=" <div :class=wrapClasses> <div :class=maskClasses v-show=visible @click=mask transition=fade></div> <div :class=classes :style=styles v-show=visible transition=ease> <div :class=\"[prefixCls + '-content']\"> <a :class=\"[prefixCls + '-close']\" v-if=closable @click=close> <slot name=close> <icon type=ios-close-empty></icon> </slot> </a> <div :class=\"[prefixCls + '-header']\" v-if=showHead v-el:head><slot name=header><div :class=\"[prefixCls + '-header-inner']\">{{ title }}</div></slot></div> <div :class=\"[prefixCls + '-body']\"><slot></slot></div> <div :class=\"[prefixCls + '-footer']\" v-if=!footerHide> <slot name=footer> <i-button type=text size=large @click=cancel>{{ cancelText }}</i-button> <i-button type=primary size=large :loading=buttonLoading @click=ok>{{ okText }}</i-button> </slot> </div> </div> </div> </div> "},function(e,t){e.exports=" <div v-if=\"showSizer || showElevator\" :class=optsClasses> <div v-if=showSizer :class=sizerClasses> <i-select :model.sync=pageSize :size=size @on-change=changeSize> <i-option v-for=\"item in pageSizeOpts\" :value=item style=text-align:center>{{ item }} {{ t('https://unpkg.com/iview@1.0.0/dist/i.page.page') }}</i-option> </i-select> </div> <div v-if=showElevator :class=ElevatorClasses> {{ t('https://unpkg.com/iview@1.0.0/dist/i.page.goto') }} <input type=text :value=_current @keyup.enter=changePage> {{ t('i.page.p') }} </div> </div> "},function(e,t){e.exports=' <ul :class=simpleWrapClasses :style=style v-if=simple> <li :title="t(\'https://unpkg.com/iview@1.0.0/dist/i.page.prev\')" :class=prevClasses @click=prev> <a><i class="ivu-icon ivu-icon-ios-arrow-left"></i></a> </li> <div :class=simplePagerClasses :title="current + \'/\' + allPages"> <input type=text :value=current @keydown=keyDown @keyup=keyUp @change=keyUp> <span>/</span> {{ allPages }} </div> <li :title="t(\'https://unpkg.com/iview@1.0.0/dist/i.page.next\')" :class=nextClasses @click=next> <a><i class="ivu-icon ivu-icon-ios-arrow-right"></i></a> </li> </ul> <ul :class=wrapClasses :style=style v-else> <span :class="[prefixCls + \'-total\']" v-if=showTotal> <slot>{{ t(\'i.page.total\') }} {{ total }} <template v-if="total <= 1">{{ t(\'https://unpkg.com/iview@1.0.0/dist/i.page.item\') }}</template><template v-else>{{ t(\'i.page.items\') }}</template></slot> </span> <li :title="t(\'https://unpkg.com/iview@1.0.0/dist/i.page.prev\')" :class=prevClasses @click=prev> <a><i class="ivu-icon ivu-icon-ios-arrow-left"></i></a> </li> <li title=1 :class=firstPageClasses @click=changePage(1)><a>1</a></li> <li :title="t(\'i.page.prev5\')" v-if="current - 3 > 1" :class="[prefixCls + \'-item-jump-prev\']" @click=fastPrev><a><i class="ivu-icon ivu-icon-ios-arrow-left"></i></a></li> <li :title="current - 2" v-if="current - 2 > 1" :class="[prefixCls + \'-item\']" @click="changePage(current - 2)"><a>{{ current - 2 }}</a></li> <li :title="current - 1" v-if="current - 1 > 1" :class="[prefixCls + \'-item\']" @click="changePage(current - 1)"><a>{{ current - 1 }}</a></li> <li :title=current v-if="current != 1 && current != allPages" :class="[prefixCls + \'-item\',prefixCls + \'-item-active\']"><a>{{ current }}</a></li> <li :title="current + 1" v-if="current + 1 < allPages" :class="[prefixCls + \'-item\']" @click="changePage(current + 1)"><a>{{ current + 1 }}</a></li> <li :title="current + 2" v-if="current + 2 < allPages" :class="[prefixCls + \'-item\']" @click="changePage(current + 2)"><a>{{ current + 2 }}</a></li> <li :title="t(\'i.page.next5\')" v-if="current + 3 < allPages" :class="[prefixCls + \'-item-jump-next\']" @click=fastNext><a><i class="ivu-icon ivu-icon-ios-arrow-right"></i></a></li> <li :title=allPages v-if="allPages > 1" :class=lastPageClasses @click=changePage(allPages)><a>{{ allPages }}</a></li> <li :title="t(\'https://unpkg.com/iview@1.0.0/dist/i.page.next\')" :class=nextClasses @click=next> <a><i class="ivu-icon ivu-icon-ios-arrow-right"></i></a> </li> <options :show-sizer=showSizer :page-size=pageSize :page-size-opts=pageSizeOpts :show-elevator=showElevator :_current.once=current :current.sync=current :all-pages=allPages :is-small=isSmall @on-size=onSize @on-page=onPage> </options> </ul> '},function(e,t){e.exports=' <div :class=classes @mouseenter=handleMouseenter @mouseleave=handleMouseleave v-clickoutside=handleClose> <div :class="[prefixCls + \'-rel\']" v-el:reference @click=handleClick @mousedown=handleFocus(false) @mouseup=handleBlur(false)> <slot></slot> </div> <div :class="[prefixCls + \'-popper\']" :style=styles transition=fade v-el:popper v-show=visible> <div :class="[prefixCls + \'-content\']"> <div :class="[prefixCls + \'-arrow\']"></div> <div :class="[prefixCls + \'-inner\']" v-if=confirm> <div :class="[prefixCls + \'-body\']"> <i class="ivu-icon ivu-icon-help-circled"></i> <div :class="[prefixCls + \'-body-message\']"><slot name=title>{{ title }}</slot></div> </div> <div :class="[prefixCls + \'-footer\']"> <i-button type=text size=small @click=cancel>{{ cancelText }}</i-button> <i-button type=primary size=small @click=ok>{{ okText }}</i-button> </div> </div> <div :class="[prefixCls + \'-inner\']" v-if=!confirm> <div :class="[prefixCls + \'-title\']" v-if=showTitle v-el:title><slot name=title><div :class="[prefixCls + \'-title-inner\']">{{ title }}</div></slot></div> <div :class="[prefixCls + \'-body\']"> <div :class="[prefixCls + \'-body-content\']"><slot name=content><div :class="[prefixCls + \'-body-content-inner\']">{{ content }}</div></slot></div> </div> </div> </div> </div> </div> '},function(e,t){e.exports=" <div :class=wrapClasses> <div :class=outerClasses> <div :class=innerClasses> <div :class=bgClasses :style=bgStyle></div> </div> </div> <span v-if=!hideInfo :class=textClasses> <slot> <span v-if=isStatus :class=textInnerClasses> <icon :type=statusIcon></icon> </span> <span v-else :class=textInnerClasses> {{ percent }}% </span> </slot> </span> </div> "},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=" <label :class=wrapClasses> <span :class=radioClasses> <span :class=innerClasses></span> <input type=radio :class=inputClasses :disabled=disabled :checked=selected @change=change> </span><slot>{{ value }}</slot> </label> "},function(e,t){e.exports=' <div :class=classes @mouseleave=handleMouseleave> <div v-for="item in count" :class=starCls(item) @mousemove="handleMousemove(item, $event)" @click=handleClick(item)> <span :class="[prefixCls + \'-star-content\']" type=half></span> </div> <div :class="[prefixCls + \'-text\']" v-if=showText v-show="value > 0"> <slot>{{ value }} <template v-if="value <= 1">{{ t(\'https://unpkg.com/iview@1.0.0/dist/i.rate.star\') }}</template><template v-else>{{ t(\'i.rate.stars\') }}</template></slot> </div> </div> '},function(e,t){e.exports=" <div class=ivu-select-dropdown :style=styles><slot></slot></div> "},function(e,t){e.exports=" <li :class=\"[prefixCls + '-wrap']\" v-show=!hidden> <div :class=\"[prefixCls + '-title']\">{{ label }}</div> <ul> <li :class=[prefixCls] v-el:options><slot></slot></li> </ul> </li> "},function(e,t){e.exports=" <li :class=classes @click.stop=select @mouseout.stop=blur v-show=!hidden><slot>{{ showLabel }}</slot></li> "},function(e,t){e.exports=' <div :class=classes v-clickoutside=handleClose> <div :class="[prefixCls + \'-selection\']" v-el:reference @click=toggleMenu> <div class=ivu-tag v-for="item in selectedMultiple"> <span class=ivu-tag-text>{{ item.label }}</span> <icon type=ios-close-empty @click.stop=removeTag($index)></icon> </div> <span :class="[prefixCls + \'-placeholder\']" v-show="showPlaceholder && !filterable">{{ placeholder }}</span> <span :class="[prefixCls + \'-selected-value\']" v-show="!showPlaceholder && !multiple && !filterable">{{ selectedSingle }}</span> <input type=text v-if=filterable v-model=query :class="[prefixCls + \'-input\']" :placeholder="showPlaceholder ? placeholder : \'\'" :style=inputStyle @blur=handleBlur @keydown=resetInputState @keydown.delete=handleInputDelete v-el:input> <icon type=ios-close :class="[prefixCls + \'-arrow\']" v-show=showCloseIcon @click.stop=clearSingleSelect></icon> <icon type=arrow-down-b :class="[prefixCls + \'-arrow\']"></icon> </div> <dropdown v-show=visible transition=slide-up v-ref:dropdown> <ul v-show=notFound :class="[prefixCls + \'-not-found\']"><li>{{ notFoundText }}</li></ul> <ul v-else :class="[prefixCls + \'-dropdown-list\']" v-el:options><slot></slot></ul> </dropdown> </div> '},function(e,t){e.exports=' <div :class=classes> <input-number v-if="!range && showInput" :min=min :max=max :step=step :value=value :disabled=disabled @on-change=handleInputChange></input-number> <div :class="[prefixCls + \'-wrap\']" v-el:slider @click.self=sliderClick> <template v-if=showStops> <div :class="[prefixCls + \'-stop\']" v-for="item in stops" :style="{ \'left\': item + \'%\' }" @click.self=sliderClick></div> </template> <div :class="[prefixCls + \'-bar\']" :style=barStyle @click.self=sliderClick></div> <template v-if=range> <div :class="[prefixCls + \'-button-wrap\']" :style="{left: firstPosition + \'%\'}" @mousedown=onFirstButtonDown> <tooltip :controlled=firstDragging placement=top :content=tipFormat(value[0]) :disabled="tipFormat(value[0]) === null" v-ref:tooltip> <div :class=button1Classes></div> </tooltip> </div> <div :class="[prefixCls + \'-button-wrap\']" :style="{left: secondPosition + \'%\'}" @mousedown=onSecondButtonDown> <tooltip :controlled=secondDragging placement=top :content=tipFormat(value[1]) :disabled="tipFormat(value[1]) === null" v-ref:tooltip2> <div :class=button2Classes></div> </tooltip> </div> </template> <template v-else> <div :class="[prefixCls + \'-button-wrap\']" :style="{left: singlePosition + \'%\'}" @mousedown=onSingleButtonDown> <tooltip :controlled=dragging placement=top :content=tipFormat(value) :disabled="tipFormat(value) === null" v-ref:tooltip> <div :class=buttonClasses></div> </tooltip> </div> </template> </div> </div> '},function(e,t){e.exports=" <div :class=classes transition=fade> <div :class=mainClasses> <span :class=dotClasses></span> <div :class=textClasses v-el:text><slot></slot></div> </div> </div> "},function(e,t){e.exports=" <div :class=wrapClasses :style=styles> <div :class=\"[prefixCls + '-tail']\"><i></i></div> <div :class=\"[prefixCls + '-head']\"> <div :class=\"[prefixCls + '-head-inner']\"> <span v-if=\"!icon && status != 'finish' && status != 'error'\">{{ stepNumber }}</span> <span v-else :class=iconClasses></span> </div> </div> <div :class=\"[prefixCls + '-main']\"> <div :class=\"[prefixCls + '-title']\">{{ title }}</div> <div v-if=content :class=\"[prefixCls + '-content']\">{{ content }}</div> </div> </div> "},function(e,t){e.exports=" <div :class=classes> <slot></slot> </div> "},function(e,t){e.exports=" <span :class=wrapClasses @click=toggle> <span :class=innerClasses> <slot name=open v-if=checked></slot> <slot name=close v-if=!checked></slot> </span> </span> "},function(e,t){e.exports=" <div :class=classes> <template v-if=\"renderType === 'index'\">{{naturalIndex + 1}}</template> <template v-if=\"renderType === 'selection'\"> <checkbox :checked=checked @on-change=toggleSelect></checkbox> </template> <template v-if=\"renderType === 'normal'\">{{{ row[column.key] }}}</template> </div> "},function(e,t){e.exports=' <table cellspacing=0 cellpadding=0 border=0 :style=style> <colgroup> <col v-for="column in columns" :width="setCellWidth(column, $index, false)"> </colgroup> <tbody :class="[prefixCls + \'-tbody\']"> <tr v-for="(index, row) in data" :class=rowClasses(row._index) @mouseenter.stop=handleMouseIn(row._index) @mouseleave.stop=handleMouseOut(row._index) @click.stop=clickCurrentRow(row._index) @dblclick.stop=dblclickCurrentRow(row._index)> <td v-for="column in columns" :class="alignCls(column, row)"> <cell :fixed=fixed :prefix-cls=prefixCls :row=row :column=column :natural-index=index :index=row._index :checked=rowChecked(row._index)></cell> </td> </tr> </tbody> </table> ';
},function(e,t){e.exports=' <table cellspacing=0 cellpadding=0 border=0 :style=styles> <colgroup> <col v-for="column in columns" :width="setCellWidth(column, $index, true)"> </colgroup> <thead> <tr> <th v-for="(index, column) in columns" :class=alignCls(column)> <div :class=cellClasses(column)> <template v-if="column.type === \'selection\'"><checkbox :checked=isSelectAll @on-change=selectAll></checkbox></template> <template v-else> {{{ renderHeader(column, $index) }}} <span :class="[prefixCls + \'-sort\']" v-if=column.sortable> <i class="ivu-icon ivu-icon-arrow-up-b" :class="{on: column._sortType === \'asc\'}" @click="handleSort($index, \'asc\')"></i> <i class="ivu-icon ivu-icon-arrow-down-b" :class="{on: column._sortType === \'desc\'}" @click="handleSort($index, \'desc\')"></i> </span> <poptip v-if=isPopperShow(column) :visible.sync=column._filterVisible placement=bottom @on-popper-hide=handleFilterHide($index)> <span :class="[prefixCls + \'-filter\']"> <i class="ivu-icon ivu-icon-funnel" :class="{on: column._isFiltered}"></i> </span> <div slot=content :class="[prefixCls + \'-filter-list\']" v-if=column._filterMultiple> <div :class="[prefixCls + \'-filter-list-item\']"> <checkbox-group :model.sync=column._filterChecked> <checkbox v-for="item in column.filters" :value=item.value>{{ item.label }}</checkbox> </checkbox-group> </div> <div :class="[prefixCls + \'-filter-footer\']"> <i-button type=text size=small :disabled=!column._filterChecked.length @click=handleFilter($index)>{{ t(\'i.table.confirmFilter\') }}</i-button> <i-button type=text size=small @click=handleReset($index)>{{ t(\'i.table.resetFilter\') }}</i-button> </div> </div> <div slot=content :class="[prefixCls + \'-filter-list\']" v-else> <ul :class="[prefixCls + \'-filter-list-single\']"> <li :class=itemAllClasses(column) @click=handleReset($index)>{{ t(\'i.table.clearFilter\') }}</li> <li :class="itemClasses(column, item)" v-for="item in column.filters" @click="handleSelect(index, item.value)">{{ item.label }}</li> </ul> </div> </poptip> </template> </div> </th> </tr> </thead> </table> '},function(e,t){e.exports=' <div :class=wrapClasses :style=styles> <div :class=classes> <div :class="[prefixCls + \'-title\']" v-if=showSlotHeader v-el:title><slot name=header></slot></div> <div :class="[prefixCls + \'-header\']" v-if=showHeader v-el:header @mousewheel=handleMouseWheel> <table-head :prefix-cls=prefixCls :style=tableStyle :columns=cloneColumns :obj-data=objData :columns-width=columnsWidth :data=rebuildData></table-head> </div> <div :class="[prefixCls + \'-body\']" :style=bodyStyle v-el:body @scroll=handleBodyScroll v-show="!((!!noDataText && (!data || data.length === 0)) || (!!noFilteredDataText && (!rebuildData || rebuildData.length === 0)))"> <table-body v-ref:tbody :prefix-cls=prefixCls :style=tableStyle :columns=cloneColumns :data=rebuildData :columns-width=columnsWidth :obj-data=objData></table-body> </div> <div :class="[prefixCls + \'-tip\']" v-else> <table cellspacing=0 cellpadding=0 border=0> <tbody> <tr> <td :style="{ \'height\': bodyStyle.height }"> {{{!data || data.length === 0 ? noDataText : noFilteredDataText}}} </td> </tr> </tbody> </table> </div> <div :class="[prefixCls + \'-fixed\']" :style=fixedTableStyle v-if=isLeftFixed> <div :class="[prefixCls + \'-fixed-header\']" v-if=showHeader> <table-head fixed=left :prefix-cls=prefixCls :style=fixedTableStyle :columns=leftFixedColumns :obj-data=objData :columns-width.sync=columnsWidth :data=rebuildData></table-head> </div> <div :class="[prefixCls + \'-fixed-body\']" :style=fixedBodyStyle v-el:fixed-body> <table-body fixed=left :prefix-cls=prefixCls :style=fixedTableStyle :columns=leftFixedColumns :data=rebuildData :columns-width=columnsWidth :obj-data=objData></table-body> </div> </div> <div :class="[prefixCls + \'-fixed-right\']" :style=fixedRightTableStyle v-if=isRightFixed> <div :class="[prefixCls + \'-fixed-header\']" v-if=showHeader> <table-head fixed=right :prefix-cls=prefixCls :style=fixedRightTableStyle :columns=rightFixedColumns :obj-data=objData :columns-width.sync=columnsWidth :data=rebuildData></table-head> </div> <div :class="[prefixCls + \'-fixed-body\']" :style=fixedBodyStyle v-el:fixed-right-body> <table-body fixed=right :prefix-cls=prefixCls :style=fixedRightTableStyle :columns=rightFixedColumns :data=rebuildData :columns-width=columnsWidth :obj-data=objData></table-body> </div> </div> <div :class="[prefixCls + \'-footer\']" v-if=showSlotFooter v-el:footer><slot name=footer></slot></div> </div> </div> '},function(e,t){e.exports=" <div :class=prefixCls v-show=show><slot></slot></div> "},function(e,t){e.exports=' <div :class=classes> <div :class="[prefixCls + \'-bar\']"> <div :class="[prefixCls + \'-nav-container\']"> <div :class="[prefixCls + \'-nav-wrap\']"> <div :class="[prefixCls + \'-nav-scroll\']"> <div :class="[prefixCls + \'-nav\']" v-el:nav> <div :class=barClasses :style=barStyle></div> <div :class=tabCls(item) v-for="item in navList" @click=handleChange($index)> <icon v-if="item.icon !== \'\'" :type=item.icon></icon> {{ item.label }} <icon v-if=showClose(item) type=ios-close-empty @click.stop=handleRemove($index)></icon> </div> </div> </div> </div> </div> </div> <div :class=contentClasses :style=contentStyle><slot></slot></div> </div> '},function(e,t){e.exports=" <div :class=classes transition=fade> <span :class=dotClasses v-if=showDot></span><span :class=textClasses><slot></slot></span><icon v-if=closable type=ios-close-empty @click.stop=close></icon> </div> "},function(e,t){e.exports=" <li :class=itemClasses> <div :class=tailClasses></div> <div :class=headClasses :style=customColor v-el:dot><slot name=dot></slot></div> <div :class=contentClasses> <slot></slot> </div> </li> "},function(e,t){e.exports=" <ul :class=classes> <slot></slot> </ul> "},function(e,t){e.exports=' <div :class=[prefixCls] @mouseenter=handleShowPopper @mouseleave=handleClosePopper> <div :class="[prefixCls + \'-rel\']" v-el:reference> <slot></slot> </div> <div :class="[prefixCls + \'-popper\']" transition=fade v-el:popper v-show="!disabled && visible"> <div :class="[prefixCls + \'-content\']"> <div :class="[prefixCls + \'-arrow\']"></div> <div :class="[prefixCls + \'-inner\']"><slot name=content>{{ content }}</slot></div> </div> </div> </div> '},function(e,t){e.exports=' <div :class=classes :style=style> <div :class="prefixCls + \'-header\'"> <checkbox :checked.sync=checkedAll :disabled=checkedAllDisabled @on-change=toggleSelectAll></checkbox> <span>{{ title }}</span> <span :class="prefixCls + \'-header-count\'">{{ count }}</span> </div> <div :class=bodyClasses> <div :class="prefixCls + \'-body-search-wrapper\'" v-if=filterable> <search :prefix-cls="prefixCls + \'-search\'" :query.sync=query :placeholder=filterPlaceholder></search> </div> <ul :class="prefixCls + \'-content\'"> <li v-for="item in showItems | filterBy filterData" :class=itemClasses(item) @click.prevent=select(item)> <checkbox :checked=isCheck(item) :disabled=item.disabled></checkbox> <span>{{{ showLabel(item) }}}</span> </li> <li :class="prefixCls + \'-content-not-found\'">{{ notFoundText }}</li> </ul> </div> <div :class="prefixCls + \'-footer\'" v-if=showFooter v-el:footer><slot></slot></div> </div> '},function(e,t){e.exports=" <div :class=\"prefixCls + '-operation'\"> <i-button type=primary size=small :disabled=!rightActive @click=moveToLeft> <icon type=ios-arrow-left></icon> {{ operations[0] }} </i-button> <i-button type=primary size=small :disabled=!leftActive @click=moveToRight> {{ operations[1] }} <icon type=ios-arrow-right></icon> </i-button> </div> "},function(e,t){e.exports=" <div :class=prefixCls> <i-input :value.sync=query size=small :icon=icon :placeholder=placeholder @on-click=handleClick></i-input> </div> "},function(e,t){e.exports=' <div :class=classes> <list v-ref:left :prefix-cls="prefixCls + \'-list\'" :data=leftData :render-format=renderFormat :checked-keys.sync=leftCheckedKeys :valid-keys-count.sync=leftValidKeysCount :style=listStyle :title=titles[0] :filterable=filterable :filter-placeholder=filterPlaceholder :filter-method=filterMethod :not-found-text=notFoundText> <slot></slot> </list><operation :prefix-cls=prefixCls :operations=operations :left-active="leftValidKeysCount > 0" :right-active="rightValidKeysCount > 0"></operation><list v-ref:right :prefix-cls="prefixCls + \'-list\'" :data=rightData :render-format=renderFormat :checked-keys.sync=rightCheckedKeys :valid-keys-count.sync=rightValidKeysCount :style=listStyle :title=titles[1] :filterable=filterable :filter-placeholder=filterPlaceholder :filter-method=filterMethod :not-found-text=notFoundText> <slot></slot> </list> </div> '},function(e,t){e.exports=' <ul :class=classes> <li v-for="item in data" :class=itemCls(item)> <span :class=arrowCls(item) @click="setExpand(item.disabled, $index)"> <icon type=arrow-right-b></icon> </span> <checkbox v-if=showCheckbox :checked="item.checked && item.childrenCheckedStatus == 2" :disabled="item.disabled || item.disableCheckbox" :indeterminate="item.checked && item.childrenCheckedStatus == 1" @click.prevent=setCheck(item.disabled||item.disableCheckbox,$index)></checkbox> <a :class=titleCls(item) @click="setSelect(item.disabled, $index)"> <span :class="[prefixCls + \'-title\']" v-html=item.title></span> </a> <tree v-if=!item.isLeaf v-show=item.expand :class=expandCls(item) :data.sync=item.children :key="this.key+\'.\'+$index" :multiple=multiple :show-checkbox=showCheckbox transition=slide-up></tree> </li> </ul> '},function(e,t){e.exports=" <ul :class=\"[prefixCls + '-list']\"> <li v-for=\"file in files\" :class=fileCls(file) @click=handleClick(file)> <span @click=handlePreview(file)> <icon :type=format(file)></icon> {{ file.name }} </span> <icon type=ios-close-empty :class=\"[prefixCls + '-list-remove']\" v-show=\"file.status === 'finished'\" @click=handleRemove(file)></icon> <progress v-if=file.showProgress :stroke-width=2 :percent=parsePercentage(file.percentage) :status=\"file.status === 'finished' && file.showProgress ? 'success' : 'normal'\" transition=fade></progress> </li> </ul> "},function(e,t){e.exports=' <div :class=[prefixCls]> <div :class=classes @click=handleClick @drop.prevent=onDrop @dragover.prevent="dragOver = true" @dragleave.prevent="dragOver = false"> <input v-el:input :class="[prefixCls + \'-input\']" type=file @change=handleChange :multiple=multiple :accept=accept> <slot></slot> </div> <slot name=tip></slot> <upload-list v-if=showUploadList :files=fileList @on-file-remove=handleRemove @on-file-preview=handlePreview></upload-list> </div> '},function(e,t,i){var n,s;n=i(175),s=i(332),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(176),s=i(333),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(177),s=i(334),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(178),s=i(335),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(179),s=i(336),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(180),s=i(337),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(181),s=i(338),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(182),s=i(339),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(183),s=i(340),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(185),s=i(342),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(186),s=i(343),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(187),s=i(344),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(188),s=i(345),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(189),s=i(346),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(190),s=i(347),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(193),s=i(350),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(194),s=i(351),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(195),s=i(352),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(201),s=i(358),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(202),s=i(359),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(206),s=i(363),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(207),s=i(364),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(208),s=i(365),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(209),s=i(366),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(210),s=i(367),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(214),s=i(371),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(215),s=i(372),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(216),s=i(373),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(217),s=i(374),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(218),s=i(375),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(219),s=i(376),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(220),s=i(377),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(221),s=i(378),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(222),s=i(379),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(223),s=i(380),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(226),s=i(383),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(227),s=i(384),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(228),s=i(385),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(230),s=i(387),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(233),s=i(390),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(234),s=i(391),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(235),s=i(392),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(236),s=i(393),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(237),s=i(394),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(238),s=i(395),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(239),s=i(396),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(240),s=i(397),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(241),s=i(398),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(242),s=i(399),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(243),s=i(400),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(244),s=i(401),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(245),s=i(402),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(246),s=i(403),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(248),s=i(405),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(249),s=i(406),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(250),s=i(407),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(251),s=i(408),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(252),s=i(409),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(253),s=i(410),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)},function(e,t,i){var n,s;n=i(254),s=i(411),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),s&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=s)}])});
|
elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], function() {
elation.template.add('janusweb.edit.object',
'<Object id=^{id}^ js_id=^{js_id}^ alphatest=^{alphatest}^ locked=^false^ pos=^{pos.x} {pos.y} {pos.z}^ vel=^{vel.x} {vel.y} {vel.z}^ accel=^{accel.x} {accel.y} {accel.z}^ xdir=^{xdir}^ ydir=^{ydir}^ zdir=^{zdir}^ scale=^{scale.x} {scale.y} {scale.z}^ col=^{col}^ lighting=^{lighting}^ visible=^{visible}^ />');
elation.component.add('engine.things.janusbase', function() {
this.defaultcolor = new THREE.Color(0xffffff);
this.postinit = function() {
elation.engine.things.janusbase.extendclass.postinit.call(this);
this.frameupdates = {};
this.jschildren = [];
this.assets = {};
this.jsparts = new elation.janusweb.parts(this);
this.defineProperties({
room: { type: 'object' },
janus: { type: 'object' },
parent: { type: 'object' },
js_id: { type: 'string' },
color: { type: 'color', default: this.defaultcolor, set: this.updateColor },
opacity: { type: 'float', default: 1.0, set: this.updateOpacity },
alphatest: { type: 'float', default: 0.05, set: this.updateAlphaTest },
fwd: { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate },
xdir: { type: 'vector3', default: new THREE.Vector3(1,0,0), set: this.pushFrameUpdate },
ydir: { type: 'vector3', default: new THREE.Vector3(0,1,0), set: this.pushFrameUpdate },
zdir: { type: 'vector3', default: new THREE.Vector3(0,0,1), set: this.pushFrameUpdate },
rotation: { type: 'euler', default: new THREE.Euler(0,0,0), set: this.pushFrameUpdate },
rotation_order: { type: 'string', default: 'XYZ', set: this.pushFrameUpdate },
lighting: { type: 'boolean', default: true },
sync: { type: 'boolean', default: false },
locked: { type: 'boolean', default: false },
rotate_axis: { type: 'string', default: '0 1 0', set: this.updateRotationSpeed },
rotate_deg_per_sec: { type: 'float', default: 0, set: this.updateRotationSpeed },
object: { type: 'object' },
onclick: { type: 'object' },
anim_id: { type: 'string', set: this.updateAnimation },
anim_transition_time: { type: 'float', default: .2 },
collision_id: { type: 'string', set: this.updateCollider },
collision_pos: { type: 'vector3', default: new THREE.Vector3(0,0,0), set: this.updateCollider },
collision_scale: { type: 'vector3', set: this.updateCollider },
collision_static: { type: 'boolean', default: true, set: this.updateCollider },
collision_trigger: { type: 'boolean', default: false, set: this.updateCollider },
collision_radius: { type: 'float', set: this.updateCollider },
classList: { type: 'object', default: [] },
className: { type: 'string', default: '', set: this.setClassName },
tag: { type: 'string', default: '' },
hasposition: { type: 'boolean', default: true },
gazetime: { type: 'float' },
ongazeenter: { type: 'callback' },
ongazeleave: { type: 'callback' },
ongazeprogress: { type: 'callback' },
ongazeactivate: { type: 'callback' },
});
this.lastframevalues = {
xdir: new THREE.Vector3(1,0,0),
ydir: new THREE.Vector3(0,1,0),
zdir: new THREE.Vector3(0,0,1),
fwd: new THREE.Vector3(0,0,1),
rotation: new THREE.Euler()
};
this.eventlistenerproxies = {};
//if (this.col) this.color = this.col;
this.colorIsDefault = true;
// FIXME - saving references to bound functions, for future use. This should happen deeper in the component framework
this.handleFrameUpdates = elation.bind(this, this.handleFrameUpdates);
this.created = false;
}
this.createObject3D = function() {
if (this.object && this.object instanceof THREE.Object3D) {
this.properties.position.copy(this.object.position);
this.properties.orientation.copy(this.object.quaternion);
return this.object;
}
return new THREE.Object3D();
}
this.createChildren = function() {
if (typeof this.create == 'function') {
this.create();
}
this.created = true;
}
this.updateColor = function() {
if (this.properties.color === this.defaultcolor) {
if (this.color.r != 1 || this.color.g != 1 || this.color.b != 1) {
this.properties.color = this.properties.color.clone();
this.defaultcolor.setRGB(1,1,1);
this.colorIsDefault = false;
}
}
}
this.updateOpacity = function() {
this.setOpacity(this.opacity);
},
this.updateAlphaTest = function() {
this.setAlphaTest(this.alphatest);
}
this.updateCollider = function() {
this.removeCollider();
if (!this.collidable || !this.objects['dynamics']) return;
var collision_id = this.collision_id || this.collider_id;
var collision_scale = this.collision_scale || this.scale;
if (this.collision_radius !== null) {
collision_id = 'sphere';
collision_scale = new THREE.Vector3(this.collision_radius, this.collision_radius, this.collision_radius);
}
if (collision_id) {
if ((!this.collision_static || this.collision_static == 'false') && this.room.gravity) { // FIXME - should never receive 'false' as a string here
this.objects.dynamics.mass = this.mass = 1;
this.objects.dynamics.addForce('static', new THREE.Vector3(0, this.room.gravity, 0));
}
this.collidable = true;
if (collision_id == 'sphere') {
this.setCollider('sphere', {radius: Math.max(collision_scale.x, collision_scale.y, collision_scale.z) / 2, offset: this.collision_pos});
} else if (collision_id == 'cube') {
var halfsize = collision_scale.clone().multiplyScalar(.5);
this.setCollider('box', {min: halfsize.clone().negate().add(this.collision_pos), max: halfsize.add(this.collision_pos)});
/*
} else if (collision_id == 'plane') {
var halfsize = collision_scale.clone().multiplyScalar(.5).add(this.collision_pos);
halfsize.z = .1;
this.setCollider('box', {min: halfsize.clone().negate(), max: halfsize});
*/
} else if (collision_id == 'cylinder') {
this.setCollider('cylinder', {height: 1, radius: .5, offset: new THREE.Vector3(0, 0.5, 0)});
} else {
var colliderasset = this.getAsset('model', collision_id);
if (colliderasset) {
var processMeshCollider = elation.bind(this, function(collider) {
this.extractColliders(collider, true);
//collider.userData.thing = this;
//collider.bindPosition(this.position);
//collider.bindQuaternion(this.orientation);
//collider.bindScale(this.properties.scale);
collider.traverse(elation.bind(this, function(n) {
if (n.material) n.material = new THREE.MeshLambertMaterial({color: 0x999900, opacity: .2, transparent: true, emissive: 0x444400, alphaTest: .01, depthTest: false, depthWrite: false});
n.userData.thing = this;
}));
this.colliders.add(collider);
//this.setCollider('mesh', {mesh: collider.children[0], scale: this.properties.scale});
});
var collider = colliderasset.getInstance();
console.log('got collider', collider, collision_id);
this.collidermesh = collider;
if (collider.userData.loaded) {
//this.colliders.add(collider);
processMeshCollider(collider);
} else {
elation.events.add(collider, 'asset_load', elation.bind(this, function(ev) {
processMeshCollider(collider);
}) );
}
}
}
this.colliders.updateMatrixWorld();
}
}
this.removeCollider = function() {
if (this.colliders) {
for (var i = 0; i < this.colliders.children.length; i++) {
var collider = this.colliders.children[i];
collider.parent.remove(collider);
}
}
}
this.createForces = function() {
elation.events.add(this.objects.dynamics, 'physics_collide', elation.bind(this, this.handleCollision));
this.updateRotationSpeed();
}
this.updateRotationSpeed = function() {
var rotate_axis = this.properties.rotate_axis,
rotate_speed = this.properties.rotate_deg_per_sec || 0;
if (this.objects.dynamics && rotate_axis) {
var speed = (rotate_speed * Math.PI/180);
var axisparts = rotate_axis.split(' ');
var axis = new THREE.Vector3().set(axisparts[0], axisparts[1], axisparts[2]);
axis.multiplyScalar(speed);
this.objects.dynamics.setAngularVelocity(axis);
}
}
this.setProperties = function(props) {
var n = this.janus.parser.parseNode(props);
var rebuild = false;
if (n.pos) this.properties.position.fromArray(n.pos);
if (n.scale) this.properties.scale.fromArray(n.scale);
if (n.orientation) this.properties.orientation.copy(n.orientation);
if (n.id && n.id != this.properties.render.model) {
this.properties.render.model = n.id;
rebuild = true;
}
var curcol = this.properties.col || [1,1,1];
if (n.col && (n.col[0] != curcol[0] || n.col[1] != curcol[1] || n.col[2] != curcol[2])) {
this.properties.col = n.col;
rebuild = true;
}
if (rebuild) {
//this.set('visible', true, true);
}
if (n.accel) this.properties.acceleration.fromArray(n.accel.split(' ').map(parseFloat));
if (n.vel) this.objects.dynamics.setVelocity(this.properties.velocity.fromArray(n.vel.split(' ').map(parseFloat)));
this.refresh();
}
this.summarizeXML = function() {
//'<Object id=^{id}^ js_id=^{js_id}^ locked=^false^ pos=^{pos.x} {pos.y} {pos.z}^ vel=^{vel.x} {vel.y} {vel.z}^ accel=^{accel.x} {accel.y} {accel.z}^ xdir=^{xdir}^ ydir=^{ydir}^ zdir=^{zdir}^ scale=^{scale.x} {scale.y} {scale.z}^ col=^{color}^ lighting=^{lighting}^ visible=^{visible}^ />');
var matrix = new THREE.Matrix4().makeRotationFromQuaternion(this.properties.orientation);
var xdir = new THREE.Vector3(),
ydir = new THREE.Vector3(),
zdir = new THREE.Vector3();
matrix.extractBasis(xdir, ydir, zdir);
var objdef = {
id: this.properties.render.model,
js_id: this.properties.js_id,
pos: this.properties.position,
vel: this.properties.velocity,
accel: this.properties.acceleration,
scale: this.properties.scale,
xdir: xdir.toArray().join(' '),
ydir: ydir.toArray().join(' '),
zdir: zdir.toArray().join(' '),
col: this.properties.color,
lighting: this.properties.lighting,
visible: this.properties.visible,
};
var xml = elation.template.get('janusweb.edit.object', objdef);
return xml;
}
this.getProxyObject = function(classdef) {
if (!this._proxyobject) {
this._proxyobject = new elation.proxy(this, {
parent: ['accessor', 'parent.getProxyObject'],
children: ['accessor', 'getChildProxies'],
parts: ['property', 'jsparts'],
js_id: ['property', 'properties.js_id'],
pos: ['property', 'position'],
vel: ['property', 'velocity'],
accel: ['property', 'acceleration'],
mass: ['property', 'mass'],
scale: ['property', 'scale'],
col: ['property', 'color'],
opacity: ['property', 'opacity'],
alphatest: ['property', 'alphatest'],
fwd: ['property', 'zdir'],
xdir: ['property', 'xdir'],
ydir: ['property', 'ydir'],
zdir: ['property', 'zdir'],
rotation: ['property', 'rotation'],
rotation_order: ['property', 'rotation_order'],
sync: ['property', 'sync'],
locked: ['property', 'locked'],
visible: ['property', 'visible'],
tagName: ['property', 'tag'],
className: ['property', 'className'],
classList: ['property', 'classList'],
gazetime: ['property', 'gazetime'],
pickable: [ 'property', 'pickable'],
collision_id: [ 'property', 'collision_id'],
collision_pos: [ 'property', 'collision_pos' ],
collision_scale: [ 'property', 'collision_scale'],
collision_static: [ 'property', 'collision_static'],
collision_trigger: [ 'property', 'collision_trigger'],
collision_radius: [ 'property', 'collision_radius'],
onupdate: ['callback', 'update'],
oncollision: ['callback', 'collision'],
onmouseover: ['callback', 'mouseover'],
onmouseout: ['callback', 'mouseout'],
onmousemove: ['callback', 'mousemove'],
onmousedown: ['callback', 'mousedown'],
onmouseup: ['callback', 'mouseup'],
onclick: ['callback', 'click'],
ontouchstart: ['callback', 'touchstart'],
ontouchmove: ['callback', 'touchmove'],
ontouchend: ['callback', 'touchend'],
ondragover: ['callback', 'dragover'],
ondrag: ['callback', 'drag'],
ondragenter: ['callback', 'dragenter'],
ondragleave: ['callback', 'dragleave'],
ondragstart: ['callback', 'dragstart'],
ondragend: ['callback', 'dragend'],
ondrop: ['callback', 'drop'],
ongazeenter: ['callback', 'gazeenter'],
ongazeleave: ['callback', 'gazeleave'],
ongazemove: ['callback', 'gazemove'],
ongazeactivate: ['callback', 'gazeactivate'],
ongazeprogress: ['callback', 'gazeprogress'],
createObject: ['function', 'createObject'],
appendChild: ['function', 'appendChild'],
removeChild: ['function', 'removeChild'],
addEventListener: ['function', 'addEventListenerProxy'],
dispatchEvent: ['function', 'dispatchEvent'],
removeEventListener: ['function', 'removeEventListenerProxy'],
localToWorld: ['function', 'localToWorld'],
worldToLocal: ['function', 'worldToLocal'],
distanceTo: ['function', 'distanceTo'],
addForce: ['function', 'addForce'],
removeForce: ['function', 'removeForce'],
die: ['function', 'die'],
executeCallback: ['function', 'executeCallback'],
isEqual: ['function', 'isEqual'],
addClass: ['function', 'addClass'],
removeClass: ['function', 'removeClass'],
hasClass: ['function', 'hasClass'],
raycast: ['function', 'raycast'],
getElementsByTagName:['function', 'getElementsByTagName'],
});
if (classdef) {
var propertydefs = {},
proxydefs = {};
var classdefs = [classdef.class];
if (classdef.extendclass) {
//var proxyobj = elation.engine.things[classdef.extendclass].base.prototype.getProxyObject.call(this, elation.engine.things[classdef.extendclass].classdef);
var customelement = this.room.getCustomElement(classdef.extendclass);
//var extendclass = elation.engine.things[classdef.extendclass];
if (customelement) {
classdefs.unshift(customelement.class);
}
}
for (var i = 0; i < classdefs.length; i++) {
var tclassdef = classdefs[i];
for (var k in tclassdef) {
var v = tclassdef[k];
var proxytype = 'property';
if (typeof v == 'function') {
proxytype = 'function';
this._proxyobject[k] = elation.bind(this._proxyobject, v);
//} else if (v === true || v === false) {
// propertydefs[k] = {type: 'boolean', default: v };
} else if (v instanceof THREE.Vector3) {
propertydefs[k] = {type: 'vector3', default: v };
} else if (v instanceof THREE.Color) {
propertydefs[k] = {type: 'color', default: v };
} else if (v instanceof THREE.Euler) {
propertydefs[k] = {type: 'euler', default: v };
} else {
propertydefs[k] = {type: 'object', default: v };
}
proxydefs[k] = [proxytype, k];
}
}
this.defineProperties(propertydefs);
this._proxyobject._proxydefs = proxydefs;
}
var proxyevents = [
'update', 'collision',
'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'click',
'touchstart', 'touchmove', 'touchend',
'dragover', 'drag', 'dragenter', 'dragleave', 'dragstart', 'dragend', 'drop',
'gazeenter', 'gazeleave', 'gazemove', 'gazeactivate', 'gazeprogress',
];
for (var i = 0; i < proxyevents.length; i++) {
var evname = proxyevents[i];
if (this['on' + evname]) {
//elation.events.add(this, evname, elation.bind(this, this.executeCallback, this['on' + evname]));
this._proxyobject['on' + evname] = this['on' + evname];
}
}
}
return this._proxyobject;
}
this.getChildProxies = function() {
var childproxies = [];
for (var k in this.children) {
childproxies.push(this.children[k]._proxyobject);
}
return childproxies;
}
this.getAsset = function(type, id, autocreate) {
var parent = this.parent || this.room;
var asset;
if (this.assetpack) {
asset = this.assetpack.get(type, id);
}
if (!asset && parent && typeof parent.getAsset == 'function') {
asset = parent.getAsset(type, id);
}
if (!asset && autocreate) {
// Asset definition wasn't found, so we'll assume it's a URL and define a new asset
this.room.loadNewAsset(type, {id: id, src: id}, false);
asset = this.room.getAsset(type, id);
}
// Store a reference so we know which assets are in use by which objects
if (this.assets) {
if (!this.assets[type]) {
this.assets[type] = {};
}
this.assets[type][id] = asset;
}
return asset;
}
this.getActiveAssets = function(assetlist) {
if (assetlist) {
for (var type in this.assets) {
if (!assetlist[type]) assetlist[type] = {};
for (var url in this.assets[type]) {
assetlist[type][url] = this.assets[type][url];
}
}
}
return this.assets;
}
this.start = function() {
if (!this.started) {
elation.events.add(this.room, 'janusweb_script_frame_end', this.handleFrameUpdates);
this.started = true;
}
for (var k in this.children) {
if (this.children[k].start) {
this.children[k].start();
}
}
}
this.stop = function() {
for (var k in this.children) {
if (this.children[k].stop) {
this.children[k].stop();
}
}
if (this.started) {
elation.events.remove(this.room, 'janusweb_script_frame_end', this.handleFrameUpdates);
this.started = false;
}
}
this.pushFrameUpdate = function(key, value) {
this.frameupdates[key] = true;
}
this.handleFrameUpdates = function(ev) {
if (this.hasScriptChangedDirvecs()) {
this.updateOrientationFromDirvecs();
this.updateEulerFromOrientation();
} else if (this.hasScriptChangedEuler()) {
this.updateOrientationFromEuler();
this.updateDirvecsFromOrientation();
} else if (this.hasPhysicsChangedOrientation()) {
this.updateEulerFromOrientation();
this.updateDirvecsFromOrientation();
}
this.resetFrameUpdates();
this.dispatchEvent({type: 'update', data: ev.data});
var proxy = this.getProxyObject();
if (typeof proxy.update == 'function' && this.created) {
proxy.update(ev.data);
}
}
this.updateOrientationFromDirvecs = (function() {
var tmpmat = new THREE.Matrix4(),
xdir = new THREE.Vector3(),
ydir = new THREE.Vector3(),
zdir = new THREE.Vector3(),
fwd = new THREE.Vector3();
return function() {
// Determine ydir and xdir given the specified zdir. Based on the following code from the native client:
// SetYDir((dy - dz * QVector3D::dotProduct(dy, dz)).normalized());
// SetXDir(QVector3D::crossProduct(dy, dz));
if (!this.lastframevalues.fwd.equals(this.properties.fwd)) {
this.properties.zdir.copy(this.properties.fwd);
fwd.copy(this.properties.fwd);
} else {
fwd.copy(this.properties.zdir);
}
ydir.copy(this.properties.ydir).normalize().sub(zdir.copy(fwd).multiplyScalar(this.properties.ydir.dot(fwd))).normalize();
xdir.crossVectors(ydir, fwd).normalize();
tmpmat.makeBasis(xdir, ydir, fwd);
this.properties.orientation.setFromRotationMatrix(tmpmat);
// Copy back the orthonormalized values
this.properties.xdir.copy(xdir);
this.properties.ydir.copy(ydir);
//this.properties.zdir.copy(zdir);
}
})();
this.updateOrientationFromEuler = (function() {
var tmpeuler = new THREE.Euler();
return function() {
var rot = this.properties.rotation,
scale = Math.PI/180;
tmpeuler.set(rot.x * scale, rot.y * scale, rot.z * scale);
this.properties.orientation.setFromEuler(tmpeuler);
};
})();
this.updateEulerFromOrientation = function() {
this.properties.rotation.setFromQuaternion(this.properties.orientation);
}
this.updateDirvecsFromOrientation = (function() {
var tmpmat = new THREE.Matrix4();
return function() {
tmpmat.makeRotationFromQuaternion(this.properties.orientation);
tmpmat.extractBasis(this.properties.xdir, this.properties.ydir, this.properties.zdir);
}
})();
this.hasScriptChangedDirvecs = function() {
return (!this.lastframevalues.xdir.equals(this.properties.xdir) ||
!this.lastframevalues.ydir.equals(this.properties.ydir) ||
!this.lastframevalues.zdir.equals(this.properties.zdir) ||
!this.lastframevalues.fwd.equals(this.properties.fwd));
}
this.hasScriptChangedEuler = function() {
var changes = this.frameupdates;
return (changes['rotation'] || changes['rotation_dir'] || !this.lastframevalues.rotation.equals(this.properties.rotation));
}
this.hasPhysicsChangedOrientation = (function() {
// Scratch variable
var euler = new THREE.Euler();
return function() {
euler.setFromQuaternion(this.properties.orientation);
return !euler.equals(this.properties.rotation);
}
})();
this.resetFrameUpdates = function() {
this.frameupdates['xdir'] = false;
this.frameupdates['ydir'] = false;
this.frameupdates['zdir'] = false;
this.frameupdates['rotation'] = false;
this.frameupdates['rotation_dir'] = false;
for (var k in this.lastframevalues) {
this.lastframevalues[k].copy(this.properties[k]);
}
}
this.createObject = function(type, args, skipstart) {
return room.createObject(type, args, this, !this.started);
}
this.appendChild = function(obj) {
var proxyobj = obj
if (elation.utils.isString(obj)) {
proxyobj = this.room.jsobjects[obj];
}
if (proxyobj) {
if (proxyobj.parent && typeof proxyobj.parent.removeChild == 'function') {
proxyobj.parent.removeChild(proxyobj);
}
//var realobj = this.room.getObjectFromProxy(proxyobj);
var realobj = proxyobj._target;
if (realobj) {
this.add(realobj);
this.updateScriptChildren();
if (typeof realobj.start == 'function') {
realobj.start();
}
}
}
}
this.removeChild = function(obj) {
var proxyobj = obj
if (elation.utils.isString(obj)) {
proxyobj = this.room.jsobjects[obj];
}
if (proxyobj) {
//var realobj = this.room.getObjectFromProxy(proxyobj);
var realobj = proxyobj._target;
if (realobj) {
realobj.stop();
this.remove(realobj);
this.updateScriptChildren();
}
}
}
this.updateScriptChildren = function() {
this.jschildren = [];
var keys = Object.keys(this.children);
for (var i = 0; i < keys.length; i++) {
this.jschildren.push(this.children[keys[i]].getProxyObject());
}
}
this.handleCollision = function(ev) {
var obj1 = ev.data.bodies[0],
obj2 = ev.data.bodies[1];
//var proxy1 = obj1.getProxy(),
// proxy2 = obj2.getProxy();
var other = (obj1.object == this ? obj2.object : obj1.object);
if (other) {
if (other.getProxyObject) {
var proxy = other.getProxyObject();
//console.log('I collided', proxy, this);
elation.events.fire({type: 'collision', element: this, data: proxy});
if (this.collision_trigger || proxy.collision_trigger) {
ev.preventDefault();
ev.stopPropagation();
}
} else {
console.error('dunno what this is', other);
}
}
}
this.setOpacity = function(opacity) {
if (this.objects['3d'] && this.currentopacity != opacity) {
this.currentopacity = opacity;
this.objects['3d'].traverse(function(n) {
if (n.material) {
var m = (elation.utils.isArray(n.material) ? n.material : [n.material]);
for (var i = 0; i < m.length; i++) {
m[i].opacity = opacity;
m[i].transparent = (opacity < 1);
if (m[i].transparent) {
m[i].alphaTest = this.alphatest;
}
}
}
});
}
}
this.setAlphaTest = function(alphatest) {
if (this.objects['3d'] && this.currentalphatest != alphatest) {
this.currentalphatest = alphatest;
this.objects['3d'].traverse(function(n) {
if (n.material) {
var m = (elation.utils.isArray(n.material) ? n.material : [n.material]);
for (var i = 0; i < m.length; i++) {
if (m[i].transparent) {
m[i].alphaTest =alphatest;
}
}
}
});
}
}
this.updateAnimation = function() {
// Triggered whenever this.anim_id changes
this.setAnimation(this.anim_id);
}
this.setAnimation = function(anim_id) {
if (!this.activeanimation || anim_id != this.anim_id) {
if (!this.animationmixer) return;
if (this.activeanimation) {
//console.log('pause active animation', this.activeanimation);
// TODO - interpolating between actions would make transitions smoother
this.activeanimation.stop();
}
if (this.animationactions && this.animationactions[anim_id]) {
var action = this.animationactions[anim_id];
//console.log('found action!', anim_id, action);
action.play();
this.activeanimation = action;
}
this.anim_id = anim_id;
}
}
this.dispatchEvent = function(event) {
if (!event.element) event.element = this;
var handlerfn = 'on' + event.type;
if (this[handlerfn]) {
this.executeCallback(this[handlerfn], event);
}
return elation.events.fire(event);
}
this.addEventListenerProxy = function(name, handler, bubble) {
var eventobj = {
target: handler,
fn: function(ev) {
var proxyev = elation.events.clone(ev, {
target: ev.target.getProxyObject(),
});
// Bind stopPropagation and preventDefault functions to the real event
proxyev.stopPropagation = elation.bind(ev, ev.stopPropagation),
proxyev.preventDefault = elation.bind(ev, ev.preventDefault),
handler(proxyev);
}
};
if (!this.eventlistenerproxies[name]) this.eventlistenerproxies[name] = [];
this.eventlistenerproxies[name].push(eventobj);
elation.events.add(this, name, eventobj.fn, bubble);
}
this.removeEventListenerProxy = function(name, handler, bubble) {
if (this.eventlistenerproxies[name]) {
for (var i = 0; i < this.eventlistenerproxies[name].length; i++) {
var evproxy = this.eventlistenerproxies[name][i];
if (evproxy.target === handler) {
elation.events.remove(this, name, evproxy.fn, bubble);
}
}
}
}
this.executeCallback = function(callback, args) {
if (callback instanceof Function) {
callback(args);
} else if (elation.utils.isString(callback)) {
(function(fn) {
var event = args;
return eval(callback);
}).call(this.getProxyObject(), callback);
}
}
this.isEqual = function(obj) {
var realobj = obj.target || obj;
return this === realobj;
}
this.isType = function(type) {
return this.tag == type.toUpperCase();
}
this.addClass = function(classname) {
if (!this.hasClass(classname)) {
this.classList.push(classname);
}
this.updateClassName();
}
this.removeClass = function(classname) {
var idx = this.classList.indexOf(classname);
if (idx != -1) {
this.classList.splice(idx, 1);
}
this.updateClassName();
}
this.hasClass = function(classname) {
return this.classList.indexOf(classname) != -1;
}
this.updateClassName = function() {
this.className = this.classList.join(' ');
}
this.setClassName = function() {
this.classList = this.className.split(' ');
}
this.raycast = (function() {
var _pos = new THREE.Vector3(),
_dir = new THREE.Vector3(0,0,-1);
return function(dir, offset, classname) {
if (!this.room) return [];
if (dir) {
_dir.copy(dir);
} else {
_dir.set(0,0,-1);
}
_pos.set(0,0,0);
if (offset) {
_pos.add(offset);
}
this.localToWorld(_pos);
this.objects.dynamics.localToWorldDir(_dir);
return this.room.raycast(_dir, _pos, classname);
};
})();
this.getElementsByTagName = function(tagname, elements) {
var tag = tagname.toUpperCase();
if (!elements) elements = [];
var children = this.getChildProxies();
for (var i = 0; i < children.length; i++) {
var el = children[i];
if (el.tag == tag) {
elements.push(el);
}
el.getElementsByTagName(tagname, elements);
};
return elements;
}
this.getParentByTagName = function(tagname) {
let obj = this.parent;
while (obj) {
if (obj.tag == tagname) {
return obj;
}
obj = obj.parent;
}
return false;
}
this.getParentByClassName = function(classname) {
let obj = this.parent;
while (obj) {
if (obj.hasClass && obj.hasClass(classname)) {
return obj;
}
obj = obj.parent;
}
return false;
}
}, elation.engine.things.generic);
});
|
(function (jsGrid, $, undefined) {
var Field = jsGrid.Field;
function TextField(config) {
Field.call(this, config);
}
TextField.prototype = new Field({
autosearch: true,
readOnly: false,
filterTemplate: function () {
if (!this.filtering)
return "";
var grid = this._grid,
$result = this.filterControl = this._createTextBox();
if (this.autosearch) {
$result.on("keypress", function (e) {
if (e.which === 13) {
grid.search();
e.preventDefault();
}
});
}
return $result;
},
insertTemplate: function () {
if (!this.inserting)
return "";
return this.insertControl = this._createTextBox();
},
editTemplate: function (value) {
if (!this.editing)
return this.itemTemplate(value);
var $result = this.editControl = this._createTextBox();
$result.val(value);
return $result;
},
filterValue: function () {
return this.filterControl.val();
},
insertValue: function () {
return this.insertControl.val();
},
editValue: function () {
return this.editControl.val();
},
_createTextBox: function () {
return $("<input>").attr("type", "text")
.prop("readonly", !!this.readOnly);
}
});
jsGrid.fields.text = jsGrid.TextField = TextField;
}(jsGrid, jQuery));
|
# coding=utf-8
# Copyright Huawei Noah's Ark Lab.
""" Generates model predictions.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
import sys
import tensorflow as tf
from noahnmt.utils import data_utils
from noahnmt.utils import train_utils
from noahnmt.utils import trainer_lib
from noahnmt.configurable import _deep_merge_dict
from noahnmt.bin import train as nmt_train
from noahnmt.metrics import multi_bleu
from noahnmt.utils import registry
from noahnmt.utils import hook_utils
try:
LOCAL_CACHE_DIR = os.environ['DLS_LOCAL_CACHE_PATH']
import moxing as mox
except KeyError:
tf.logging.info("Local machine mode")
def checkpoint_exists(path):
return (tf.gfile.Exists(path) or tf.gfile.Exists(path + ".meta") or
tf.gfile.Exists(path + ".index"))
def find_all_checkpoints(model_dir, min_step=0, max_step=0, last_n=0):
""" find all checkpoints within [min_step, max_step]
Return:
list of tuple (step, path)
"""
path_prefix = model_dir
path_suffix = ".index"
if not path_prefix.endswith(os.sep) and tf.gfile.IsDirectory(path_prefix):
path_prefix += os.sep
pattern = path_prefix + "model.ckpt-[0-9]*" + path_suffix
try:
checkpoints = tf.gfile.Glob(pattern)
except tf.errors.NotFoundError:
checkpoints = tf.gfile.Glob(pattern)
if len(checkpoints) < 1:
raise ValueError("Do not find checkpoints!")
checkpoints = [name[:-len(path_suffix)] for name in checkpoints]
checkpoints = [c for c in checkpoints if checkpoint_exists(c)]
# sort according to steps
checkpoints = [(int(name.rsplit("-")[-1]), name) for name in checkpoints]
checkpoints = [(step, name) for step, name in checkpoints if step >= min_step]
if max_step > 0:
checkpoints = [(step, name) for step, name in checkpoints if step <= max_step]
if len(checkpoints) < 1:
raise ValueError("Do not find checkpoints!")
checkpoints = sorted(checkpoints, key=lambda x: x[0])
if last_n > 0 and len(checkpoints) > last_n:
checkpoints = checkpoints[-last_n:]
return checkpoints
def calc_bleu(hparams):
hyp_file = None
for task in hparams.tasks:
print("&&"*100)
print(task)
if task["class"] == "DecodeText":
hyp_file = task["params"]["output"]
# if not hyp_file or not tf.gfile.Exists(hyp_file):
# tf.logging.warning("No output file found for BLEU calculation.")
# sys.exit()
if hyp_file.startswith("s3://"):
tmp_file = os.path.join(LOCAL_CACHE_DIR, "output")
mox.file.copy(hyp_file, tmp_file)
hyp_file = tmp_file
return multi_bleu.calc_bleu(
os.path.abspath(hyp_file),
os.path.abspath(hparams.reference),
script=os.path.abspath(hparams.bleu_script))
def update_model_name_and_params(hparams, model_dirs=[]):
# Load saved training options
train_options = train_utils.TrainOptions.load(hparams.model_dir)
model_name = train_options.model_name
model_params = _deep_merge_dict(
train_options.model_params, hparams.model_params)
if len(model_dirs) > 1:
model_name = "ensemble_seq2seq"
model_params.update({
"model_dirs": model_dirs})
return model_name, model_params
def create_model_and_translate(model_name, model_params, hparams):
# run_config and estimator
run_config = nmt_train.create_run_config(hparams)
estimator = trainer_lib.create_estimator(
model_name=model_name,
model_params=model_params,
run_config=run_config,
hparams=hparams)
decode_hooks = hook_utils.create_hooks_from_dict(
hooks_dict=hparams.hooks,
config=run_config,
hparams=hparams)
# input fn
mode = tf.estimator.ModeKeys.PREDICT
input_fn = data_utils.make_estimator_input_fn(
hparams.input_pipeline,
mode, hparams)
if hparams.score:
mode = tf.estimator.ModeKeys.EVAL
# Load inference tasks
infer_tasks = []
for tdict in hparams.tasks:
if not "params" in tdict:
tdict["params"] = {}
task_cls = registry.class_ins(tdict["class"])
task = task_cls(tdict["params"])
infer_tasks.append(task)
# translate
predictions_iter = estimator.predict(
input_fn,
checkpoint_path=hparams.checkpoint_path,
yield_single_examples=False,
mode=mode,
hooks=decode_hooks,
init_from_scaffold=hparams.init_from_scaffold)
# some help variables
start_time = time.time()
total_time_per_step = 0
total_sents = 0
total_steps = 0
total_toks = 0
# help func for recoding decoding time
def gen_timer(gen):
while True:
try:
start_time = time.time()
item = next(gen)
elapsed_time = time.time() - start_time
yield elapsed_time, item
except StopIteration:
break
# translate and postproc
for elapsed_time, predictions in gen_timer(predictions_iter):
for task in infer_tasks:
task(predictions)
total_time_per_step += elapsed_time
total_steps += predictions["predicted_ids"].shape[-1]
total_sents += predictions["predicted_ids"].shape[0]
total_toks += predictions["predicted_ids"].shape[0] * predictions["predicted_ids"].shape[-1]
# finalize
for task in infer_tasks:
task.finalize()
tf.logging.info("Elapsed Time: %5.5f" % (time.time() - start_time))
tf.logging.info("Generation Time per Sentence: %5.7f" %
(total_time_per_step / total_sents))
tf.logging.info("Generation Time per Step: %5.7f" %
(total_time_per_step / total_steps))
tf.logging.info("Generation Time perl Token: %5.7f" %
(total_time_per_step / total_toks))
|
#ifndef _EXPLORER_H
#define _EXPLORER_H
struct Explorer {
short x;
short y;
char direction;
bool frame;
char frameTime;
bool active;
short health;
char nextHealthDecrease;
};
void initialize_explorer(Explorer& obj);
void update_explorer(Explorer& obj);
void draw_explorer(Explorer& obj);
void damage_explorer(Explorer& obj, short dmg);
#endif
|
// SPDX-License-Identifier: GPL-2.0-only
/****************************************************************************
* Driver for Solarflare network controllers and boards
* Copyright 2005-2006 Fen Systems Ltd.
* Copyright 2005-2013 Solarflare Communications Inc.
*/
#include <linux/pci.h>
#include <linux/tcp.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/ipv6.h>
#include <linux/slab.h>
#include <net/ipv6.h>
#include <linux/if_ether.h>
#include <linux/highmem.h>
#include <linux/cache.h>
#include "net_driver.h"
#include "efx.h"
#include "io.h"
#include "nic.h"
#include "tx.h"
#include "workarounds.h"
#include "ef10_regs.h"
#ifdef EFX_USE_PIO
#define EFX_PIOBUF_SIZE_DEF ALIGN(256, L1_CACHE_BYTES)
unsigned int efx_piobuf_size __read_mostly = EFX_PIOBUF_SIZE_DEF;
#endif /* EFX_USE_PIO */
static inline u8 *efx_tx_get_copy_buffer(struct efx_tx_queue *tx_queue,
struct efx_tx_buffer *buffer)
{
unsigned int index = efx_tx_queue_get_insert_index(tx_queue);
struct efx_buffer *page_buf =
&tx_queue->cb_page[index >> (PAGE_SHIFT - EFX_TX_CB_ORDER)];
unsigned int offset =
((index << EFX_TX_CB_ORDER) + NET_IP_ALIGN) & (PAGE_SIZE - 1);
if (unlikely(!page_buf->addr) &&
efx_nic_alloc_buffer(tx_queue->efx, page_buf, PAGE_SIZE,
GFP_ATOMIC))
return NULL;
buffer->dma_addr = page_buf->dma_addr + offset;
buffer->unmap_len = 0;
return (u8 *)page_buf->addr + offset;
}
u8 *efx_tx_get_copy_buffer_limited(struct efx_tx_queue *tx_queue,
struct efx_tx_buffer *buffer, size_t len)
{
if (len > EFX_TX_CB_SIZE)
return NULL;
return efx_tx_get_copy_buffer(tx_queue, buffer);
}
static void efx_dequeue_buffer(struct efx_tx_queue *tx_queue,
struct efx_tx_buffer *buffer,
unsigned int *pkts_compl,
unsigned int *bytes_compl)
{
if (buffer->unmap_len) {
struct device *dma_dev = &tx_queue->efx->pci_dev->dev;
dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset;
if (buffer->flags & EFX_TX_BUF_MAP_SINGLE)
dma_unmap_single(dma_dev, unmap_addr, buffer->unmap_len,
DMA_TO_DEVICE);
else
dma_unmap_page(dma_dev, unmap_addr, buffer->unmap_len,
DMA_TO_DEVICE);
buffer->unmap_len = 0;
}
if (buffer->flags & EFX_TX_BUF_SKB) {
struct sk_buff *skb = (struct sk_buff *)buffer->skb;
EFX_WARN_ON_PARANOID(!pkts_compl || !bytes_compl);
(*pkts_compl)++;
(*bytes_compl) += skb->len;
if (tx_queue->timestamping &&
(tx_queue->completed_timestamp_major ||
tx_queue->completed_timestamp_minor)) {
struct skb_shared_hwtstamps hwtstamp;
hwtstamp.hwtstamp =
efx_ptp_nic_to_kernel_time(tx_queue);
skb_tstamp_tx(skb, &hwtstamp);
tx_queue->completed_timestamp_major = 0;
tx_queue->completed_timestamp_minor = 0;
}
dev_consume_skb_any((struct sk_buff *)buffer->skb);
netif_vdbg(tx_queue->efx, tx_done, tx_queue->efx->net_dev,
"TX queue %d transmission id %x complete\n",
tx_queue->queue, tx_queue->read_count);
}
buffer->len = 0;
buffer->flags = 0;
}
unsigned int efx_tx_max_skb_descs(struct efx_nic *efx)
{
/* Header and payload descriptor for each output segment, plus
* one for every input fragment boundary within a segment
*/
unsigned int max_descs = EFX_TSO_MAX_SEGS * 2 + MAX_SKB_FRAGS;
/* Possibly one more per segment for option descriptors */
if (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
max_descs += EFX_TSO_MAX_SEGS;
/* Possibly more for PCIe page boundaries within input fragments */
if (PAGE_SIZE > EFX_PAGE_SIZE)
max_descs += max_t(unsigned int, MAX_SKB_FRAGS,
DIV_ROUND_UP(GSO_MAX_SIZE, EFX_PAGE_SIZE));
return max_descs;
}
static void efx_tx_maybe_stop_queue(struct efx_tx_queue *txq1)
{
/* We need to consider both queues that the net core sees as one */
struct efx_tx_queue *txq2 = efx_tx_queue_partner(txq1);
struct efx_nic *efx = txq1->efx;
unsigned int fill_level;
fill_level = max(txq1->insert_count - txq1->old_read_count,
txq2->insert_count - txq2->old_read_count);
if (likely(fill_level < efx->txq_stop_thresh))
return;
/* We used the stale old_read_count above, which gives us a
* pessimistic estimate of the fill level (which may even
* validly be >= efx->txq_entries). Now try again using
* read_count (more likely to be a cache miss).
*
* If we read read_count and then conditionally stop the
* queue, it is possible for the completion path to race with
* us and complete all outstanding descriptors in the middle,
* after which there will be no more completions to wake it.
* Therefore we stop the queue first, then read read_count
* (with a memory barrier to ensure the ordering), then
* restart the queue if the fill level turns out to be low
* enough.
*/
netif_tx_stop_queue(txq1->core_txq);
smp_mb();
txq1->old_read_count = READ_ONCE(txq1->read_count);
txq2->old_read_count = READ_ONCE(txq2->read_count);
fill_level = max(txq1->insert_count - txq1->old_read_count,
txq2->insert_count - txq2->old_read_count);
EFX_WARN_ON_ONCE_PARANOID(fill_level >= efx->txq_entries);
if (likely(fill_level < efx->txq_stop_thresh)) {
smp_mb();
if (likely(!efx->loopback_selftest))
netif_tx_start_queue(txq1->core_txq);
}
}
static int efx_enqueue_skb_copy(struct efx_tx_queue *tx_queue,
struct sk_buff *skb)
{
unsigned int copy_len = skb->len;
struct efx_tx_buffer *buffer;
u8 *copy_buffer;
int rc;
EFX_WARN_ON_ONCE_PARANOID(copy_len > EFX_TX_CB_SIZE);
buffer = efx_tx_queue_get_insert_buffer(tx_queue);
copy_buffer = efx_tx_get_copy_buffer(tx_queue, buffer);
if (unlikely(!copy_buffer))
return -ENOMEM;
rc = skb_copy_bits(skb, 0, copy_buffer, copy_len);
EFX_WARN_ON_PARANOID(rc);
buffer->len = copy_len;
buffer->skb = skb;
buffer->flags = EFX_TX_BUF_SKB;
++tx_queue->insert_count;
return rc;
}
#ifdef EFX_USE_PIO
struct efx_short_copy_buffer {
int used;
u8 buf[L1_CACHE_BYTES];
};
/* Copy to PIO, respecting that writes to PIO buffers must be dword aligned.
* Advances piobuf pointer. Leaves additional data in the copy buffer.
*/
static void efx_memcpy_toio_aligned(struct efx_nic *efx, u8 __iomem **piobuf,
u8 *data, int len,
struct efx_short_copy_buffer *copy_buf)
{
int block_len = len & ~(sizeof(copy_buf->buf) - 1);
__iowrite64_copy(*piobuf, data, block_len >> 3);
*piobuf += block_len;
len -= block_len;
if (len) {
data += block_len;
BUG_ON(copy_buf->used);
BUG_ON(len > sizeof(copy_buf->buf));
memcpy(copy_buf->buf, data, len);
copy_buf->used = len;
}
}
/* Copy to PIO, respecting dword alignment, popping data from copy buffer first.
* Advances piobuf pointer. Leaves additional data in the copy buffer.
*/
static void efx_memcpy_toio_aligned_cb(struct efx_nic *efx, u8 __iomem **piobuf,
u8 *data, int len,
struct efx_short_copy_buffer *copy_buf)
{
if (copy_buf->used) {
/* if the copy buffer is partially full, fill it up and write */
int copy_to_buf =
min_t(int, sizeof(copy_buf->buf) - copy_buf->used, len);
memcpy(copy_buf->buf + copy_buf->used, data, copy_to_buf);
copy_buf->used += copy_to_buf;
/* if we didn't fill it up then we're done for now */
if (copy_buf->used < sizeof(copy_buf->buf))
return;
__iowrite64_copy(*piobuf, copy_buf->buf,
sizeof(copy_buf->buf) >> 3);
*piobuf += sizeof(copy_buf->buf);
data += copy_to_buf;
len -= copy_to_buf;
copy_buf->used = 0;
}
efx_memcpy_toio_aligned(efx, piobuf, data, len, copy_buf);
}
static void efx_flush_copy_buffer(struct efx_nic *efx, u8 __iomem *piobuf,
struct efx_short_copy_buffer *copy_buf)
{
/* if there's anything in it, write the whole buffer, including junk */
if (copy_buf->used)
__iowrite64_copy(piobuf, copy_buf->buf,
sizeof(copy_buf->buf) >> 3);
}
/* Traverse skb structure and copy fragments in to PIO buffer.
* Advances piobuf pointer.
*/
static void efx_skb_copy_bits_to_pio(struct efx_nic *efx, struct sk_buff *skb,
u8 __iomem **piobuf,
struct efx_short_copy_buffer *copy_buf)
{
int i;
efx_memcpy_toio_aligned(efx, piobuf, skb->data, skb_headlen(skb),
copy_buf);
for (i = 0; i < skb_shinfo(skb)->nr_frags; ++i) {
skb_frag_t *f = &skb_shinfo(skb)->frags[i];
u8 *vaddr;
vaddr = kmap_atomic(skb_frag_page(f));
efx_memcpy_toio_aligned_cb(efx, piobuf, vaddr + skb_frag_off(f),
skb_frag_size(f), copy_buf);
kunmap_atomic(vaddr);
}
EFX_WARN_ON_ONCE_PARANOID(skb_shinfo(skb)->frag_list);
}
static int efx_enqueue_skb_pio(struct efx_tx_queue *tx_queue,
struct sk_buff *skb)
{
struct efx_tx_buffer *buffer =
efx_tx_queue_get_insert_buffer(tx_queue);
u8 __iomem *piobuf = tx_queue->piobuf;
/* Copy to PIO buffer. Ensure the writes are padded to the end
* of a cache line, as this is required for write-combining to be
* effective on at least x86.
*/
if (skb_shinfo(skb)->nr_frags) {
/* The size of the copy buffer will ensure all writes
* are the size of a cache line.
*/
struct efx_short_copy_buffer copy_buf;
copy_buf.used = 0;
efx_skb_copy_bits_to_pio(tx_queue->efx, skb,
&piobuf, ©_buf);
efx_flush_copy_buffer(tx_queue->efx, piobuf, ©_buf);
} else {
/* Pad the write to the size of a cache line.
* We can do this because we know the skb_shared_info struct is
* after the source, and the destination buffer is big enough.
*/
BUILD_BUG_ON(L1_CACHE_BYTES >
SKB_DATA_ALIGN(sizeof(struct skb_shared_info)));
__iowrite64_copy(tx_queue->piobuf, skb->data,
ALIGN(skb->len, L1_CACHE_BYTES) >> 3);
}
buffer->skb = skb;
buffer->flags = EFX_TX_BUF_SKB | EFX_TX_BUF_OPTION;
EFX_POPULATE_QWORD_5(buffer->option,
ESF_DZ_TX_DESC_IS_OPT, 1,
ESF_DZ_TX_OPTION_TYPE, ESE_DZ_TX_OPTION_DESC_PIO,
ESF_DZ_TX_PIO_CONT, 0,
ESF_DZ_TX_PIO_BYTE_CNT, skb->len,
ESF_DZ_TX_PIO_BUF_ADDR,
tx_queue->piobuf_offset);
++tx_queue->insert_count;
return 0;
}
#endif /* EFX_USE_PIO */
static struct efx_tx_buffer *efx_tx_map_chunk(struct efx_tx_queue *tx_queue,
dma_addr_t dma_addr,
size_t len)
{
const struct efx_nic_type *nic_type = tx_queue->efx->type;
struct efx_tx_buffer *buffer;
unsigned int dma_len;
/* Map the fragment taking account of NIC-dependent DMA limits. */
do {
buffer = efx_tx_queue_get_insert_buffer(tx_queue);
dma_len = nic_type->tx_limit_len(tx_queue, dma_addr, len);
buffer->len = dma_len;
buffer->dma_addr = dma_addr;
buffer->flags = EFX_TX_BUF_CONT;
len -= dma_len;
dma_addr += dma_len;
++tx_queue->insert_count;
} while (len);
return buffer;
}
/* Map all data from an SKB for DMA and create descriptors on the queue.
*/
static int efx_tx_map_data(struct efx_tx_queue *tx_queue, struct sk_buff *skb,
unsigned int segment_count)
{
struct efx_nic *efx = tx_queue->efx;
struct device *dma_dev = &efx->pci_dev->dev;
unsigned int frag_index, nr_frags;
dma_addr_t dma_addr, unmap_addr;
unsigned short dma_flags;
size_t len, unmap_len;
nr_frags = skb_shinfo(skb)->nr_frags;
frag_index = 0;
/* Map header data. */
len = skb_headlen(skb);
dma_addr = dma_map_single(dma_dev, skb->data, len, DMA_TO_DEVICE);
dma_flags = EFX_TX_BUF_MAP_SINGLE;
unmap_len = len;
unmap_addr = dma_addr;
if (unlikely(dma_mapping_error(dma_dev, dma_addr)))
return -EIO;
if (segment_count) {
/* For TSO we need to put the header in to a separate
* descriptor. Map this separately if necessary.
*/
size_t header_len = skb_transport_header(skb) - skb->data +
(tcp_hdr(skb)->doff << 2u);
if (header_len != len) {
tx_queue->tso_long_headers++;
efx_tx_map_chunk(tx_queue, dma_addr, header_len);
len -= header_len;
dma_addr += header_len;
}
}
/* Add descriptors for each fragment. */
do {
struct efx_tx_buffer *buffer;
skb_frag_t *fragment;
buffer = efx_tx_map_chunk(tx_queue, dma_addr, len);
/* The final descriptor for a fragment is responsible for
* unmapping the whole fragment.
*/
buffer->flags = EFX_TX_BUF_CONT | dma_flags;
buffer->unmap_len = unmap_len;
buffer->dma_offset = buffer->dma_addr - unmap_addr;
if (frag_index >= nr_frags) {
/* Store SKB details with the final buffer for
* the completion.
*/
buffer->skb = skb;
buffer->flags = EFX_TX_BUF_SKB | dma_flags;
return 0;
}
/* Move on to the next fragment. */
fragment = &skb_shinfo(skb)->frags[frag_index++];
len = skb_frag_size(fragment);
dma_addr = skb_frag_dma_map(dma_dev, fragment,
0, len, DMA_TO_DEVICE);
dma_flags = 0;
unmap_len = len;
unmap_addr = dma_addr;
if (unlikely(dma_mapping_error(dma_dev, dma_addr)))
return -EIO;
} while (1);
}
/* Remove buffers put into a tx_queue for the current packet.
* None of the buffers must have an skb attached.
*/
static void efx_enqueue_unwind(struct efx_tx_queue *tx_queue,
unsigned int insert_count)
{
struct efx_tx_buffer *buffer;
unsigned int bytes_compl = 0;
unsigned int pkts_compl = 0;
/* Work backwards until we hit the original insert pointer value */
while (tx_queue->insert_count != insert_count) {
--tx_queue->insert_count;
buffer = __efx_tx_queue_get_insert_buffer(tx_queue);
efx_dequeue_buffer(tx_queue, buffer, &pkts_compl, &bytes_compl);
}
}
/*
* Fallback to software TSO.
*
* This is used if we are unable to send a GSO packet through hardware TSO.
* This should only ever happen due to per-queue restrictions - unsupported
* packets should first be filtered by the feature flags.
*
* Returns 0 on success, error code otherwise.
*/
static int efx_tx_tso_fallback(struct efx_tx_queue *tx_queue,
struct sk_buff *skb)
{
struct sk_buff *segments, *next;
segments = skb_gso_segment(skb, 0);
if (IS_ERR(segments))
return PTR_ERR(segments);
dev_consume_skb_any(skb);
skb = segments;
while (skb) {
next = skb->next;
skb->next = NULL;
efx_enqueue_skb(tx_queue, skb);
skb = next;
}
return 0;
}
/*
* Add a socket buffer to a TX queue
*
* This maps all fragments of a socket buffer for DMA and adds them to
* the TX queue. The queue's insert pointer will be incremented by
* the number of fragments in the socket buffer.
*
* If any DMA mapping fails, any mapped fragments will be unmapped,
* the queue's insert pointer will be restored to its original value.
*
* This function is split out from efx_hard_start_xmit to allow the
* loopback test to direct packets via specific TX queues.
*
* Returns NETDEV_TX_OK.
* You must hold netif_tx_lock() to call this function.
*/
netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb)
{
unsigned int old_insert_count = tx_queue->insert_count;
bool xmit_more = netdev_xmit_more();
bool data_mapped = false;
unsigned int segments;
unsigned int skb_len;
int rc;
skb_len = skb->len;
segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0;
if (segments == 1)
segments = 0; /* Don't use TSO for a single segment. */
/* Handle TSO first - it's *possible* (although unlikely) that we might
* be passed a packet to segment that's smaller than the copybreak/PIO
* size limit.
*/
if (segments) {
EFX_WARN_ON_ONCE_PARANOID(!tx_queue->handle_tso);
rc = tx_queue->handle_tso(tx_queue, skb, &data_mapped);
if (rc == -EINVAL) {
rc = efx_tx_tso_fallback(tx_queue, skb);
tx_queue->tso_fallbacks++;
if (rc == 0)
return 0;
}
if (rc)
goto err;
#ifdef EFX_USE_PIO
} else if (skb_len <= efx_piobuf_size && !xmit_more &&
efx_nic_may_tx_pio(tx_queue)) {
/* Use PIO for short packets with an empty queue. */
if (efx_enqueue_skb_pio(tx_queue, skb))
goto err;
tx_queue->pio_packets++;
data_mapped = true;
#endif
} else if (skb->data_len && skb_len <= EFX_TX_CB_SIZE) {
/* Pad short packets or coalesce short fragmented packets. */
if (efx_enqueue_skb_copy(tx_queue, skb))
goto err;
tx_queue->cb_packets++;
data_mapped = true;
}
/* Map for DMA and create descriptors if we haven't done so already. */
if (!data_mapped && (efx_tx_map_data(tx_queue, skb, segments)))
goto err;
efx_tx_maybe_stop_queue(tx_queue);
/* Pass off to hardware */
if (__netdev_tx_sent_queue(tx_queue->core_txq, skb_len, xmit_more)) {
struct efx_tx_queue *txq2 = efx_tx_queue_partner(tx_queue);
/* There could be packets left on the partner queue if
* xmit_more was set. If we do not push those they
* could be left for a long time and cause a netdev watchdog.
*/
if (txq2->xmit_more_available)
efx_nic_push_buffers(txq2);
efx_nic_push_buffers(tx_queue);
} else {
tx_queue->xmit_more_available = xmit_more;
}
if (segments) {
tx_queue->tso_bursts++;
tx_queue->tso_packets += segments;
tx_queue->tx_packets += segments;
} else {
tx_queue->tx_packets++;
}
return NETDEV_TX_OK;
err:
efx_enqueue_unwind(tx_queue, old_insert_count);
dev_kfree_skb_any(skb);
/* If we're not expecting another transmit and we had something to push
* on this queue or a partner queue then we need to push here to get the
* previous packets out.
*/
if (!xmit_more) {
struct efx_tx_queue *txq2 = efx_tx_queue_partner(tx_queue);
if (txq2->xmit_more_available)
efx_nic_push_buffers(txq2);
efx_nic_push_buffers(tx_queue);
}
return NETDEV_TX_OK;
}
/* Remove packets from the TX queue
*
* This removes packets from the TX queue, up to and including the
* specified index.
*/
static void efx_dequeue_buffers(struct efx_tx_queue *tx_queue,
unsigned int index,
unsigned int *pkts_compl,
unsigned int *bytes_compl)
{
struct efx_nic *efx = tx_queue->efx;
unsigned int stop_index, read_ptr;
stop_index = (index + 1) & tx_queue->ptr_mask;
read_ptr = tx_queue->read_count & tx_queue->ptr_mask;
while (read_ptr != stop_index) {
struct efx_tx_buffer *buffer = &tx_queue->buffer[read_ptr];
if (!(buffer->flags & EFX_TX_BUF_OPTION) &&
unlikely(buffer->len == 0)) {
netif_err(efx, tx_err, efx->net_dev,
"TX queue %d spurious TX completion id %x\n",
tx_queue->queue, read_ptr);
efx_schedule_reset(efx, RESET_TYPE_TX_SKIP);
return;
}
efx_dequeue_buffer(tx_queue, buffer, pkts_compl, bytes_compl);
++tx_queue->read_count;
read_ptr = tx_queue->read_count & tx_queue->ptr_mask;
}
}
/* Initiate a packet transmission. We use one channel per CPU
* (sharing when we have more CPUs than channels). On Falcon, the TX
* completion events will be directed back to the CPU that transmitted
* the packet, which should be cache-efficient.
*
* Context: non-blocking.
* Note that returning anything other than NETDEV_TX_OK will cause the
* OS to free the skb.
*/
netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb,
struct net_device *net_dev)
{
struct efx_nic *efx = netdev_priv(net_dev);
struct efx_tx_queue *tx_queue;
unsigned index, type;
EFX_WARN_ON_PARANOID(!netif_device_present(net_dev));
/* PTP "event" packet */
if (unlikely(efx_xmit_with_hwtstamp(skb)) &&
unlikely(efx_ptp_is_ptp_tx(efx, skb))) {
return efx_ptp_tx(efx, skb);
}
index = skb_get_queue_mapping(skb);
type = skb->ip_summed == CHECKSUM_PARTIAL ? EFX_TXQ_TYPE_OFFLOAD : 0;
if (index >= efx->n_tx_channels) {
index -= efx->n_tx_channels;
type |= EFX_TXQ_TYPE_HIGHPRI;
}
tx_queue = efx_get_tx_queue(efx, index, type);
return efx_enqueue_skb(tx_queue, skb);
}
void efx_init_tx_queue_core_txq(struct efx_tx_queue *tx_queue)
{
struct efx_nic *efx = tx_queue->efx;
/* Must be inverse of queue lookup in efx_hard_start_xmit() */
tx_queue->core_txq =
netdev_get_tx_queue(efx->net_dev,
tx_queue->queue / EFX_TXQ_TYPES +
((tx_queue->queue & EFX_TXQ_TYPE_HIGHPRI) ?
efx->n_tx_channels : 0));
}
int efx_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
void *type_data)
{
struct efx_nic *efx = netdev_priv(net_dev);
struct tc_mqprio_qopt *mqprio = type_data;
struct efx_channel *channel;
struct efx_tx_queue *tx_queue;
unsigned tc, num_tc;
int rc;
if (type != TC_SETUP_QDISC_MQPRIO)
return -EOPNOTSUPP;
num_tc = mqprio->num_tc;
if (num_tc > EFX_MAX_TX_TC)
return -EINVAL;
mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
if (num_tc == net_dev->num_tc)
return 0;
for (tc = 0; tc < num_tc; tc++) {
net_dev->tc_to_txq[tc].offset = tc * efx->n_tx_channels;
net_dev->tc_to_txq[tc].count = efx->n_tx_channels;
}
if (num_tc > net_dev->num_tc) {
/* Initialise high-priority queues as necessary */
efx_for_each_channel(channel, efx) {
efx_for_each_possible_channel_tx_queue(tx_queue,
channel) {
if (!(tx_queue->queue & EFX_TXQ_TYPE_HIGHPRI))
continue;
if (!tx_queue->buffer) {
rc = efx_probe_tx_queue(tx_queue);
if (rc)
return rc;
}
if (!tx_queue->initialised)
efx_init_tx_queue(tx_queue);
efx_init_tx_queue_core_txq(tx_queue);
}
}
} else {
/* Reduce number of classes before number of queues */
net_dev->num_tc = num_tc;
}
rc = netif_set_real_num_tx_queues(net_dev,
max_t(int, num_tc, 1) *
efx->n_tx_channels);
if (rc)
return rc;
/* Do not destroy high-priority queues when they become
* unused. We would have to flush them first, and it is
* fairly difficult to flush a subset of TX queues. Leave
* it to efx_fini_channels().
*/
net_dev->num_tc = num_tc;
return 0;
}
void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index)
{
unsigned fill_level;
struct efx_nic *efx = tx_queue->efx;
struct efx_tx_queue *txq2;
unsigned int pkts_compl = 0, bytes_compl = 0;
EFX_WARN_ON_ONCE_PARANOID(index > tx_queue->ptr_mask);
efx_dequeue_buffers(tx_queue, index, &pkts_compl, &bytes_compl);
tx_queue->pkts_compl += pkts_compl;
tx_queue->bytes_compl += bytes_compl;
if (pkts_compl > 1)
++tx_queue->merge_events;
/* See if we need to restart the netif queue. This memory
* barrier ensures that we write read_count (inside
* efx_dequeue_buffers()) before reading the queue status.
*/
smp_mb();
if (unlikely(netif_tx_queue_stopped(tx_queue->core_txq)) &&
likely(efx->port_enabled) &&
likely(netif_device_present(efx->net_dev))) {
txq2 = efx_tx_queue_partner(tx_queue);
fill_level = max(tx_queue->insert_count - tx_queue->read_count,
txq2->insert_count - txq2->read_count);
if (fill_level <= efx->txq_wake_thresh)
netif_tx_wake_queue(tx_queue->core_txq);
}
/* Check whether the hardware queue is now empty */
if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) {
tx_queue->old_write_count = READ_ONCE(tx_queue->write_count);
if (tx_queue->read_count == tx_queue->old_write_count) {
smp_mb();
tx_queue->empty_read_count =
tx_queue->read_count | EFX_EMPTY_COUNT_VALID;
}
}
}
static unsigned int efx_tx_cb_page_count(struct efx_tx_queue *tx_queue)
{
return DIV_ROUND_UP(tx_queue->ptr_mask + 1, PAGE_SIZE >> EFX_TX_CB_ORDER);
}
int efx_probe_tx_queue(struct efx_tx_queue *tx_queue)
{
struct efx_nic *efx = tx_queue->efx;
unsigned int entries;
int rc;
/* Create the smallest power-of-two aligned ring */
entries = max(roundup_pow_of_two(efx->txq_entries), EFX_MIN_DMAQ_SIZE);
EFX_WARN_ON_PARANOID(entries > EFX_MAX_DMAQ_SIZE);
tx_queue->ptr_mask = entries - 1;
netif_dbg(efx, probe, efx->net_dev,
"creating TX queue %d size %#x mask %#x\n",
tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask);
/* Allocate software ring */
tx_queue->buffer = kcalloc(entries, sizeof(*tx_queue->buffer),
GFP_KERNEL);
if (!tx_queue->buffer)
return -ENOMEM;
tx_queue->cb_page = kcalloc(efx_tx_cb_page_count(tx_queue),
sizeof(tx_queue->cb_page[0]), GFP_KERNEL);
if (!tx_queue->cb_page) {
rc = -ENOMEM;
goto fail1;
}
/* Allocate hardware ring */
rc = efx_nic_probe_tx(tx_queue);
if (rc)
goto fail2;
return 0;
fail2:
kfree(tx_queue->cb_page);
tx_queue->cb_page = NULL;
fail1:
kfree(tx_queue->buffer);
tx_queue->buffer = NULL;
return rc;
}
void efx_init_tx_queue(struct efx_tx_queue *tx_queue)
{
struct efx_nic *efx = tx_queue->efx;
netif_dbg(efx, drv, efx->net_dev,
"initialising TX queue %d\n", tx_queue->queue);
tx_queue->insert_count = 0;
tx_queue->write_count = 0;
tx_queue->packet_write_count = 0;
tx_queue->old_write_count = 0;
tx_queue->read_count = 0;
tx_queue->old_read_count = 0;
tx_queue->empty_read_count = 0 | EFX_EMPTY_COUNT_VALID;
tx_queue->xmit_more_available = false;
tx_queue->timestamping = (efx_ptp_use_mac_tx_timestamps(efx) &&
tx_queue->channel == efx_ptp_channel(efx));
tx_queue->completed_desc_ptr = tx_queue->ptr_mask;
tx_queue->completed_timestamp_major = 0;
tx_queue->completed_timestamp_minor = 0;
/* Set up default function pointers. These may get replaced by
* efx_nic_init_tx() based off NIC/queue capabilities.
*/
tx_queue->handle_tso = efx_enqueue_skb_tso;
/* Set up TX descriptor ring */
efx_nic_init_tx(tx_queue);
tx_queue->initialised = true;
}
void efx_fini_tx_queue(struct efx_tx_queue *tx_queue)
{
struct efx_tx_buffer *buffer;
netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
"shutting down TX queue %d\n", tx_queue->queue);
if (!tx_queue->buffer)
return;
/* Free any buffers left in the ring */
while (tx_queue->read_count != tx_queue->write_count) {
unsigned int pkts_compl = 0, bytes_compl = 0;
buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask];
efx_dequeue_buffer(tx_queue, buffer, &pkts_compl, &bytes_compl);
++tx_queue->read_count;
}
tx_queue->xmit_more_available = false;
netdev_tx_reset_queue(tx_queue->core_txq);
}
void efx_remove_tx_queue(struct efx_tx_queue *tx_queue)
{
int i;
if (!tx_queue->buffer)
return;
netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
"destroying TX queue %d\n", tx_queue->queue);
efx_nic_remove_tx(tx_queue);
if (tx_queue->cb_page) {
for (i = 0; i < efx_tx_cb_page_count(tx_queue); i++)
efx_nic_free_buffer(tx_queue->efx,
&tx_queue->cb_page[i]);
kfree(tx_queue->cb_page);
tx_queue->cb_page = NULL;
}
kfree(tx_queue->buffer);
tx_queue->buffer = NULL;
}
|
// @flow
import { add, div, lte, mul, sub } from 'biggystring'
import { type Disklet } from 'disklet'
import { bridgifyObject, onMethod, watchMethod } from 'yaob'
import {
type EdgeBalances,
type EdgeCurrencyCodeOptions,
type EdgeCurrencyEngine,
type EdgeCurrencyInfo,
type EdgeCurrencyPlugin,
type EdgeCurrencyWallet,
type EdgeDataDump,
type EdgeEncodeUri,
type EdgeGetTransactionsOptions,
type EdgeMetadata,
type EdgeParsedUri,
type EdgePaymentProtocolInfo,
type EdgeReceiveAddress,
type EdgeSpendInfo,
type EdgeSpendTarget,
type EdgeTokenInfo,
type EdgeTransaction,
type EdgeWalletInfo,
type JsonObject
} from '../../../types/types.js'
import { mergeDeeply } from '../../../util/util.js'
import { getCurrencyTools } from '../../plugins/plugins-selectors.js'
import { type ApiInput } from '../../root-pixie.js'
import { makeStorageWalletApi } from '../../storage/storage-api.js'
import { getCurrencyMultiplier } from '../currency-selectors.js'
import { makeCurrencyWalletCallbacks } from './currency-wallet-callbacks.js'
import {
asTxSwap,
packMetadata,
unpackMetadata
} from './currency-wallet-cleaners.js'
import { dateFilter, searchStringFilter } from './currency-wallet-export.js'
import {
type TransactionFile,
loadTxFiles,
renameCurrencyWallet,
setCurrencyWalletFiat,
setCurrencyWalletTxMetadata,
setupNewTxMetadata
} from './currency-wallet-files.js'
import { type CurrencyWalletInput } from './currency-wallet-pixie.js'
import { type MergedTransaction } from './currency-wallet-reducer.js'
const fakeMetadata = {
bizId: 0,
category: '',
exchangeAmount: {},
name: '',
notes: ''
}
/**
* Creates an `EdgeCurrencyWallet` API object.
*/
export function makeCurrencyWalletApi(
input: CurrencyWalletInput,
plugin: EdgeCurrencyPlugin,
engine: EdgeCurrencyEngine,
publicWalletInfo: EdgeWalletInfo
): EdgeCurrencyWallet {
const ai: ApiInput = (input: any) // Safe, since input extends ApiInput
const { walletInfo } = input.props.selfState
const storageWalletApi = makeStorageWalletApi(ai, walletInfo)
const fakeCallbacks = makeCurrencyWalletCallbacks(input)
let otherMethods = {}
if (engine.otherMethods != null) {
otherMethods = engine.otherMethods
bridgifyObject(otherMethods)
}
function lockdown(): void {
if (ai.props.state.hideKeys) {
throw new Error('Not available when `hideKeys` is enabled')
}
}
const out: EdgeCurrencyWallet = {
on: onMethod,
watch: watchMethod,
// Data store:
get id(): string {
return storageWalletApi.id
},
get type(): string {
return storageWalletApi.type
},
get keys(): JsonObject {
lockdown()
return storageWalletApi.keys
},
publicWalletInfo,
get disklet(): Disklet {
return storageWalletApi.disklet
},
get localDisklet(): Disklet {
return storageWalletApi.localDisklet
},
async sync(): Promise<void> {
await storageWalletApi.sync()
},
// Wallet keys:
get displayPrivateSeed(): string | null {
lockdown()
return input.props.selfState.displayPrivateSeed
},
get displayPublicSeed(): string | null {
return input.props.selfState.displayPublicSeed
},
// Wallet name:
get name(): string | null {
return input.props.selfState.name
},
async renameWallet(name: string): Promise<void> {
await renameCurrencyWallet(input, name)
},
// Currency info:
get currencyInfo(): EdgeCurrencyInfo {
return plugin.currencyInfo
},
async nativeToDenomination(
nativeAmount: string,
currencyCode: string
): Promise<string> {
const multiplier = getCurrencyMultiplier(
input.props.state.currency.infos,
input.props.state.currency.customTokens,
currencyCode
)
return div(nativeAmount, multiplier, multiplier.length)
},
async denominationToNative(
denominatedAmount: string,
currencyCode: string
): Promise<string> {
const multiplier = getCurrencyMultiplier(
input.props.state.currency.infos,
input.props.state.currency.customTokens,
currencyCode
)
return mul(denominatedAmount, multiplier)
},
// Fiat currency option:
get fiatCurrencyCode(): string {
return input.props.selfState.fiat
},
async setFiatCurrencyCode(fiatCurrencyCode: string): Promise<void> {
await setCurrencyWalletFiat(input, fiatCurrencyCode)
},
// Chain state:
get balances(): EdgeBalances {
return input.props.selfState.balances
},
get blockHeight(): number {
return input.props.selfState.height
},
get syncRatio(): number {
return input.props.selfState.syncRatio
},
// Running state:
get paused(): boolean {
return input.props.selfState.paused
},
async changePaused(paused: boolean): Promise<void> {
input.props.dispatch({
type: 'CURRENCY_WALLET_CHANGED_PAUSED',
payload: { walletId: input.props.id, paused }
})
},
// Tokens:
async changeEnabledTokens(currencyCodes: string[]): Promise<void> {
const enabled = await engine.getEnabledTokens()
await engine.disableTokens(
enabled.filter(currencyCode => currencyCodes.indexOf(currencyCode) < 0)
)
await engine.enableTokens(
currencyCodes.filter(currencyCode => enabled.indexOf(currencyCode) < 0)
)
},
async enableTokens(tokens: string[]): Promise<void> {
await engine.enableTokens(tokens)
},
async disableTokens(tokens: string[]): Promise<void> {
await engine.disableTokens(tokens)
},
async getEnabledTokens(): Promise<string[]> {
return engine.getEnabledTokens()
},
async addCustomToken(tokenInfo: EdgeTokenInfo): Promise<void> {
ai.props.dispatch({ type: 'ADDED_CUSTOM_TOKEN', payload: tokenInfo })
await engine.addCustomToken(tokenInfo)
},
// Transactions:
async getNumTransactions(
opts: EdgeCurrencyCodeOptions = {}
): Promise<number> {
return engine.getNumTransactions(opts)
},
async getTransactions(
opts: EdgeGetTransactionsOptions = {}
): Promise<EdgeTransaction[]> {
const { currencyCode = plugin.currencyInfo.currencyCode } = opts
let state = input.props.selfState
if (!state.gotTxs[currencyCode]) {
const txs = await engine.getTransactions({
currencyCode: opts.currencyCode
})
fakeCallbacks.onTransactionsChanged(txs)
input.props.dispatch({
type: 'CURRENCY_ENGINE_GOT_TXS',
payload: {
walletId: input.props.id,
currencyCode
}
})
state = input.props.selfState
}
// Txid array of all txs
const txids = state.txids
// Merged tx data from metadata files and blockchain data
const txs = state.txs
const { startIndex = 0, startEntries = txids.length } = opts
// Decrypted metadata files
const files = state.files
// A sorted list of transaction based on chronological order
// these are tx id hashes merged between blockchain and cache some tx id hashes
// some may have been dropped by the blockchain
const sortedTransactions = state.sortedTransactions.sortedList
// create map of tx id hashes to their order (cardinality)
const mappedUnfilteredIndexes = {}
sortedTransactions.forEach((item, index) => {
mappedUnfilteredIndexes[item] = index
})
// we need to make sure that after slicing, the total txs number is equal to opts.startEntries
// slice, verify txs in files, if some are dropped and missing, do it again recursively
let searchedTxs = 0
let counter = 0
const out: EdgeTransaction[] = []
while (searchedTxs < startEntries) {
// take a slice from sorted transactions that begins at current index and goes until however many are left
const slicedTransactions = sortedTransactions.slice(
startIndex + startEntries * counter,
startIndex + startEntries * (counter + 1)
)
// break loop if slicing starts beyond length of array
if (slicedTransactions.length === 0) break
// filter the transactions
const missingTxIdHashes = slicedTransactions.filter(txidHash => {
// remove any that do not have a file
return !files[txidHash]
})
// load files into state
const missingFiles = await loadTxFiles(input, missingTxIdHashes)
Object.assign(files, missingFiles)
// give txs the unfilteredIndex
for (const txidHash of slicedTransactions) {
const file = files[txidHash]
if (file == null) continue
const tempTx = txs[file.txid]
// skip irrelevant transactions - txs that are not in the files (dropped)
if (
!tempTx ||
(!tempTx.nativeAmount[currencyCode] &&
!tempTx.networkFee[currencyCode])
) {
// exit block if there is no transaction or no amount / no fee
continue
}
const tx = {
...tempTx,
unfilteredIndex: mappedUnfilteredIndexes[txidHash]
}
// add this tx / file to the output
const edgeTx = combineTxWithFile(input, tx, file, currencyCode)
if (searchStringFilter(edgeTx, opts) && dateFilter(edgeTx, opts)) {
out.push(edgeTx)
}
searchedTxs++
}
counter++
}
return out
},
async getReceiveAddress(
opts: EdgeCurrencyCodeOptions = {}
): Promise<EdgeReceiveAddress> {
const freshAddress = await engine.getFreshAddress(opts)
const receiveAddress: EdgeReceiveAddress = {
metadata: fakeMetadata,
nativeAmount: '0',
publicAddress: freshAddress.publicAddress,
legacyAddress: freshAddress.legacyAddress,
segwitAddress: freshAddress.segwitAddress
}
return receiveAddress
},
async saveReceiveAddress(
receiveAddress: EdgeReceiveAddress
): Promise<void> {
// TODO: Address metadata
},
async lockReceiveAddress(
receiveAddress: EdgeReceiveAddress
): Promise<void> {
// TODO: Address metadata
},
async makeSpend(spendInfo: EdgeSpendInfo): Promise<EdgeTransaction> {
const { currencyInfo } = input.props.selfState
const {
currencyCode = currencyInfo.currencyCode,
privateKeys,
spendTargets = [],
noUnconfirmed = false,
networkFeeOption = 'standard',
customNetworkFee,
rbfTxid,
metadata,
swapData,
otherParams
} = spendInfo
const cleanTargets: EdgeSpendTarget[] = []
const savedTargets = []
for (const target of spendTargets) {
const { publicAddress, nativeAmount = '0', otherParams = {} } = target
if (publicAddress == null) continue
// Handle legacy spenders:
let { uniqueIdentifier } = target
if (
uniqueIdentifier == null &&
typeof otherParams.uniqueIdentifier === 'string'
) {
uniqueIdentifier = otherParams.uniqueIdentifier
}
// Support legacy currency plugins:
if (uniqueIdentifier != null) {
otherParams.uniqueIdentifier = uniqueIdentifier
}
cleanTargets.push({
publicAddress,
nativeAmount,
uniqueIdentifier,
otherParams
})
savedTargets.push({
currencyCode,
publicAddress,
nativeAmount,
uniqueIdentifier
})
}
if (cleanTargets.length === 0) {
throw new TypeError('The spend has no destination')
}
if (privateKeys != null) {
throw new TypeError('Only sweepPrivateKeys takes private keys')
}
const tx: EdgeTransaction = await engine.makeSpend({
currencyCode,
spendTargets: cleanTargets,
noUnconfirmed,
networkFeeOption,
customNetworkFee,
rbfTxid,
metadata,
otherParams
})
tx.networkFeeOption = networkFeeOption
tx.requestedCustomFee = customNetworkFee
tx.spendTargets = savedTargets
if (metadata != null) tx.metadata = metadata
if (swapData != null) tx.swapData = asTxSwap(swapData)
if (input.props.state.login.deviceDescription != null)
tx.deviceDescription = input.props.state.login.deviceDescription
return tx
},
async sweepPrivateKeys(spendInfo: EdgeSpendInfo): Promise<EdgeTransaction> {
if (!engine.sweepPrivateKeys) {
return Promise.reject(
new Error('Sweeping this currency is not supported.')
)
}
return engine.sweepPrivateKeys(spendInfo)
},
async signTx(tx: EdgeTransaction): Promise<EdgeTransaction> {
return engine.signTx(tx)
},
async broadcastTx(tx: EdgeTransaction): Promise<EdgeTransaction> {
return engine.broadcastTx(tx)
},
async saveTx(tx: EdgeTransaction): Promise<void> {
await setupNewTxMetadata(input, tx)
await engine.saveTx(tx)
fakeCallbacks.onTransactionsChanged([tx])
},
async resyncBlockchain(): Promise<void> {
ai.props.dispatch({
type: 'CURRENCY_ENGINE_CLEARED',
payload: { walletId: input.props.id }
})
await engine.resyncBlockchain()
},
async dumpData(): Promise<EdgeDataDump> {
return await engine.dumpData()
},
async getPaymentProtocolInfo(
paymentProtocolUrl: string
): Promise<EdgePaymentProtocolInfo> {
if (!engine.getPaymentProtocolInfo) {
throw new Error(
"'getPaymentProtocolInfo' is not implemented on wallets of this type"
)
}
return engine.getPaymentProtocolInfo(paymentProtocolUrl)
},
async saveTxMetadata(
txid: string,
currencyCode: string,
metadata: EdgeMetadata
): Promise<void> {
await setCurrencyWalletTxMetadata(
input,
txid,
currencyCode,
packMetadata(metadata, input.props.selfState.fiat),
fakeCallbacks
)
},
async getMaxSpendable(spendInfo: EdgeSpendInfo): Promise<string> {
const { currencyCode, networkFeeOption, customNetworkFee } = spendInfo
const balance = engine.getBalance({ currencyCode })
// Copy all the spend targets, setting the amounts to 0
// but keeping all other information so we can get accurate fees:
const spendTargets = spendInfo.spendTargets.map(spendTarget => {
return { ...spendTarget, nativeAmount: '0' }
})
// The range of possible values includes `min`, but not `max`.
function getMax(min: string, max: string): Promise<string> {
const diff = sub(max, min)
if (lte(diff, '1')) {
return Promise.resolve(min)
}
const mid = add(min, div(diff, '2'))
// Try the average:
spendTargets[0].nativeAmount = mid
return engine
.makeSpend({
currencyCode,
spendTargets,
networkFeeOption,
customNetworkFee
})
.then(good => getMax(mid, max))
.catch(bad => getMax(min, mid))
}
return getMax('0', add(balance, '1'))
},
async parseUri(uri: string, currencyCode?: string): Promise<EdgeParsedUri> {
const tools = await getCurrencyTools(ai, walletInfo.type)
return tools.parseUri(
uri,
currencyCode,
input.props.state.currency.customTokens
)
},
async encodeUri(options: EdgeEncodeUri): Promise<string> {
const tools = await getCurrencyTools(ai, walletInfo.type)
return tools.encodeUri(options, input.props.state.currency.customTokens)
},
otherMethods
}
bridgifyObject(out)
return out
}
export function combineTxWithFile(
input: CurrencyWalletInput,
tx: MergedTransaction,
file: TransactionFile | void,
currencyCode: string
): EdgeTransaction {
const wallet = input.props.selfOutput.api
const walletCurrency = input.props.selfState.currencyInfo.currencyCode
const walletFiat = input.props.selfState.fiat
const flowHack: any = tx
const { unfilteredIndex } = flowHack
// Copy the tx properties to the output:
const out: EdgeTransaction = {
blockHeight: tx.blockHeight,
date: tx.date,
ourReceiveAddresses: tx.ourReceiveAddresses,
signedTx: tx.signedTx,
txid: tx.txid,
otherParams: { ...tx.otherParams, unfilteredIndex },
amountSatoshi: Number(tx.nativeAmount[currencyCode] ?? '0'),
nativeAmount: tx.nativeAmount[currencyCode] ?? '0',
networkFee: tx.networkFee[currencyCode] ?? '0',
parentNetworkFee: tx.networkFee[walletCurrency],
currencyCode,
wallet,
metadata: {}
}
// If we have a file, use it to override the defaults:
if (file != null) {
if (file.creationDate < out.date) out.date = file.creationDate
const merged = mergeDeeply(
file.currencies[walletCurrency],
file.currencies[currencyCode]
)
if (merged.metadata != null) {
out.metadata = {
...out.metadata,
...unpackMetadata(merged.metadata, walletFiat)
}
}
if (file.feeRateRequested != null) {
if (typeof file.feeRateRequested === 'string') {
out.networkFeeOption = file.feeRateRequested
} else {
out.networkFeeOption = 'custom'
out.requestedCustomFee = file.feeRateRequested
}
}
out.feeRateUsed = file.feeRateUsed
if (file.payees != null) {
out.spendTargets = file.payees.map(payee => ({
currencyCode: payee.currency,
nativeAmount: payee.amount,
publicAddress: payee.address,
uniqueIdentifier: payee.tag
}))
}
if (file.swap != null) out.swapData = asTxSwap(file.swap)
if (typeof file.secret === 'string') out.txSecret = file.secret
if (file.deviceDescription != null)
out.deviceDescription = file.deviceDescription
}
return out
}
|
"""
Ishigami function (3 random inputs, scalar output)
======================================================================
In this example, we approximate the well-known Ishigami function with a total-degree Polynomial Chaos Expansion.
"""
# %% md
#
# Import necessary libraries.
# %%
import numpy as np
import math
import numpy as np
from UQpy.distributions import Uniform, JointIndependent
from UQpy.surrogates import *
# %% md
#
# We then define the Ishigami function, which reads:
# :math:`f(x_1, x_2, x_3) = \sin(x_1) + a \sin^2(x_2) + b x_3^4 \sin(x_1)`
# %%
# function to be approximated
def ishigami(xx):
"""Ishigami function"""
a = 7
b = 0.1
term1 = np.sin(xx[0])
term2 = a * np.sin(xx[1])**2
term3 = b * xx[2]**4 * np.sin(xx[0])
return term1 + term2 + term3
# %% md
#
# The Ishigami function has three random inputs, which are uniformly distributed in :math:`[-\pi, \pi]`. Moreover, the
# input random variables are mutually independent, which simplifies the construction of the joint distribution. Let's
# define the corresponding distributions.
# %%
# input distributions
dist1 = Uniform(loc=-np.pi, scale=2*np.pi)
dist2 = Uniform(loc=-np.pi, scale=2*np.pi)
dist3 = Uniform(loc=-np.pi, scale=2*np.pi)
marg = [dist1, dist2, dist3]
joint = JointIndependent(marginals=marg)
# %% md
#
# We now define our PCE. Only thing we need is the joint distribution.
#
# We must now select a polynomial basis. Here we opt for a total-degree (TD) basis, such that the univariate
# polynomials have a maximum degree equal to :math:`P` and all multivariate polynomial have a total-degree
# (sum of degrees of corresponding univariate polynomials) at most equal to :math:`P`. The size of the basis is then
# given by :math:`\frac{(N+P)!}{N! P!}`
# where :math:`N` is the number of random inputs (here, :math:`N+3`).
# %%
# maximum polynomial degree
P = 6
# construct total-degree polynomial basis
polynomial_basis = TotalDegreeBasis(joint, P)
# check the size of the basis
print('Size of PCE basis:', polynomial_basis.polynomials_number)
# %% md
#
# We must now compute the PCE coefficients. For that we first need a training sample of input random variable
# realizations and the corresponding model outputs. These two data sets form what is also known as an
# ''experimental design''. It is generally advisable that the experimental design has :math:`2-10` times more data points
# than the number of PCE polynomials.
# %%
# create training data
sample_size = int(polynomial_basis.polynomials_number*5)
print('Size of experimental design:', sample_size)
# realizations of random inputs
xx_train = joint.rvs(sample_size)
# corresponding model outputs
yy_train = np.array([ishigami(x) for x in xx_train])
# %% md
#
# We now fit the PCE coefficients by solving a regression problem. There are multiple ways to do this, e.g. least
# squares regression, ridge regression, LASSO regression, etc. Here we opt for the _np.linalg.lstsq_ method, which
# is based on the _dgelsd_ solver of LAPACK.
# %%
# fit model
least_squares = LeastSquareRegression()
pce = PolynomialChaosExpansion(polynomial_basis=polynomial_basis, regression_method=least_squares)
pce.fit(xx_train, yy_train)
# %% md
#
# By simply post-processing the PCE's terms, we are able to get estimates regarding the mean and standard deviation
# of the model output.
# %%
mean_est = pce.get_moments()[0]
var_est = pce.get_moments()[1]
print('PCE mean estimate:', mean_est)
print('PCE variance estimate:', var_est)
# %% md
#
# Similarly to the mean and variance estimates, we can very simply estimate the Sobol sensitivity indices, which
# quantify the importance of the input random variables in terms of impact on the model output.
# %%
from UQpy.sensitivity import *
pce_sensitivity = PceSensitivity(pce)
pce_sensitivity.run()
sobol_first = pce_sensitivity.first_order_indices
sobol_total = pce_sensitivity.total_order_indices
print('First-order Sobol indices:')
print(sobol_first)
print('Total-order Sobol indices:')
print(sobol_total)
# %% md
#
# The PCE should become increasingly more accurate as the maximum polynomial degree :math:`P` increases. We will test
# that by computing the mean absolute error (MAE) between the PCE's predictions and the true model outputs, given a
# validation sample of :math:`10^5` data points.
# %%
# validation data sets
np.random.seed(999) # fix random seed for reproducibility
n_samples_val = 100000
xx_val = joint.rvs(n_samples_val)
yy_val = np.array([ishigami(x) for x in xx_val])
mae = [] # to hold MAE for increasing polynomial degree
for degree in range(16):
# define PCE
polynomial_basis = TotalDegreeBasis(joint, degree)
least_squares = LeastSquareRegression()
pce_metamodel = PolynomialChaosExpansion(polynomial_basis=polynomial_basis, regression_method=least_squares)
# create training data
np.random.seed(1) # fix random seed for reproducibility
sample_size = int(pce_metamodel.polynomials_number * 5)
xx_train = joint.rvs(sample_size)
yy_train = np.array([ishigami(x) for x in xx_train])
# fit PCE coefficients
pce_metamodel.fit(xx_train, yy_train)
# compute mean absolute validation error
yy_val_pce = pce_metamodel.predict(xx_val).flatten()
errors = np.abs(yy_val.flatten() - yy_val_pce)
mae.append(np.linalg.norm(errors, 1) / n_samples_val)
print('Polynomial degree:', degree)
print('Mean absolute error:', mae[-1])
print(' ')
|
# Copyright 2019 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""This script runs unit tests for frontend JavaScript code (using Karma)."""
from __future__ import annotations
import argparse
import os
import subprocess
import sys
from . import build
from . import check_frontend_test_coverage
from . import common
from . import install_third_party_libs
# These is a relative path from the oppia/ folder. They are relative because the
# dtslint command prepends the current working directory to the path, even if
# the given path is absolute.
DTSLINT_TYPE_TESTS_DIR_RELATIVE_PATH = os.path.join('typings', 'tests')
TYPESCRIPT_DIR_RELATIVE_PATH = os.path.join('node_modules', 'typescript', 'lib')
_PARSER = argparse.ArgumentParser(
description="""
Run this script from the oppia root folder:
python -m scripts.run_frontend_tests
The root folder MUST be named 'oppia'.
Note: You can replace 'it' with 'fit' or 'describe' with 'fdescribe' to run
a single test or test suite.
""")
_PARSER.add_argument(
'--dtslint_only',
help='optional; if specified, only runs dtslint type tests.',
action='store_true'
)
_PARSER.add_argument(
'--skip_install',
help='optional; if specified, skips installing dependencies',
action='store_true')
_PARSER.add_argument(
'--verbose',
help='optional; if specified, enables the karma terminal and prints all the'
' logs.',
action='store_true')
_PARSER.add_argument(
'--run_minified_tests',
help='optional; if specified, runs frontend karma tests on both minified '
'and non-minified code',
action='store_true')
_PARSER.add_argument(
'--check_coverage',
help='option; if specified, checks frontend test coverage',
action='store_true'
)
def run_dtslint_type_tests():
"""Runs the dtslint type tests in typings/tests."""
print('Running dtslint type tests.')
# Pass the local version of typescript. Otherwise, dtslint will download and
# install all versions of typescript.
cmd = ['./node_modules/dtslint/bin/index.js',
DTSLINT_TYPE_TESTS_DIR_RELATIVE_PATH,
'--localTs',
TYPESCRIPT_DIR_RELATIVE_PATH]
task = subprocess.Popen(cmd, stdout=subprocess.PIPE)
output_lines = []
# Reads and prints realtime output from the subprocess until it terminates.
while True:
line = task.stdout.readline()
# No more output from the subprocess, and the subprocess has ended.
if len(line) == 0 and task.poll() is not None:
break
if line:
print(line, end='')
output_lines.append(line)
print('Done!')
if task.returncode:
sys.exit('The dtslint (type tests) failed.')
def main(args=None):
"""Runs the frontend tests."""
parsed_args = _PARSER.parse_args(args=args)
run_dtslint_type_tests()
if parsed_args.dtslint_only:
return
if not parsed_args.skip_install:
install_third_party_libs.main()
common.print_each_string_after_two_new_lines([
'View interactive frontend test coverage reports by navigating to',
'../karma_coverage_reports',
'on your filesystem.',
'Running test in development environment'])
cmd = [
common.NODE_BIN_PATH, '--max-old-space-size=4096',
os.path.join(common.NODE_MODULES_PATH, 'karma', 'bin', 'karma'),
'start', os.path.join('core', 'tests', 'karma.conf.ts')]
if parsed_args.run_minified_tests:
print('Running test in production environment')
build.main(args=['--prod_env', '--minify_third_party_libs_only'])
cmd.append('--prodEnv')
else:
build.main(args=[])
if parsed_args.verbose:
cmd.append('--terminalEnabled')
task = subprocess.Popen(cmd, stdout=subprocess.PIPE)
output_lines = []
# Reads and prints realtime output from the subprocess until it terminates.
while True:
line = task.stdout.readline()
# No more output from the subprocess, and the subprocess has ended.
if len(line) == 0 and task.poll() is not None:
break
# Suppressing the karma web-server logs.
if line and not '[web-server]:' in line.decode('utf-8'):
# Standard output is in bytes, we need to decode
# the line to print it.
print(line.decode('utf-8'), end='')
output_lines.append(line)
# Standard output is in bytes, we need to decode the line to print it.
concatenated_output = ''.join(
line.decode('utf-8') for line in output_lines)
print('Done!')
if 'Trying to get the Angular injector' in concatenated_output:
print(
'If you run into the error "Trying to get the Angular injector",'
' please see https://github.com/oppia/oppia/wiki/'
'Frontend-unit-tests-guide#how-to-handle-common-errors'
' for details on how to fix it.')
if parsed_args.check_coverage:
if task.returncode:
sys.exit(
'The frontend tests failed. Please fix it before running the'
' test coverage check.')
else:
check_frontend_test_coverage.main()
elif task.returncode:
sys.exit(task.returncode)
if __name__ == '__main__':
main()
|
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def doit(imagenb, name):
image1 = imagenb
image = dataset['images/test_set'][image1]
lab = dataset['labels/test_set'][image1]
other = np.where(dataset['labels/test_set'] == lab)[0][100]
dest = dataset['images/test_set'][other]
time = np.linspace(0, 1, 32*5).reshape((-1, 1, 1, 1))
interp = np.expand_dims(image, 0) * time + np.expand_dims(dest, 0) * (1 - time)
outs = list()
for b in range(5):
batch = interp[32*b:32*(b+1)]
out = workplace.session.run(dnn[-1][:32], feed_dict={dataset.images: batch,
**dnn.deter_dict(True)})
outs.append(out)
outs = np.concatenate(outs, 0)
plt.figure(figsize=(14,5))
plt.subplot(131)
image -= image.min()
plt.imshow(image.transpose((1, 2, 0)) / image.max(), aspect='auto')
plt.subplot(132)
dest -= dest.min()
plt.imshow(dest.transpose((1, 2, 0)) / image.max(), aspect='auto')
plt.subplot(133)
for c in range(10):
plt.plot(outs[:, c], c='k')
plt.savefig(name+'test_{}_{}.png'.format(imagenb,
dataset['labels/test_set'][image1]))
plt.close()
image = dataset['images/train_set'][image1]
lab = dataset['labels/train_set'][image1]
other = np.where(dataset['labels/train_set'] == lab)[0][100]
dest = dataset['images/train_set'][other]
time = np.linspace(0, 1, 32*5).reshape((-1, 1, 1, 1))
interp = np.expand_dims(image, 0) * time + np.expand_dims(dest, 0) * (1 - time)
outs = list()
for b in range(5):
batch = interp[32*b:32*(b+1)]
out = workplace.session.run(dnn[-1][:32], feed_dict={dataset.images: batch,
**dnn.deter_dict(True)})
outs.append(out)
outs = np.concatenate(outs, 0)
plt.figure(figsize=(14,5))
plt.subplot(131)
image -= image.min()
plt.imshow(image.transpose((1, 2, 0)) / image.max(), aspect='auto')
plt.subplot(132)
dest -= dest.min()
plt.imshow(dest.transpose((1, 2, 0)) / image.max(), aspect='auto')
plt.subplot(133)
for c in range(10):
plt.plot(outs[:, c], c='k')
plt.savefig(name+'train_{}_{}.png'.format(imagenb,
dataset['labels/test_set'][image1]))
plt.close()
|
"""
WSGI config for project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.
Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
that later delegates to the Django one. For example, you could introduce WSGI
middleware here, or combine a Django application with an application of another
framework.
"""
import os
from os.path import abspath, dirname
from sys import path
SITE_ROOT = dirname(dirname(abspath(__file__)))
path.append(SITE_ROOT)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "democracy_club.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
|
import osqp # solver
import numpy as np
from scipy import sparse
from scipy.sparse import vstack, hstack, eye
from warnings import warn
class CCOCP:
"""
CC-OCP: chance-constrained optimal control problem
Defines a CC-OCP and adds the model specific constraints and objectives.
Parser from model functions, to a CC-OCP problem formulation, to an OSQP problem.
Initialization inputs:
- m: model object (e.g. Astrobee Model)
- verbose_osqp
Inner Parameters Information
"last" denotes the last iteration around which we linearize
OSQP Optimization Problem Definition
min 1/2 x^T P x + q^T x
s.t. l <= A x <= u
with x = [x(1);x(2),...;x(N);u(1);...;u(N-1);slack_vars],
where x(k) is (m.n_x), and u(k) is (m.n_u).
"""
def __init__(self, m, verbose_osqp=False):
print('[CCOCP::__init__]: Nb. nodes =', m.N)
self.N, N = m.N, m.N
# Variables:
self.n_t = (N-1) # slack_variables for penalization of trust region csontraints
self.nb_vars = N*m.n_x+(N-1)*m.n_u+self.n_t
# Optimization Parameters:
self.par = dict()
self.par['X_last'] = np.empty(shape=[m.n_x, N ])
self.par['U_last'] = np.empty(shape=[m.n_u, N-1])
self.par['f_all_last'] = np.empty(shape=[m.n_x, N-1])
self.par['A_all_last'] = np.empty(shape=[m.n_x*m.n_x, N-1])
self.par['B_all_last'] = np.empty(shape=[m.n_x*m.n_u, N-1])
# Solver Parameters
self.params = m.scp_params
self.params['eps_dyn'] = 1e-5
self.params['padding_obs'] = 0.
self.par['omega'] = self.params["omega0"] # penalization weight
self.par['tr_radius'] = self.params["tr_radius0"] # trust region radius
# ----------------------------------------------------------------------
# INITIALIZATION
self.par['X_last'], self.par['U_last'] = m.initialize_trajectory(N)
f_all, A_all, B_all = m.compute_dynamics( self.par['X_last'], self.par['U_last'])
Vars_all, Vars_dxu_all = m.propagate_variances(self.par['X_last'], self.par['U_last'],
A_all, B_all)
self.par['f_all_last'] = f_all
self.par['A_all_last'] = A_all
self.par['B_all_last'] = B_all
self.par['Vars_all_last'] = Vars_all
self.par['Vars_dxu_all_last'] = Vars_dxu_all
# objective and constraints
self.P, self.q = self.get_objective_coeffs(m)
self.A, self.l, self.u = self.get_all_constraints_coeffs(m)
# Setup OSQP problem
self.verbose_osqp = verbose_osqp
self.prob = osqp.OSQP()
self.prob.setup(self.P, self.q, self.A, self.l, self.u,
warm_start=True,
verbose=self.verbose_osqp)
print("OSQP Problem size: ",
"P =",self.P.shape,"q =",self.q.shape,
"A =",self.A.shape,"l =",self.l.shape,"u =",self.u.shape)
def get_objective_coeffs(self, m):
# min 1/2 z^T P x + q^T z
N, n_t = self.N, self.n_t
# Quadratic Objective
Q = m.quadratic_cost_matrix_state
QN = np.zeros((m.n_x,m.n_x))
Qt = np.zeros((n_t,n_t)) # trust region slack vars
R = m.quadratic_cost_matrix_controls
P = sparse.block_diag([sparse.kron(eye(N-1), Q), QN,
sparse.kron(eye(N-1), R), Qt], format='csc')
# Linear Objective
q = np.zeros(self.nb_vars)
q += self.get_trust_region_cost_linear()
return P, q
def get_all_constraints_coeffs(self, m):
# Constraints:
# l <= A x <= u, with
# x = [x(1);x(2),...;x(N);u(1);...;u(N-1)]
Aeq_x0, leq_x0, ueq_x0 = self.get_initial_constraints_coeffs(m)
Aeq_xf, leq_xf, ueq_xf = self.get_final_constraints_coeffs(m)
Aeq_dyn, leq_dyn, ueq_dyn = self.get_dynamics_constraints_coeffs(m)
Aineq_lims, lineq_lims, uineq_lims = self.get_input_state_min_max_ineq_constraints_coeffs(m)
Aineq_obs, lineq_obs, uineq_obs = self.get_obs_avoidance_constraints_convexified_coeffs(m)
A_slack_t, l_slack_t, u_slack_t = self.get_trust_region_constraints_coeffs(m)
self.x0_constraints_idx = range(0,
Aeq_x0.shape[0])
self.xf_constraints_idx = range(self.x0_constraints_idx[-1],
self.x0_constraints_idx[-1]+Aeq_xf.shape[0])
self.dyns_constraints_idx = range(self.xf_constraints_idx[-1],
self.xf_constraints_idx[-1]+Aeq_dyn.shape[0])
self.lims_constraints_idx = range(self.dyns_constraints_idx[-1],
self.dyns_constraints_idx[-1]+Aineq_lims.shape[0])
self.obs_constraints_idx = range(self.lims_constraints_idx[-1],
self.lims_constraints_idx[-1]+Aineq_obs.shape[0])
self.trust_constraints_idx= range(self.obs_constraints_idx[-1],
self.obs_constraints_idx[-1]+A_slack_t.shape[0])
A = sparse.vstack([Aeq_x0, Aeq_xf, Aeq_dyn, Aineq_lims, Aineq_obs, A_slack_t], format='csc')
l = np.hstack( [leq_x0, leq_xf, leq_dyn, lineq_lims, lineq_obs, l_slack_t])
u = np.hstack( [ueq_x0, ueq_xf, ueq_dyn, uineq_lims, uineq_obs, u_slack_t])
return A, l, u
""" ----------- TRUST REGION CONSTRAINTS ------------------
min {omega * max(x, 0)}, where x = |z-z^j|_1 - Delta_j
<=>
min { t }
s.t. omega*( |z-z^j| - Delta_j) <= t
0 <= t
"""
def get_trust_region_cost_linear(self):
# min sum_k {t_k}
q_slack_t = np.ones(self.n_t)
q_slack_t = np.concatenate((np.zeros(self.nb_vars-self.n_t),q_slack_t), axis=0)
return q_slack_t
def get_trust_region_constraints_coeffs(self, m):
"""
|z-z^j|_1 <= t/omega + Delta_j
-t <= 0
"""
nb_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
X_j, U_j, = self.par['X_last'], self.par['U_last']
omega_j, Delta_j = self.par['omega'], self.par['tr_radius']
""" array of permutations to reformulate 1-norm as linear constraints
n_u = 1 -> [1], [-1]
n_u = 2 -> [1,1], [-1,1], [1,-1], [-1,-1]
n_u = 3 -> [1,1,1], [-1,1,1], [1,-1,1], [-1,-1,1], [1,1,-1], [-1,1,-1], [1,-1,-1], [-1,-1,-1]
n_u = ... """
mat_arr_weights_u = np.zeros((2**n_u, n_u))
for ui in range(n_u):
mat_arr_weights_u[:, ui] = np.array([(-1)**(j//(2**ui)) for j in range(2**n_u)])
# |z-z^j| - Delta_j <= t/omega
n_c_k = 2**n_u # number of cosntraints per timestep
Aineq = np.zeros((n_t*n_c_k,nb_vars))
lineq = -np.inf * np.ones(n_t*n_c_k)
uineq = np.zeros(n_t*n_c_k)
for k in range(n_t):
idx_uk = N*n_x + k*n_u
idx_ukn = N*n_x + k*n_u + n_u
idx_tk = N*n_x + (N-1)*n_u + k
for ci in range(n_c_k):
Aineq[k*n_c_k+ci, idx_uk:idx_ukn] = mat_arr_weights_u[ci,:]
Aineq[k*n_c_k+ci, idx_tk ] = -1./omega_j
uineq[k*n_c_k+ci] = Delta_j + mat_arr_weights_u[ci,:]@U_j[:,k]
# -t <= 0
A_t = np.zeros((n_t,nb_vars))
A_t[:,nb_vars-n_t:] = -np.eye(n_t)
l_t = -np.inf * np.ones(n_t)
u_t = np.zeros(n_t)
A_slack_t = np.concatenate((Aineq, A_t), axis=0)
l_slack_t = np.concatenate((lineq, l_t), axis=0)
u_slack_t = np.concatenate((uineq, u_t), axis=0)
return A_slack_t, l_slack_t, u_slack_t
# ----------- TRUST REGION CONSTRAINTS ------------------
def get_initial_constraints_coeffs(self, m):
n_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
Aeq = hstack([eye(n_x), np.zeros((n_x, (N-1)*n_x)), np.zeros((n_x, n_vars-N*n_x))])
leq = m.x_init
ueq = leq
return Aeq, leq, ueq
def get_final_constraints_coeffs(self, m):
n_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
Aeq = hstack([np.zeros((n_x, (N-1)*n_x)), eye(n_x), np.zeros((n_x, n_vars-N*n_x))])
leq = m.x_final - 5e-2
ueq = m.x_final + 5e-2
return Aeq, leq, ueq
def get_input_state_min_max_ineq_constraints_coeffs(self, m):
n_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
Aineq = np.zeros((N*n_x+(N-1)*n_u,n_vars))
Am, lm, um = m.state_input_constraints_convexified(self.par['X_last'], self.par['U_last'],
B_uncertainty=True,
Sigmas=self.par['Vars_all_last'],
Sigmas_dxu=self.par['Vars_dxu_all_last'])
# nb_i N xu
Aineq[:, :(N*n_x) ] = np.reshape(Am[ :, :, :n_x], (-1, N*n_x), order='C')
Aineq[:, (N*n_x):(n_vars-n_t)] = np.reshape(Am[ :, :(N-1), n_x:], (-1, (N-1)*n_u), order='C')
Aineq = sparse.csr_matrix(Aineq)
lineq = lm
uineq = um
return Aineq, lineq, uineq
def get_dynamics_constraints_coeffs(self, m):
n_x, n_u, n_t, N = m.n_x, m.n_u, self.n_t, self.N
Aeq = np.zeros(((N-1)*n_x, self.nb_vars))
leq = np.zeros((N-1)*n_x)
for k in range(N-1):
X_kj = self.par['X_last'][:, k]
U_kj = self.par['U_last'][:, k]
f_dyn_kj = self.par['f_all_last'][:, k]
A_kj = np.reshape(self.par['A_all_last'][:, k], (n_x, n_x), order='F')
B_kj = np.reshape(self.par['B_all_last'][:, k], (n_x, n_u), order='F')
idx_xk = k*n_x
idx_xkn = k*n_x + n_x
idx_uk = N*n_x + k*n_u
# x_{k+1} = f_kj + A_kj@(x_{k}-xj_{k}) + B_kj@(u_{k}-uj_{k}
Aeq[idx_xk:idx_xkn, idx_xk :idx_xkn] = A_kj # x_{k}
Aeq[idx_xk:idx_xkn, idx_uk :idx_uk +n_u] = B_kj # u_{k}
Aeq[idx_xk:idx_xkn, idx_xkn:idx_xkn+n_x] = -np.eye(n_x) # x_{k+1}
leq[idx_xk:idx_xkn] = - ( f_dyn_kj - A_kj@X_kj - B_kj@U_kj )
ueq = leq.copy()
Aeq = sparse.csr_matrix(Aeq)
leq -= self.params['eps_dyn']
ueq += self.params['eps_dyn']
return Aeq, leq, ueq
def update_constraints(self, m):
""" Problem in OSQP is formatted in the format:
min 1/2 x^T P x + q^T x
s.t. l <= A x <= u
Convention: ### TODO USE INDICES AS GLOBAL VARIABLES !!!
- x = (x(0),x(1),...,x(N),u(0),...,u(N-1))
- the first nx constraints l[:nx], u[:nx]
correspond to the initial conditions equality constraints.
- the next nx constraints l[nx:2*nx], u[nx:2*nx]
correspond to the final conditions equality constraints.
"""
# self.update_dynamics_constraints(m)
# self.update_obs_avoidance_constraints(m)
# self.prob.update(Ax=self.A.data,l=self.l,u=self.u)
P, q = self.get_objective_coeffs(m)
A, l, u = self.get_all_constraints_coeffs(m)
self.P, self.q = P, q
self.A, self.l, self.u = A, l, u
self.prob.update(Ax=self.A.data,l=self.l,u=self.u)
return False
def update_dynamics_constraints_coeffs(self, m, dyn_constraints_idx):
n_x, n_u, n_t, N = m.n_x, m.n_u, self.n_t, self.N
id0 = dyn_constraints_idx[0]
for k in range(N-1):
X_kj = self.par['X_last'][:, k]
U_kj = self.par['U_last'][:, k]
f_dyn_kj = self.par['f_all_last'][:, k]
A_kj = np.reshape(self.par['A_all_last'][:, k], (n_x, n_x), order='F')
B_kj = np.reshape(self.par['B_all_last'][:, k], (n_x, n_u), order='F')
idx_xk = k*n_x
idx_xkn = k*n_x + n_x
idx_uk = N*n_x + k*n_u
idx_c_k = (id0 + idx_xk)
idx_c_kn = (id0 + idx_xkn)
# x_{k+1} = f_kj + A_kj@(x_{k}-xj_{k}) + B_kj@(u_{k}-uj_{k}
self.A[idx_c_k:idx_c_kn, idx_xk :idx_xkn] = A_kj # x_{k}
self.A[idx_c_k:idx_c_kn, idx_uk :idx_uk +n_u] = B_kj # u_{k}
self.A[idx_c_k:idx_c_kn, idx_xkn:idx_xkn+n_x] = -eye(n_x) # x_{k+1}
self.l[idx_c_k:idx_c_kn] = - ( f_dyn_kj - A_kj@X_kj - B_kj@U_kj )
self.u[idx_c_k:idx_c_kn] = self.l[idx_c_k:idx_c_kn]
self.l -= self.params['eps_dyn']
self.u += self.params['eps_dyn']
return True
def update_dynamics_constraints(self, m):
f_all, A_all, B_all = m.compute_dynamics(self.par['X_last'], self.par['U_last'])
self.par['f_all_last'] = f_all
self.par['A_all_last'] = A_all
self.par['B_all_last'] = B_all
return self.update_dynamics_constraints_coeffs(m, self.dyns_constraints_idx)
def update_obs_avoidance_constraints(self, m):
Aineq, lineq, uineq = self.get_obs_avoidance_constraints_convexified_coeffs(m)
idx_constraints = self.obs_constraints_idx
self.A[idx_constraints, :] = Aineq
self.l[idx_constraints] = lineq
self.u[idx_constraints] = uineq
return True
def get_obs_avoidance_constraints_convexified_coeffs(self, m):
n_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
# Spherical Obstacles
n_obs = len(m.obstacles)
Aineq = np.zeros((N*n_obs, self.nb_vars))
lineq = -np.inf * np.ones(N*n_obs)
uineq = np.zeros(N*n_obs)
for k in range(N):
Var_k = self.par['Vars_all_last'][:,:,k]
Var_dxu_k = self.par['Vars_dxu_all_last'][:,:,:,:,k]
for obs_i in range(n_obs):
A_i, b_i = m.obs_avoidance_constraint_convexified(self.par['X_last'], self.par['U_last'],
obs_i, k, B_uncertainty=True, Sigma_k=Var_k, Sigma_dxu_k=Var_dxu_k,
obs_type='sphere') # [N,n_xu]
Aineq[k*n_obs+obs_i, :(N*n_x)] = np.reshape(A_i[:, :n_x], (N*n_x), order='C')
Aineq[k*n_obs+obs_i, (N*n_x):(n_vars-n_t)] = np.reshape(A_i[:(N-1),n_x:], ((N-1)*n_u), order='C')
uineq[k*n_obs+obs_i] = b_i
# Rectangular Obstacles
n_obs = len(m.poly_obstacles)
Aineq_poly = np.zeros((N*n_obs, self.nb_vars))
lineq_poly = -np.inf * np.ones(N*n_obs)
uineq_poly = np.zeros(N*n_obs)
for k in range(N):
Var_k = self.par['Vars_all_last'][:,:,k]
Var_dxu_k = self.par['Vars_dxu_all_last'][:,:,:,:,k]
for obs_i in range(n_obs):
A_i, b_i = m.obs_avoidance_constraint_convexified(self.par['X_last'], self.par['U_last'],
obs_i, k, B_uncertainty=True, Sigma_k=Var_k, Sigma_dxu_k=Var_dxu_k,
obs_type='poly') # [N,n_xu]
Aineq_poly[k*n_obs+obs_i, :(N*n_x)] = np.reshape(A_i[:, :n_x], (N*n_x), order='C')
Aineq_poly[k*n_obs+obs_i, (N*n_x):(n_vars-n_t)] = np.reshape(A_i[:(N-1),n_x:], ((N-1)*n_u), order='C')
uineq_poly[k*n_obs+obs_i] = b_i
Aineq = np.concatenate((Aineq, Aineq_poly), axis=0)
lineq = np.concatenate((lineq, lineq_poly), axis=0)
uineq = np.concatenate((uineq, uineq_poly), axis=0)
Aineq = sparse.csr_matrix(Aineq)
lineq = lineq - self.params['padding_obs']
uineq = uineq + self.params['padding_obs']
return Aineq, lineq, uineq
def solve_OSQP(self):
B_problem_solved = True
self.res = self.prob.solve()
if self.res.info.status != 'solved':
warn("[solve_OSQP]: Problem unfeasible.")
B_problem_solved = False
return B_problem_solved
def solve_ccscp(self, m):
N = self.N
(tr_radius0, omega0, omegamax, epsilon, rho0,
rho1, beta_succ, beta_fail, gamma_fail, conv_thresh) = self.extract_scp_params()
self.par['omega'] = self.params["omega0"]
self.par['tr_radius'] = self.params["tr_radius0"]
# Initialization
self.par['X_last'], self.par['U_last'] = m.initialize_trajectory(N)
X = self.par['X_last'].copy(); Xp = X.copy()
U = self.par['U_last'].copy(); Up = U.copy()
all_X, all_U, all_V = [], [], []
it = 0
B_success = False
while it<self.params["NB_SCP_iter_max"] and \
not(it!=0 and B_success and self.convergence_metric(X,U,Xp,Up)<conv_thresh) and \
self.par['omega']<self.params["omegamax"]:
print('\n'+'=' * 50)
print('Iteration ' + str(it))
print('-' * 50)
B_success = False
self.par['X_last'], self.par['U_last'] = X.copy(), U.copy()
f_all, A_all, B_all = m.compute_dynamics( self.par['X_last'], self.par['U_last'])
Vars_all, Vars_dxu_all = m.propagate_variances(self.par['X_last'], self.par['U_last'],
A_all, B_all)
self.par['f_all_last'] = f_all
self.par['A_all_last'] = A_all
self.par['B_all_last'] = B_all
self.par['Vars_all_last'] = Vars_all
self.par['Vars_dxu_all_last'] = Vars_dxu_all
all_X.append(X.copy())
all_U.append(U.copy())
all_V.append(Vars_all.copy())
# Help to find feasible solution at first iteration (not always necessary)
if it == 0: self.params['padding_obs'] = 0.1
else: self.params['padding_obs'] = 0.
self.update_constraints(m)
self.B_solved_successfully = self.solve_OSQP()
X_sol, U_sol = self.get_XU_solution_OSQP(m)
if self.B_solved_successfully == False:
print('[solve_ccscp] Failure to solve SCP iter #'+str(it))
self.all_X = np.stack(all_X.copy())
self.all_U = np.stack(all_U.copy())
self.all_V = np.stack(all_V.copy())
return False
# check trust region
Xp, Up = self.par['X_last'].copy(), self.par['U_last'].copy()
print('np.linalg.norm(X_sol-Xp,2) = ' + str(np.linalg.norm(X_sol-Xp,2)))
if np.linalg.norm(X_sol-Xp,2) < self.par['tr_radius']:
rho = self.accuracy_ratio(m, X_sol,U_sol,Xp,Up)
if rho > rho1:
print('Reject solution.')
self.par['tr_radius'] = beta_fail * self.par['tr_radius']
self.par['omega'] = self.par['omega']
B_success = False
else:
print('-' * 50)
print('Accept solution.')
print('-' * 50)
X, U = X_sol.copy(), U_sol.copy()
B_success = True
if rho < rho0:
self.par['tr_radius'] = np.minimum(beta_succ*self.par['tr_radius'], tr_radius0)
else:
self.par['tr_radius'] = self.par['tr_radius']
else:
print('Reject solution (Outside trust region)')
print('norm(x_sol-xp,2)=',np.linalg.norm(X_sol-Xp,2))
self.par['omega'] = gamma_fail * self.par['omega']
B_success = False
it += 1
self.all_X, self.all_U, self.all_V = np.stack(all_X), np.stack(all_U), np.stack(all_V)
print('[solve_ccscp] Success: '+str(B_success)+', Nb of iterations: '+str(it))
return True
def get_XU_solution_OSQP(self, m):
nb_vars, n_x, n_u, n_t, N = self.nb_vars, m.n_x, m.n_u, self.n_t, self.N
X_sol = np.reshape(self.res.x[:N*n_x], (n_x, N), order='F')
U_sol = np.reshape(self.res.x[N*n_x:nb_vars-n_t], (n_u, N-1), order='F')
return X_sol, U_sol
def get_XU_solution_CCSCP(self, m):
return self.get_XU_solution_OSQP(m)
def convergence_metric(self, X, U, Xp, Up):
conv_metric = ((np.linalg.norm(X-Xp,2)/np.linalg.norm(Xp,2)) +
(np.linalg.norm(U-Up,2)/np.linalg.norm(Up,2)))
# print('Convergence Metric: '+"{0:.2f}".format(100.*conv_metric)+'%')
return conv_metric
def accuracy_ratio(self, m, X, U, Xp, Up):
num, den = 0.0, 0.0
for k in range(self.N-1):
x_k, u_k = X[:,k], U[:,k]
x_p, u_p = Xp[:,k], Up[:,k]
f_dyn_k = np.squeeze(m.f_dt(x_k, u_k))
f_dyn_p, A_dyn_p, B_dyn_p = m.get_dynamics(x_p, u_p)
f_dyn_p = (self.par['f_all_last'][:, k])
linearized = f_dyn_p + A_dyn_p@(x_k-x_p) + B_dyn_p@(u_k-u_p)
num += np.dot((f_dyn_k - linearized),(f_dyn_k - linearized))
den += np.dot(linearized,linearized)
accuracy_ratio = num/den
return accuracy_ratio
def extract_scp_params(self):
(tr_radius0, omega0,
omegamax, epsilon,
rho0, rho1,
beta_succ, beta_fail,
gamma_fail, conv_thresh) = (self.params["tr_radius0"], self.params["omega0"],
self.params["omegamax"], self.params["epsilon"],
self.params["rho0"], self.params["rho1"],
self.params["beta_succ"], self.params["beta_fail"],
self.params["gamma_fail"], self.params["convergence_threshold"])
return (tr_radius0, omega0, omegamax, epsilon, rho0,
rho1, beta_succ, beta_fail, gamma_fail, conv_thresh)
def check_obs_avoidance_constraints_satisfied(self, m, X):
N = self.N
n_obs = len(m.obstacles)
B_inside_obs = False
for k in range(N):
x_k = X[:,k]
for obs_i in range(n_obs):
penalty = m.obs_avoidance_constraint(x_k, obs_i)
if penalty>1e-9:
B_inside_obs = True
print("robot inside obstacle ",obs_i,"at k=",k,": penalty=",penalty)
return not(B_inside_obs)
|
// log the pageview with their URL
export const pageview = (url) => {
window.gtag('config', process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS, {
page_path: url,
})
}
// log specific events happening.
export const event = ({ action, params }) => {
window.gtag('event', action, params)
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "pbkdf2/5.0.37";
//# sourceMappingURL=_version.js.map
|
import tensorflow as tf
from utils import bbox_utils, landmark_utils
def apply(img, gt_boxes, gt_landmarks):
"""Randomly applying data augmentation methods to image and ground truth boxes.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
in normalized form [0, 1]
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
in normalized form [0, 1]
outputs:
modified_img = (final_height, final_width, depth)
modified_gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
in normalized form [0, 1]
modified_gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
in normalized form [0, 1]
"""
# Color operations
# Randomly change hue, saturation, brightness and contrast of image
color_methods = [random_brightness, random_contrast, random_hue, random_saturation]
# Geometric operations
# Randomly sample a patch image and ground truth boxes
geometric_methods = [patch]
#
for augmentation_method in geometric_methods + color_methods:
img, gt_boxes, gt_landmarks = randomly_apply_operation(augmentation_method, img, gt_boxes, gt_landmarks)
#
img = tf.clip_by_value(img, 0., 1.)
return img, gt_boxes, gt_landmarks
def get_random_bool():
"""Generating random boolean.
outputs:
random boolean 0d tensor
"""
return tf.greater(tf.random.uniform((), dtype=tf.float32), 0.5)
def randomly_apply_operation(operation, img, gt_boxes, gt_landmarks, *args):
"""Randomly applying given method to image and ground truth boxes.
inputs:
operation = callable method
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
outputs:
modified_or_not_img = (final_height, final_width, depth)
modified_or_not_gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
modified_or_not_gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
return tf.cond(
get_random_bool(),
lambda: operation(img, gt_boxes, gt_landmarks, *args),
lambda: (img, gt_boxes, gt_landmarks)
)
def random_brightness(img, gt_boxes, gt_landmarks, max_delta=0.12):
"""Randomly change brightness of the image.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
outputs:
modified_img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
return tf.image.random_brightness(img, max_delta), gt_boxes, gt_landmarks
def random_contrast(img, gt_boxes, gt_landmarks, lower=0.5, upper=1.5):
"""Randomly change contrast of the image.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
outputs:
modified_img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
return tf.image.random_contrast(img, lower, upper), gt_boxes, gt_landmarks
def random_hue(img, gt_boxes, gt_landmarks, max_delta=0.08):
"""Randomly change hue of the image.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
outputs:
modified_img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
return tf.image.random_hue(img, max_delta), gt_boxes, gt_landmarks
def random_saturation(img, gt_boxes, gt_landmarks, lower=0.5, upper=1.5):
"""Randomly change saturation of the image.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
outputs:
modified_img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
return tf.image.random_saturation(img, lower, upper), gt_boxes, gt_landmarks
##############################################################################
## Sample patch start
##############################################################################
def get_random_min_overlap():
"""Generating random minimum overlap value.
outputs:
min_overlap = random minimum overlap value 0d tensor
"""
overlaps = tf.constant([0.1, 0.3, 0.5, 0.7, 0.9], dtype=tf.float32)
i = tf.random.uniform((), minval=0, maxval=tf.shape(overlaps)[0], dtype=tf.int32)
return overlaps[i]
def expand_image(img, gt_boxes, gt_landmarks, height, width):
"""Randomly expanding image and adjusting ground truth object coordinates.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
height = height of the image
width = width of the image
outputs:
modified_img = (final_height, final_width, depth)
modified_gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
modified_gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
"""
expansion_ratio = tf.random.uniform((), minval=1, maxval=4, dtype=tf.float32)
final_height, final_width = tf.round(height * expansion_ratio), tf.round(width * expansion_ratio)
pad_left = tf.round(tf.random.uniform((), minval=0, maxval=final_width - width, dtype=tf.float32))
pad_top = tf.round(tf.random.uniform((), minval=0, maxval=final_height - height, dtype=tf.float32))
pad_right = final_width - (width + pad_left)
pad_bottom = final_height - (height + pad_top)
#
mean, _ = tf.nn.moments(img, [0, 1])
expanded_image = tf.pad(img, ((pad_top, pad_bottom), (pad_left, pad_right), (0,0)), constant_values=-1)
expanded_image = tf.where(expanded_image == -1, mean, expanded_image)
#
min_max = tf.stack([-pad_top, -pad_left, pad_bottom+height, pad_right+width], -1) / [height, width, height, width]
modified_gt_boxes = bbox_utils.renormalize_bboxes_with_min_max(gt_boxes, min_max)
modified_gt_landmarks = landmark_utils.renormalize_landmarks_with_min_max(gt_landmarks, min_max)
#
return expanded_image, modified_gt_boxes, modified_gt_landmarks
def patch(img, gt_boxes, gt_landmarks):
"""Generating random patch and adjusting image and ground truth objects to this patch.
After this operation some of the ground truth boxes / objects could be removed from the image.
However, these objects are not excluded from the output, only the coordinates are changed as zero.
inputs:
img = (height, width, depth)
gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
in normalized form [0, 1]
gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
in normalized form [0, 1]
outputs:
modified_img = (final_height, final_width, depth)
modified_gt_boxes = (ground_truth_object_count, [y1, x1, y2, x2])
in normalized form [0, 1]
modified_gt_landmarks = (ground_truth_object_count, total_landmarks, [x, y])
in normalized form [0, 1]
"""
img_shape = tf.cast(tf.shape(img), dtype=tf.float32)
org_height, org_width = img_shape[0], img_shape[1]
# Randomly expand image and adjust bounding boxes
img, gt_boxes, gt_landmarks = randomly_apply_operation(expand_image, img, gt_boxes, gt_landmarks, org_height, org_width)
# Get random minimum overlap value
min_overlap = get_random_min_overlap()
#
begin, size, new_boundaries = tf.image.sample_distorted_bounding_box(
tf.shape(img),
bounding_boxes=tf.expand_dims(gt_boxes, 0),
min_object_covered=min_overlap)
#
img = tf.slice(img, begin, size)
img = tf.image.resize(img, (org_height, org_width))
gt_boxes = bbox_utils.renormalize_bboxes_with_min_max(gt_boxes, new_boundaries[0, 0])
gt_landmarks = landmark_utils.renormalize_landmarks_with_min_max(gt_landmarks, new_boundaries[0, 0])
#
return img, gt_boxes, gt_landmarks
|
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not between comment pairs USER CODE BEGIN and
* USER CODE END. Other portions of this file, whether
* inserted by the user or by software development tools
* are owned by their respective copyright owners.
*
* COPYRIGHT(c) 2019 STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
UART_HandleTypeDef huart1;
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_USART1_UART_Init(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
/**Supply configuration update enable
*/
MODIFY_REG(PWR->CR3, PWR_CR3_SCUEN, 0);
/**Configure the main internal regulator output voltage
*/
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
while ((PWR->D3CR & (PWR_D3CR_VOSRDY)) != PWR_D3CR_VOSRDY)
{
}
/**Initializes the CPU, AHB and APB busses clocks
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 5;
RCC_OscInitStruct.PLL.PLLN = 160;
RCC_OscInitStruct.PLL.PLLP = 2;
RCC_OscInitStruct.PLL.PLLQ = 2;
RCC_OscInitStruct.PLL.PLLR = 2;
RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
RCC_OscInitStruct.PLL.PLLFRACN = 0;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
/**Initializes the CPU, AHB and APB busses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
|RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
{
Error_Handler();
}
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
{
Error_Handler();
}
}
/**
* @brief USART1 Initialization Function
* @param None
* @retval None
*/
static void MX_USART1_UART_Init(void)
{
/* USER CODE BEGIN USART1_Init 0 */
/* USER CODE END USART1_Init 0 */
/* USER CODE BEGIN USART1_Init 1 */
/* USER CODE END USART1_Init 1 */
huart1.Instance = USART1;
huart1.Init.BaudRate = 115200;
huart1.Init.WordLength = UART_WORDLENGTH_8B;
huart1.Init.StopBits = UART_STOPBITS_1;
huart1.Init.Parity = UART_PARITY_NONE;
huart1.Init.Mode = UART_MODE_TX_RX;
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
huart1.Init.Prescaler = UART_PRESCALER_DIV1;
huart1.Init.FIFOMode = UART_FIFOMODE_DISABLE;
huart1.Init.TXFIFOThreshold = UART_TXFIFO_THRESHOLD_1_8;
huart1.Init.RXFIFOThreshold = UART_RXFIFO_THRESHOLD_1_8;
huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
if (HAL_UART_Init(&huart1) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN USART1_Init 2 */
/* USER CODE END USART1_Init 2 */
}
/**
* @brief GPIO Initialization Function
* @param None
* @retval None
*/
static void MX_GPIO_Init(void)
{
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOH_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
}
/* USER CODE BEGIN 4 */
/* USER CODE END 4 */
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
/* USER CODE END Error_Handler_Debug */
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t *file, uint32_t line)
{
/* USER CODE BEGIN 6 */
/* User can add his own implementation to report the file name and line number,
tex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* USER CODE END 6 */
}
#endif /* USE_FULL_ASSERT */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
#pragma once
#include "stdinc.h"
NS_BEGIN(dcsutil)
struct stackframe_info_t {
string module;
string func;
size_t offset;
void * addr;
string info;
stackframe_info_t();
const char * str(string & s);
};
const char * stacktrace(string & str, int startlevel = 0, int maxlevels = 16);
int stacktrace(std::vector<stackframe_info_t> & vsi, int startlevel = 0, int maxlevels = 16);
NS_END()
|
//Find the distance between two points
export function distance([x1, y1], [x2, y2]) {
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2))
}
//Gauss Jordan Eliminations on a system of equations
//system is a 2-D array.
//Each element in system depicts a row in the system of 8 linear equations.
//Each row has 8 elements, which are representative of the coefficients of variables in each equation.
export function gaussJordan(system) {
//system.length = 8.
for (let i = 0, len = system.length; i < len; i++) {
const j = system.slice(i).findIndex(row => row[i] !== 0)
if (j > 0) swapRows(system, i, i + j)
//divide every row with the first element in every row.
divideRow(system[i], system[i][i])
for (let j = i + 1; j < len; ++j) {
addRow(system[j], system[i], -system[j][i])
}
}
for (let i = system.length - 1; i >= 0; i--) {
for (let j = 0; j < i; j++) {
addRow(system[j], system[i], -system[j][i])
}
}
return system.map(row => row[row.length - 1])
}
//Utility functions
function swapRows(matrix, i, j) {
const temp = matrix[i]
matrix[i] = matrix[j]
matrix[j] = temp
}
function divideRow(row, divisor) {
for (let i = 0, len = row.length; i < len; i++) {
row[i] /= divisor
}
}
function addRow(toRow, fromRow, scale) {
for (let i = 0, len = toRow.length; i < len; i++) {
toRow[i] += scale * fromRow[i]
}
}
//Multiplication of a matrix with a vector
export function transform(matrix, vector) {
const result = []
for (let i = 0, len = matrix.length; i < len; i++) {
result.push(dotProduct(matrix[i], vector))
}
return result
}
function dotProduct(a, b) {
let result = 0
for (let i = 0, len = a.length; i < len; i++) {
result += a[i] * b[i]
}
return result
}
|
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields
class ResCompany(models.Model):
_inherit = "res.company"
automatic_withholdings = fields.Boolean(
help='Make withholdings automatically on payments confirmation'
)
|
# coding: utf-8
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Separate tests specifically for equivalencies."""
from __future__ import (absolute_import, unicode_literals, division,
print_function)
from ...extern.six.moves import zip
# THIRD-PARTY
import pytest
import numpy as np
from numpy.testing import assert_allclose
# LOCAL
from ... import units as u
from ... import constants
from ...tests.helper import assert_quantity_allclose
def test_dimensionless_angles():
# test that the angles_dimensionless option allows one to change
# by any order in radian in the unit (#1161)
rad1 = u.dimensionless_angles()
assert u.radian.to(1, equivalencies=rad1) == 1.
assert u.deg.to(1, equivalencies=rad1) == u.deg.to(u.rad)
assert u.steradian.to(1, equivalencies=rad1) == 1.
assert u.dimensionless_unscaled.to(u.steradian, equivalencies=rad1) == 1.
# now quantities
assert (1.*u.radian).to_value(1, equivalencies=rad1) == 1.
assert (1.*u.deg).to_value(1, equivalencies=rad1) == u.deg.to(u.rad)
assert (1.*u.steradian).to_value(1, equivalencies=rad1) == 1.
# more complicated example
I = 1.e45 * u.g * u.cm**2
Omega = u.cycle / (1.*u.s)
Erot = 0.5 * I * Omega**2
# check that equivalency makes this work
Erot_in_erg1 = Erot.to(u.erg, equivalencies=rad1)
# and check that value is correct
assert_allclose(Erot_in_erg1.value, (Erot/u.radian**2).to_value(u.erg))
# test build-in equivalency in subclass
class MyRad1(u.Quantity):
_equivalencies = rad1
phase = MyRad1(1., u.cycle)
assert phase.to_value(1) == u.cycle.to(u.radian)
@pytest.mark.parametrize('log_unit', (u.mag, u.dex, u.dB))
def test_logarithmic(log_unit):
# check conversion of mag, dB, and dex to dimensionless and vice versa
with pytest.raises(u.UnitsError):
log_unit.to(1, 0.)
with pytest.raises(u.UnitsError):
u.dimensionless_unscaled.to(log_unit)
assert log_unit.to(1, 0., equivalencies=u.logarithmic()) == 1.
assert u.dimensionless_unscaled.to(log_unit,
equivalencies=u.logarithmic()) == 0.
# also try with quantities
q_dex = np.array([0., -1., 1., 2.]) * u.dex
q_expected = 10.**q_dex.value * u.dimensionless_unscaled
q_log_unit = q_dex.to(log_unit)
assert np.all(q_log_unit.to(1, equivalencies=u.logarithmic()) ==
q_expected)
assert np.all(q_expected.to(log_unit, equivalencies=u.logarithmic()) ==
q_log_unit)
with u.set_enabled_equivalencies(u.logarithmic()):
assert np.all(np.abs(q_log_unit - q_expected.to(log_unit)) <
1.e-10*log_unit)
doppler_functions = [u.doppler_optical, u.doppler_radio, u.doppler_relativistic]
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_frequency_0(function):
rest = 105.01 * u.GHz
velo0 = rest.to(u.km/u.s, equivalencies=function(rest))
assert velo0.value == 0
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_wavelength_0(function):
rest = 105.01 * u.GHz
q1 = 0.00285489437196 * u.m
velo0 = q1.to(u.km/u.s, equivalencies=function(rest))
np.testing.assert_almost_equal(velo0.value, 0, decimal=6)
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_energy_0(function):
rest = 105.01 * u.GHz
q1 = 0.0004342864612223407 * u.eV
velo0 = q1.to(u.km/u.s, equivalencies=function(rest))
np.testing.assert_almost_equal(velo0.value, 0, decimal=6)
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_frequency_circle(function):
rest = 105.01 * u.GHz
shifted = 105.03 * u.GHz
velo = shifted.to(u.km/u.s, equivalencies=function(rest))
freq = velo.to(u.GHz, equivalencies=function(rest))
np.testing.assert_almost_equal(freq.value, shifted.value, decimal=7)
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_wavelength_circle(function):
rest = 105.01 * u.nm
shifted = 105.03 * u.nm
velo = shifted.to(u.km / u.s, equivalencies=function(rest))
wav = velo.to(u.nm, equivalencies=function(rest))
np.testing.assert_almost_equal(wav.value, shifted.value, decimal=7)
@pytest.mark.parametrize(('function'), doppler_functions)
def test_doppler_energy_circle(function):
rest = 1.0501 * u.eV
shifted = 1.0503 * u.eV
velo = shifted.to(u.km / u.s, equivalencies=function(rest))
en = velo.to(u.eV, equivalencies=function(rest))
np.testing.assert_almost_equal(en.value, shifted.value, decimal=7)
values_ghz = (999.899940784289, 999.8999307714406, 999.8999357778647)
@pytest.mark.parametrize(('function', 'value'),
list(zip(doppler_functions, values_ghz)))
def test_30kms(function, value):
rest = 1000 * u.GHz
velo = 30 * u.km/u.s
shifted = velo.to(u.GHz, equivalencies=function(rest))
np.testing.assert_almost_equal(shifted.value, value, decimal=7)
bad_values = (5, 5*u.Jy, None)
@pytest.mark.parametrize(('function', 'value'),
list(zip(doppler_functions, bad_values)))
def test_bad_restfreqs(function, value):
with pytest.raises(u.UnitsError):
function(value)
def test_massenergy():
# The relative tolerance of these tests is set by the uncertainties
# in the charge of the electron, which is known to about
# 3e-9 (relative tolerance). Therefore, we limit the
# precision of the tests to 1e-7 to be safe. The masses are
# (loosely) known to ~ 5e-8 rel tolerance, so we couldn't test to
# 1e-7 if we used the values from astropy.constants; that is,
# they might change by more than 1e-7 in some future update, so instead
# they are hardwired here.
# Electron, proton, neutron, muon, 1g
mass_eV = u.Quantity([510.998928e3, 938.272046e6, 939.565378e6,
105.6583715e6, 5.60958884539e32], u.eV)
mass_g = u.Quantity([9.10938291e-28, 1.672621777e-24, 1.674927351e-24,
1.88353147e-25, 1], u.g)
# Test both ways
assert np.allclose(mass_eV.to_value(u.g, equivalencies=u.mass_energy()),
mass_g.value, rtol=1e-7)
assert np.allclose(mass_g.to_value(u.eV, equivalencies=u.mass_energy()),
mass_eV.value, rtol=1e-7)
# Basic tests of 'derived' equivalencies
# Surface density
sdens_eV = u.Quantity(5.60958884539e32, u.eV / u.m**2)
sdens_g = u.Quantity(1e-4, u.g / u.cm**2)
assert np.allclose(sdens_eV.to_value(u.g / u.cm**2,
equivalencies=u.mass_energy()),
sdens_g.value, rtol=1e-7)
assert np.allclose(sdens_g.to_value(u.eV / u.m**2,
equivalencies=u.mass_energy()),
sdens_eV.value, rtol=1e-7)
# Density
dens_eV = u.Quantity(5.60958884539e32, u.eV / u.m**3)
dens_g = u.Quantity(1e-6, u.g / u.cm**3)
assert np.allclose(dens_eV.to_value(u.g / u.cm**3,
equivalencies=u.mass_energy()),
dens_g.value, rtol=1e-7)
assert np.allclose(dens_g.to_value(u.eV / u.m**3,
equivalencies=u.mass_energy()),
dens_eV.value, rtol=1e-7)
# Power
pow_eV = u.Quantity(5.60958884539e32, u.eV / u.s)
pow_g = u.Quantity(1, u.g / u.s)
assert np.allclose(pow_eV.to_value(u.g / u.s,
equivalencies=u.mass_energy()),
pow_g.value, rtol=1e-7)
assert np.allclose(pow_g.to_value(u.eV / u.s,
equivalencies=u.mass_energy()),
pow_eV.value, rtol=1e-7)
def test_is_equivalent():
assert u.m.is_equivalent(u.pc)
assert u.cycle.is_equivalent(u.mas)
assert not u.cycle.is_equivalent(u.dimensionless_unscaled)
assert u.cycle.is_equivalent(u.dimensionless_unscaled,
u.dimensionless_angles())
assert not (u.Hz.is_equivalent(u.J))
assert u.Hz.is_equivalent(u.J, u.spectral())
assert u.J.is_equivalent(u.Hz, u.spectral())
assert u.pc.is_equivalent(u.arcsecond, u.parallax())
assert u.arcminute.is_equivalent(u.au, u.parallax())
# Pass a tuple for multiple possibilities
assert u.cm.is_equivalent((u.m, u.s, u.kg))
assert u.ms.is_equivalent((u.m, u.s, u.kg))
assert u.g.is_equivalent((u.m, u.s, u.kg))
assert not u.L.is_equivalent((u.m, u.s, u.kg))
assert not (u.km / u.s).is_equivalent((u.m, u.s, u.kg))
def test_parallax():
a = u.arcsecond.to(u.pc, 10, u.parallax())
assert_allclose(a, 0.10)
b = u.pc.to(u.arcsecond, a, u.parallax())
assert_allclose(b, 10)
a = u.arcminute.to(u.au, 1, u.parallax())
assert_allclose(a, 3437.7467916)
b = u.au.to(u.arcminute, a, u.parallax())
assert_allclose(b, 1)
def test_parallax2():
a = u.arcsecond.to(u.pc, [0.1, 2.5], u.parallax())
assert_allclose(a, [10, 0.4])
def test_spectral():
a = u.AA.to(u.Hz, 1, u.spectral())
assert_allclose(a, 2.9979245799999995e+18)
b = u.Hz.to(u.AA, a, u.spectral())
assert_allclose(b, 1)
a = u.AA.to(u.MHz, 1, u.spectral())
assert_allclose(a, 2.9979245799999995e+12)
b = u.MHz.to(u.AA, a, u.spectral())
assert_allclose(b, 1)
a = u.m.to(u.Hz, 1, u.spectral())
assert_allclose(a, 2.9979245799999995e+8)
b = u.Hz.to(u.m, a, u.spectral())
assert_allclose(b, 1)
def test_spectral2():
a = u.nm.to(u.J, 500, u.spectral())
assert_allclose(a, 3.972891366538605e-19)
b = u.J.to(u.nm, a, u.spectral())
assert_allclose(b, 500)
a = u.AA.to(u.Hz, 1, u.spectral())
b = u.Hz.to(u.J, a, u.spectral())
c = u.AA.to(u.J, 1, u.spectral())
assert_allclose(b, c)
c = u.J.to(u.Hz, b, u.spectral())
assert_allclose(a, c)
def test_spectral3():
a = u.nm.to(u.Hz, [1000, 2000], u.spectral())
assert_allclose(a, [2.99792458e+14, 1.49896229e+14])
@pytest.mark.parametrize(
('in_val', 'in_unit'),
[([0.1, 5000.0, 10000.0], u.AA),
([1e+5, 2.0, 1.0], u.micron ** -1),
([2.99792458e+19, 5.99584916e+14, 2.99792458e+14], u.Hz),
([1.98644568e-14, 3.97289137e-19, 1.98644568e-19], u.J)])
def test_spectral4(in_val, in_unit):
"""Wave number conversion w.r.t. wavelength, freq, and energy."""
# Spectroscopic and angular
out_units = [u.micron ** -1, u.radian / u.micron]
answers = [[1e+5, 2.0, 1.0], [6.28318531e+05, 12.5663706, 6.28318531]]
for out_unit, ans in zip(out_units, answers):
# Forward
a = in_unit.to(out_unit, in_val, u.spectral())
assert_allclose(a, ans)
# Backward
b = out_unit.to(in_unit, ans, u.spectral())
assert_allclose(b, in_val)
def test_spectraldensity2():
# flux density
flambda = u.erg / u.angstrom / u.cm ** 2 / u.s
fnu = u.erg / u.Hz / u.cm ** 2 / u.s
a = flambda.to(fnu, 1, u.spectral_density(u.Quantity(3500, u.AA)))
assert_allclose(a, 4.086160166177361e-12)
# luminosity density
llambda = u.erg / u.angstrom / u.s
lnu = u.erg / u.Hz / u.s
a = llambda.to(lnu, 1, u.spectral_density(u.Quantity(3500, u.AA)))
assert_allclose(a, 4.086160166177361e-12)
a = lnu.to(llambda, 1, u.spectral_density(u.Quantity(3500, u.AA)))
assert_allclose(a, 2.44728537142857e11)
def test_spectraldensity3():
# Define F_nu in Jy
f_nu = u.Jy
# Define F_lambda in ergs / cm^2 / s / micron
f_lambda = u.erg / u.cm ** 2 / u.s / u.micron
# 1 GHz
one_ghz = u.Quantity(1, u.GHz)
# Convert to ergs / cm^2 / s / Hz
assert_allclose(f_nu.to(u.erg / u.cm ** 2 / u.s / u.Hz, 1.), 1.e-23, 10)
# Convert to ergs / cm^2 / s at 10 Ghz
assert_allclose(f_nu.to(u.erg / u.cm ** 2 / u.s, 1.,
equivalencies=u.spectral_density(one_ghz * 10)),
1.e-13, 10)
# Convert to F_lambda at 1 Ghz
assert_allclose(f_nu.to(f_lambda, 1.,
equivalencies=u.spectral_density(one_ghz)),
3.335640951981521e-20, 10)
# Convert to Jy at 1 Ghz
assert_allclose(f_lambda.to(u.Jy, 1.,
equivalencies=u.spectral_density(one_ghz)),
1. / 3.335640951981521e-20, 10)
# Convert to ergs / cm^2 / s at 10 microns
assert_allclose(f_lambda.to(u.erg / u.cm ** 2 / u.s, 1.,
equivalencies=u.spectral_density(u.Quantity(10, u.micron))),
10., 10)
def test_spectraldensity4():
"""PHOTLAM and PHOTNU conversions."""
flam = u.erg / (u.cm ** 2 * u.s * u.AA)
fnu = u.erg / (u.cm ** 2 * u.s * u.Hz)
photlam = u.photon / (u.cm ** 2 * u.s * u.AA)
photnu = u.photon / (u.cm ** 2 * u.s * u.Hz)
wave = u.Quantity([4956.8, 4959.55, 4962.3], u.AA)
flux_photlam = [9.7654e-3, 1.003896e-2, 9.78473e-3]
flux_photnu = [8.00335589e-14, 8.23668949e-14, 8.03700310e-14]
flux_flam = [3.9135e-14, 4.0209e-14, 3.9169e-14]
flux_fnu = [3.20735792e-25, 3.29903646e-25, 3.21727226e-25]
flux_jy = [3.20735792e-2, 3.29903646e-2, 3.21727226e-2]
flux_stmag = [12.41858665, 12.38919182, 12.41764379]
flux_abmag = [12.63463143, 12.60403221, 12.63128047]
# PHOTLAM <--> FLAM
assert_allclose(photlam.to(
flam, flux_photlam, u.spectral_density(wave)), flux_flam, rtol=1e-6)
assert_allclose(flam.to(
photlam, flux_flam, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
# PHOTLAM <--> FNU
assert_allclose(photlam.to(
fnu, flux_photlam, u.spectral_density(wave)), flux_fnu, rtol=1e-6)
assert_allclose(fnu.to(
photlam, flux_fnu, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
# PHOTLAM <--> Jy
assert_allclose(photlam.to(
u.Jy, flux_photlam, u.spectral_density(wave)), flux_jy, rtol=1e-6)
assert_allclose(u.Jy.to(
photlam, flux_jy, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
# PHOTLAM <--> PHOTNU
assert_allclose(photlam.to(
photnu, flux_photlam, u.spectral_density(wave)), flux_photnu, rtol=1e-6)
assert_allclose(photnu.to(
photlam, flux_photnu, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
# PHOTNU <--> FNU
assert_allclose(photnu.to(
fnu, flux_photnu, u.spectral_density(wave)), flux_fnu, rtol=1e-6)
assert_allclose(fnu.to(
photnu, flux_fnu, u.spectral_density(wave)), flux_photnu, rtol=1e-6)
# PHOTNU <--> FLAM
assert_allclose(photnu.to(
flam, flux_photnu, u.spectral_density(wave)), flux_flam, rtol=1e-6)
assert_allclose(flam.to(
photnu, flux_flam, u.spectral_density(wave)), flux_photnu, rtol=1e-6)
# PHOTLAM <--> STMAG
assert_allclose(photlam.to(
u.STmag, flux_photlam, u.spectral_density(wave)), flux_stmag, rtol=1e-6)
assert_allclose(u.STmag.to(
photlam, flux_stmag, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
# PHOTLAM <--> ABMAG
assert_allclose(photlam.to(
u.ABmag, flux_photlam, u.spectral_density(wave)), flux_abmag, rtol=1e-6)
assert_allclose(u.ABmag.to(
photlam, flux_abmag, u.spectral_density(wave)), flux_photlam, rtol=1e-6)
def test_spectraldensity5():
""" Test photon luminosity density conversions. """
L_la = u.erg / (u.s * u.AA)
L_nu = u.erg / (u.s * u.Hz)
phot_L_la = u.photon / (u.s * u.AA)
phot_L_nu = u.photon / (u.s * u.Hz)
wave = u.Quantity([4956.8, 4959.55, 4962.3], u.AA)
flux_phot_L_la = [9.7654e-3, 1.003896e-2, 9.78473e-3]
flux_phot_L_nu = [8.00335589e-14, 8.23668949e-14, 8.03700310e-14]
flux_L_la = [3.9135e-14, 4.0209e-14, 3.9169e-14]
flux_L_nu = [3.20735792e-25, 3.29903646e-25, 3.21727226e-25]
# PHOTLAM <--> FLAM
assert_allclose(phot_L_la.to(
L_la, flux_phot_L_la, u.spectral_density(wave)), flux_L_la, rtol=1e-6)
assert_allclose(L_la.to(
phot_L_la, flux_L_la, u.spectral_density(wave)), flux_phot_L_la, rtol=1e-6)
# PHOTLAM <--> FNU
assert_allclose(phot_L_la.to(
L_nu, flux_phot_L_la, u.spectral_density(wave)), flux_L_nu, rtol=1e-6)
assert_allclose(L_nu.to(
phot_L_la, flux_L_nu, u.spectral_density(wave)), flux_phot_L_la, rtol=1e-6)
# PHOTLAM <--> PHOTNU
assert_allclose(phot_L_la.to(
phot_L_nu, flux_phot_L_la, u.spectral_density(wave)), flux_phot_L_nu, rtol=1e-6)
assert_allclose(phot_L_nu.to(
phot_L_la, flux_phot_L_nu, u.spectral_density(wave)), flux_phot_L_la, rtol=1e-6)
# PHOTNU <--> FNU
assert_allclose(phot_L_nu.to(
L_nu, flux_phot_L_nu, u.spectral_density(wave)), flux_L_nu, rtol=1e-6)
assert_allclose(L_nu.to(
phot_L_nu, flux_L_nu, u.spectral_density(wave)), flux_phot_L_nu, rtol=1e-6)
# PHOTNU <--> FLAM
assert_allclose(phot_L_nu.to(
L_la, flux_phot_L_nu, u.spectral_density(wave)), flux_L_la, rtol=1e-6)
assert_allclose(L_la.to(
phot_L_nu, flux_L_la, u.spectral_density(wave)), flux_phot_L_nu, rtol=1e-6)
def test_equivalent_units():
from .. import imperial
with u.add_enabled_units(imperial):
units = u.g.find_equivalent_units()
units_set = set(units)
match = set(
[u.M_e, u.M_p, u.g, u.kg, u.solMass, u.t, u.u, u.M_earth,
u.M_jup, imperial.oz, imperial.lb, imperial.st, imperial.ton,
imperial.slug])
assert units_set == match
r = repr(units)
assert r.count('\n') == len(units) + 2
def test_equivalent_units2():
units = set(u.Hz.find_equivalent_units(u.spectral()))
match = set(
[u.AU, u.Angstrom, u.Hz, u.J, u.Ry, u.cm, u.eV, u.erg, u.lyr,
u.m, u.micron, u.pc, u.solRad, u.Bq, u.Ci, u.k, u.earthRad,
u.jupiterRad])
assert units == match
from .. import imperial
with u.add_enabled_units(imperial):
units = set(u.Hz.find_equivalent_units(u.spectral()))
match = set(
[u.AU, u.Angstrom, imperial.BTU, u.Hz, u.J, u.Ry,
imperial.cal, u.cm, u.eV, u.erg, imperial.ft, imperial.fur,
imperial.inch, imperial.kcal, u.lyr, u.m, imperial.mi,
imperial.mil, u.micron, u.pc, u.solRad, imperial.yd, u.Bq, u.Ci,
imperial.nmi, u.k, u.earthRad, u.jupiterRad])
assert units == match
units = set(u.Hz.find_equivalent_units(u.spectral()))
match = set(
[u.AU, u.Angstrom, u.Hz, u.J, u.Ry, u.cm, u.eV, u.erg, u.lyr,
u.m, u.micron, u.pc, u.solRad, u.Bq, u.Ci, u.k, u.earthRad,
u.jupiterRad])
assert units == match
def test_trivial_equivalency():
assert u.m.to(u.kg, equivalencies=[(u.m, u.kg)]) == 1.0
def test_invalid_equivalency():
with pytest.raises(ValueError):
u.m.to(u.kg, equivalencies=[(u.m,)])
with pytest.raises(ValueError):
u.m.to(u.kg, equivalencies=[(u.m, 5.0)])
def test_irrelevant_equivalency():
with pytest.raises(u.UnitsError):
u.m.to(u.kg, equivalencies=[(u.m, u.l)])
def test_brightness_temperature():
omega_B = np.pi * (50 * u.arcsec) ** 2
nu = u.GHz * 5
tb = 7.052590289134352 * u.K
np.testing.assert_almost_equal(
tb.value, (1 * u.Jy).to_value(
u.K, equivalencies=u.brightness_temperature(omega_B, nu)))
np.testing.assert_almost_equal(
1.0, tb.to_value(
u.Jy, equivalencies=u.brightness_temperature(omega_B, nu)))
def test_equivalency_context():
with u.set_enabled_equivalencies(u.dimensionless_angles()):
phase = u.Quantity(1., u.cycle)
assert_allclose(np.exp(1j*phase), 1.)
Omega = u.cycle / (1.*u.minute)
assert_allclose(np.exp(1j*Omega*60.*u.second), 1.)
# ensure we can turn off equivalencies even within the scope
with pytest.raises(u.UnitsError):
phase.to(1, equivalencies=None)
# test the manager also works in the Quantity constructor.
q1 = u.Quantity(phase, u.dimensionless_unscaled)
assert_allclose(q1.value, u.cycle.to(u.radian))
# and also if we use a class that happens to have a unit attribute.
class MyQuantityLookalike(np.ndarray):
pass
mylookalike = np.array(1.).view(MyQuantityLookalike)
mylookalike.unit = 'cycle'
# test the manager also works in the Quantity constructor.
q2 = u.Quantity(mylookalike, u.dimensionless_unscaled)
assert_allclose(q2.value, u.cycle.to(u.radian))
with u.set_enabled_equivalencies(u.spectral()):
u.GHz.to(u.cm)
eq_on = u.GHz.find_equivalent_units()
with pytest.raises(u.UnitsError):
u.GHz.to(u.cm, equivalencies=None)
# without equivalencies, we should find a smaller (sub)set
eq_off = u.GHz.find_equivalent_units()
assert all(eq in set(eq_on) for eq in eq_off)
assert set(eq_off) < set(eq_on)
# Check the equivalency manager also works in ufunc evaluations,
# not just using (wrong) scaling. [#2496]
l2v = u.doppler_optical(6000 * u.angstrom)
l1 = 6010 * u.angstrom
assert l1.to(u.km/u.s, equivalencies=l2v) > 100. * u.km / u.s
with u.set_enabled_equivalencies(l2v):
assert l1 > 100. * u.km / u.s
assert abs((l1 - 500. * u.km / u.s).to(u.angstrom)) < 1. * u.km/u.s
def test_equivalency_context_manager():
base_registry = u.get_current_unit_registry()
def just_to_from_units(equivalencies):
return [(equiv[0], equiv[1]) for equiv in equivalencies]
tf_dimensionless_angles = just_to_from_units(u.dimensionless_angles())
tf_spectral = just_to_from_units(u.spectral())
assert base_registry.equivalencies == []
with u.set_enabled_equivalencies(u.dimensionless_angles()):
new_registry = u.get_current_unit_registry()
assert (set(just_to_from_units(new_registry.equivalencies)) ==
set(tf_dimensionless_angles))
assert set(new_registry.all_units) == set(base_registry.all_units)
with u.set_enabled_equivalencies(u.spectral()):
newer_registry = u.get_current_unit_registry()
assert (set(just_to_from_units(newer_registry.equivalencies)) ==
set(tf_spectral))
assert (set(newer_registry.all_units) ==
set(base_registry.all_units))
assert (set(just_to_from_units(new_registry.equivalencies)) ==
set(tf_dimensionless_angles))
assert set(new_registry.all_units) == set(base_registry.all_units)
with u.add_enabled_equivalencies(u.spectral()):
newer_registry = u.get_current_unit_registry()
assert (set(just_to_from_units(newer_registry.equivalencies)) ==
set(tf_dimensionless_angles) | set(tf_spectral))
assert (set(newer_registry.all_units) ==
set(base_registry.all_units))
assert base_registry is u.get_current_unit_registry()
def test_temperature():
from ..imperial import deg_F
t_k = 0 * u.K
assert_allclose(t_k.to_value(u.deg_C, u.temperature()), -273.15)
assert_allclose(t_k.to_value(deg_F, u.temperature()), -459.67)
def test_temperature_energy():
x = 1000 * u.K
y = (x * constants.k_B).to(u.keV)
assert_allclose(x.to_value(u.keV, u.temperature_energy()), y.value)
assert_allclose(y.to_value(u.K, u.temperature_energy()), x.value)
def test_molar_mass_amu():
x = 1 * (u.g/u.mol)
y = 1 * u.u
assert_allclose(x.to_value(u.u, u.molar_mass_amu()), y.value)
assert_allclose(y.to_value(u.g/u.mol, u.molar_mass_amu()), x.value)
with pytest.raises(u.UnitsError):
x.to(u.u)
def test_compose_equivalencies():
x = u.Unit("arcsec").compose(units=(u.pc,), equivalencies=u.parallax())
assert x[0] == u.pc
x = u.Unit("2 arcsec").compose(units=(u.pc,), equivalencies=u.parallax())
assert x[0] == u.Unit(0.5 * u.pc)
x = u.degree.compose(equivalencies=u.dimensionless_angles())
assert u.Unit(u.degree.to(u.radian)) in x
x = (u.nm).compose(units=(u.m, u.s), equivalencies=u.doppler_optical(0.55*u.micron))
for y in x:
if y.bases == [u.m, u.s]:
assert y.powers == [1, -1]
assert_allclose(
y.scale,
u.nm.to(u.m / u.s, equivalencies=u.doppler_optical(0.55 * u.micron)))
break
else:
assert False, "Didn't find speed in compose results"
def test_pixel_scale():
pix = 75*u.pix
asec = 30*u.arcsec
pixscale = 0.4*u.arcsec/u.pix
pixscale2 = 2.5*u.pix/u.arcsec
assert_quantity_allclose(pix.to(u.arcsec, u.pixel_scale(pixscale)), asec)
assert_quantity_allclose(pix.to(u.arcmin, u.pixel_scale(pixscale)), asec)
assert_quantity_allclose(pix.to(u.arcsec, u.pixel_scale(pixscale2)), asec)
assert_quantity_allclose(pix.to(u.arcmin, u.pixel_scale(pixscale2)), asec)
assert_quantity_allclose(asec.to(u.pix, u.pixel_scale(pixscale)), pix)
assert_quantity_allclose(asec.to(u.pix, u.pixel_scale(pixscale2)), pix)
def test_plate_scale():
mm = 1.5*u.mm
asec = 30*u.arcsec
platescale = 20*u.arcsec/u.mm
platescale2 = 0.05*u.mm/u.arcsec
assert_quantity_allclose(mm.to(u.arcsec, u.plate_scale(platescale)), asec)
assert_quantity_allclose(mm.to(u.arcmin, u.plate_scale(platescale)), asec)
assert_quantity_allclose(mm.to(u.arcsec, u.plate_scale(platescale2)), asec)
assert_quantity_allclose(mm.to(u.arcmin, u.plate_scale(platescale2)), asec)
assert_quantity_allclose(asec.to(u.mm, u.plate_scale(platescale)), mm)
assert_quantity_allclose(asec.to(u.mm, u.plate_scale(platescale2)), mm)
|
"""
Verify evaluation of BIND expressions of different types. See
<http://www.w3.org/TR/sparql11-query/#rExpression>.
"""
from rdflib import Graph, URIRef, Literal, Variable
def test_bind():
base = "http://example.org/"
g = Graph()
g.add((URIRef(
base + "thing"), URIRef(base + "ns#comment"), Literal("anything")))
def check(expr, var, obj):
r = g.query("""
prefix : <http://example.org/ns#>
select * where { ?s ?p ?o . %s } """ % expr)
assert r.bindings[0][Variable(var)] == obj
yield (check, 'bind("thing" as ?name)', 'name', Literal("thing"))
yield (check, 'bind(<http://example.org/other> as ?other)', 'other',
URIRef("http://example.org/other"))
yield (check, "bind(:Thing as ?type)", 'type',
URIRef("http://example.org/ns#Thing"))
|
# qubit number=3
# total number=28
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from qiskit.test.mock import FakeVigo, FakeYorktown
kernel = 'circuit/bernstein'
def bitwise_xor(s: str, t: str) -> str:
length = len(s)
res = []
for i in range(length):
res.append(str(int(s[i]) ^ int(t[i])))
return ''.join(res[::-1])
def bitwise_dot(s: str, t: str) -> str:
length = len(s)
res = 0
for i in range(length):
res += int(s[i]) * int(t[i])
return str(res % 2)
def build_oracle(n: int, f: Callable[[str], str]) -> QuantumCircuit:
# implement the oracle O_f
# NOTE: use multi_control_toffoli_gate ('noancilla' mode)
# https://qiskit.org/documentation/_modules/qiskit/aqua/circuits/gates/multi_control_toffoli_gate.html
# https://quantumcomputing.stackexchange.com/questions/3943/how-do-you-implement-the-toffoli-gate-using-only-single-qubit-and-cnot-gates
# https://quantumcomputing.stackexchange.com/questions/2177/how-can-i-implement-an-n-bit-toffoli-gate
controls = QuantumRegister(n, "ofc")
target = QuantumRegister(1, "oft")
oracle = QuantumCircuit(controls, target, name="Of")
for i in range(2 ** n):
rep = np.binary_repr(i, n)
if f(rep) == "1":
for j in range(n):
if rep[j] == "0":
oracle.x(controls[j])
oracle.mct(controls, target[0], None, mode='noancilla')
for j in range(n):
if rep[j] == "0":
oracle.x(controls[j])
# oracle.barrier()
# oracle.draw('mpl', filename=(kernel + '-oracle.png'))
return oracle
def build_circuit(n: int, f: Callable[[str], str]) -> QuantumCircuit:
# implement the Bernstein-Vazirani circuit
zero = np.binary_repr(0, n)
b = f(zero)
# initial n + 1 bits
input_qubit = QuantumRegister(n+1, "qc")
classicals = ClassicalRegister(n, "qm")
prog = QuantumCircuit(input_qubit, classicals)
# inverse last one (can be omitted if using O_f^\pm)
prog.x(input_qubit[n])
# circuit begin
prog.h(input_qubit[1]) # number=1
prog.rx(-0.09738937226128368,input_qubit[2]) # number=2
prog.h(input_qubit[1]) # number=3
# apply H to get superposition
for i in range(n):
prog.h(input_qubit[i])
prog.h(input_qubit[n])
prog.barrier()
# apply oracle O_f
oracle = build_oracle(n, f)
prog.append(
oracle.to_gate(),
[input_qubit[i] for i in range(n)] + [input_qubit[n]])
# apply H back (QFT on Z_2^n)
for i in range(n):
prog.h(input_qubit[i])
prog.barrier()
# measure
return prog
def get_statevector(prog: QuantumCircuit) -> Any:
state_backend = Aer.get_backend('statevector_simulator')
statevec = execute(prog, state_backend).result()
quantum_state = statevec.get_statevector()
qubits = round(log2(len(quantum_state)))
quantum_state = {
"|" + np.binary_repr(i, qubits) + ">": quantum_state[i]
for i in range(2 ** qubits)
}
return quantum_state
def evaluate(backend_str: str, prog: QuantumCircuit, shots: int, b: str) -> Any:
# Q: which backend should we use?
# get state vector
quantum_state = get_statevector(prog)
# get simulate results
# provider = IBMQ.load_account()
# backend = provider.get_backend(backend_str)
# qobj = compile(prog, backend, shots)
# job = backend.run(qobj)
# job.result()
backend = Aer.get_backend(backend_str)
# transpile/schedule -> assemble -> backend.run
results = execute(prog, backend, shots=shots).result()
counts = results.get_counts()
a = Counter(counts).most_common(1)[0][0][::-1]
return {
"measurements": counts,
# "state": statevec,
"quantum_state": quantum_state,
"a": a,
"b": b
}
def bernstein_test_1(rep: str):
"""011 . x + 1"""
a = "011"
b = "1"
return bitwise_xor(bitwise_dot(a, rep), b)
def bernstein_test_2(rep: str):
"""000 . x + 0"""
a = "000"
b = "0"
return bitwise_xor(bitwise_dot(a, rep), b)
def bernstein_test_3(rep: str):
"""111 . x + 1"""
a = "111"
b = "1"
return bitwise_xor(bitwise_dot(a, rep), b)
if __name__ == "__main__":
n = 2
a = "11"
b = "1"
f = lambda rep: \
bitwise_xor(bitwise_dot(a, rep), b)
prog = build_circuit(n, f)
sample_shot =4000
writefile = open("../data/startQiskit_QC139.csv", "w")
# prog.draw('mpl', filename=(kernel + '.png'))
IBMQ.load_account()
provider = IBMQ.get_provider(hub='ibm-q')
provider.backends()
backend = provider.get_backend("ibmq_belem")
circuit1 = transpile(prog, FakeYorktown())
circuit1.h(qubit=2)
circuit1.x(qubit=3)
circuit1.measure_all()
info = execute(circuit1,backend=backend, shots=sample_shot).result().get_counts()
print(info, file=writefile)
print("results end", file=writefile)
print(circuit1.depth(), file=writefile)
print(circuit1, file=writefile)
writefile.close()
|
const devConfig = require('./webpack.dev.config.js');
const prodConfig = require('./webpack.prod.config.js');
let config = '';
switch (process.env.npm_lifecycle_event) {
case 'start':
config = devConfig;
break;
case 'build':
config = prodConfig;
break;
default:
config = devConfig;
break;
}
module.exports = config;
|
"Test the functionality of Python classes implementing operators."
import unittest
testmeths = [
# Binary operations
"add",
"radd",
"sub",
"rsub",
"mul",
"rmul",
"matmul",
"rmatmul",
"truediv",
"rtruediv",
"floordiv",
"rfloordiv",
"mod",
"rmod",
"divmod",
"rdivmod",
"pow",
"rpow",
"rshift",
"rrshift",
"lshift",
"rlshift",
"and",
"rand",
"or",
"ror",
"xor",
"rxor",
# List/dict operations
"contains",
"getitem",
"setitem",
"delitem",
# Unary operations
"neg",
"pos",
"abs",
# generic operations
"init",
]
# These need to return something other than None
# "hash",
# "str",
# "repr",
# "int",
# "float",
# These are separate because they can influence the test of other methods.
# "getattr",
# "setattr",
# "delattr",
callLst = []
def trackCall(f):
def track(*args, **kwargs):
callLst.append((f.__name__, args))
return f(*args, **kwargs)
return track
statictests = """
@trackCall
def __hash__(self, *args):
return hash(id(self))
@trackCall
def __str__(self, *args):
return "AllTests"
@trackCall
def __repr__(self, *args):
return "AllTests"
@trackCall
def __int__(self, *args):
return 1
@trackCall
def __index__(self, *args):
return 1
@trackCall
def __float__(self, *args):
return 1.0
@trackCall
def __eq__(self, *args):
return True
@trackCall
def __ne__(self, *args):
return False
@trackCall
def __lt__(self, *args):
return False
@trackCall
def __le__(self, *args):
return True
@trackCall
def __gt__(self, *args):
return False
@trackCall
def __ge__(self, *args):
return True
"""
# Synthesize all the other AllTests methods from the names in testmeths.
method_template = """\
@trackCall
def __%s__(self, *args):
pass
"""
d = {}
exec(statictests, globals(), d)
for method in testmeths:
exec(method_template % method, globals(), d)
AllTests = type("AllTests", (object,), d)
del d, statictests, method, method_template
class ClassTests(unittest.TestCase):
def setUp(self):
callLst[:] = []
def assertCallStack(self, expected_calls):
actualCallList = callLst[:] # need to copy because the comparison below will add
# additional calls to callLst
if expected_calls != actualCallList:
self.fail("Expected call list:\n %s\ndoes not match actual call list\n %s" %
(expected_calls, actualCallList))
def testInit(self):
foo = AllTests()
self.assertCallStack([("__init__", (foo,))])
def testBinaryOps(self):
testme = AllTests()
# Binary operations
callLst[:] = []
testme + 1
self.assertCallStack([("__add__", (testme, 1))])
callLst[:] = []
1 + testme
self.assertCallStack([("__radd__", (testme, 1))])
callLst[:] = []
testme - 1
self.assertCallStack([("__sub__", (testme, 1))])
callLst[:] = []
1 - testme
self.assertCallStack([("__rsub__", (testme, 1))])
callLst[:] = []
testme * 1
self.assertCallStack([("__mul__", (testme, 1))])
callLst[:] = []
1 * testme
self.assertCallStack([("__rmul__", (testme, 1))])
callLst[:] = []
testme @ 1
self.assertCallStack([("__matmul__", (testme, 1))])
callLst[:] = []
1 @ testme
self.assertCallStack([("__rmatmul__", (testme, 1))])
callLst[:] = []
testme / 1
self.assertCallStack([("__truediv__", (testme, 1))])
callLst[:] = []
1 / testme
self.assertCallStack([("__rtruediv__", (testme, 1))])
callLst[:] = []
testme // 1
self.assertCallStack([("__floordiv__", (testme, 1))])
callLst[:] = []
1 // testme
self.assertCallStack([("__rfloordiv__", (testme, 1))])
callLst[:] = []
testme % 1
self.assertCallStack([("__mod__", (testme, 1))])
callLst[:] = []
1 % testme
self.assertCallStack([("__rmod__", (testme, 1))])
callLst[:] = []
divmod(testme,1)
self.assertCallStack([("__divmod__", (testme, 1))])
callLst[:] = []
divmod(1, testme)
self.assertCallStack([("__rdivmod__", (testme, 1))])
callLst[:] = []
testme ** 1
self.assertCallStack([("__pow__", (testme, 1))])
callLst[:] = []
1 ** testme
self.assertCallStack([("__rpow__", (testme, 1))])
callLst[:] = []
testme >> 1
self.assertCallStack([("__rshift__", (testme, 1))])
callLst[:] = []
1 >> testme
self.assertCallStack([("__rrshift__", (testme, 1))])
callLst[:] = []
testme << 1
self.assertCallStack([("__lshift__", (testme, 1))])
callLst[:] = []
1 << testme
self.assertCallStack([("__rlshift__", (testme, 1))])
callLst[:] = []
testme & 1
self.assertCallStack([("__and__", (testme, 1))])
callLst[:] = []
1 & testme
self.assertCallStack([("__rand__", (testme, 1))])
callLst[:] = []
testme | 1
self.assertCallStack([("__or__", (testme, 1))])
callLst[:] = []
1 | testme
self.assertCallStack([("__ror__", (testme, 1))])
callLst[:] = []
testme ^ 1
self.assertCallStack([("__xor__", (testme, 1))])
callLst[:] = []
1 ^ testme
self.assertCallStack([("__rxor__", (testme, 1))])
def testListAndDictOps(self):
testme = AllTests()
# List/dict operations
class Empty: pass
try:
1 in Empty()
self.fail('failed, should have raised TypeError')
except TypeError:
pass
callLst[:] = []
1 in testme
self.assertCallStack([('__contains__', (testme, 1))])
callLst[:] = []
testme[1]
self.assertCallStack([('__getitem__', (testme, 1))])
callLst[:] = []
testme[1] = 1
self.assertCallStack([('__setitem__', (testme, 1, 1))])
callLst[:] = []
del testme[1]
self.assertCallStack([('__delitem__', (testme, 1))])
callLst[:] = []
testme[:42]
self.assertCallStack([('__getitem__', (testme, slice(None, 42)))])
callLst[:] = []
testme[:42] = "The Answer"
self.assertCallStack([('__setitem__', (testme, slice(None, 42),
"The Answer"))])
callLst[:] = []
del testme[:42]
self.assertCallStack([('__delitem__', (testme, slice(None, 42)))])
callLst[:] = []
testme[2:1024:10]
self.assertCallStack([('__getitem__', (testme, slice(2, 1024, 10)))])
callLst[:] = []
testme[2:1024:10] = "A lot"
self.assertCallStack([('__setitem__', (testme, slice(2, 1024, 10),
"A lot"))])
callLst[:] = []
del testme[2:1024:10]
self.assertCallStack([('__delitem__', (testme, slice(2, 1024, 10)))])
callLst[:] = []
testme[:42, ..., :24:, 24, 100]
self.assertCallStack([('__getitem__', (testme, (slice(None, 42, None),
Ellipsis,
slice(None, 24, None),
24, 100)))])
callLst[:] = []
testme[:42, ..., :24:, 24, 100] = "Strange"
self.assertCallStack([('__setitem__', (testme, (slice(None, 42, None),
Ellipsis,
slice(None, 24, None),
24, 100), "Strange"))])
callLst[:] = []
del testme[:42, ..., :24:, 24, 100]
self.assertCallStack([('__delitem__', (testme, (slice(None, 42, None),
Ellipsis,
slice(None, 24, None),
24, 100)))])
def testUnaryOps(self):
testme = AllTests()
callLst[:] = []
-testme
self.assertCallStack([('__neg__', (testme,))])
callLst[:] = []
+testme
self.assertCallStack([('__pos__', (testme,))])
callLst[:] = []
abs(testme)
self.assertCallStack([('__abs__', (testme,))])
callLst[:] = []
int(testme)
self.assertCallStack([('__int__', (testme,))])
callLst[:] = []
float(testme)
self.assertCallStack([('__float__', (testme,))])
callLst[:] = []
oct(testme)
self.assertCallStack([('__index__', (testme,))])
callLst[:] = []
hex(testme)
self.assertCallStack([('__index__', (testme,))])
def testMisc(self):
testme = AllTests()
callLst[:] = []
hash(testme)
self.assertCallStack([('__hash__', (testme,))])
callLst[:] = []
repr(testme)
self.assertCallStack([('__repr__', (testme,))])
callLst[:] = []
str(testme)
self.assertCallStack([('__str__', (testme,))])
callLst[:] = []
testme == 1
self.assertCallStack([('__eq__', (testme, 1))])
callLst[:] = []
testme < 1
self.assertCallStack([('__lt__', (testme, 1))])
callLst[:] = []
testme > 1
self.assertCallStack([('__gt__', (testme, 1))])
callLst[:] = []
testme != 1
self.assertCallStack([('__ne__', (testme, 1))])
callLst[:] = []
1 == testme
self.assertCallStack([('__eq__', (1, testme))])
callLst[:] = []
1 < testme
self.assertCallStack([('__gt__', (1, testme))])
callLst[:] = []
1 > testme
self.assertCallStack([('__lt__', (1, testme))])
callLst[:] = []
1 != testme
self.assertCallStack([('__ne__', (1, testme))])
def testGetSetAndDel(self):
# Interfering tests
class ExtraTests(AllTests):
@trackCall
def __getattr__(self, *args):
return "SomeVal"
@trackCall
def __setattr__(self, *args):
pass
@trackCall
def __delattr__(self, *args):
pass
testme = ExtraTests()
callLst[:] = []
testme.spam
self.assertCallStack([('__getattr__', (testme, "spam"))])
callLst[:] = []
testme.eggs = "spam, spam, spam and ham"
self.assertCallStack([('__setattr__', (testme, "eggs",
"spam, spam, spam and ham"))])
callLst[:] = []
del testme.cardinal
self.assertCallStack([('__delattr__', (testme, "cardinal"))])
def testDel(self):
x = []
class DelTest:
def __del__(self):
x.append("crab people, crab people")
testme = DelTest()
del testme
import gc
gc.collect()
self.assertEqual(["crab people, crab people"], x)
def testBadTypeReturned(self):
# return values of some method are type-checked
class BadTypeClass:
def __int__(self):
return None
__float__ = __int__
__complex__ = __int__
__str__ = __int__
__repr__ = __int__
__bytes__ = __int__
__bool__ = __int__
__index__ = __int__
def index(x):
return [][x]
for f in [float, complex, str, repr, bytes, bin, oct, hex, bool, index]:
self.assertRaises(TypeError, f, BadTypeClass())
def testHashStuff(self):
# Test correct errors from hash() on objects with comparisons but
# no __hash__
class C0:
pass
hash(C0()) # This should work; the next two should raise TypeError
class C2:
def __eq__(self, other): return 1
self.assertRaises(TypeError, hash, C2())
def testSFBug532646(self):
# Test for SF bug 532646
class A:
pass
A.__call__ = A()
a = A()
try:
a() # This should not segfault
except RecursionError:
pass
else:
self.fail("Failed to raise RecursionError")
def testForExceptionsRaisedInInstanceGetattr2(self):
# Tests for exceptions raised in instance_getattr2().
def booh(self):
raise AttributeError("booh")
class A:
a = property(booh)
try:
A().a # Raised AttributeError: A instance has no attribute 'a'
except AttributeError as x:
if str(x) != "booh":
self.fail("attribute error for A().a got masked: %s" % x)
class E:
__eq__ = property(booh)
E() == E() # In debug mode, caused a C-level assert() to fail
class I:
__init__ = property(booh)
try:
# In debug mode, printed XXX undetected error and
# raises AttributeError
I()
except AttributeError as x:
pass
else:
self.fail("attribute error for I.__init__ got masked")
def testHashComparisonOfMethods(self):
# Test comparison and hash of methods
class A:
def __init__(self, x):
self.x = x
def f(self):
pass
def g(self):
pass
def __eq__(self, other):
return self.x == other.x
def __hash__(self):
return self.x
class B(A):
pass
a1 = A(1)
a2 = A(2)
self.assertEqual(a1.f, a1.f)
self.assertNotEqual(a1.f, a2.f)
self.assertNotEqual(a1.f, a1.g)
self.assertEqual(a1.f, A(1).f)
self.assertEqual(hash(a1.f), hash(a1.f))
self.assertEqual(hash(a1.f), hash(A(1).f))
self.assertNotEqual(A.f, a1.f)
self.assertNotEqual(A.f, A.g)
self.assertEqual(B.f, A.f)
self.assertEqual(hash(B.f), hash(A.f))
# the following triggers a SystemError in 2.4
a = A(hash(A.f)^(-1))
hash(a.f)
def testSetattrWrapperNameIntern(self):
# Issue #25794: __setattr__ should intern the attribute name
class A:
pass
def add(self, other):
return 'summa'
name = str(b'__add__', 'ascii') # shouldn't be optimized
self.assertIsNot(name, '__add__') # not interned
type.__setattr__(A, name, add)
self.assertEqual(A() + 1, 'summa')
name2 = str(b'__add__', 'ascii')
self.assertIsNot(name2, '__add__')
self.assertIsNot(name2, name)
type.__delattr__(A, name2)
with self.assertRaises(TypeError):
A() + 1
def testSetattrNonStringName(self):
class A:
pass
with self.assertRaises(TypeError):
type.__setattr__(A, b'x', None)
def testConstructorErrorMessages(self):
# bpo-31506: Improves the error message logic for object_new & object_init
# Class without any method overrides
class C:
pass
with self.assertRaisesRegex(TypeError, r'C\(\) takes no arguments'):
C(42)
with self.assertRaisesRegex(TypeError, r'C\(\) takes no arguments'):
C.__new__(C, 42)
with self.assertRaisesRegex(TypeError, r'C\(\).__init__\(\) takes no arguments'):
C().__init__(42)
with self.assertRaisesRegex(TypeError, r'C\(\) takes no arguments'):
object.__new__(C, 42)
with self.assertRaisesRegex(TypeError, r'C\(\).__init__\(\) takes no arguments'):
object.__init__(C(), 42)
# Class with both `__init__` & `__new__` method overridden
class D:
def __new__(cls, *args, **kwargs):
super().__new__(cls, *args, **kwargs)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
with self.assertRaisesRegex(TypeError, r'object.__new__\(\) takes no argument'):
D(42)
with self.assertRaisesRegex(TypeError, r'object.__new__\(\) takes no argument'):
D.__new__(D, 42)
with self.assertRaisesRegex(TypeError, r'object.__new__\(\) takes no argument'):
object.__new__(D, 42)
# Class that only overrides __init__
class E:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
with self.assertRaisesRegex(TypeError, r'object.__init__\(\) takes no argument'):
E().__init__(42)
with self.assertRaisesRegex(TypeError, r'object.__init__\(\) takes no argument'):
object.__init__(E(), 42)
if __name__ == '__main__':
unittest.main()
|
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { storiesOf } from '@storybook/react-native';
import { StyleSheet, View } from 'react-native';
import BpkText from 'react-native-bpk-component-text';
import BpkButton from 'react-native-bpk-component-button';
import {
spacingBase,
colorGray50,
animationDurationBase,
} from 'bpk-tokens/tokens/base.react.native';
import BpkAnimateHeight from './index';
const styles = StyleSheet.create({
centered: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center',
padding: spacingBase,
width: '100%',
backgroundColor: colorGray50,
},
container: {
marginBottom: spacingBase,
},
});
const animateHeightContent = (
<BpkText>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus.
</BpkText>
);
class AnimateHeightDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
expanded: !!props.startExpanded,
};
}
onToggle = () => {
this.setState({ expanded: !this.state.expanded });
};
render() {
return (
<View>
<BpkAnimateHeight
expanded={this.state.expanded}
expandDelay={this.props.expandDelay}
collapseDelay={this.props.collapseDelay}
animationDuration={this.props.animationDuration}
style={{ marginBottom: spacingBase }}
>
{this.props.children}
</BpkAnimateHeight>
<BpkButton title="Toggle" onPress={this.onToggle} />
</View>
);
}
}
AnimateHeightDemo.propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
expandDelay: PropTypes.number,
collapseDelay: PropTypes.number,
animationDuration: PropTypes.number,
startExpanded: PropTypes.bool,
};
AnimateHeightDemo.defaultProps = {
children: null,
expandDelay: 0,
collapseDelay: 0,
animationDuration: animationDurationBase,
startExpanded: false,
};
storiesOf('react-native-bpk-component-animate-height', module)
.addDecorator(getStory => <View style={styles.centered}>{getStory()}</View>)
.add('Default', () => (
<AnimateHeightDemo>{animateHeightContent}</AnimateHeightDemo>
))
.add('Custom animation duration', () => (
<AnimateHeightDemo animationDuration={1000}>
{animateHeightContent}
</AnimateHeightDemo>
))
.add('With expand delay', () => (
<AnimateHeightDemo expandDelay={1000}>
{animateHeightContent}
</AnimateHeightDemo>
))
.add('With collapse delay', () => (
<AnimateHeightDemo collapseDelay={1000}>
{animateHeightContent}
</AnimateHeightDemo>
))
.add('Start expanded', () => (
<AnimateHeightDemo startExpanded>{animateHeightContent}</AnimateHeightDemo>
));
|
import torch
import torch.nn as nn
import torch.functional as F
import matplotlib.pyplot as plt
class CNN(nn.Module):
def __init__(self):
super(CNN, self).__init__()
# self.nn = nn
self.conv1 = nn.Sequential(
nn.Conv2d(in_channels=3, out_channels=64,
kernel_size=(5, 5), stride=1, padding=2),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(2, 2)))
self.conv2 = nn.Sequential(
nn.Conv2d(64, 128, (3, 3), 1, 2),
nn.ReLU(),
nn.MaxPool2d(kernel_size=(2, 2)))
# self.conv3 = nn.Sequential(
# nn.Conv2d(256, 64, (3, 3), 1, 2),
# nn.ReLU(),
# nn.MaxPool2d(kernel_size=(2, 2)))
self.ln1 = nn.Linear(88704, 256)
self.out = nn.Linear(256, 3)
def forward(self, x):
x = self.conv1(x)
x = self.conv2(x)
# x = self.conv3(x)
x = x.view(x.size(0), -1)
x = self.ln1(x)
x = self.out(x)
# output = F.
output = x
return output
# def forward(self, x):
# x = self.conv1(x)
# x = self.conv2(x)
# x = x.view(x.size(0), -1)
# self.out = nn.Linear(x.size(1), 10).to(device_0)
# output = self.out(x)
# return output
# if isPoltSave is True:
# test_output = cnn(test_datas[:10])
# pred_y = torch.max(test_output, 1)[1].data.squeeze()
# print(pred_y, 'prediction number')
# print(test_labels[:10], 'real number')
|
# interval list .tsv file column names
contig_column_name = "CONTIG"
start_column_name = "START"
end_column_name = "END"
count_column_name = "COUNT"
# prefix for saving posteriors for multiple samples
sample_folder_prefix = "SAMPLE_"
# log copy number posterior matrix column name prefix for each integer copy number state
copy_number_column_prefix = "COPY_NUMBER_"
# ploidy prior table header column names
ploidy_prior_contig_name_column = "CONTIG_NAME"
ploidy_prior_prefix = "PLOIDY_PRIOR_"
# column names for ploidy and depth .tsv outputs
sample_name_column_name = "SAMPLE_NAME"
global_read_depth_column_name = "GLOBAL_READ_DEPTH"
average_ploidy_column_name = "AVERAGE_PLOIDY"
ploidy_column_name = "PLOIDY"
ploidy_gq_column_name = "PLOIDY_GQ"
# column names for copy-number segments file
call_copy_number_column_name = "CALL_COPY_NUMBER"
num_points_column_name = "NUM_POINTS"
quality_some_called_column_name = "QUALITY_SOME_CALLED"
quality_all_called_column_name = "QUALITY_ALL_CALLED"
quality_start_column_name = "QUALITY_START"
quality_end_column_name = "QUALITY_END"
# column name for baseline copy-number file
baseline_copy_number_column_name = "BASELINE_COPY_NUMBER"
# column name for denoised copy-number files
denoised_copy_ratio_mean_column_name = "DENOISED_COPY_RATIO_MEAN"
denoised_copy_ratio_std_column_name = "DENOISED_COPY_RATIO_STD"
# regular expression for matching sample name from header comment line
sample_name_header_regexp = "^@RG.*SM:(.*)[\t]*.*$"
# prefix for adding sample name as a header comment line
sample_name_sam_header_prefix = "RG\tID:GATKCopyNumber\tSM:"
default_comment_char = "@"
default_delimiter_char = "\t"
# default file names for loading and saving models, posteriors, and configurations
default_sample_read_depth_tsv_filename = "global_read_depth.tsv"
default_sample_name_txt_filename = "sample_name.txt"
default_sample_contig_ploidy_tsv_filename = "contig_ploidy.tsv"
default_copy_number_log_posterior_tsv_filename = "log_q_c_tc.tsv"
default_copy_number_log_emission_tsv_filename = "log_c_emission_tc.tsv"
default_class_log_posterior_tsv_filename = "log_q_tau_tk.tsv"
default_baseline_copy_number_tsv_filename = "baseline_copy_number_t.tsv"
default_copy_number_segments_tsv_filename = "copy_number_segments.tsv"
default_denoised_copy_ratios_mean_tsv_filename = "denoised_copy_ratios_mu.tsv"
default_denoised_copy_ratios_std_tsv_filename = "denoised_copy_ratios_std.tsv"
default_denoising_config_json_filename = "denoising_config.json"
default_calling_config_json_filename = "calling_config.json"
default_ploidy_config_json_filename = "ploidy_config.json"
default_gcnvkernel_version_json_filename = "gcnvkernel_version.json"
default_interval_list_filename = "interval_list.tsv"
default_contig_ploidy_prior_tsv_filename = "contig_ploidy_prior.tsv"
default_adamax_m_filename = "adamax_m.npy"
default_adamax_u_filename = "adamax_u.npy"
default_adamax_res_filename = "adamax_res.npy"
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 15.5h-1.5V14h-1v3H8v-3H7v4.5H5.5v-5c0-.55.45-1 1-1H11c.55 0 1 .45 1 1v5zm3-8.5h-1v1.5h-1.5V10h-3V5.5H11v3h1.5v-3H14v3h1V10zm.5 8.5H14v-6h3.5c.55 0 1 .45 1 1V16c0 .55-.45 1-1 1h-2v1.5zm0-4.5H17v1.5h-1.5z"
}), 'FourMp');
|
"""Odin server asyncio utility functions.
This module implements asyncio-based utility functions needed in odin-control when using
asynchronous adapters.
Tim Nicholls, STFC Detector System Software Group.
"""
import asyncio
def wrap_async(object):
"""Wrap an object in an async future.
This function wraps an object in an async future and is called from wrap_result when
async objects are wrapped in python 3. A future is created, its result set to the
object passed in, and returned to the caller.
:param object: object to wrap in a future
:return: a Future with object as its result
"""
future = asyncio.Future()
future.set_result(object)
return future
def get_async_event_loop():
"""Get the asyncio event loop.
This function obtains and returns the current asyncio event loop. If no loop is present, a new
one is created and set as the event loop.
:return: an asyncio event loop
"""
try:
loop = asyncio.get_event_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
def run_async(func, *args, **kwargs):
"""Run an async function synchronously in an event loop.
This function can be used to run an async function synchronously, i.e. without the need for an
await() call. The function is run on an asyncio event loop and the result is returned.
:param func: async function to run
:param args: positional arguments to function
:param kwargs:: keyword arguments to function
:return: result of function
"""
loop = get_async_event_loop()
result = loop.run_until_complete(func(*args, **kwargs))
return result
|
import sancty.run as sancty_run
if __name__ == '__main__':
sancty_run.start_terminal()
|
var _ = require('underscore');
var $ = require('jquery');
var nodeIds = require('builder/value-objects/analysis-node-ids');
var MetricsTracker = require('builder/components/metrics/metrics-tracker');
var MetricsTypes = require('builder/components/metrics/metrics-types');
var SimpleStyleDefaults = require('builder/editor/style/style-defaults/simple-style-defaults');
var camshaftReference = require('./camshaft-reference');
var layerTypesAndKinds = require('./layer-types-and-kinds');
var layerColors = require('./layer-colors');
var Notifier = require('builder/components/notifier/notifier');
var resetStylePerNode = require('builder/helpers/reset-style-per-node');
var Router = require('builder/routes/router');
var TABLE_ORIGIN = 'table';
/**
* Coordinate side-effects done on explicit interactions.
* @param {Object} params
* @param {Object} params.userModel
* @param {Object} params.analysisDefinitionsCollection
* @param {Object} params.analysisDefinitionNodesCollection
* @param {Object} params.widgetDefinitionsCollection
* @return {Object} that contains all user-actions that the user may do related to a map
*/
module.exports = function (params) {
if (!params.userModel) throw new Error('userModel is required');
if (!params.analysisDefinitionsCollection) throw new Error('analysisDefinitionsCollection is required');
if (!params.analysisDefinitionNodesCollection) throw new Error('analysisDefinitionNodesCollection is required');
if (!params.layerDefinitionsCollection) throw new Error('layerDefinitionsCollection is required');
if (!params.widgetDefinitionsCollection) throw new Error('widgetDefinitionsCollection is required');
var userModel = params.userModel;
var analysisDefinitionsCollection = params.analysisDefinitionsCollection;
var analysisDefinitionNodesCollection = params.analysisDefinitionNodesCollection;
var layerDefinitionsCollection = params.layerDefinitionsCollection;
var widgetDefinitionsCollection = params.widgetDefinitionsCollection;
var createDefaultCartoDBAttrs = function (oldLayerStyle) {
return {
kind: 'carto',
options: {
interactivity: '',
tile_style: (oldLayerStyle && oldLayerStyle.options.tile_style) || camshaftReference.getDefaultCartoCSSForType(),
cartocss: (oldLayerStyle && oldLayerStyle.options.tile_style) || camshaftReference.getDefaultCartoCSSForType(),
style_version: '2.1.1',
visible: true,
style_properties: (oldLayerStyle && oldLayerStyle.options.style_properties),
sql_wrap: (oldLayerStyle && oldLayerStyle.options.sql_wrap)
},
tooltip: oldLayerStyle ? oldLayerStyle.tooltip : {},
infowindow: oldLayerStyle ? oldLayerStyle.infowindow : {}
};
};
var deleteOrphanedAnalyses = function () {
analysisDefinitionNodesCollection
.toArray()
.forEach(function (nodeDefModel) {
if (!layerDefinitionsCollection.anyContainsNode(nodeDefModel)) {
nodeDefModel.destroy();
}
});
analysisDefinitionsCollection
.toArray()
.forEach(function (analysisDefModel) {
if (!analysisDefModel.getNodeDefinitionModel()) {
analysisDefModel.destroy();
}
});
};
var restoreWidgetsFromLayer = function (affectedWidgets, layerDefModel, callback, callbackOptions) {
if (!affectedWidgets || !_.isArray(affectedWidgets)) throw new Error('affectedWidgets is required');
if (!layerDefModel) throw new Error('layerDefModel is required');
if (!callback) throw new Error('callback is required');
var notification;
var restoringError;
var onWidgetFinished = _.after(affectedWidgets.length, function () {
if (notification) {
if (!restoringError) {
notification.set({
status: 'success',
info: _t('notifications.widgets.restored'),
closable: true
});
} else {
Notifier.removeNotification(notification);
}
}
callback(layerDefModel, callbackOptions);
});
if (affectedWidgets.length > 0) {
notification = Notifier.addNotification({
status: 'loading',
info: _t('notifications.widgets.restoring'),
closable: false
});
// Create widgets with new source and layer_id
_.each(affectedWidgets, function (attrs) {
attrs.layer_id = attrs.layer_id || layerDefModel.id;
widgetDefinitionsCollection.create(
attrs, {
wait: true,
success: onWidgetFinished,
error: function (e, mdl) {
notification = Notifier.addNotification({
status: 'error',
info: _t('notifications.widgets.error.title') +
_t('notifications.widgets.error.body', {
body: '',
error: mdl && mdl.get('title')
}),
closable: true
});
restoringError = true;
onWidgetFinished();
}
}
);
});
} else {
callback(layerDefModel, callbackOptions);
}
};
return {
_resetStylePerNode: function (nodeDefModel, layerDefModel, forceStyleUpdate, resetQueryReady) {
resetStylePerNode(nodeDefModel, layerDefModel, forceStyleUpdate, resetQueryReady);
},
saveAnalysis: function (analysisFormModel) {
if (!analysisFormModel.isValid()) return;
var nodeDefModel = analysisDefinitionNodesCollection.get(analysisFormModel.id);
if (nodeDefModel) {
analysisFormModel.updateNodeDefinition(nodeDefModel);
var layerDefModel = layerDefinitionsCollection.findOwnerOfAnalysisNode(nodeDefModel);
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
MetricsTracker.track(MetricsTypes.MODIFIED_ANALYSIS, {
analysis: {
id: analysisFormModel.attributes['id'],
natural_id: analysisFormModel.attributes['id'],
type: analysisFormModel.attributes['type']
}
});
this._resetStylePerNode(nodeDefModel, layerDefModel, false, true);
} else {
nodeDefModel = analysisFormModel.createNodeDefinition(this); // delegate creation to the form, but expect it to call userActions.createAnalysisNode when done with its internal stuff
}
nodeDefModel.USER_SAVED = true;
return nodeDefModel;
},
/**
* Creates a new analysis node on a particular layer.
* It's assumed to be created on top of an existing node.
* @param {Object} nodeAttrs
* @param {Object} layerDefModel - instance of layer-definition-model
* @return {Object} instance of analysis-definition-node-model
*/
createAnalysisNode: function (nodeAttrs, layerDefModel) {
var nodeDefModel = analysisDefinitionNodesCollection.add(nodeAttrs, { parse: false });
layerDefModel.save({
cartocss: camshaftReference.getDefaultCartoCSSForType(),
source: nodeDefModel.id
});
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
MetricsTracker.track(MetricsTypes.CREATED_ANALYSIS, {
analysis: {
id: nodeDefModel.attributes['id'],
natural_id: nodeDefModel.attributes['id'],
type: nodeDefModel.attributes['type']
}
});
this._resetStylePerNode(nodeDefModel, layerDefModel);
return nodeDefModel;
},
saveAnalysisSourceQuery: function (query, nodeDefModel, layerDefModel) {
if (!nodeDefModel) throw new Error('nodeDefModel is required');
if (nodeDefModel.get('type') !== 'source') throw new Error('nodeDefModel must be a source node');
nodeDefModel.set('query', query || '');
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
this._resetStylePerNode(nodeDefModel, layerDefModel);
layerDefModel.save(); // to make sure layer's source ref is persisted
},
saveWidgetOption: function (widgetOptionModel) {
if (!widgetOptionModel) throw new Error('widgetOptionModel is required');
if (widgetOptionModel.analysisDefinitionNodeModel()) { // Might not always have a node-definition, e.g. time-series none-option
var layerDefModel = widgetOptionModel.layerDefinitionModel();
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
}
// delegate back to form model to decide how to save
return widgetOptionModel.save(widgetDefinitionsCollection);
},
goToEditWidget: function (widgets) {
if (widgets.length === 1) {
Router.goToWidget(widgets[0].id);
}
},
updateWidgetsOrder: function (widgets) {
return widgetDefinitionsCollection.updateWidgetsOrder(widgets);
},
saveWidget: function (widgetDefModel, saveLayerAnalysis = true, saveOnlyOwnedAnalysis = false) {
if (!widgetDefModel) throw new Error('widgetDefModel is required');
if (saveLayerAnalysis) {
var widgetLayerId = widgetDefModel.get('layer_id');
layerDefinitionsCollection.some(function (layerDefModel) {
if (layerDefModel.id === widgetLayerId) {
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel, !saveOnlyOwnedAnalysis);
return true; // aborts the "some"-iterator
}
});
}
return widgetDefModel.save();
},
deleteAnalysisNode: function (nodeId) {
var nodeDefModel = analysisDefinitionNodesCollection.get(nodeId);
if (!nodeDefModel) return false; // abort if there is no node-definition; nothing to delete/change
if (!nodeDefModel.canBeDeletedByUser()) return false;
var layerDefModel = layerDefinitionsCollection.findOwnerOfAnalysisNode(nodeDefModel);
var primarySourceNode = nodeDefModel.getPrimarySource();
var containsNode = function (m) {
return m !== layerDefModel && m !== nodeDefModel && m.containsNode(nodeDefModel);
};
_
.flatten([
widgetDefinitionsCollection.filter(containsNode),
layerDefinitionsCollection.filter(containsNode),
analysisDefinitionsCollection.filter(containsNode),
analysisDefinitionNodesCollection.filter(containsNode),
nodeDefModel
], true)
.forEach(function (m) {
m.destroy();
});
// Try to restore old styles if we have them, reset them if not
var oldNodeStyle = primarySourceNode.getStyleHistoryForLayer(layerDefModel.id);
if (oldNodeStyle) {
layerDefModel.set({ source: primarySourceNode.id }, { ignoreSchemaChange: true });
layerDefModel.styleModel.set(layerDefModel.styleModel.parse(oldNodeStyle.options.style_properties));
layerDefModel.set({
cartocss: oldNodeStyle.options.tile_style,
infowindow: oldNodeStyle.infowindow,
tooltip: oldNodeStyle.tooltip,
sql_wrap: oldNodeStyle.options.sql_wrap
});
} else {
layerDefModel.set({ source: primarySourceNode.id });
}
layerDefModel.save();
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
MetricsTracker.track(MetricsTypes.DELETED_ANALYSIS, {
analysis: {
id: nodeDefModel.attributes['id'],
natural_id: nodeDefModel.attributes['id'],
type: nodeDefModel.attributes['type']
}
});
this._resetStylePerNode(primarySourceNode, layerDefModel);
deleteOrphanedAnalyses();
},
/**
* Create a new layer for a given table name
* @param {model} [tableModel]
* @param {object} [options]
* @param {number} [options.at]
*/
createLayerFromTable: function (tableModel, options) {
options = options || {};
var tableName = tableModel.getUnqualifiedName();
var ownerName = tableModel.getOwnerName() || userModel.get('username');
var tableGeometry = tableModel.getGeometryType() && tableModel.getGeometryType()[0];
// Setting at assumes there to be at least one non-basemap layer
var at = options.at || layerDefinitionsCollection.length;
var layerOnTop = layerDefinitionsCollection.getLayerOnTop();
var layerOnTopPos = layerDefinitionsCollection.indexOf(layerOnTop);
var hasTorque = layerDefinitionsCollection.isThereAnyTorqueLayer();
var hasLabels = layerOnTop &&
!layerTypesAndKinds.isCartoDBType(layerOnTop.get('type')) &&
!layerTypesAndKinds.isTorqueType(layerOnTop.get('type'));
if (hasTorque || hasLabels) {
layerOnTop.set('order', layerOnTopPos + 1); // persisted on collection.save in success callback below
if (hasLabels) { at--; }
if (hasTorque) { at--; }
}
var newLetter = layerDefinitionsCollection.nextLetter();
var attrs = createDefaultCartoDBAttrs();
attrs.letter = newLetter;
attrs.options.table_name = tableName;
if (ownerName) {
attrs.options.user_name = ownerName;
}
if (tableGeometry) {
attrs.options.style_properties = {
type: 'simple',
properties: SimpleStyleDefaults.generateAttributes(tableGeometry)
};
}
analysisDefinitionNodesCollection.addRelatedTableData(tableModel.toJSON());
return layerDefinitionsCollection.create(attrs, {
wait: true,
at: at,
error: options.error,
origin: TABLE_ORIGIN,
success: function () {
layerDefinitionsCollection.each(function (layerDefModel) {
if (!layerDefModel.isDataLayer()) return;
if (analysisDefinitionsCollection.findAnalysisForLayer(layerDefModel)) return;
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
});
layerDefinitionsCollection.save();
var newLayerModel = _.last(layerDefinitionsCollection.models);
options.success && options.success(newLayerModel);
}
});
},
/**
* A layer for an existing node have different side-effects depending on the context in which the node exists.
* @param {string} nodeid
* @param {string} letter of the layer where the node change comes
* @param {object} cfg
* @param {number} cfg.at
*/
createLayerForAnalysisNode: function (nodeId, fromLayerLetter, cfg) {
var userMaxLayers = userModel.get('limits').max_layers;
if (layerDefinitionsCollection.getNumberOfDataLayers() >= userMaxLayers) {
var err = new Error('max layers reached');
err.userMaxLayers = userMaxLayers;
throw err;
}
var nodeDefModel = analysisDefinitionNodesCollection.get(nodeId);
if (!nodeDefModel) throw new Error('node with id ' + nodeId + ' does not exist');
if (!cfg) throw new Error('cfg is required');
if (isNaN(cfg.at) || cfg.at <= 0) throw new Error('cfg.at must be on top of the base layer');
var newPosition = cfg.at;
var attrs;
var tableName;
var tableNameAlias;
var ownerName;
var oldNodeStyle;
var movementType;
var newLetter = layerDefinitionsCollection.nextLetter();
var affectedWidgetAttrsBySourceChange = [];
var onNewLayerSaved = function (layer, forceResetStyles) {
this._resetStylePerNode(layer.getAnalysisDefinitionNodeModel(), layer, forceResetStyles);
layerDefinitionsCollection.save(); // to persist layers order
MetricsTracker.track(MetricsTypes.DRAGGED_NODE);
}.bind(this);
var prevLayer = layerDefinitionsCollection.findWhere({ source: nodeId, letter: fromLayerLetter });
if (prevLayer) {
if (nodeDefModel.hasPrimarySource()) {
// Node is head of a layer, e.g. given nodeId A3 it should rename prev layer (A => B), and create a new layer (A)
// where the prev layer was to take over its letter identity and its primary source (A2).
// The motivation for this is to maintain the layer's state (styles, popup etc.) which really depends on the
// last analysis output than the layer itself:
// _______ _______ ______
// | A | | A | | B | <-- note that B is really A which just got moved & had it's nodes renamed
// | | | | | |
// | {A3} | => | | | {B1} |
// | [A2] | | [A2] | | [A2] |
// | [A1] | | [A1] | | |
// | [A0] | | [A0] | | |
// |______| |______| |______|
movementType = '1';
var prevOrder = layerDefinitionsCollection.indexOf(prevLayer);
var prevLetter = fromLayerLetter;
// Change identity of prevLayer (A) so it appears as the new layer (B), including its analysis
var renamedNodeId = newLetter + '1';
var renamedNodeDefModel = nodeDefModel.clone(renamedNodeId); // e.g. A3 => B1
analysisDefinitionNodesCollection.invoke('changeSourceIds', nodeId, renamedNodeId);
// We have to manage all widgets associated with the layer due to the operations we do
// creating a new one and managing the previous one
var prevLayerNodeIds = _.pluck(prevLayer.ownedPrimaryAnalysisNodes(), 'id');
var affectedWidgetsBySourceChange = widgetDefinitionsCollection.filter(function (widgetDefModel) {
return _.contains(prevLayerNodeIds, widgetDefModel.get('source'));
});
_.each(affectedWidgetsBySourceChange, function (widgetDefModel) {
var attrs;
var widgetSourceId = widgetDefModel.get('source');
// If this widget doesn't point to the "dragged" node, it will
// keep the source but the layer_id will be totally different
if (widgetSourceId !== nodeId) {
attrs = _.extend(
_.omit(widgetDefModel.toJSON(), 'id', 'layer_id', 'order'),
{
avoidNotification: true
}
);
} else {
// On the other hand, if there is a widget pointing to the dragged node,
// it will keep the layer_id but the source will be different
attrs = _.extend(
_.omit(widgetDefModel.toJSON(), 'id', 'source', 'order'),
{
source: {
id: renamedNodeId
},
avoidNotification: true
}
);
}
affectedWidgetAttrsBySourceChange.push(attrs);
widgetDefModel.attributes.avoidNotification = true;
widgetDefModel.destroy();
});
analysisDefinitionsCollection.newAnalysisForNode(renamedNodeDefModel); // will be saved by saveAnalysisForLayer later since containing that layer's node
// Modify all layers using the old node as top source and it doesn't have an analysis definition associated
layerDefinitionsCollection.each(function (layerDefModel) {
var containsAnalysisDefinition = analysisDefinitionsCollection.findAnalysisForLayer(layerDefModel);
if (!containsAnalysisDefinition && layerDefModel.get('source') === nodeId) {
layerDefModel
.set('source', renamedNodeId)
.save();
}
});
// New layer takes over the identity of the old layer (A), and its primary source as its head node
// We apply the styles from the new header node (A2) if available
oldNodeStyle = nodeDefModel.getPrimarySource().getStyleHistoryForLayer(prevLayer.id);
tableName = prevLayer.get('table_name');
tableNameAlias = prevLayer.get('table_name_alias');
ownerName = prevLayer.get('user_name') || userModel.get('username');
attrs = createDefaultCartoDBAttrs(oldNodeStyle);
attrs.options = _.extend({}, attrs.options, {
sql: 'SELECT * FROM ' + tableName,
table_name: tableName,
table_name_alias: tableNameAlias,
letter: prevLetter,
color: layerColors.getColorForLetter(prevLetter),
source: nodeDefModel.getPrimarySource().id
});
if (ownerName) {
attrs.options.user_name = ownerName;
}
// Tell the backend that this layer is a copy of the old one, and how to rename the analysis nodes.
// This is used to keep the style_history valid in both the old a new layer
attrs.from_layer_id = prevLayer.get('id');
attrs.from_letter = prevLetter;
var newLayerDefModel = layerDefinitionsCollection.add(attrs, { at: prevOrder });
var saveAnalysis = analysisDefinitionsCollection.saveAnalysisForLayer(newLayerDefModel);
$.when(saveAnalysis)
.done(function () {
// Update the layer after the analyses request
prevLayer.save({
letter: newLetter,
color: layerColors.getColorForLetter(newLetter),
source: renamedNodeId
}, { ignoreSchemaChange: true });
})
.fail(function () {
Notifier.addNotification({
status: 'error',
info: _t('notifications.analysis.failed'),
closable: true
});
});
// Remove and add prevLayer (A), to move the layers to expected positions
layerDefinitionsCollection.remove(prevLayer, { silent: true }); // silent to avoid unwanted side-effects; re-added again later
layerDefinitionsCollection.add(prevLayer, { at: newPosition });
// Reset styles from previous layer
this._resetStylePerNode(prevLayer.getAnalysisDefinitionNodeModel(), prevLayer);
newLayerDefModel.save(null, {
success: function () {
restoreWidgetsFromLayer(affectedWidgetAttrsBySourceChange, newLayerDefModel, onNewLayerSaved, !oldNodeStyle);
},
error: function () {
Notifier.addNotification({
status: 'error',
info: _t('notifications.layer.error'),
closable: true
});
}
});
nodeDefModel.destroy(); // replaced by new node
} else {
// Node is the source of a prevLayer
// Create a new layer which simply points to that source
// _______ _______ ______
// | A | | A | | B |
// | | | | | |
// | [A0] | => | [A0] | | [A0] |
// |______| |______| |______|
movementType = '2';
// Keep the same style in the new layer
oldNodeStyle = {
options: {
tile_style: prevLayer.get('cartocss'),
sql_wrap: prevLayer.get('sql_wrap'),
style_properties: prevLayer.get('style_properties')
},
infowindow: prevLayer.get('infowindow'),
tooltip: prevLayer.get('tooltip')
};
tableName = prevLayer.get('table_name');
tableNameAlias = prevLayer.get('table_name_alias');
ownerName = prevLayer.get('user_name') || userModel.get('username');
attrs = createDefaultCartoDBAttrs(oldNodeStyle);
attrs.options = _.extend({}, attrs.options, {
sql: 'SELECT * FROM ' + tableName,
table_name: tableName,
table_name_alias: tableNameAlias,
letter: newLetter,
color: layerColors.getColorForLetter(newLetter),
source: nodeId
});
if (ownerName) {
attrs.options.user_name = ownerName;
}
newLayerDefModel = layerDefinitionsCollection.create(attrs, {
at: newPosition,
success: function () {
onNewLayerSaved(newLayerDefModel, false);
},
error: function () {
Notifier.addNotification({
status: 'error',
info: _t('notifications.layer.error'),
closable: true
});
}
});
}
} else {
// Node is NOT a head of a node, e.g. given nodeId is 'a2' this would create a new layer B which takes over the
// ownership of the given node and its underlying nodes
// _______ _______ ______
// | A | | A | | B |
// | | | | | |
// | [A3] | | [A3] | | {B2} |
// | {A2} | => | {B2} | | [B1] |
// | [A1] | | | | [B0] |
// | [A0] | | | | |
// |______| |______| |______|
movementType = '3';
var linkedNodesList = nodeDefModel.linkedListBySameLetter();
var moveNode = function (oldNode) {
var newId = nodeIds.changeLetter(oldNode.id, newLetter);
var newNode = oldNode.clone(newId);
var affectedWidgetsBySourceChange = widgetDefinitionsCollection.where({ source: oldNode.id });
analysisDefinitionNodesCollection.invoke('changeSourceIds', oldNode.id, newId);
_.each(affectedWidgetsBySourceChange, function (m) {
// Store attrs from affected widget for creating a new
// instance when layer is created
affectedWidgetAttrsBySourceChange.push(
_.extend(
_.omit(m.toJSON(), 'id', 'layer_id', 'source', 'order'),
{
avoidNotification: true,
source: {
id: newId
}
}
)
);
// Destroy widgets pointing to that source until new layer is created
m.attributes.avoidNotification = true;
m.destroy();
});
return newNode;
};
var newLayerHeadNode = moveNode(linkedNodesList[0]);
_.rest(linkedNodesList).forEach(moveNode);
// Create the new layer (B). Copy the layer style from the dragged node.
var ownerLayer = layerDefinitionsCollection.findOwnerOfAnalysisNode(nodeDefModel);
oldNodeStyle = nodeDefModel.getStyleHistoryForLayer(ownerLayer.id);
tableName = ownerLayer.get('table_name');
tableNameAlias = ownerLayer.get('table_name_alias');
ownerName = ownerLayer.get('user_name') || userModel.get('username');
attrs = createDefaultCartoDBAttrs(oldNodeStyle);
attrs.options = _.extend({}, attrs.options, {
sql: 'SELECT * FROM ' + tableName,
table_name: tableName,
table_name_alias: tableNameAlias,
letter: newLetter,
color: layerColors.getColorForLetter(newLetter),
source: newLayerHeadNode.id
});
if (ownerName) {
attrs.options.user_name = ownerName;
}
// Tell the backend that this layer is a copy of the old one, and how to rename the analysis nodes.
// This is used to keep the style_history valid in both the old a new layer
attrs.from_layer_id = ownerLayer.get('id');
attrs.from_letter = ownerLayer.get('letter');
newLayerDefModel = layerDefinitionsCollection.add(attrs, { at: newPosition });
$.when(analysisDefinitionsCollection.saveAnalysisForLayer(newLayerDefModel))
.done(function () {
newLayerDefModel.save()
.done(function () {
restoreWidgetsFromLayer(affectedWidgetAttrsBySourceChange, newLayerDefModel, onNewLayerSaved, !oldNodeStyle);
})
.fail(function () {
Notifier.addNotification({
status: 'error',
info: _t('notifications.layer.error'),
closable: true
});
});
})
.fail(function () {
Notifier.addNotification({
status: 'error',
info: _t('notifications.analysis.failed'),
closable: true
});
});
nodeDefModel.destroy(); // replaced by new node
}
deleteOrphanedAnalyses();
window.FS && window.FS.log('log', 'Node dragged out case - ' + movementType);
},
moveLayer: function (d) {
var from = d.from;
var to = d.to;
var movingLayer = layerDefinitionsCollection.at(from);
layerDefinitionsCollection.remove(movingLayer, { silent: true });
layerDefinitionsCollection.add(movingLayer, { at: to, parse: false, silent: true });
var saveAnalysisPromises = layerDefinitionsCollection
.chain()
.map(function (layerDefModel) {
var nodeDefModel = layerDefModel.getAnalysisDefinitionNodeModel();
if (nodeDefModel) {
return analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel, false);
}
})
.compact()
.value();
$.when.apply($, saveAnalysisPromises).done(function () { // http://api.jquery.com/jQuery.when/
layerDefinitionsCollection.save({
success: function () {
layerDefinitionsCollection.trigger('layerMoved', movingLayer, from, to);
}
});
});
},
deleteLayer: function (id) {
var layerToDelete = layerDefinitionsCollection.get(id);
if (!layerToDelete.canBeDeletedByUser()) return;
var parentLayer;
var toDestroy = [];
// Iterate over each node in the list, to decide how to remove dependent objects or fold nodes (if possible)
// under another layer's linked nodes list.
var linkedNodesList = layerToDelete.ownedPrimaryAnalysisNodes();
var nodeDefModel;
for (var i = 0; i < linkedNodesList.length; i++) {
nodeDefModel = linkedNodesList[i];
parentLayer = layerDefinitionsCollection.findPrimaryParentLayerToAnalysisNode(nodeDefModel, { exclude: toDestroy });
// No parent layer? delete all dependent objects, since can't move current nodeDefModel elsewhere
if (!parentLayer) {
toDestroy.push(nodeDefModel);
layerDefinitionsCollection.each(function (layer) {
if (layer.containsNode(nodeDefModel)) {
if (!_.contains(toDestroy, layer)) {
toDestroy.push(layer);
}
widgetDefinitionsCollection.each(function (widget) {
if (!_.contains(toDestroy, widget) && widget.containsNode(nodeDefModel)) {
toDestroy.unshift(widget);
}
});
}
});
continue; // to process all sequent nodes in the linekd list, and their (possibly) dependent objects
}
var newParentLinkedNodesList = parentLayer
.ownedPrimaryAnalysisNodes()
.concat(nodeDefModel.linkedListBySameLetter());
// Since will reassign ids from the start of list need to calculate which sequence id to start on
var idSequence = newParentLinkedNodesList.length;
var firstSequence = nodeIds.sequence(newParentLinkedNodesList[0].id);
// If first node has a higher sequence start from that one to avoid issues on renaming nodes
if (idSequence <= firstSequence) {
idSequence = firstSequence;
}
var lastNode = _.last(newParentLinkedNodesList);
if (lastNode.get('type') !== 'source') {
idSequence++; // to start on right id sequence, so last item in newParentLinkedNodesList gets assigned x1 as id, since its source will be a none-source node belong to another layer
}
// Reassign ids one-by-one, from start of list to avoid ids overlapping (e.g. [c2,c1]+[b2,b1] = [c4,c3,c2,c1])
var prevId = parentLayer.get('letter') + idSequence;
var moveNodeToParentLayer = function (node) {
var oldNodeId = node.id;
var newId = nodeIds.prev(prevId);
node.set('id', newId);
// Update any depending objects' source
analysisDefinitionNodesCollection.each(function (m) {
if (!_.contains(toDestroy, m)) {
m.changeSourceIds(oldNodeId, newId, true);
}
});
var maybeUpdateSource = function (m) {
if (m.get('source') === oldNodeId && !_.contains(toDestroy, m)) {
m.save({ source: newId }, { silent: true });
}
};
layerDefinitionsCollection.each(maybeUpdateSource);
widgetDefinitionsCollection.each(maybeUpdateSource);
prevId = newId;
return node;
};
var newParentLayerNode = moveNodeToParentLayer(newParentLinkedNodesList[0]);
_.rest(newParentLinkedNodesList).forEach(moveNodeToParentLayer);
parentLayer.save({ source: newParentLayerNode.id });
break; // since the remaining nodes have been move to a parent layer
}
if (!_.contains(toDestroy, layerToDelete)) {
toDestroy.push(layerToDelete);
}
var promise = $.when.apply($, // http://api.jquery.com/jQuery.when/
_.chain(toDestroy)
.reduce(function (memo, m) {
memo.push(m);
var layerDefModel = layerDefinitionsCollection.get(m.id);
if (layerDefModel) { // Also delete analyses associated with layers that are being deleted
var aDefModel = analysisDefinitionsCollection.findAnalysisForLayer(layerDefModel);
if (aDefModel) {
memo.push(aDefModel);
}
}
return memo;
}, [])
.unique()
.map(function (m) {
m.set({ avoidNotification: true }, { silent: true });
return m.destroy();
})
.value());
if (parentLayer) {
analysisDefinitionsCollection.saveAnalysisForLayer(parentLayer);
}
deleteOrphanedAnalyses();
return promise;
},
/**
* E.g. for styles, infowindows etc.
* @param {object} layerDefModel - layer-definition-model
* @param {object} options
*/
saveLayer: function (layerDefModel, options) {
if (!layerDefModel) throw new Error('layerDefModel is required');
if (layerDefModel.isDataLayer()) {
analysisDefinitionsCollection.saveAnalysisForLayer(layerDefModel);
}
deleteOrphanedAnalyses();
var saveDefaultOptions = {
shouldPreserveAutoStyle: false
};
options = _.extend({}, saveDefaultOptions, options);
return layerDefModel.save(null, options);
}
};
};
|
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.
const path = require('path');
//const TSDocgenPlugin = require("react-docgen-typescript-webpack-plugin");
module.exports = (baseConfig, env, config) => {
config.module.rules.push({
test: /\.scss$/,
use: [
"style-loader",
"css-loader",
"sass-loader",
]
});
if (!config.resolve.alias) {
config.resolve.alias = { "@app": path.resolve(__dirname, "../src") };
} else {
config.resolve.alias["@app"] = path.resolve(__dirname, "../src");
}
return config;
};
|
"""This file contains the app initialization logic"""
import os
from datetime import datetime
from flask import Flask, send_from_directory, g, session, redirect, url_for, request
from werkzeug import find_modules, import_string
from playhouse.db_url import connect
from config import *
from flask_pw import Peewee
from flask_debugtoolbar import DebugToolbarExtension
import app.helpers as helpers
app = Flask(__name__)
app.jinja_env.globals.update(html=helpers)
app.jinja_env.filters['currency'] = helpers.format_currency
app.jinja_env.filters['date'] = helpers.format_date
app.jinja_env.filters['time'] = helpers.format_time
app.jinja_env.filters['datetime'] = helpers.format_datetime
app.config.update(prod)
if prod['DEBUG'] is True or prod['DEBUG'] is None:
app.config.update(dev)
app.debug = True
db = Peewee(app)
#toobar = DebugToolbarExtension(app)
if db:
import app.models as models
app.cli.add_command(db.cli, 'db')
for name in find_modules('app.blueprints'):
mod = import_string(name)
if hasattr(mod, 'blueprint'):
app.register_blueprint(mod.blueprint)
@app.before_request
def before_request():
g.startTime = datetime.now()
g.errors = session.pop("validationErrors", [])
g.hasErrors = len(g.errors) > 0
g.data = session.pop("validationData", {})
g.loggedIn = False
if "user" in session:
try:
g.User = models.User.select().where(models.User.id == session["user"]).get()
if g.User.isDeleted: # force a logout if the user's account has been deleted
session.pop("user", None)
g.loggedIn = True
except:
session.pop('user')
return redirect(url_for('main.login'))
else:
if not request.path.startswith('/static') and \
request.path != url_for('main.login') and request.path != url_for('main.register'):
return redirect(url_for('main.login'))
@app.teardown_request
def teardown_request(exception):
pass
if __name__ == '__main__':
with app.app_context():
app.cli()
|
const ERROR = "ERROR";
const SEND_SMS = "SEND_SMS";
const SMS_SENT = "SMS_SENT";
const SMS_RECIEVED = "SMS_RECIEVED";
module.exports = {
ERROR,
SEND_SMS,
SMS_SENT,
SMS_RECIEVED
};
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include "ViennaRNA/fold_vars.h"
#include "ViennaRNA/alphabet.h"
#include "ViennaRNA/utils/basic.h"
#include "ViennaRNA/constraints/hard.h"
#include "ViennaRNA/constraints/soft.h"
#include "ViennaRNA/loops/external.h"
#include "ViennaRNA/gquad.h"
#include "ViennaRNA/structured_domains.h"
#include "ViennaRNA/unstructured_domains.h"
#include "ViennaRNA/loops/internal.h"
#ifdef __GNUC__
# define INLINE inline
#else
# define INLINE
#endif
#include "internal_hc.inc"
#include "internal_sc.inc"
/*
#################################
# PRIVATE FUNCTION DECLARATIONS #
#################################
*/
PRIVATE int
BT_int_loop(vrna_fold_compound_t *fc,
int *i,
int *j,
int en,
vrna_bp_stack_t *bp_stack,
int *stack_count);
PRIVATE int
BT_stack(vrna_fold_compound_t *fc,
int *i,
int *j,
int *en,
vrna_bp_stack_t *bp_stack,
int *stack_count);
/*
#################################
# BEGIN OF FUNCTION DEFINITIONS #
#################################
*/
PUBLIC int
vrna_BT_int_loop(vrna_fold_compound_t *fc,
int *i,
int *j,
int en,
vrna_bp_stack_t *bp_stack,
int *stack_count)
{
if (fc)
return BT_int_loop(fc, i, j, en, bp_stack, stack_count);
return 0;
}
PUBLIC int
vrna_BT_stack(vrna_fold_compound_t *fc,
int *i,
int *j,
int *en,
vrna_bp_stack_t *bp_stack,
int *stack_count)
{
if (fc)
return BT_stack(fc, i, j, en, bp_stack, stack_count);
return 0;
}
PRIVATE int
BT_stack(vrna_fold_compound_t *fc,
int *i,
int *j,
int *en,
vrna_bp_stack_t *bp_stack,
int *stack_count)
{
unsigned char sliding_window, eval_loop, hc_decompose_ij, hc_decompose_pq;
char *ptype, **ptype_local;
short **SS;
unsigned int n, n_seq, s, *sn, *ss, type, type_2;
int ret, eee, ij, p, q, *idx, *my_c, **c_local, *rtype;
vrna_param_t *P;
vrna_md_t *md;
vrna_hc_t *hc;
eval_hc *evaluate;
struct default_data hc_dat_local;
struct sc_wrapper_int sc_wrapper;
sliding_window = (fc->hc->type == VRNA_HC_WINDOW) ? 1 : 0;
n = fc->length;
n_seq = (fc->type == VRNA_FC_TYPE_SINGLE) ? 1 : fc->n_seq;
sn = fc->strand_number;
ss = fc->strand_start;
SS = (fc->type == VRNA_FC_TYPE_SINGLE) ? NULL : fc->S;
ptype = (sliding_window) ? NULL : fc->ptype;
ptype_local = (sliding_window) ? fc->ptype_local : NULL;
idx = (sliding_window) ? NULL : fc->jindx;
P = fc->params;
md = &(P->model_details);
hc = fc->hc;
my_c = (sliding_window) ? NULL : fc->matrices->c;
c_local = (sliding_window) ? fc->matrices->c_local : NULL;
ij = (sliding_window) ? 0 : idx[*j] + *i;
rtype = &(md->rtype[0]);
p = *i + 1;
q = *j - 1;
ret = 0;
evaluate = prepare_hc_default(fc, &hc_dat_local);
init_sc_wrapper(fc, &sc_wrapper);
eee = (sliding_window) ? c_local[*i][*j - *i] : my_c[ij];
if (eee == *en) {
/* always true, if (i.j) closes canonical structure,
* thus (i+1.j-1) must be a pair
*/
hc_decompose_ij = (sliding_window) ? hc->matrix_local[*i][*j - *i] : hc->mx[n * (*i) + (*j)];
hc_decompose_pq = (sliding_window) ? hc->matrix_local[p][q - p] : hc->mx[n * p + q];
eval_loop = (hc_decompose_ij & VRNA_CONSTRAINT_CONTEXT_INT_LOOP) &&
(hc_decompose_pq & VRNA_CONSTRAINT_CONTEXT_INT_LOOP_ENC);
if (eval_loop && evaluate(*i, *j, p, q, &hc_dat_local)) {
switch (fc->type) {
case VRNA_FC_TYPE_SINGLE:
type = (sliding_window) ?
vrna_get_ptype_window(*i, *j, ptype_local) :
vrna_get_ptype(ij, ptype);
type_2 = (sliding_window) ?
rtype[vrna_get_ptype_window(p, q, ptype_local)] :
rtype[vrna_get_ptype(idx[q] + p, ptype)];
if ((sn[p] == sn[*i]) && (sn[*j] == sn[q])) {
/* regular stack */
*en -= P->stack[type][type_2];
} else {
/* stack like cofold structure */
short si, sj, *S;
S = fc->sequence_encoding;
si = (sn[p] == sn[*i]) ? S[p] : -1;
sj = (sn[*j] == sn[q]) ? S[q] : -1;
*en -= E_IntLoop_Co(rtype[type], rtype[type_2],
*i, *j, p, q,
ss[fc->strand_order[1]],
si, sj,
S[p - 1], S[q + 1],
md->dangles,
P);
}
break;
case VRNA_FC_TYPE_COMPARATIVE:
for (s = 0; s < n_seq; s++) {
type = vrna_get_ptype_md(SS[s][*i], SS[s][*j], md);
type_2 = vrna_get_ptype_md(SS[s][q], SS[s][p], md);
*en -= P->stack[type][type_2];
}
*en += (sliding_window) ? fc->pscore_local[*i][*j - *i] : fc->pscore[ij];
break;
}
if (sc_wrapper.pair)
*en -= sc_wrapper.pair(*i, *j, p, q, &sc_wrapper);
bp_stack[++(*stack_count)].i = p;
bp_stack[(*stack_count)].j = q;
(*i)++;
(*j)--;
ret = 1;
}
}
free_sc_wrapper(&sc_wrapper);
return ret;
}
PRIVATE int
BT_int_loop(vrna_fold_compound_t *fc,
int *i,
int *j,
int en,
vrna_bp_stack_t *bp_stack,
int *stack_count)
{
unsigned char sliding_window, hc_decompose_ij, hc_decompose_pq;
unsigned char eval_loop;
short *S2, **SS;
unsigned int n, n_seq, s, *sn, type, *tt;
int ij, p, q, minq, turn, *idx, no_close, energy, *my_c,
**c_local, ret;
vrna_param_t *P;
vrna_md_t *md;
vrna_hc_t *hc;
eval_hc *evaluate;
struct default_data hc_dat_local;
ret = 0;
sliding_window = (fc->hc->type == VRNA_HC_WINDOW) ? 1 : 0;
n = fc->length;
n_seq = (fc->type == VRNA_FC_TYPE_SINGLE) ? 1 : fc->n_seq;
sn = fc->strand_number;
S2 = (fc->type == VRNA_FC_TYPE_SINGLE) ? fc->sequence_encoding2 : NULL;
SS = (fc->type == VRNA_FC_TYPE_SINGLE) ? NULL : fc->S;
idx = (sliding_window) ? NULL : fc->jindx;
P = fc->params;
md = &(P->model_details);
hc = fc->hc;
my_c = (sliding_window) ? NULL : fc->matrices->c;
c_local = (sliding_window) ? fc->matrices->c_local : NULL;
turn = md->min_loop_size;
ij = (sliding_window) ? 0 : idx[*j] + *i;
tt = NULL;
evaluate = prepare_hc_default(fc, &hc_dat_local);
hc_decompose_ij = (sliding_window) ? hc->matrix_local[*i][*j - *i] : hc->mx[n * (*i) + (*j)];
if (hc_decompose_ij & VRNA_CONSTRAINT_CONTEXT_INT_LOOP) {
for (p = *i + 1; p <= MIN2(*j - 2 - turn, *i + MAXLOOP + 1); p++) {
minq = *j - *i + p - MAXLOOP - 2;
if (minq < p + 1 + turn)
minq = p + 1 + turn;
if (hc->up_int[*i + 1] < (p - *i - 1))
break;
for (q = *j - 1; q >= minq; q--) {
if (hc->up_int[q + 1] < (*j - q - 1))
break;
hc_decompose_pq = (sliding_window) ?
hc->matrix_local[p][q - p] :
hc->mx[n * p + q];
eval_loop = hc_decompose_pq & VRNA_CONSTRAINT_CONTEXT_INT_LOOP_ENC;
if (!(eval_loop && evaluate(*i, *j, p, q, &hc_dat_local)))
continue;
energy = (sliding_window) ?
c_local[p][q - p] :
my_c[idx[q] + p];
energy += vrna_eval_int_loop(fc, *i, *j, p, q);
if (energy == en) {
vrna_sc_t *sc =
(fc->type == VRNA_FC_TYPE_SINGLE) ? fc->sc : (fc->scs ? fc->scs[0] : NULL);
bp_stack[++(*stack_count)].i = p;
bp_stack[(*stack_count)].j = q;
if (sc) {
if (sc->bt) {
vrna_basepair_t *ptr, *aux_bps;
aux_bps = sc->bt(*i, *j, p, q, VRNA_DECOMP_PAIR_IL, sc->data);
for (ptr = aux_bps; ptr && ptr->i != 0; ptr++) {
bp_stack[++(*stack_count)].i = ptr->i;
bp_stack[(*stack_count)].j = ptr->j;
}
free(aux_bps);
}
}
*i = p, *j = q;
ret = 1; /* success */
goto bt_int_exit;
}
}
}
/* is it a g-quadruplex? */
if (md->gquad) {
/*
* The case that is handled here actually resembles something like
* an interior loop where the enclosing base pair is of regular
* kind and the enclosed pair is not a canonical one but a g-quadruplex
* that should then be decomposed further...
*/
switch (fc->type) {
case VRNA_FC_TYPE_SINGLE:
type = (sliding_window) ?
vrna_get_ptype_window(*i, *j, fc->ptype_local) :
vrna_get_ptype(ij, fc->ptype);
no_close = (((type == 3) || (type == 4)) && md->noGUclosure);
if (sliding_window) {
if ((!no_close) && (sn[*j] == sn[*i])) {
if (backtrack_GQuad_IntLoop_L(en, *i, *j, type, S2, fc->matrices->ggg_local,
fc->window_size, &p, &q, P)) {
if (vrna_BT_gquad_mfe(fc, p, q, bp_stack, stack_count)) {
*i = *j = -1; /* tell the calling block to continue backtracking with next block */
ret = 1;
}
}
}
} else {
if ((!no_close) && (sn[*j] == sn[*i])) {
if (vrna_BT_gquad_int(fc, *i, *j, en, bp_stack, stack_count)) {
*i = *j = -1; /* tell the calling block to continue backtracking with next block */
ret = 1;
}
}
}
break;
case VRNA_FC_TYPE_COMPARATIVE:
tt = (unsigned int *)vrna_alloc(sizeof(unsigned int) * n_seq);
for (s = 0; s < n_seq; s++)
tt[s] = vrna_get_ptype_md(SS[s][*i], SS[s][*j], md);
if (sliding_window) {
if (backtrack_GQuad_IntLoop_L_comparative(en, *i, *j, tt, fc->S_cons, fc->S5, fc->S3,
fc->a2s,
fc->matrices->ggg_local, &p, &q, n_seq,
P)) {
if (vrna_BT_gquad_mfe(fc, p, q, bp_stack, stack_count)) {
*i = *j = -1; /* tell the calling block to continue backtracking with next block */
ret = 1;
}
}
} else {
if (backtrack_GQuad_IntLoop_comparative(en, *i, *j, tt, fc->S_cons, fc->S5, fc->S3,
fc->a2s,
fc->matrices->ggg, idx, &p, &q,
n_seq,
P)) {
if (vrna_BT_gquad_mfe(fc, p, q, bp_stack, stack_count)) {
*i = *j = -1; /* tell the calling block to continue backtracking with next block */
ret = 1;
}
}
}
break;
}
}
}
bt_int_exit:
free(tt);
return ret; /* unsuccessful */
}
|
from typing import ClassVar
from pydantic import ValidationError, validator
from odmantic import Model
class SmallRectangle(Model):
MAX_SIDE_SIZE: ClassVar[float] = 10
length: float
width: float
@validator("width", "length")
def check_small_sides(cls, v):
if v > cls.MAX_SIDE_SIZE:
raise ValueError(f"side is greater than {cls.MAX_SIDE_SIZE}")
return v
@validator("width")
def check_width_length(cls, width, values, **kwargs):
length = values.get("length")
if length is not None and width > length:
raise ValueError("width can't be greater than length")
return width
print(SmallRectangle(length=2, width=1))
#> id=ObjectId('5f81e3c073103f509f97e374'), length=2.0, width=1.0
try:
SmallRectangle(length=2)
except ValidationError as e:
print(e)
"""
1 validation error for SmallRectangle
width
field required (type=value_error.missing)
"""
try:
SmallRectangle(length=2, width=3)
except ValidationError as e:
print(e)
"""
1 validation error for SmallRectangle
width
width can't be greater than length (type=value_error)
"""
try:
SmallRectangle(length=40, width=3)
except ValidationError as e:
print(e)
"""
1 validation error for SmallRectangle
length
side is greater than 10 (type=value_error)
"""
|
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import time
from typing import TYPE_CHECKING
from .client_assertion import ClientAssertionCredential
if TYPE_CHECKING:
# pylint:disable=unused-import,ungrouped-imports
from typing import Any
class TokenFileMixin(object):
def __init__(self, token_file_path, **_):
# type: (str, **Any) -> None
super(TokenFileMixin, self).__init__()
self._jwt = ""
self._last_read_time = 0
self._token_file_path = token_file_path
def get_service_account_token(self):
# type: () -> str
now = int(time.time())
if now - self._last_read_time > 300:
with open(self._token_file_path) as f:
self._jwt = f.read()
self._last_read_time = now
return self._jwt
class TokenExchangeCredential(ClientAssertionCredential, TokenFileMixin):
def __init__(self, tenant_id, client_id, token_file_path, **kwargs):
# type: (str, str, str, **Any) -> None
super(TokenExchangeCredential, self).__init__(
tenant_id=tenant_id,
client_id=client_id,
get_assertion=self.get_service_account_token,
token_file_path=token_file_path,
**kwargs
)
|
# coding: utf-8
import os
import math
import functools
import collections
import cairo
import numpy
from sqlalchemy import and_
from shapely import wkb
from mapython import utils
from mapython.database import session, OSMPoint, OSMLine, OSMPolygon
from mapython.style import StyleSheet
GEOM_TYPES = {
'point': OSMPoint,
'line': OSMLine,
'polygon': OSMPolygon
}
# style attributes that can access column values
COLUMN_ATTRS = ('text', )
DEFAULT_STYLE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'styles/default.yml')
BBOX_QUERY_COND = "(%s.way && SetSRID('BOX3D(%s %s, %s %s)'::box3d, 4326))"
TRANSPARENT = (0, 0, 0, 0)
class Renderer(object):
'''
Fetches data from database and renders a map.
:param mapobj: :class:`mapython.draw.Map`
:param stylesheet: :class:`mapython.style.StyleSheet`
:param quiet: specify whether some status information is printed
'''
def __init__(
self,
mapobj,
stylesheet=StyleSheet(DEFAULT_STYLE),
quiet=False
):
self.mapobj = mapobj
self.stylesheet = stylesheet
self.quiet = quiet
self.conflict_list = []
#: add a buffer of 0.05 % around actual bbox so every element
#: is queried from database - e.g. if an element is actually outside
#: of bbox but its visible extents are big enough to intersect
#: the visible map
minx, miny, maxx, maxy = self.mapobj.bbox.bounds
diffx = maxx - minx
diffy = maxy - miny
dilation = 0.0005 * math.sqrt(diffx ** 2 + diffy ** 2)
self.bbox = self.mapobj.bbox.buffer(dilation)
self.verbose_print(
'Zoomlevel:',
self.stylesheet.get_level(self.mapobj.scale)
)
def run(self):
'''
Runs all rendering processes and draws the different layers in the
correct order:
0. map background
1. coastlines
2. polygons
3. lines
4. points
5. conflicts (text, images etc.)
'''
self.mapobj.draw_background(self.stylesheet.map_background)
self.coastlines()
self.polygons()
self.lines()
self.points()
self.conflicts()
def verbose_print(self, *args):
if not self.quiet:
for msg in args:
print msg,
print
def coastlines(self):
'''
Draws coastlines on the map.
TODO: fill map with sea color if no coastline intersects the map but
the area actually is no land mass
'''
coastlines = session.query(OSMLine).filter(and_(
BBOX_QUERY_COND % ((OSMLine.__table__, ) + self.mapobj.bbox.bounds),
OSMLine.natural=='coastline'
)).all()
coastpolygons = session.query(OSMPolygon).filter(and_(
BBOX_QUERY_COND % ((OSMPolygon.__table__, ) + self.mapobj.bbox.bounds),
OSMPolygon.natural=='coastline'
)).all()
# only fill map with sea color if there is a at least one coastline
if coastlines or coastpolygons:
lines = tuple(wkb.loads(str(cl.geom.geom_wkb))
for cl in coastlines)
merged = utils.merge_lines(lines)
islands = []
shorelines = []
for line in merged:
#: closed rings are islands and must be filled with map background
if line.is_ring:
islands.append(line)
else:
inter = line.intersection(self.mapobj.bbox)
points = line.intersection(self.mapobj.bbox.exterior)
#: only add line to closing process if number of intersections
#: with bbox is even. Otherwise we have a incomplete coastline
#: which ends in the visible map
if points.geom_type == 'MultiPoint' and len(points) % 2 == 0 \
and len(points) > 0:
if inter.geom_type == 'LineString':
shorelines.append(inter)
else:
shorelines.extend(inter)
#: save all polygon coordinates as numpy arrays and add to islands
for island in coastpolygons:
islands.append(numpy.array(wkb.loads(str(island.geom.geom_wkb)).exterior))
#: fill water with sea background
shore = None
for shore in utils.close_coastlines(shorelines, self.mapobj.bbox):
self.mapobj.draw_polygon(
exterior=numpy.array(shore),
background_color=self.stylesheet.sea_background
)
#: fill map with sea background if there is no shoreline
if shore is None and islands:
self.mapobj.draw_background(self.stylesheet.sea_background)
#: fill land filled area with map background
for island in islands:
self.mapobj.draw_polygon(
exterior=numpy.array(island),
background_color=self.stylesheet.map_background
)
def polygons(self):
'''Draws polygons on the map.'''
results = self.query_objects('polygon')
for polygons in results:
for polygon in polygons:
geom = wkb.loads(str(polygon.geom.geom_wkb))
background_image = None
if polygon.style.get('background-image') is not None:
background_image = os.path.join(self.stylesheet.dirname,
polygon.style.get('background-image'))
self.mapobj.draw_polygon(
exterior=numpy.array(geom.exterior),
interiors=tuple(numpy.array(i) for i in geom.interiors),
background_color=polygon.style.get('background-color',
TRANSPARENT),
background_image=background_image,
border_width=polygon.style.get('border-width', 0),
border_color=polygon.style.get('border-color',
TRANSPARENT),
border_line_cap=polygon.style.get('border-line-cap',
cairo.LINE_CAP_ROUND),
border_line_join=polygon.style.get('border-line-join',
cairo.LINE_JOIN_ROUND),
border_line_dash=polygon.style.get('border-line-dash'),
)
if polygon.style.get('text') is not None:
self.conflict_list.append(polygon)
def lines(self):
'''Draws lines on the map.'''
results = self.query_objects('line')
for lines in results:
#: draw outline
for line in lines:
# convert WKB to coordinate tuple once for all lines
line.coords = numpy.array(wkb.loads(str(line.geom.geom_wkb)))
if line.style.get('outline-width') is not None:
self.mapobj.draw_line(
coords=line.coords,
color=line.style.outline_color,
width=line.style.width + 2 * line.style.border_width \
+ 2 * line.style.outline_width,
line_cap=line.style.get('outline-line-cap',
cairo.LINE_CAP_ROUND),
line_join=line.style.get('outline-line-join',
cairo.LINE_JOIN_ROUND),
line_dash=line.style.get('outline-line-dash')
)
#: draw border as background so border-lines do not overlap
for line in lines:
if line.style.get('border-width') is not None:
self.mapobj.draw_line(
coords=line.coords,
color=line.style.border_color,
width=line.style.width + 2 * line.style.border_width,
line_cap=line.style.get('border-line-cap',
cairo.LINE_CAP_ROUND),
line_join=line.style.get('border-line-join',
cairo.LINE_JOIN_ROUND),
line_dash=line.style.get('border-line-dash')
)
#: draw actual line
for line in lines:
self.mapobj.draw_line(
coords=line.coords,
color=line.style.color,
width=line.style.width,
line_cap=line.style.get('line-cap', cairo.LINE_CAP_ROUND),
line_join=line.style.get('line-join', cairo.LINE_JOIN_ROUND),
line_dash=line.style.get('line-dash')
)
#: draws line names in reversed order so lines with higher z-index will
#: be rendered first
for lines in reversed(results):
for line in lines:
if line.style.get('text') is not None:
self.conflict_list.append(line)
def points(self):
'''Draws points on the map.'''
results = self.query_objects('point')
for points in results:
for point in points:
if (
point.style.get('text') is not None
or point.style.get('image') is not None
):
self.conflict_list.append(point)
if point.style.get('circle-radius') is not None:
coord = numpy.array(wkb.loads(str(point.geom.geom_wkb)))
self.mapobj.draw_arc(
coord,
radius=point.style.get('circle-radius'),
background_color=point.style.get('circle-background-color',
TRANSPARENT),
background_image=point.style.get('circle-background-image'),
border_width=point.style.get('border-width', 0),
border_color=point.style.get('border-color',
TRANSPARENT),
border_line_cap=point.style.get('border-line-cap',
cairo.LINE_CAP_ROUND),
border_line_join=point.style.get('border-line-join',
cairo.LINE_JOIN_ROUND),
border_line_dash=point.style.get('border-line-dash')
)
def conflicts(self):
'''
Draws all conflicting objects on the map. Conflicting objects are all
objects which should not overlap in the final output, such as text or
images. These objects are rendered in reverse order so objects with
higher z-index are more likely drawn.
'''
# render text in reversed order so points are rendered before
# lines before polygons
for obj in reversed(self.conflict_list):
geom = wkb.loads(str(obj.geom.geom_wkb))
func = None
if geom.geom_type == 'Point':
if (
obj.style.get('text') is not None
and obj.style.get('image') is not None
):
func = functools.partial(
self.mapobj.draw_text,
coord=numpy.array(geom),
image=os.path.join(self.stylesheet.dirname,
obj.style.get('image')),
image_margin=obj.style.get('image-margin', 4)
)
elif obj.style.get('text') is not None:
func = functools.partial(
self.mapobj.draw_text,
coord=numpy.array(geom)
)
elif obj.style.get('image') is not None:
self.mapobj.draw_image(
numpy.array(geom),
os.path.join(self.stylesheet.dirname,
obj.style.get('image'))
)
elif geom.geom_type == 'LineString':
func = functools.partial(
self.mapobj.draw_text_on_line,
coords=numpy.array(geom)
)
else: # Polygon
try:
func = functools.partial(
self.mapobj.draw_text,
coord=numpy.array(geom.representative_point())
)
except ValueError: # geometry may be null value?
pass
if func is not None:
func(
text=getattr(obj, obj.style.text) or '',
color=obj.style.get('text-color', (0, 0, 0)),
font_size=obj.style.get('font-size', 10),
font_family=obj.style.get('font-family',
'Tahoma'),
font_style=obj.style.get('font-style',
cairo.FONT_SLANT_NORMAL),
font_weight=obj.style.get('font-weight',
cairo.FONT_WEIGHT_NORMAL),
text_halo_width=obj.style.get('text-halo-width', 1.5),
text_halo_color=obj.style.get('text-halo-color',
TRANSPARENT),
text_halo_line_cap=obj.style.get('text-halo-line-cap',
cairo.LINE_CAP_ROUND),
text_halo_line_join=obj.style.get('text-halo-line-join',
cairo.LINE_JOIN_ROUND),
text_halo_line_dash=obj.style.get('text-halo-line-dash'),
text_transform=obj.style.get('text-transform'),
)
def query_objects(self, geom_type):
'''
Returns all objects for current scale/geom_type as a 2-dimensional
sorted list (according to z-index specified in stylesheet) and sets
style as attribute to db objects.
:param geom_type: one of ``'point'``, ``'line'`` or ``'polygon'``
:returns: 2-dimensional list containing sorted objects
'''
# create 2-dimensional list so objects can be sorted (may be too many
# sublists as there probably won't be as many z-index's defined as
# MAX_Z_INDEX)
results = [list() for _ in xrange(self.stylesheet.MAX_Z_INDEX)]
# determine database model class
db_class = GEOM_TYPES[geom_type]
counter = 0
# iterate over all visible tags and names
for tags, columns, conditions in self.iter_query_conditions(geom_type):
# simple st_intersects() does not work because this operation
# raises an InternalError exception because of invalid geometries
# in the OSM database
bbox_condition = BBOX_QUERY_COND % (
(db_class.__table__, ) + self.bbox.bounds)
objects = session.query(
# only get necessary columns to increase performance
db_class.geom,
*[getattr(db_class, c) for c in tuple(tags) + tuple(columns)]
).filter(and_(bbox_condition, *conditions)).all()
#: set style attr to obj and sort according to z-index
for obj in objects:
counter += 1
tag_value = dict((tag, getattr(obj, tag)) for tag in tags)
obj.style = self.stylesheet.get(self.mapobj.scale, geom_type,
tag_value)
results[obj.style.get('z-index', 0)].append(obj)
self.verbose_print('> %s %ss' % (counter, geom_type))
return results
def iter_query_conditions(self, geom_type):
'''
Yields tags, columns and conditions for the current scale.
:param geom_type: one of ``'point'``, ``'line'`` or ``'polygon'``
:yields: ``[tags,]``, ``[columns,]``,
``[sqlalchemy binary expressions,]``
'''
db_class = GEOM_TYPES[geom_type]
# only one condition so it can be combined with others to get better
# performance
simple_conds = collections.defaultdict(list)
# multiple contitions
complex_conds = []
# columns which need to be fetched from database
columns = collections.defaultdict(set)
for style in self.stylesheet.iter_styles(self.mapobj.scale, geom_type):
if len(style.tag_value) == 1:
tag, value = style.tag_value.iteritems().next()
simple_conds[tag].append(value)
column_key = tag
else:
complex_conds.append(style.tag_value)
column_key = utils.dict2key(style.tag_value)
#: search for additional columns which need to be fetched from
#: from database
for attr in COLUMN_ATTRS:
if style.get(attr) in db_class.__dict__:
columns[column_key].add(style.get(attr))
for tag, names in simple_conds.iteritems():
yield [tag], columns[tag], [getattr(db_class, tag).in_(names)]
for conds in complex_conds:
tags = []
query_conds = []
for key, value in conds.iteritems():
tags.append(key)
query_conds.append(getattr(db_class, key)==value)
yield tags, columns[utils.dict2key(conds)], query_conds
|
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 22 17:23:56 2016
@author: btq
"""
import numpy as np
import pandas as pd # pandas
import datetime as dt # module for manipulating dates and times
import scipy.stats as stats
import iso8601
import time
import datetime as dt
import requests
"""
Function
--------
scrape_weather
scrape weather from weathersource API
Parameters
----------
from_date : date
First day of the range for which weather data should be obtained
to_date : date
Last day of the range for which weather data should be obtained
Returns
-------
csv : pandas.dataframe
Weather dataframe for dates specified
Example
-------
>>> scrape_weather(dt.date(2012,3,10),dt.date(2012,11,30))
"""
def scrape_weather(from_date,to_date):
#d1 = dt.date(2013,3,10)
#d2 = dt.date(2015,11,30)
delta = to_date - from_date
dates = [str(from_date+dt.timedelta(days=i)) for i in range(delta.days+1)]
weather = pd.DataFrame(columns=['precip', 'snowfall', 'temp', 'timestamp', 'datetime'])
# Loop through all days of interest and obtain hourly weather
for day in dates:
url = "https://api.weathersource.com/v1/f5d417837e1db53fa190/history_by_postal_code.json?period=hour&postal_code_eq=11222&country_eq=US&limit=24×tamp_between=%sT00:00+00:00,%sT24:00+00:00&fields=timestamp,snowfall,temp,precip"% (day,day)
response = requests.get(url).json()
df = pd.DataFrame(response)
df['datetime'] = [iso8601.parse_date(hour['timestamp']) for hour in response]
weather = weather.append(df)
time.sleep(6.1)
print str(day)
weather.reset_index(inplace=True)
weather.drop('index', axis=1, inplace=True)
return weather
weather = scrape_weather(dt.date(2013,9,01),dt.date(2015,12,31))
#weather = scrape_weather(dt.date(2013,3,10),dt.date(2015,11,30))
weather.to_csv(path_or_buf = 'D:\GitHub\citi_bike\data\weather201309_201512.csv')
|
import os
import time
from datetime import datetime
from pathlib import Path
import ndjson
import requests
try:
from secrets import lichess_api_token
except ImportError:
lichess_api_token = ''
def get_json(username='kewko', game_mode="blitz", update=False, ensure_complete=False, maxnum=1000, analysed=None,
prefix=''):
# prefix = 'https://webmin.kewko.win/tunnel/link.cgi/'
if analysed:
json_file_path = f'data/analysed/lichess_{username}_{game_mode}.json'
else:
json_file_path = f'data/lichess_{username}_{game_mode}.json'
url = f'{prefix}https://lichess.org/api/games/user/{username}'
headers = {
'Accept': 'application/x-ndjson',
'Referer': prefix
}
if lichess_api_token:
headers['Authorization'] = f'Bearer {lichess_api_token}'
parameters = {
'rated': 'true',
'perfType': game_mode,
'max': maxnum
}
if analysed:
parameters['evals'] = analysed
parameters['analysed'] = analysed
json_file = Path(json_file_path)
if not json_file.is_file():
print(f"File {json_file_path} not found, downloading...")
r = requests.get(url, headers=headers, params=parameters)
print(r.request)
print(f"Download complete.")
try:
os.mkdir('data')
print("data Directory Created ")
except FileExistsError:
pass
with open(json_file_path, 'w') as f:
json_games = ndjson.loads(r.text)
ndjson.dump(json_games, f)
else:
with open(json_file, 'r') as file:
json_games = ndjson.loads(file.read())
if ensure_complete:
until = json_games[-1]['createdAt']
parameters['until'] = until
old_games = True
while old_games:
until_date = datetime.fromtimestamp(until / 1000)
print(f"Checking games before {until_date:%d/%m/%y %H:%M}...")
t0 = time.time()
try:
r = requests.get(url, headers=headers, params=parameters)
old_games = ndjson.loads(r.text)
except Exception as x:
t1 = time.time()
print(f'It failed after: {t1 - t0} with {x.__class__.__name__}')
else:
print('It eventually worked', r.status_code)
finally:
t2 = time.time()
print('Took', t2 - t0, 'seconds')
if len(old_games) > 0:
until = old_games[-1]['createdAt']
parameters['until'] = until
print(f'Found {len(old_games)} older games.')
json_games += old_games
with open(json_file_path, 'a') as f:
f.write('\n')
ndjson.dump(old_games, f)
else:
print('No older games found')
if not update:
return json_games
since = json_games[0]['createdAt']
parameters['since'] = since
del parameters['max']
since_date = datetime.fromtimestamp(since / 1000)
print(f"Checking games after {since_date:%d/%m/%y %H:%M}...")
r = requests.get(url, headers=headers, params=parameters)
new_games = ndjson.loads(r.content)
if new_games:
print(f'Found {len(new_games)} new games')
with open(json_file_path, 'w') as f:
ndjson.dump(new_games + json_games, f)
else:
print('No newer games found')
return new_games + json_games
def get(url):
try:
return requests.get(url)
except Exception:
# sleep for a bit in case that helps
time.sleep(1)
# try again
return get(url)
|
from typing import Any, TYPE_CHECKING
import copy
from ..config import Config
from ..utils import RichStatus
from .irresource import IRResource
if TYPE_CHECKING:
from .ir import IR # pragma: no cover
class IRCORS (IRResource):
def __init__(self, ir: 'IR', aconf: Config,
rkey: str="ir.cors",
kind: str="IRCORS",
name: str="ir.cors",
**kwargs) -> None:
# print("IRCORS __init__ (%s %s %s)" % (kind, name, kwargs))
super().__init__(
ir=ir, aconf=aconf, rkey=rkey, kind=kind, name=name,
**kwargs
)
def setup(self, ir: 'IR', aconf: Config) -> bool:
# 'origins' cannot be treated like other keys, because if it's a
# list, then it remains as is, but if it's a string, then it's
# converted to a list. It has already been validated by the
# JSON schema to either be a string or a list of strings.
origins = self.pop('origins', None)
if origins is not None:
if type(origins) is not list:
origins = origins.split(',')
self.allow_origin_string_match = [{'exact': origin} for origin in origins]
for from_key, to_key in [ ( 'max_age', 'max_age' ),
( 'credentials', 'allow_credentials' ),
( 'methods', 'allow_methods' ),
( 'headers', 'allow_headers' ),
( 'exposed_headers', 'expose_headers' ) ]:
value = self.pop(from_key, None)
if value:
self[to_key] = self._cors_normalize(value)
# This IRCORS has not been finalized with an ID, so leave with an 'unset' ID so far.
self.set_id('unset')
return True
def set_id(self, group_id: str):
self['filter_enabled'] = {
"default_value": {
"denominator": "HUNDRED",
"numerator": 100
},
"runtime_key": f"routing.cors_enabled.{group_id}"
}
def dup(self) -> 'IRCORS':
return copy.copy(self)
@staticmethod
def _cors_normalize(value: Any) -> Any:
"""
List values get turned into a comma-separated string. Other values
are returned unaltered.
"""
if type(value) == list:
return ", ".join([ str(x) for x in value ])
else:
return value
def as_dict(self) -> dict:
raw_dict = super().as_dict()
for key in list(raw_dict):
if key in ["_active", "_errored", "_referenced_by", "_rkey",
"kind", "location", "name", "namespace", "metadata_labels"]:
raw_dict.pop(key, None)
return raw_dict
|
export default {
addToCart(context, payload) {
return new Promise((resolve, reject) => {
//查找数组中是否有该元素,return 为 true 的话会返回该元素
let cartGoods = context.state.cartList.find(function(item) {
return item.iid === payload.iid
})
if (cartGoods) {
resolve('加入购物车成功 ~')
context.commit('addCount', cartGoods)
} else {
resolve('加入购物车成功 ~')
payload.count = 1
context.commit('addCart', payload)
}
})
}
}
|
/**
* Full HTML5 compatibility rule set
* These rules define which tags and css classes are supported and which tags should be specially treated.
*
* Examples based on this rule set:
*
* <a href="http://foobar.com">foo</a>
* ... becomes ...
* <a href="http://foobar.com" target="_blank" rel="nofollow">foo</a>
*
* <img align="left" src="http://foobar.com/image.png">
* ... becomes ...
* <img class="wysiwyg-float-left" src="http://foobar.com/image.png" alt="">
*
* <div>foo<script>alert(document.cookie)</script></div>
* ... becomes ...
* <div>foo</div>
*
* <marquee>foo</marquee>
* ... becomes ...
* <span>foo</marquee>
*
* foo <br clear="both"> bar
* ... becomes ...
* foo <br class="wysiwyg-clear-both"> bar
*
* <div>hello <iframe src="http://google.com"></iframe></div>
* ... becomes ...
* <div>hello </div>
*
* <center>hello</center>
* ... becomes ...
* <div class="wysiwyg-text-align-center">hello</div>
*/
var wysihtml5ParserRules = {
/**
* CSS Class white-list
* Following css classes won't be removed when parsed by the wysihtml5 html parser
*/
"classes": {
"*":1,
"wysiwyg-clear-both": 1,
"wysiwyg-clear-left": 1,
"wysiwyg-clear-right": 1,
"wysiwyg-color-aqua": 1,
"wysiwyg-color-black": 1,
"wysiwyg-color-blue": 1,
"wysiwyg-color-fuchsia": 1,
"wysiwyg-color-gray": 1,
"wysiwyg-color-green": 1,
"wysiwyg-color-lime": 1,
"wysiwyg-color-maroon": 1,
"wysiwyg-color-navy": 1,
"wysiwyg-color-olive": 1,
"wysiwyg-color-purple": 1,
"wysiwyg-color-red": 1,
"wysiwyg-color-silver": 1,
"wysiwyg-color-teal": 1,
"wysiwyg-color-white": 1,
"wysiwyg-color-yellow": 1,
"wysiwyg-float-left": 1,
"wysiwyg-float-right": 1,
"wysiwyg-font-size-large": 1,
"wysiwyg-font-size-larger": 1,
"wysiwyg-font-size-medium": 1,
"wysiwyg-font-size-small": 1,
"wysiwyg-font-size-smaller": 1,
"wysiwyg-font-size-x-large": 1,
"wysiwyg-font-size-x-small": 1,
"wysiwyg-font-size-xx-large": 1,
"wysiwyg-font-size-xx-small": 1,
"wysiwyg-text-align-center": 1,
"wysiwyg-text-align-justify": 1,
"wysiwyg-text-align-left": 1,
"wysiwyg-text-align-right": 1
},
/**
* Tag list
*
* Following options are available:
*
* - add_class: converts and deletes the given HTML4 attribute (align, clear, ...) via the given method to a css class
* The following methods are implemented in wysihtml5.dom.parse:
* - align_text: converts align attribute values (right/left/center/justify) to their corresponding css class "wysiwyg-text-align-*")
<p align="center">foo</p> ... becomes ... <p> class="wysiwyg-text-align-center">foo</p>
* - clear_br: converts clear attribute values left/right/all/both to their corresponding css class "wysiwyg-clear-*"
* <br clear="all"> ... becomes ... <br class="wysiwyg-clear-both">
* - align_img: converts align attribute values (right/left) on <img> to their corresponding css class "wysiwyg-float-*"
*
* - remove: removes the element and it's content
*
* - rename_tag: renames the element to the given tag
*
* - set_class: adds the given class to the element (note: make sure that the class is in the "classes" white list above)
*
* - set_attributes: sets/overrides the given attributes
*
* - check_attributes: checks the given HTML attribute via the given method
* - url: checks whether the given string is an url, deletes the attribute if not
* - alt: strips unwanted characters. if the attribute is not set, then it gets set (to ensure valid and compatible HTML)
* - numbers: ensures that the attribute only contains numeric characters
*/
"tags": {
"tr": {
"add_class": {
"align": "align_text"
}
},
"strike": {
"remove": 1
},
"form": {
"rename_tag": "div"
},
"rt": {
"rename_tag": "span"
},
"code": {},
"acronym": {
"rename_tag": "span"
},
"br": {
"add_class": {
"clear": "clear_br"
}
},
"details": {
"rename_tag": "div"
},
"h4": {
"add_class": {
"align": "align_text"
}
},
"em": {},
"title": {
"remove": 1
},
"multicol": {
"rename_tag": "div"
},
"figure": {
"rename_tag": "div"
},
"xmp": {
"rename_tag": "span"
},
"small": {
"rename_tag": "span",
"set_class": "wysiwyg-font-size-smaller"
},
"area": {
"remove": 1
},
"time": {
"rename_tag": "span"
},
"dir": {
"rename_tag": "ul"
},
"bdi": {
"rename_tag": "span"
},
"command": {
"remove": 1
},
"ul": {},
"progress": {
"rename_tag": "span"
},
"dfn": {
"rename_tag": "span"
},
"iframe": {
"remove": 1
},
"figcaption": {
"rename_tag": "div"
},
"a": {
"check_attributes": {
"href": "url"
},
"set_attributes": {
"rel": "nofollow",
"target": "_blank"
}
},
"img": {
"check_attributes": {
"width": "numbers",
"alt": "alt",
"src": "url",
"height": "numbers"
},
"add_class": {
"align": "align_img"
}
},
"rb": {
"rename_tag": "span"
},
"footer": {
"rename_tag": "div"
},
"noframes": {
"remove": 1
},
"abbr": {
"rename_tag": "span"
},
"u": {},
"bgsound": {
"remove": 1
},
"sup": {},
"address": {
"rename_tag": "div"
},
"basefont": {
"remove": 1
},
"nav": {
"rename_tag": "div"
},
"h1": {
"add_class": {
"align": "align_text"
}
},
"head": {
"remove": 1
},
"tbody": {
"add_class": {
"align": "align_text"
}
},
"dd": {
"rename_tag": "div"
},
"s": {
"rename_tag": "span"
},
"li": {},
"td": {
"check_attributes": {
"rowspan": "numbers",
"colspan": "numbers"
},
"add_class": {
"align": "align_text"
}
},
"object": {
"remove": 1
},
"div": {
"remove": 0,
"add_class": {
"align": "align_text"
}
},
"option": {
"rename_tag": "span"
},
"select": {
"rename_tag": "span"
},
"i": {},
"track": {
"remove": 1
},
"wbr": {
"remove": 1
},
"fieldset": {
"rename_tag": "div"
},
"big": {
"rename_tag": "span",
"set_class": "wysiwyg-font-size-larger"
},
"button": {
"rename_tag": "span"
},
"noscript": {
"remove": 1
},
"svg": {
"remove": 1
},
"input": {
"remove": 1
},
"table": {},
"keygen": {
"remove": 1
},
"h5": {
"add_class": {
"align": "align_text"
}
},
"meta": {
"remove": 1
},
"map": {
"rename_tag": "div"
},
"isindex": {
"remove": 1
},
"mark": {
"rename_tag": "span"
},
"caption": {
"add_class": {
"align": "align_text"
}
},
"tfoot": {
"add_class": {
"align": "align_text"
}
},
"base": {
"remove": 1
},
"video": {
"remove": 1
},
"strong": {},
"canvas": {
"remove": 1
},
"output": {
"rename_tag": "span"
},
"marquee": {
"rename_tag": "span"
},
"b": {},
"q": {
"check_attributes": {
"cite": "url"
}
},
"applet": {
"remove": 1
},
"span": {},
"rp": {
"rename_tag": "span"
},
"spacer": {
"remove": 1
},
"source": {
"remove": 1
},
"aside": {
"rename_tag": "div"
},
"frame": {
"remove": 1
},
"section": {
"rename_tag": "div"
},
"body": {
"rename_tag": "div"
},
"ol": {},
"nobr": {
"rename_tag": "span"
},
"html": {
"rename_tag": "div"
},
"summary": {
"rename_tag": "span"
},
"var": {
"rename_tag": "span"
},
"del": {
"remove": 1
},
"blockquote": {
"check_attributes": {
"cite": "url"
}
},
"style": {
"remove": 1
},
"device": {
"remove": 1
},
"meter": {
"rename_tag": "span"
},
"h3": {
"add_class": {
"align": "align_text"
}
},
"textarea": {
"rename_tag": "span"
},
"embed": {
"remove": 1
},
"hgroup": {
"rename_tag": "div"
},
"font": {
"rename_tag": "span",
"add_class": {
"size": "size_font"
}
},
"tt": {
"rename_tag": "span"
},
"noembed": {
"remove": 1
},
"thead": {
"add_class": {
"align": "align_text"
}
},
"blink": {
"rename_tag": "span"
},
"plaintext": {
"rename_tag": "span"
},
"xml": {
"remove": 1
},
"h6": {
"add_class": {
"align": "align_text"
}
},
"param": {
"remove": 1
},
"th": {
"check_attributes": {
"rowspan": "numbers",
"colspan": "numbers"
},
"add_class": {
"align": "align_text"
}
},
"legend": {
"rename_tag": "span"
},
"hr": {},
"label": {
"rename_tag": "span"
},
"dl": {
"rename_tag": "div"
},
"kbd": {
"rename_tag": "span"
},
"listing": {
"rename_tag": "div"
},
"dt": {
"rename_tag": "span"
},
"nextid": {
"remove": 1
},
"pre": {},
"center": {
"rename_tag": "div",
"set_class": "wysiwyg-text-align-center"
},
"audio": {
"remove": 1
},
"datalist": {
"rename_tag": "span"
},
"samp": {
"rename_tag": "span"
},
"col": {
"remove": 1
},
"article": {
"rename_tag": "div"
},
"cite": {},
"link": {
"remove": 1
},
"script": {
"remove": 1
},
"bdo": {
"rename_tag": "span"
},
"menu": {
"rename_tag": "ul"
},
"colgroup": {
"remove": 1
},
"ruby": {
"rename_tag": "span"
},
"h2": {
"add_class": {
"align": "align_text"
}
},
"ins": {
"rename_tag": "span"
},
"p": {
"add_class": {
"align": "align_text"
}
},
"sub": {
"rename_tag": "span"
},
"comment": {
"remove": 1
},
"frameset": {
"remove": 1
},
"optgroup": {
"rename_tag": "span"
},
"header": {
"rename_tag": "div"
}
}
};
(function(wysihtml5) {
var undef;
wysihtml5.commands.bold = {
exec: function(composer, command) {
return wysihtml5.commands.formatInline.exec(composer, command, "b");
},
state: function(composer, command, color) {
// element.ownerDocument.queryCommandState("bold") results:
// firefox: only <b>
// chrome: <b>, <strong>, <h1>, <h2>, ...
// ie: <b>, <strong>
// opera: <b>, <strong>
return wysihtml5.commands.formatInline.state(composer, command, "b");
},
value: function() {
return undef;
}
};
wysihtml5.commands.sup = {
exec: function(composer, command) {
return wysihtml5.commands.formatInline.exec(composer, command, "sup");
},
state: function(composer, command, color) {
// element.ownerDocument.queryCommandState("bold") results:
// firefox: only <b>
// chrome: <b>, <strong>, <h1>, <h2>, ...
// ie: <b>, <strong>
// opera: <b>, <strong>
return wysihtml5.commands.formatInline.state(composer, command, "sup");
},
value: function() {
return undef;
}
};
})(wysihtml5);
|
# ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2021 Aarno Labs LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# ------------------------------------------------------------------------------
from typing import List, TYPE_CHECKING
from chb.app.InstrXData import InstrXData
from chb.arm.ARMDictionaryRecord import armregistry
from chb.arm.ARMOpcode import ARMOpcode, simplify_result
from chb.arm.ARMOperand import ARMOperand
import chb.util.fileutil as UF
from chb.util.IndexedTable import IndexedTableValue
if TYPE_CHECKING:
from chb.arm.ARMDictionary import ARMDictionary
@armregistry.register_tag("UMULL", ARMOpcode)
class ARMUnsignedMultiplyLong(ARMOpcode):
"""Multiplies two unsigned 32-bit signed values to produce a 64-bit result
UMULL{S}<c> <RdLo>, <RdHi>, <Rn>, <Rm>
tags[1]: <c>
args[0]: flags are set
args[1]: index of RdLo in armdictionary
args[2]: index of RdHi in armdictionary
args[3]: index of Rn in armdictionary
args[4]: index of Rm in armdictionary
"""
def __init__(
self,
d: "ARMDictionary",
ixval: IndexedTableValue) -> None:
ARMOpcode.__init__(self, d, ixval)
self.check_key(2, 5, "UnsignedMultiplyLong")
@property
def operands(self) -> List[ARMOperand]:
return [self.armd.arm_operand(i) for i in self.args[1:]]
def annotation(self, xdata: InstrXData) -> str:
"""xdata format: a:vxxxx
vars[0]: lhslo
vars[1]: lhshi
xprs[0]: rhs1
xprs[1]: rhs2
xprs[2]: (rhs1 * rhs2)
xprs[3]: (rhs1 * rhs2)
"""
lhslo = str(xdata.vars[0])
lhshi = str(xdata.vars[1])
result = xdata.xprs[2]
rresult = xdata.xprs[3]
xresult = simplify_result(xdata.args[4], xdata.args[5], result, rresult)
return "(" + lhslo + "," + lhshi + ")" + " := " + xresult
|
from typing import NewType
import numpy as np
Action = NewType('Action', int)
Board = NewType('Board', np.ndarray) # 1D array of shape (9,)
BoardForDqn = NewType('BoardForDqn', np.ndarray) # 1D array of shape (27,)
|
class NumMatrix(object):
def __init__(self, matrix):
if not matrix:
return
m, n = len(matrix), len(matrix[0])
self.sum = matrix
for i in range(1, m):
self.sum[i][0] = self.sum[i - 1][0] + matrix[i][0]
for j in range(1, n):
self.sum[0][j] = self.sum[0][j - 1] + matrix[0][j]
for i in range(1, m):
for j in range(1, n):
self.sum[i][j] = matrix[i][j] + self.sum[i][j - 1] + self.sum[i - 1][j] - self.sum[i - 1][j - 1]
def sumRegion(self, row1, col1, row2, col2):
res = self.sum[row2][col2]
if col1 > 0:
res -= self.sum[row2][col1 - 1]
if row1 > 0:
res -= self.sum[row1 - 1][col2]
if row1 > 0 and col1 > 0:
res += self.sum[row1 - 1][col1 - 1]
return res
s = NumMatrix([
[3, 0, 1, 4, 2],
[5, 6, 3, 2, 1],
[1, 2, 0, 1, 5],
[4, 1, 0, 1, 7],
[1, 0, 3, 0, 5]
])
print(s.sumRegion(2, 1, 4, 3))
|
import React from "react";
import { Link } from "react-router-dom";
import { bucket_url } from "../../../config.js";
import mdf from "../../../assets/musee-de-france.jpg";
export default ({ data }) => {
const image = data.IMG.length
? `${bucket_url}${data.IMG[0]}`
: require("../../../assets/noimage.jpg");
const loca = joinData([data.VILLE_M, data.NOMOFF]);
return (
<Link
style={{ textDecoration: "none" }}
to={`/notice/joconde/${data.REF}`}
className="card"
key={data.REF}
>
<img src={image} alt="Lien cassé" />
<div className="content">
<div style={{ display: "flex" }}>
<h2>{data.TITR}</h2>
<span>{data.REF}</span>
</div>
<div>
<p>{data.DOMN.join(", ")}</p>
<p>{data.DENO.join(", ")}</p>
<p>{data.AUTR.join(" ; ")}</p>
<p>{data.PERI.join(", ")}</p>
<p>{loca}</p>
<p>{data.INV}</p>
<img src={mdf} className="producteur" />
</div>
</div>
</Link>
);
};
// (witch can be strings, array, array in arrays, etc.)
function withoutEmptyStrings(data) {
return data
.map(x => x && (Array.isArray(x) ? x.join(", ").trim() : String(x).trim()))
.filter(x => x);
}
// Takes `[["foo", "bar"], ["foo"], "bar"]`, returns "foo, bar ; foo ; bar"
function joinData(data) {
return withoutEmptyStrings(data).join(" ; ");
}
|
/* CCKDUTIL.C (c) Copyright Roger Bowler, 1999-2012 */
/* ESA/390 Compressed CKD Common routines */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
/*-------------------------------------------------------------------*/
/* This module contains functions for compressed CKD devices */
/* used by more than 1 main program. */
/*-------------------------------------------------------------------*/
#include "hstdinc.h"
#define _CCKDUTIL_C_
#define _HDASD_DLL_
#include "hercules.h"
#include "opcode.h"
/*-------------------------------------------------------------------*/
typedef struct _SPCTAB { /* Space table */
BYTE typ; /* Type of space */
int val; /* Value for space */
U32 pos; /* Space offset */
U32 len; /* Space length */
U32 siz; /* Space size */
} SPCTAB;
#define SPCTAB_NONE 0 /* Ignore this space entry */
#define SPCTAB_DEVHDR 1 /* Space is device header */
#define SPCTAB_CDEVHDR 2 /* Space is compressed hdr */
#define SPCTAB_L1 3 /* Space is level 1 table */
#define SPCTAB_L2 4 /* Space is level 2 table */
#define SPCTAB_TRK 5 /* Space is track image */
#define SPCTAB_BLKGRP 6 /* Space is blkgrp image */
#define SPCTAB_FREE 7 /* Space is free block */
#define SPCTAB_EOF 8 /* Space is end-of-file */
/*-------------------------------------------------------------------*/
/* Internal functions */
/*-------------------------------------------------------------------*/
static int comp_spctab_sort(const void *a, const void *b);
static int cdsk_spctab_sort(const void *a, const void *b);
static int cdsk_build_free_space(SPCTAB *spctab, int s);
static int cdsk_valid_trk (int trk, BYTE *buf, int heads, int len);
/*-------------------------------------------------------------------*/
/* Static data areas */
/*-------------------------------------------------------------------*/
static BYTE eighthexFF[] = {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
static char *spaces[] = { "none", "devhdr", "cdevhdr", "l1", "l2",
"trk", "blkgrp", "free", "eof" };
static char *comps[] = { "none", "zlib", "bzip2" };
/*-------------------------------------------------------------------*/
/* EXTERNALGUI support */
/*-------------------------------------------------------------------*/
#ifdef EXTERNALGUI
#define gui_fprintf if (extgui) fprintf
#else
#define gui_fprintf(...)
#endif
/*-------------------------------------------------------------------*/
/* Change the endianess of a compressed file */
/*-------------------------------------------------------------------*/
DLL_EXPORT int cckd_swapend (DEVBLK *dev)
{
CCKDDASD_EXT *cckd; /* -> cckd extension */
int fd; /* File descriptor */
int rc; /* Return code */
struct stat fst; /* File status buffer */
int i; /* Index */
int swapend; /* 1=swap space */
int len; /* Length */
off_t off, lopos, hipos; /* File offsets */
CCKD_DEVHDR cdevhdr; /* Compressed ckd header */
CCKD_L1ENT *l1 = NULL; /* Level 1 table */
CCKD_L2ENT l2[256]; /* Level 2 table */
CCKD_FREEBLK freeblk; /* Free block */
/* Get fd */
cckd = dev->cckd_ext;
if (cckd == NULL)
fd = dev->fd;
else
fd = cckd->fd[cckd->sfn];
/* Get file size */
if (fstat (fd, &fst) < 0)
goto cswp_fstat_error;
gui_fprintf (stderr, "SIZE=%"I64_FMT"u\n", (U64) fst.st_size);
hipos = fst.st_size;
/* Device header */
off = CCKD_DEVHDR_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_DEVHDR_SIZE;
if ((rc = read (fd, &cdevhdr, len)) != len)
goto cswp_read_error;
swapend = (cdevhdr.options & CCKD_BIGENDIAN) != cckd_endian();
cckd_swapend_chdr (&cdevhdr);
cdevhdr.options |= CCKD_ORDWR;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, &cdevhdr, len)) != len)
goto cswp_write_error;
if (!swapend) cckd_swapend_chdr (&cdevhdr);
/* l1 table */
len = cdevhdr.numl1tab * CCKD_L1ENT_SIZE;
if ((l1 = malloc (len)) == NULL)
goto cswp_malloc_error;
off = CCKD_L1TAB_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, l1, len)) != len)
goto cswp_read_error;
cckd_swapend_l1 (l1, (int)cdevhdr.numl1tab);
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, l1, len)) != len)
goto cswp_write_error;
if (!swapend) cckd_swapend_l1 (l1, (int)cdevhdr.numl1tab);
lopos = CCKD_L1TAB_POS + len;
/* l2 tables */
for (i = 0; i < cdevhdr.numl1tab; i++)
{
if (l1[i] == 0 || l1[i] == 0xffffffff
|| l1[i] < lopos || l1[i] > hipos - CCKD_L2TAB_SIZE)
continue;
off = (off_t)l1[i];
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_L2TAB_SIZE;
if ((rc = read (fd, l2, len)) != len)
goto cswp_read_error;
cckd_swapend_l2 (l2);
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, l2, len)) != len)
goto cswp_write_error;
}
free (l1);
l1 = NULL;
/* free space */
if (cdevhdr.free && cdevhdr.free >= lopos
&& cdevhdr.free <= hipos - CCKD_FREEBLK_SIZE)
{
off = (off_t)cdevhdr.free;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_FREEBLK_SIZE;
if ((rc = read (fd, &freeblk, len)) != len)
goto cswp_read_error;
if (memcmp(&freeblk, "FREE_BLK", 8) == 0)
{
/* New format free space */
for (i = 0; i < cdevhdr.free_number; i++)
{
off += CCKD_FREEBLK_SIZE;
if (off > hipos - CCKD_FREEBLK_SIZE)
break;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, &freeblk, len)) != len)
goto cswp_read_error;
cckd_swapend_free (&freeblk);
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, &freeblk, len)) != len)
goto cswp_write_error;
} /* for each free space */
} /* if new format free space */
else
{
/* Old format free space */
for (i = 0; i < cdevhdr.free_number; i++)
{
if (off < lopos || off > hipos - CCKD_FREEBLK_SIZE)
break;
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, &freeblk, len)) != len)
goto cswp_read_error;
cckd_swapend_free (&freeblk);
if (lseek (fd, off, SEEK_SET) < 0)
goto cswp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, &freeblk, len)) != len)
goto cswp_write_error;
if (!swapend) cckd_swapend_free (&freeblk);
off = (off_t)freeblk.pos;
} /* for each free space */
} /* else old format free space */
} /* if free space */
return 0;
/* error exits */
cswp_fstat_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno));
goto cswp_error;
cswp_lseek_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno)));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno));
goto cswp_error;
cswp_read_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete");
goto cswp_error;
cswp_write_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete");
goto cswp_error;
cswp_malloc_error:
{
char buf[64];
MSGBUF( buf, "malloc(%d)", len);
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno));
goto cswp_error;
}
cswp_error:
if (l1) free(l1);
return -1;
}
/*-------------------------------------------------------------------*/
/* Swap endian - compressed device header */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend_chdr (CCKD_DEVHDR *cdevhdr)
{
/* fix the compressed ckd header */
cdevhdr->options ^= CCKD_BIGENDIAN;
cckd_swapend4 ((char *) &cdevhdr->numl1tab);
cckd_swapend4 ((char *) &cdevhdr->numl2tab);
cckd_swapend4 ((char *) &cdevhdr->size);
cckd_swapend4 ((char *) &cdevhdr->used);
cckd_swapend4 ((char *) &cdevhdr->free);
cckd_swapend4 ((char *) &cdevhdr->free_total);
cckd_swapend4 ((char *) &cdevhdr->free_largest);
cckd_swapend4 ((char *) &cdevhdr->free_number);
cckd_swapend4 ((char *) &cdevhdr->free_imbed);
cckd_swapend2 ((char *) &cdevhdr->compress_parm);
}
/*-------------------------------------------------------------------*/
/* Swap endian - level 1 table */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend_l1 (CCKD_L1ENT *l1, int n)
{
int i; /* Index */
for (i = 0; i < n; i++)
cckd_swapend4 ((char *) &l1[i]);
}
/*-------------------------------------------------------------------*/
/* Swap endian - level 2 table */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend_l2 (CCKD_L2ENT *l2)
{
int i; /* Index */
for (i = 0; i < 256; i++)
{
cckd_swapend4 ((char *) &l2[i].pos);
cckd_swapend2 ((char *) &l2[i].len);
cckd_swapend2 ((char *) &l2[i].size);
}
}
/*-------------------------------------------------------------------*/
/* Swap endian - free space entry */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend_free (CCKD_FREEBLK *fb)
{
cckd_swapend4 ((char *) &fb->pos);
cckd_swapend4 ((char *) &fb->len);
}
/*-------------------------------------------------------------------*/
/* Swap endian - 4 bytes */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend4 (char *c)
{
char temp[4];
memcpy (&temp, c, 4);
c[0] = temp[3];
c[1] = temp[2];
c[2] = temp[1];
c[3] = temp[0];
}
/*-------------------------------------------------------------------*/
/* Swap endian - 2 bytes */
/*-------------------------------------------------------------------*/
DLL_EXPORT void cckd_swapend2 (char *c)
{
char temp[2];
memcpy (&temp, c, 2);
c[0] = temp[1];
c[1] = temp[0];
}
/*-------------------------------------------------------------------*/
/* Are we little or big endian? From Harbison&Steele. */
/*-------------------------------------------------------------------*/
DLL_EXPORT int cckd_endian()
{
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
return u.c[sizeof (long) - 1] == 1 ? CCKD_BIGENDIAN : 0;
}
/*-------------------------------------------------------------------
* Remove all free space from a compressed ckd file
*-------------------------------------------------------------------*/
DLL_EXPORT int cckd_comp (DEVBLK *dev)
{
CCKDDASD_EXT *cckd; /* -> cckd extension */
int fd; /* File descriptor */
struct stat fst; /* File status buffer */
int rc; /* Return code */
off_t off; /* File offset */
off_t l2area; /* Boundary for l2 tables */
int len; /* Length */
int i, j, l, n; /* Work variables */
int relocate = 0; /* 1=spaces will be relocated*/
int l1size; /* l1 table size */
U32 next; /* offset of next space */
int s; /* space table index */
CKDDASD_DEVHDR devhdr; /* CKD device header */
CCKD_DEVHDR cdevhdr; /* CCKD device header */
CCKD_L1ENT *l1=NULL; /* -> l1 table */
CCKD_L2ENT **l2=NULL; /* -> l2 table array */
SPCTAB *spctab=NULL; /* -> space table */
BYTE *rbuf=NULL; /* Relocation buffer */
BYTE *p; /* -> relocation buffer */
int rlen=0; /* Relocation buffer length */
CCKD_L2ENT zero_l2[256]; /* Empty l2 table (zeros) */
CCKD_L2ENT ff_l2[256]; /* Empty l2 table (0xff's) */
BYTE buf[65536*4]; /* Buffer */
/*---------------------------------------------------------------
* Get fd
*---------------------------------------------------------------*/
cckd = dev->cckd_ext;
if (cckd == NULL)
fd = dev->fd;
else
fd = cckd->fd[cckd->sfn];
/*---------------------------------------------------------------
* Get file statistics
*---------------------------------------------------------------*/
if (fstat (fd, &fst) < 0)
goto comp_fstat_error;
gui_fprintf (stderr, "SIZE=%"I64_FMT"u\n", (U64) fst.st_size);
/*---------------------------------------------------------------
* Read device header
*---------------------------------------------------------------*/
off = 0;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CKDDASD_DEVHDR_SIZE;
if ((rc = read (fd, &devhdr, len)) != len)
goto comp_read_error;
if (memcmp (devhdr.devid, "CKD_C370", 8) != 0
&& memcmp (devhdr.devid, "CKD_S370", 8) != 0
&& memcmp (devhdr.devid, "FBA_C370", 8) != 0
&& memcmp (devhdr.devid, "FBA_S370", 8) != 0)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00356, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00356, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
goto comp_error;
}
comp_restart:
/*---------------------------------------------------------------
* Read compressed device header
*---------------------------------------------------------------*/
off = CCKD_DEVHDR_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_DEVHDR_SIZE;
if ((rc = read (fd, &cdevhdr, len)) != len)
goto comp_read_error;
/*---------------------------------------------------------------
* Check the endianess of the file
*---------------------------------------------------------------*/
if ((cdevhdr.options & CCKD_BIGENDIAN) != cckd_endian())
{
if(dev->batch)
fprintf(stdout, MSG(HHC00357, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
cckd_endian() ? "big-endian" : "little-endian"));
else
WRMSG(HHC00357, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
cckd_endian() ? "big-endian" : "little-endian");
if (cckd_swapend (dev) < 0)
goto comp_error;
else
goto comp_restart;
}
/*---------------------------------------------------------------
* Some header checks
*---------------------------------------------------------------*/
if ((off_t)cdevhdr.size != fst.st_size
|| cdevhdr.size != cdevhdr.used || cdevhdr.free != 0
|| cdevhdr.free_total != 0 || cdevhdr.free_largest != 0
|| cdevhdr.free_number != 0 || cdevhdr.free_imbed != 0)
relocate = 1;
/*---------------------------------------------------------------
* Build empty l2 tables
*---------------------------------------------------------------*/
memset( &zero_l2, 0, CCKD_L2TAB_SIZE );
if (cdevhdr.nullfmt != 0)
for (i = 0; i < 256; i++)
zero_l2[i].len = zero_l2[i].size = cdevhdr.nullfmt;
memset (&ff_l2, 0xff, CCKD_L2TAB_SIZE);
/*---------------------------------------------------------------
* Read the l1 table
*---------------------------------------------------------------*/
l1size = len = cdevhdr.numl1tab * CCKD_L1ENT_SIZE;
if ((l1 = malloc (len)) == NULL)
goto comp_malloc_error;
off = CCKD_L1TAB_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, l1, len)) != len)
goto comp_read_error;
/*---------------------------------------------------------------
* Build the space table
*---------------------------------------------------------------*/
n = 1 + 1 + 1 + cdevhdr.numl1tab + 1;
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l1[i] != 0 && l1[i] != 0xffffffff)
n += 256;
len = sizeof(SPCTAB);
if ((spctab = calloc (n, len)) == NULL)
goto comp_calloc_error;
s = 0;
spctab[s].typ = SPCTAB_DEVHDR;
spctab[s].val = -1;
spctab[s].pos = 0;
spctab[s].len =
spctab[s].siz = CKDDASD_DEVHDR_SIZE;
s++;
spctab[s].typ = SPCTAB_CDEVHDR;
spctab[s].val = -1;
spctab[s].pos = CCKD_DEVHDR_POS;
spctab[s].len =
spctab[s].siz = CCKD_DEVHDR_SIZE;
s++;
spctab[s].typ = SPCTAB_L1;
spctab[s].val = -1;
spctab[s].pos = CCKD_L1TAB_POS;
spctab[s].len =
spctab[s].siz = l1size;
s++;
spctab[s].typ = SPCTAB_EOF;
spctab[s].val = -1;
spctab[s].pos = fst.st_size;
spctab[s].len =
spctab[s].siz = 0;
s++;
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l1[i] != 0 && l1[i] != 0xffffffff)
{
spctab[s].typ = SPCTAB_L2;
spctab[s].val = i;
spctab[s].pos = l1[i];
spctab[s].len =
spctab[s].siz = CCKD_L2TAB_SIZE;
s++;
}
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
/*---------------------------------------------------------------
* Read level 2 tables
*---------------------------------------------------------------*/
n = cdevhdr.numl1tab;
len = sizeof (void *);
if ((l2 = calloc (n, len)) == NULL)
goto comp_calloc_error;
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
if (spctab[i].typ != SPCTAB_L2) continue;
l = spctab[i].val;
len = CCKD_L2TAB_SIZE;
if ((l2[l] = malloc (len)) == NULL)
goto comp_malloc_error;
off = (off_t)spctab[i].pos;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, l2[l], len)) != len)
goto comp_read_error;
for (j = 0; j < 256; j++)
{
if (l2[l][j].pos == 0 || l2[l][j].pos == 0xffffffff)
continue;
spctab[s].typ = SPCTAB_TRK;
spctab[s].val = spctab[i].val*256 + j;
spctab[s].pos = l2[l][j].pos;
spctab[s].len = l2[l][j].len;
spctab[s].siz = l2[l][j].size;
s++;
} /* for each l2 entry */
/* check if empty l2 table */
if (memcmp (l2[l], &zero_l2, CCKD_L2TAB_SIZE) == 0
|| memcmp (l2[l], &ff_l2, CCKD_L2TAB_SIZE) == 0)
{
l1[l] = l2[l][0].pos; /* 0x00000000 or 0xffffffff */
spctab[i].typ = SPCTAB_NONE;
free (l2[l]);
l2[l] = NULL;
relocate = 1;
}
} /* for each space */
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
/* set relocate flag if last space is free space */
if (spctab[s-2].pos + spctab[s-2].len != spctab[s-1].pos)
relocate = 1;
/*---------------------------------------------------------------
* relocate l2 tables in order
*---------------------------------------------------------------*/
/* determine l2 area */
l2area = CCKD_L1TAB_POS + l1size;
for (i = 0; i < cdevhdr.numl1tab; i++)
{
if (l1[i] == 0 || l1[i] == 0xffffffff) continue;
if (l1[i] != l2area)
relocate = 1;
l2area += CCKD_L2TAB_SIZE;
}
/* quick return if all l2 tables are orderered and no free space */
if (!relocate)
{
for (i = 1; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i-1].pos + spctab[i-1].len != spctab[i].pos)
break;
if (spctab[i].typ == SPCTAB_EOF)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00358, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00358, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
goto comp_return_ok;
}
}
/* file will be updated */
cdevhdr.options |= CCKD_ORDWR;
/* calculate track size within the l2 area */
for (i = rlen = 0; spctab[i].pos < l2area; i++)
if (spctab[i].typ == SPCTAB_TRK)
rlen += sizeof(spctab[i].val) + sizeof(spctab[i].len)
+ spctab[i].len;
/* read any tracks in the l2area into rbuf */
if ((len = rlen) > 0)
{
if ((rbuf = malloc (len)) == NULL)
goto comp_malloc_error;
for (i = 0, p = rbuf; spctab[i].pos < l2area; i++)
{
if (spctab[i].typ != SPCTAB_TRK) continue;
memcpy (p, &spctab[i].val, sizeof(spctab[i].val));
p += sizeof(spctab[i].val);
memcpy (p, &spctab[i].len, sizeof(spctab[i].len));
p += sizeof(spctab[i].len);
off = (off_t)spctab[i].pos;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = spctab[i].len;
if ((rc = read (fd, p, len)) != len)
goto comp_read_error;
p += len;
spctab[i].typ = SPCTAB_NONE;
} /* for each space in the l2 area */
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
} /* if any tracks to relocate */
/* remove all l2 tables from the space table */
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_L2)
spctab[i].typ = SPCTAB_NONE;
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
/* add all l2 tables at their ordered offsets */
off = CCKD_L1TAB_POS + l1size;
for (i = 0; i < cdevhdr.numl1tab; i++)
{
if (l1[i] == 0 || l1[i] == 0xffffffff) continue;
spctab[s].typ = SPCTAB_L2;
spctab[s].val = i;
spctab[s].pos = (U32)off;
spctab[s].len =
spctab[s].siz = CCKD_L2TAB_SIZE;
s++;
off += CCKD_L2TAB_SIZE;
}
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
/* set end-of-file position */
spctab[s-1].pos = spctab[s-2].pos + spctab[s-2].len;
/*---------------------------------------------------------------
* Perform compression
*---------------------------------------------------------------*/
/* move spaces left */
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
/* ignore contiguous spaces */
if (spctab[i].pos + spctab[i].len == spctab[i+1].pos)
continue;
/* found a gap */
off = (off_t)spctab[i+1].pos;
/* figure out how much we can read */
for (len = 0, j = i + 1; spctab[j].typ != SPCTAB_EOF; j++)
{
if (len + spctab[j].len > sizeof(buf))
break;
next = spctab[j].pos + spctab[j].len;
spctab[j].pos = spctab[i].pos + spctab[i].len + len;
spctab[j].siz = spctab[j].len;
len += spctab[j].len;
if (next != spctab[j+1].pos)
break;
} /* search for contiguous spaces */
/* this can happen if the next space is end-of-file */
if (len == 0)
continue;
/* read the image(s) to be relocated */
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, buf, len)) != len)
goto comp_write_error;
/* write the images */
off = (off_t)spctab[i].pos + spctab[i].len;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, buf, len)) != len)
goto comp_write_error;
}
/* adjust the size of the file */
spctab[s-1].pos = spctab[s-2].pos + spctab[s-2].len;
/*---------------------------------------------------------------
* Write spaces relocated from the l2area to the end of the file
*---------------------------------------------------------------*/
off = (off_t)spctab[s-1].pos;
p = rbuf;
while (rlen)
{
spctab[s].typ = SPCTAB_TRK;
spctab[s].pos = (U32)off;
memcpy (&spctab[s].val, p, sizeof(spctab[s].val));
p += sizeof(spctab[s].val);
memcpy (&spctab[s].len, p, sizeof(spctab[s].len));
spctab[s].siz = spctab[s].len;
p += sizeof(spctab[s].len);
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = spctab[s].len;
if ((rc = write (fd, p, len)) != len)
goto comp_write_error;
p += len;
off += len;
rlen -= len + sizeof(spctab[s].val) + sizeof(spctab[s].len);
s++;
} /* for each relocated space in l2area */
/* adjust the space table */
if (rbuf)
{
free (rbuf); rbuf = NULL;
qsort (spctab, s, sizeof(SPCTAB), comp_spctab_sort);
spctab[s-1].pos = spctab[s-2].pos + spctab[s-2].len;
}
/*---------------------------------------------------------------
* Update the device header
*---------------------------------------------------------------*/
cdevhdr.size =
cdevhdr.used = spctab[s-1].pos;
cdevhdr.free =
cdevhdr.free_total =
cdevhdr.free_largest =
cdevhdr.free_number =
cdevhdr.free_imbed = 0;
cdevhdr.vrm[0] = CCKD_VERSION;
cdevhdr.vrm[1] = CCKD_RELEASE;
cdevhdr.vrm[2] = CCKD_MODLVL;
/*---------------------------------------------------------------
* Update the lookup tables
*---------------------------------------------------------------*/
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_L2)
l1[spctab[i].val] = spctab[i].pos;
else if (spctab[i].typ == SPCTAB_TRK)
{
l = spctab[i].val / 256;
j = spctab[i].val % 256;
l2[l][j].pos = spctab[i].pos;
l2[l][j].len =
l2[l][j].size = spctab[i].len;
}
/*---------------------------------------------------------------
* Write the cdevhdr, l1 table and l2 tables
*---------------------------------------------------------------*/
/* write cdevhdr */
off = CCKD_DEVHDR_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_DEVHDR_SIZE;
if ((rc = write (fd, &cdevhdr, len)) != len)
goto comp_write_error;
/* write l1 table */
off = CCKD_L1TAB_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = l1size;
if ((rc = write (fd, l1, len)) != len)
goto comp_write_error;
/* write l2 tables */
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l1[i] != 0 && l1[i] != 0xffffffff)
{
off = (off_t)l1[i];
if (lseek (fd, off, SEEK_SET) < 0)
goto comp_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_L2TAB_SIZE;
if ((rc = write (fd, l2[i], len)) != len)
goto comp_lseek_error;
}
/* truncate the file */
off = (off_t)spctab[s-1].pos;
if (off < fst.st_size)
{
ftruncate (fd, off);
if(dev->batch)
fprintf(stdout, MSG(HHC00359, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
fst.st_size - off));
else
WRMSG(HHC00359, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, fst.st_size - off);
}
else
{
if(dev->batch)
fprintf(stdout, MSG(HHC00360, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00360, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
}
/*---------------------------------------------------------------
* Return
*---------------------------------------------------------------*/
comp_return_ok:
rc = 0;
comp_return:
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if (rbuf) free(rbuf);
if (l2)
{
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l2[i])
free (l2[i]);
free (l2);
}
if (l1) free (l1);
if (spctab) free (spctab);
return rc;
/*---------------------------------------------------------------
* Error exits
*---------------------------------------------------------------*/
comp_fstat_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno));
goto comp_error;
comp_lseek_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno)));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno));
goto comp_error;
comp_read_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete");
goto comp_error;
comp_write_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete");
goto comp_error;
comp_malloc_error:
{
char buf[64];
MSGBUF( buf, "malloc(%d)", len);
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno));
goto comp_error;
}
comp_calloc_error:
{
char buf[64];
MSGBUF( buf, "calloc(%d)", n * len);
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno));
goto comp_error;
}
comp_error:
rc = -1;
goto comp_return;
} /* cckd_comp() */
/*-------------------------------------------------------------------
* cckd_comp() space table sort
*-------------------------------------------------------------------*/
static int comp_spctab_sort(const void *a, const void *b)
{
const SPCTAB *x = a, *y = b;
if (x->typ == SPCTAB_NONE) return 1;
else if (y->typ == SPCTAB_NONE) return -1;
else if (x->typ == SPCTAB_EOF) return 1;
else if (y->typ == SPCTAB_EOF) return -1;
else if (x->pos < y->pos) return -1;
else return 1;
}
/*-------------------------------------------------------------------
* Perform check function on a compressed ckd file
*
* check levels
* -1 devhdr, cdevhdr, l1 table
* 0 devhdr, cdevhdr, l1 table, l2 tables
* 1 devhdr, cdevhdr, l1 table, l2 tables, free spaces
* 2 devhdr, cdevhdr, l1 table, l2 tables, free spaces, trkhdrs
* 3 devhdr, cdevhdr, l1 table, l2 tables, free spaces, trkimgs
* 4 devhdr, cdevhdr. Build everything else from recovery
*-------------------------------------------------------------------*/
DLL_EXPORT int cckd_chkdsk(DEVBLK *dev, int level)
{
CCKDDASD_EXT *cckd; /* -> ckd extension */
int fd; /* file descriptor */
struct stat fst; /* file status information */
int fdflags; /* file descriptor flags */
S64 maxsize; /* max cckd file size */
int ro; /* 1=file opened read-only */
int f, i, j, l, n; /* work integers */
int l1x, l2x; /* l1, l2 table indexes */
BYTE compmask[256]; /* compression byte mask
00 - supported
0x - valid, not supported
ff - invalid */
off_t off; /* file offset */
int len; /* length to read */
int rc; /* function return code */
int comp; /* trkhdr compression byte[0]*/
int cyl; /* trkhdr cyl bytes[1-2]*/
int head; /* trkhdr head bytes[3-4]*/
int trk; /* trkhdr calculated trk */
int cyls; /* number cylinders */
int heads; /* number heads/cylinder */
int trks; /* number tracks */
unsigned int trksz; /* track size */
int blks; /* number fba blocks */
int blkgrp; /* current block group nbr */
int blkgrps; /* number fba block groups */
unsigned int blkgrpsz; /* fba block group size */
int trktyp; /* track type (TRK, BLKGRP) */
int ckddasd=0; /* 1=ckd */
int fbadasd=0; /* 1= fba */
int shadow=0; /* 0xff=shadow file */
int hdrerr=0; /* non-zero: header errors */
int fsperr=0; /* 1=rebuild free space */
int comperrs=0; /* 1=unsupported comp found */
int recovery=0; /* 1=perform track recovery */
int valid; /* 1=valid trk recovered */
int l1size; /* size of l1 table */
int swapend=0; /* 1=call cckd_swapend */
U32 lopos, hipos; /* low/high file positions */
int pass; /* recovery pass number (fba)*/
int s; /* space table index */
SPCTAB *spctab=NULL; /* -> space table */
BYTE *l2errs=NULL; /* l2 error table */
BYTE *rcvtab=NULL; /* recovered tracks */
CKDDASD_DEVHDR devhdr; /* device header */
CCKD_DEVHDR cdevhdr; /* compressed device header */
CCKD_DEVHDR cdevhdr2; /* compressed device header 2*/
CCKD_L1ENT *l1=NULL; /* -> level 1 table */
CCKD_L2ENT l2ent; /* level 2 entry */
CCKD_L2ENT l2tab[256]; /* level 2 table */
CCKD_L2ENT **l2=NULL; /* -> level 2 table array */
CCKD_L2ENT empty_l2[256]; /* Empty l2 table */
CCKD_FREEBLK freeblk; /* free block */
CCKD_FREEBLK *fsp=NULL; /* free blocks (new format) */
BYTE buf[4*65536]; /* buffer */
/* Get fd */
cckd = dev->cckd_ext;
if (cckd == NULL)
fd = dev->fd;
else
fd = cckd->fd[cckd->sfn];
/* Get some file information */
if ( fstat (fd, &fst) < 0 )
goto cdsk_fstat_error;
gui_fprintf (stderr, "SIZE=%"I64_FMT"u\n", (U64) fst.st_size);
hipos = fst.st_size;
maxsize = sizeof(off_t) == 4 ? 0x7fffffffll : 0xffffffffll;
fdflags = get_file_accmode_flags(fd);
ro = (fdflags & O_RDWR) == 0;
/* Build table for compression byte test */
memset (compmask, 0xff, 256);
compmask[0] = 0;
#if defined(HAVE_LIBZ)
compmask[CCKD_COMPRESS_ZLIB] = 0;
#else
compmask[CCKD_COMPRESS_ZLIB] = 1;
#endif
#if defined(CCKD_BZIP2)
compmask[CCKD_COMPRESS_BZIP2] = 0;
#else
compmask[CCKD_COMPRESS_BZIP2] = 2;
#endif
/*---------------------------------------------------------------
* Header checks
*---------------------------------------------------------------*/
/* Read the device header */
off = 0;
if ( lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CKDDASD_DEVHDR_SIZE;
if ((rc = read (fd, &devhdr, len)) != len)
goto cdsk_read_error;
/* Device header checks */
if (memcmp(devhdr.devid, "CKD_C370", 8) == 0
|| memcmp(devhdr.devid, "CKD_S370", 8) == 0
)
ckddasd = 1;
else if (memcmp(devhdr.devid, "FBA_C370", 8) == 0
|| memcmp(devhdr.devid, "FBA_S370", 8) == 0
)
fbadasd = 1;
else
{
if(dev->batch)
fprintf(stdout, MSG(HHC00356, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00356, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
goto cdsk_error;
}
if (memcmp(devhdr.devid, "CKD_S370", 8) == 0
|| memcmp(devhdr.devid, "FBA_S370", 8) == 0
)
shadow = 0xff;
trktyp = ckddasd ? SPCTAB_TRK : SPCTAB_BLKGRP;
/* Read the cckd device header */
off = CCKD_DEVHDR_POS;
if ( lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_DEVHDR_SIZE;
if ((rc = read (fd, &cdevhdr, len)) != len)
goto cdsk_read_error;
/* Endianess check */
if ((cdevhdr.options & CCKD_BIGENDIAN) != cckd_endian())
{
if (!ro)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00357, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
cckd_endian() ? "big-endian" : "little-endian"));
else
WRMSG(HHC00357, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
cckd_endian() ? "big-endian" : "little-endian");
if (cckd_swapend (dev) < 0)
goto cdsk_error;
if (level < 0) level = 0;
swapend = 0;
}
else
swapend = 1;
cckd_swapend_chdr (&cdevhdr);
}
/* ckd checks */
if (ckddasd)
{
CKDDEV *ckd;
heads = (devhdr.heads[3] << 24)
+ (devhdr.heads[2] << 16)
+ (devhdr.heads[1] << 8)
+ (devhdr.heads[0]);
cyls = (cdevhdr.cyls[3] << 24)
+ (cdevhdr.cyls[2] << 16)
+ (cdevhdr.cyls[1] << 8)
+ (cdevhdr.cyls[0]);
trks = heads * cyls;
trksz = (devhdr.trksize[3] << 24)
+ (devhdr.trksize[2] << 16)
+ (devhdr.trksize[1] << 8)
+ (devhdr.trksize[0]);
/* ckd dasd lookup */
ckd = dasd_lookup (DASD_CKDDEV, NULL, devhdr.devtype, 0);
if (ckd == NULL)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00361, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
devhdr.devtype, cyls));
else
WRMSG(HHC00361, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
devhdr.devtype, cyls);
goto cdsk_error;
}
/* track size check */
n = sizeof(CKDDASD_TRKHDR)
+ sizeof(CKDDASD_RECHDR) + 8 /* r0 length */
+ sizeof(CKDDASD_RECHDR) + ckd->r1 /* max data length */
+ sizeof(eighthexFF);
n = ((n+511)/512)*512;
if ((int)trksz != n)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"track size", trksz, n));
else
WRMSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"track size", trksz, n);
goto cdsk_error;
}
/* number of heads check */
if (heads != ckd->heads)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"number of heads", heads, ckd->heads));
else
WRMSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"number of heads", heads, ckd->heads);
goto cdsk_error;
}
} /* if (ckddasd) */
/* fba checks */
else
{
/* Note: cyls & heads are setup for ckd type hdr checks */
blks = (cdevhdr.cyls[3] << 24)
+ (cdevhdr.cyls[2] << 16)
+ (cdevhdr.cyls[1] << 8)
+ (cdevhdr.cyls[0]);
trks = blks / CFBA_BLOCK_NUM;
if (blks % CFBA_BLOCK_NUM) trks++;
trksz = CFBA_BLOCK_SIZE + CKDDASD_TRKHDR_SIZE;
heads = 65536;
cyls = trks / heads;
if (trks % heads) cyls++;
}
/* fba variables */
blkgrps = trks;
blkgrpsz = trksz;
/* `numl1tab' check */
n = trks / 256;
if (trks % 256) n++;
if (cdevhdr.numl1tab != n && cdevhdr.numl1tab != n + 1)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"numl1tab", cdevhdr.numl1tab, n));
else
WRMSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"numl1tab", cdevhdr.numl1tab, n);
goto cdsk_error;
}
l1size = cdevhdr.numl1tab * CCKD_L1ENT_SIZE;
if (CCKD_L1TAB_POS + l1size > fst.st_size)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"file length to contain L1 table", (int)fst.st_size, (int)CCKD_L1TAB_POS + l1size));
else
WRMSG(HHC00362, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"file length to contain L1 table", (int)fst.st_size, (int)CCKD_L1TAB_POS + l1size);
goto cdsk_error;
}
/* check level 2 if SPERRS bit on */
if (!ro && level < 2 && (cdevhdr.options & CCKD_SPERRS))
{
level = 2;
if(dev->batch)
fprintf(stdout, MSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level));
else
WRMSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level);
}
/* cdevhdr inconsistencies check */
hdrerr = 0;
hdrerr |= fst.st_size != (off_t)cdevhdr.size && cdevhdr.size != cdevhdr.free ? 0x0001 : 0;
hdrerr |= cdevhdr.size != cdevhdr.used + cdevhdr.free_total ? 0x0002 : 0;
hdrerr |= cdevhdr.free_largest > cdevhdr.free_total - cdevhdr.free_imbed ? 0x0004 : 0;
hdrerr |= cdevhdr.free == 0 && cdevhdr.free_number != 0 ? 0x0008 : 0;
hdrerr |= cdevhdr.free == 0 && cdevhdr.free_total != cdevhdr.free_imbed ? 0x0010 : 0;
hdrerr |= cdevhdr.free != 0 && cdevhdr.free_total == 0 ? 0x0020 : 0;
hdrerr |= cdevhdr.free != 0 && cdevhdr.free_number == 0 ? 0x0040 : 0;
hdrerr |= cdevhdr.free_number == 0 && cdevhdr.free_total != cdevhdr.free_imbed ? 0x0080 : 0;
hdrerr |= cdevhdr.free_number != 0 && cdevhdr.free_total <= cdevhdr.free_imbed ? 0x0100 : 0;
hdrerr |= cdevhdr.free_imbed > cdevhdr.free_total ? 0x0200 : 0;
/* Additional checking if header errors */
if (hdrerr != 0)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00363, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, hdrerr));
else
WRMSG(HHC00363, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, hdrerr);
if (level < 1)
{
level = 1;
if(dev->batch)
fprintf(stdout, MSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level));
else
WRMSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level);
}
}
/* Additional checking if not properly closed */
if (level < 1 && (cdevhdr.options & CCKD_OPENED))
{
level = 1;
if(dev->batch)
fprintf(stdout, MSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level));
else
WRMSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level);
}
/* Additional checking if last opened for read/write */
if (level < 0 && (cdevhdr.options & CCKD_ORDWR))
level = 0;
/* Set check level -1 */
if (level == 0 && !dev->batch && !hdrerr
&& (cdevhdr.options & (CCKD_OPENED|CCKD_SPERRS)) == 0
&& ((cdevhdr.options & (CCKD_ORDWR)) == 0 || ro))
level = -1;
/* Build empty l2 table */
memset (&empty_l2, shadow, CCKD_L2TAB_SIZE);
if (shadow == 0 && cdevhdr.nullfmt != 0)
for (i = 0; i < 256; i++)
empty_l2[i].len = empty_l2[i].size = cdevhdr.nullfmt;
/*---------------------------------------------------------------
* read the level 1 table
*---------------------------------------------------------------*/
len = l1size;
if ((l1 = malloc (len)) == NULL)
goto cdsk_error;
off = CCKD_L1TAB_POS;
if ( lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, l1, len)) != len)
goto cdsk_read_error;
if (swapend) cckd_swapend_l1 (l1, (int)cdevhdr.numl1tab);
lopos = CCKD_L1TAB_POS + l1size;
/*---------------------------------------------------------------
* initialize the space table
*---------------------------------------------------------------*/
/* find number of non-null l1 entries */
for (i = n = 0; i < cdevhdr.numl1tab; i++)
if (l1[i] != 0 && l1[i] != 0xffffffff)
n++;
if (level >= 4) n = cdevhdr.numl1tab;
/* calculate max possible space table entries */
n = 1 + 1 + 1 // devhdr, cdevhdr, l1tab
+ n // l2tabs
+ (n * 256) // trk/blk images
+ (1 + n + (n * 256) + 1) // max possible free spaces
+ 1; // end-of-file
/* obtain the space table */
len = sizeof(SPCTAB);
if ((spctab = calloc (n, len)) == NULL)
goto cdsk_calloc_error;
/* populate the table with what we have */
s = 0;
/* devhdr */
spctab[s].typ = SPCTAB_DEVHDR;
spctab[s].val = -1;
spctab[s].pos = 0;
spctab[s].len =
spctab[s].siz = CKDDASD_DEVHDR_SIZE;
s++;
/* cdevhdr */
spctab[s].typ = SPCTAB_CDEVHDR;
spctab[s].val = -1;
spctab[s].pos = CCKD_DEVHDR_POS;
spctab[s].len =
spctab[s].siz = CCKD_DEVHDR_SIZE;
s++;
/* l1 table */
spctab[s].typ = SPCTAB_L1;
spctab[s].val = -1;
spctab[s].pos = CCKD_L1TAB_POS;
spctab[s].len =
spctab[s].siz = l1size;
s++;
/* l2 tables */
for (i = 0; i < cdevhdr.numl1tab && level < 4; i++)
{
if (l1[i] == 0 || l1[i] == 0xffffffff) continue;
spctab[s].typ = SPCTAB_L2;
spctab[s].val = i;
spctab[s].pos = l1[i];
spctab[s].len =
spctab[s].siz = CCKD_L2TAB_SIZE;
s++;
}
/* end-of-file */
spctab[s].typ = SPCTAB_EOF;
spctab[s].val = -1;
spctab[s].pos = (U32)fst.st_size;
spctab[s].len =
spctab[s].siz = 0;
s++;
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
/*---------------------------------------------------------------
* Quick return if level -1
*---------------------------------------------------------------*/
if (level < 0)
{
int err = 0;
/* check for overlaps */
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].pos + spctab[i].siz > spctab[i+1].pos)
err = 1;
/* exit if no errors */
if (!err) goto cdsk_return_ok;
}
/*---------------------------------------------------------------
* obtain the l2errs table and recovery table
*---------------------------------------------------------------*/
len = sizeof(BYTE);
n = cdevhdr.numl1tab;
if ((l2errs = calloc (n, len)) == NULL)
goto cdsk_calloc_error;
n = trks;
if ((rcvtab = calloc (n, len)) == NULL)
goto cdsk_calloc_error;
/*---------------------------------------------------------------
* Special processing for level 4 (recover everything)
*---------------------------------------------------------------*/
if (level == 4)
{
memset (l2errs, 1, cdevhdr.numl1tab);
memset (rcvtab, 1, trks);
goto cdsk_recovery;
}
/*---------------------------------------------------------------
* Read the level 2 tables
*---------------------------------------------------------------*/
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
if (spctab[i].typ != SPCTAB_L2
|| spctab[i].pos < lopos || spctab[i].pos > hipos)
continue;
off = spctab[i].pos;
if ( lseek (fd, off, SEEK_SET) < 0 )
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_L2TAB_SIZE;
if ((rc = read (fd, l2tab, len)) != len)
goto cdsk_read_error;
if (swapend) cckd_swapend_l2 (l2tab);
/* add trks/blkgrps to the space table */
for (j = 0; j < 256; j++)
{
if (l2tab[j].pos != 0 && l2tab[j].pos != 0xffffffff)
{
spctab[s].typ = trktyp;
spctab[s].val = spctab[i].val * 256 + j;
spctab[s].pos = l2tab[j].pos;
spctab[s].len = l2tab[j].len;
spctab[s].siz = l2tab[j].size;
s++;
}
}
}
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
/*---------------------------------------------------------------
* Consistency checks.
*
* The space table is now populated with everything but free
* space. Therefore we can infer what the free space should
* be (ie gaps between allocated spaces).
*---------------------------------------------------------------*/
lopos = CCKD_L1TAB_POS + l1size;
hipos = fst.st_size;
/* Make adjustment if new format free space is at the end */
len = spctab[s-1].pos - (spctab[s-2].pos + spctab[s-2].siz);
if (len > 0
&& cdevhdr.size == cdevhdr.free
&& cdevhdr.size + len == spctab[s-1].pos)
{
spctab[s-1].pos -= len;
hipos -= len;
}
memset( &cdevhdr2, 0, CCKD_DEVHDR_SIZE );
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
/* Calculate gap size */
len = spctab[i+1].pos - (spctab[i].pos + spctab[i].siz);
/* Update space statistics */
cdevhdr2.size += spctab[i].siz + len;
cdevhdr2.used += spctab[i].len;
if (len > 0)
{
cdevhdr2.free_number++;
cdevhdr2.free_total += len;
if (cdevhdr2.free_largest < (U32)len)
cdevhdr2.free_largest = (U32)len;
}
if (spctab[i].typ == trktyp)
{
cdevhdr2.free_total += spctab[i].siz - spctab[i].len;
cdevhdr2.free_imbed += spctab[i].siz - spctab[i].len;
}
/* ignore devhdr, cdevhdr and l1 (these are `out of bounds') */
if (spctab[i].typ == SPCTAB_DEVHDR
|| spctab[i].typ == SPCTAB_CDEVHDR
|| spctab[i].typ == SPCTAB_L1
)
continue;
/* check if the space is out of bounds */
valid = (off_t)spctab[i].pos >= lopos
&& (off_t)spctab[i].pos + spctab[i].siz <= hipos;
/* Overlap check */
if (len < 0 || !valid)
{
char space1[32], space2[32];
recovery = 1;
/* issue error message */
j = MSGBUF(space1, "%s", spaces[spctab[i].typ]);
if (spctab[i].val >= 0)
sprintf(space1+j, "[%d]", spctab[i].val);
j = MSGBUF(space2, "%s", spaces[spctab[i+1].typ]);
if (spctab[i+1].val >= 0)
sprintf(space2+j, "[%d]", spctab[i+1].val);
if (!valid)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00365, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
space1, spctab[i].pos, spctab[i].siz));
else
WRMSG(HHC00365, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
space1, spctab[i].pos, spctab[i].siz);
}
else
{
if(dev->batch)
fprintf(stdout, MSG(HHC00366, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
space1, spctab[i].pos, spctab[i].siz, space2, spctab[i+1].pos));
else
WRMSG(HHC00366, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
space1, spctab[i].pos, spctab[i].siz, space2, spctab[i+1].pos);
}
/* setup recovery */
if (spctab[i].typ == SPCTAB_L2)
{
l2errs[spctab[i].val] = 1;
/* Mark all tracks for the l2 for recovery */
memset (rcvtab + (spctab[i].val*256), 1, 256);
}
else if (spctab[i].typ == trktyp)
rcvtab[spctab[i].val] = 1;
if (spctab[i+1].typ == SPCTAB_L2 && valid)
{
l2errs[spctab[i+1].val] = 1;
memset (rcvtab + (spctab[i+1].val*256), 1, 256);
}
else if (spctab[i+1].typ == trktyp && valid)
rcvtab[spctab[i+1].val] = 1;
} /* if overlap or out of bounds */
/* Check image l2 entry consistency */
else if (spctab[i].typ == trktyp
&& (spctab[i].len < CKDDASD_TRKHDR_SIZE
|| spctab[i].len > spctab[i].siz
|| spctab[i].len > trksz))
{
recovery = 1;
/* issue error message */
if(dev->batch)
fprintf(stdout, MSG(HHC00367, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], spctab[i].val, spctab[i].len, spctab[i].siz));
else
WRMSG(HHC00367, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], spctab[i].val, spctab[i].len, spctab[i].siz);
/* setup recovery */
rcvtab[spctab[i].val] = 1;
} /* if inconsistent l2 */
} /* for each space */
/* remove any l2 tables or tracks in error from the space table */
for (i = 0; recovery && spctab[i].typ != SPCTAB_EOF; i++)
if ((spctab[i].typ == SPCTAB_L2 && l2errs[spctab[i].val])
|| (spctab[i].typ == trktyp && rcvtab[spctab[i].val]))
spctab[i].typ = SPCTAB_NONE;
/* overlaps are serious */
if (recovery && level < 3)
{
level = 3;
if(dev->batch)
fprintf(stdout, MSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level));
else
WRMSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level);
}
/* Rebuild free space if any errors */
if (recovery || hdrerr
|| cdevhdr.size != cdevhdr2.size
|| cdevhdr.used != cdevhdr2.used
|| cdevhdr.free_number != cdevhdr2.free_number
|| cdevhdr.free_largest != cdevhdr2.free_largest
|| cdevhdr.free_total != cdevhdr2.free_total
|| cdevhdr.free_imbed != cdevhdr2.free_imbed
)
fsperr = 1;
/*---------------------------------------------------------------
* read the free space
*---------------------------------------------------------------*/
lopos = CCKD_L1TAB_POS + l1size;
hipos = fst.st_size;
if (level >= 1 && !fsperr)
{
while (cdevhdr.free) // `while' so code can break
{
fsperr = 1; // be pessimistic
fsp = NULL;
/* Read the free space */
off = (off_t)cdevhdr.free;
len = CCKD_FREEBLK_SIZE;
if (off < lopos || off + CCKD_FREEBLK_SIZE > hipos
|| lseek (fd, off, SEEK_SET) < 0
|| (rc = read (fd, &freeblk, len)) != len)
break;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if (memcmp (&freeblk, "FREE_BLK", 8) == 0)
{
/* new format free space */
len = cdevhdr.free_number * CCKD_FREEBLK_SIZE;
if ((fsp = malloc(len)) == NULL
|| (rc = read (fd, fsp, len)) != len)
break;
for (i = 0; i < cdevhdr.free_number; i++)
{
if (swapend) cckd_swapend_free (&fsp[i]);
spctab[s].typ = SPCTAB_FREE;
spctab[s].val = -1;
spctab[s].pos = fsp[i].pos;
spctab[s].len =
spctab[s].siz = fsp[i].len;
/* Free space should be ascending */
if (spctab[s].pos < lopos
|| spctab[s].pos + spctab[s].siz > hipos)
break;
lopos = spctab[s].pos + spctab[s].siz;
s++;
} /* for each free space */
if (i >= cdevhdr.free_number)
fsperr = 0;
} /* new format free space */
else
{
/* old format free space */
off = (off_t)cdevhdr.free;
len = CCKD_FREEBLK_SIZE;
for (i = 0; i < cdevhdr.free_number; i++)
{
if (off < lopos || off > hipos) break;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, &freeblk, len)) != len)
goto cdsk_read_error;
if (swapend) cckd_swapend_free (&freeblk);
spctab[s].typ = SPCTAB_FREE;
spctab[s].val = -1;
spctab[s].pos = (U32)off;
spctab[s].len =
spctab[s].siz = freeblk.len;
s++;
lopos = off + freeblk.len;
off = (off_t)freeblk.pos;
}
if (i >= cdevhdr.free_number && freeblk.pos == 0)
fsperr = 0;
} /* if old format free space */
if (fsp) free(fsp);
fsp = NULL;
/* Check for gaps/overlaps */
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
for (i = 0; !fsperr && spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].pos + spctab[i].siz != spctab[i+1].pos)
fsperr = 1;
break;
} /* while (cdevhdr.free) */
} /* if (level >= 1 && !fsperr) */
if (fsperr)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00368, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00368, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
}
/*---------------------------------------------------------------
* Read track headers/images
*---------------------------------------------------------------*/
cdsk_space_check:
if (level >= 2)
{
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
if (spctab[i].typ != trktyp) continue;
/* read the header or image depending on the check level */
off = spctab[i].pos;
if ( lseek (fd, off, SEEK_SET) < 0 )
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = level < 3 ? CKDDASD_TRKHDR_SIZE : spctab[i].len;
if ((rc = read (fd, buf, len)) != len)
goto cdsk_read_error;
/* Extract header info */
comp = buf[0];
cyl = fetch_hw (buf + 1);
head = fetch_hw (buf + 3);
trk = cyl * heads + head;
/* Validate header info */
if (compmask[comp] == 0xff
|| cyl >= cyls || head >= heads
|| trk != spctab[i].val)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00369, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], spctab[i].val, off,
buf[0],buf[1],buf[2],buf[3],buf[4]));
else
WRMSG(HHC00369, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], spctab[i].val, off,
buf[0],buf[1],buf[2],buf[3],buf[4]);
/* recover this track */
rcvtab[spctab[i].val] = recovery = 1;
spctab[i].typ = SPCTAB_NONE;
/* Force level 3 checking */
if (level < 3)
{
level = 3;
if(dev->batch)
fprintf(stdout, MSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum,
dev->filename, level));
else
WRMSG(HHC00364, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename, level);
goto cdsk_space_check;
}
continue;
} /* if invalid header info */
/* Check if compression supported */
if (compmask[comp])
{
comperrs = 1;
if(dev->batch)
fprintf(stdout, MSG(HHC00370, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, comps[compmask[comp]]));
else
WRMSG(HHC00370, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, comps[compmask[comp]]);
continue;
}
/* Validate the space if check level 3 */
if (level > 2)
{
if (!cdsk_valid_trk (trk, buf, heads, len))
{
if(dev->batch)
fprintf(stdout, MSG(HHC00371, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, off, len));
else
WRMSG(HHC00371, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, off, len);
/* recover this track */
rcvtab[trk] = recovery = 1;
spctab[i].typ = SPCTAB_NONE;
} /* if invalid space */
else
rcvtab[trk] = 0;
} /* if level > 2 */
} /* for each space */
} /* if (level >= 2) */
/*---------------------------------------------------------------
* Recovery
*---------------------------------------------------------------*/
cdsk_recovery:
if (recovery || level == 4)
{
U32 flen, fpos;
/*-----------------------------------------------------------
* Phase 1 -- recover trk/blkgrp images
*-----------------------------------------------------------*/
/*
* Reset the end-of-file pos to the file size
* It might have been changed if new format free space
* occurred at the end of the file.
*/
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
spctab[s-1].pos = fst.st_size;
/* count number tracks to be recovered */
for (i = n = 0; i < trks; i++)
if (rcvtab[i] == 1)
n++;
/*-----------------------------------------------------------
* ckd recovery
*-----------------------------------------------------------*/
if (ckddasd)
{
/* recovery loop */
s = cdsk_build_free_space (spctab, s);
for (f = 0; spctab[f].typ != SPCTAB_EOF && n; )
{
/* next free space if too small */
if (spctab[f].typ != SPCTAB_FREE
|| spctab[f].siz <= CKDDASD_TRKHDR_SIZE+8)
{
for (f = f + 1; spctab[f].typ != SPCTAB_EOF; f++)
if (spctab[f].typ == SPCTAB_FREE)
break;
continue;
}
fpos = spctab[f].pos;
flen = spctab[f].siz;
/* length to read */
len = flen < sizeof(buf) ? flen : sizeof(buf);
/* read the free space */
off = (off_t)fpos;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, buf, len)) != len)
goto cdsk_read_error;
/* Scan the space for a trkhdr */
for (i = 0; i < len - (CKDDASD_TRKHDR_SIZE+8); i++)
{
/* Check compression byte */
if (compmask[buf[i]])
continue;
/* Fetch possible trkhdr */
comp = buf[i];
cyl = fetch_hw (buf + i + 1);
head = fetch_hw (buf + i + 3);
trk = cyl * heads + head;
/* Validate possible trkhdr */
if (cyl >= cyls || head >= heads || rcvtab[trk] != 1)
continue;
/* Quick validation for compress none */
if (comp == CCKD_COMPRESS_NONE
&& (fetch_hw (buf + i + 5) != cyl // r0 cyl
|| fetch_hw (buf + i + 7) != head // r0 head
|| buf[i + 9] != 0 // r0 record
|| buf[i + 10] != 0 // r0 key length
|| fetch_hw (buf + i + 11) != 8 // r0 data length
)
)
continue;
/* Quick validation for zlib */
else if (comp == CCKD_COMPRESS_ZLIB
&& fetch_hw(buf + i + 5) % 31 != 0)
continue;
/* Quick validation for bzip2 */
else if (comp == CCKD_COMPRESS_BZIP2
&& (buf[i+5] != 'B' || buf[i+6] != 'Z'))
continue;
/*
* If we are in `borrowed space' then start over
* with the current position at the beginning
*/
if (flen > (U32)len && i > len - (int)trksz)
break;
/* Checks for comp none */
if (comp == CCKD_COMPRESS_NONE)
{
l = len - i;
if ((l = cdsk_valid_trk (trk, buf+i, heads, -l)))
goto cdsk_ckd_recover;
else
continue;
}
/* Check short `length' */
if (flen == (U32)len && (l = len - i) <= 1024)
{
if (cdsk_valid_trk (trk, buf+i, heads, l))
{
while (cdsk_valid_trk (trk, buf+i, heads, --l));
l++;
goto cdsk_ckd_recover;
}
}
/* Scan for next trkhdr */
for (j = i + CKDDASD_TRKHDR_SIZE+8;
j <= len - (CKDDASD_TRKHDR_SIZE+8);
j++)
{
if (j - i > (int)trksz) break;
if (compmask[buf[j]] != 0
|| fetch_hw(buf+j+1) >= cyls
|| fetch_hw(buf+j+3) >= heads)
continue;
/* check uncompressed hdr */
if (buf[j] == CCKD_COMPRESS_NONE
&& (fetch_hw (buf+j+5) != fetch_hw(buf+j+1)
|| fetch_hw (buf+j+7) != fetch_hw(buf+j+3)
|| buf[j+9] != 0 || buf[j+10] != 0
|| fetch_hw(buf+j+11) != 8))
continue;
/* check zlib compressed header */
else if (buf[j] == CCKD_COMPRESS_ZLIB
&& fetch_hw(buf + j + 5) % 31 != 0)
continue;
/* check bzip2 compressed header */
else if (buf[j] == CCKD_COMPRESS_BZIP2
&& (buf[j+5] != 'B' || buf[j+6] != 'Z'))
continue;
/* check to possible trkhdr */
l = j - i;
if (cdsk_valid_trk (trk, buf+i, heads, l))
{
#if 0
while (cdsk_valid_trk (trk, buf+i, heads, --l));
l++;
#endif
goto cdsk_ckd_recover;
}
} /* scan for next trkhdr */
/* Check `length' */
if (flen == (U32)len && (l = len - i) <= (int)trksz)
{
if (cdsk_valid_trk (trk, buf+i, heads, l))
{
while (cdsk_valid_trk (trk, buf+i, heads, --l));
l++;
goto cdsk_ckd_recover;
}
}
/* Scan all lengths */
for (l = CKDDASD_TRKHDR_SIZE+8; i + l <= len; l++)
{
if (l > (int)trksz)
break;
if (cdsk_valid_trk (trk, buf+i, heads, l))
goto cdsk_ckd_recover;
} /* for all lengths */
continue;
cdsk_ckd_recover:
if(dev->batch)
fprintf(stdout, MSG(HHC00372, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, off + i, l));
else
WRMSG(HHC00372, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], trk, off + i, l);
n--;
rcvtab[trk] = 2;
/* add recovered track to the space table */
spctab[s].typ = trktyp;
spctab[s].val = trk;
spctab[s].pos = fpos + i;
spctab[s].len =
spctab[s].siz = l;
s++;
/*
* adjust `i' knowing it will be incremented
* in the `for' loop above.
*/
i += l - 1;
} /* for each byte in the free space */
/* Adjust the free space for what we processed */
spctab[f].pos += i;
spctab[f].len -= i;
spctab[f].siz -= i;
} /* for each free space */
} /* if ckddasd */
/*-----------------------------------------------------------
* fba recovery
*-----------------------------------------------------------*/
/*
* FBA blkgrps are harder to recover than CKD tracks because
* there is not any information within the blkgrp itself to
* validate (unlike a track, which has count fields that
* terminate in an end-of-track marker).
*
* On the first pass we recover all compressed blkgrps since
* these are readily validated (they must uncompress to a
* certain size, CFBA_BLOCK_SIZE+CKDDASD_TRKHDR_SIZE). We
* also recover uncompressed blkgrps if they are followed by
* a valid trkhdr (and don't occur to close to the beginning
* of the file).
*
* On the second pass we recover all uncompressed blkgrps
* that weren't recovered in the first pass. The only
* criteria is that the compression byte is zero and the
* 4 byte blkgrp number is in range and there are at least
* CFBA_BLOCK_SIZE bytes following.
*/
for (pass = 0; fbadasd && pass < 2; pass++)
{
lopos = CCKD_L1TAB_POS + (cdevhdr.numl1tab * 4);
if (pass == 0)
lopos += (cdevhdr.numl1tab * CCKD_L2TAB_SIZE);
/* recovery loop */
s = cdsk_build_free_space (spctab, s);
for (f = 0; spctab[f].typ != SPCTAB_EOF && n > 0; )
{
U32 flen, fpos;
/* next free space if too small */
if (spctab[f].typ != SPCTAB_FREE
|| spctab[f].siz <= CKDDASD_TRKHDR_SIZE+8
|| (pass == 1 && spctab[f].siz < blkgrpsz))
{
for (f = f + 1; spctab[f].typ != SPCTAB_EOF; f++)
if (spctab[f].typ == SPCTAB_FREE)
break;
continue;
}
fpos = spctab[f].pos;
flen = spctab[f].siz;
/*
* calculate length to read
* if flen > len then we only read part of the space
*/
len = flen < sizeof(buf) ? flen : sizeof(buf);
/* read the free space */
off = (off_t)fpos;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = read (fd, buf, len)) != len)
goto cdsk_read_error;
/* Scan the space */
for (i = 0; i < len - (CKDDASD_TRKHDR_SIZE+8); i++)
{
/* For pass 1 the size left must be at least blkgrpsz */
if (pass == 1 && len - i < (int)blkgrpsz)
break;
/* Check compression byte */
if ((pass == 0 && compmask[buf[i]])
|| (pass == 1 && buf[i] != CCKD_COMPRESS_NONE))
continue;
/* Fetch possible trkhdr */
comp = buf[i];
blkgrp = fetch_fw (buf + i + 1);
/* Validate possible trkhdr */
if (blkgrp < 0 || blkgrp >= blkgrps
|| rcvtab[blkgrp] != 1)
continue;
/* Validation for compress none */
if (comp == CCKD_COMPRESS_NONE
&& flen == (U32)len && len - i < (int)blkgrpsz)
continue;
/* Quick validation for zlib */
else if (comp == CCKD_COMPRESS_ZLIB
&& fetch_hw(buf + i + 5) % 31 != 0)
continue;
/* Quick validation for bzip2 */
else if (comp == CCKD_COMPRESS_BZIP2
&& (buf[i+5] != 'B' || buf[i+6] != 'Z'))
continue;
/*
* If we are in `borrowed space' then start over
* with the current position at the beginning
*/
if (flen > (U32)len && i > len - (int)blkgrpsz)
break;
/* Checks for comp none */
if (comp == CCKD_COMPRESS_NONE)
{
l = blkgrpsz;
if (len - i < (int)blkgrpsz || fpos + i < lopos)
continue;
if (len - i == (int)blkgrpsz && flen == (U32)len)
goto cdsk_fba_recover;
/* Pass 0 checks */
if (pass == 0
&& (len - i - l < CKDDASD_TRKHDR_SIZE+8
|| compmask[buf[i+l]]
|| fetch_fw (buf+i+l+1) >= (unsigned int)blkgrps)
)
continue;
goto cdsk_fba_recover;
}
/* The tests below are for pass 0 only */
if (pass == 1)
continue;
/* Check short `length' */
if (flen == (U32)len && (l = len - i) <= 1024)
{
if (cdsk_valid_trk (blkgrp, buf+i, heads, l))
{
while (cdsk_valid_trk (blkgrp, buf+i, heads, --l));
l++;
goto cdsk_fba_recover;
}
}
/* Scan for next trkhdr */
for (j = i + CKDDASD_TRKHDR_SIZE+8;
j <= len - (CKDDASD_TRKHDR_SIZE+8);
j++)
{
if (j - i > (int)blkgrpsz) break;
if (compmask[buf[j]] != 0
|| fetch_fw(buf+j+1) >= (unsigned int)blkgrps)
continue;
/* check zlib compressed header */
if (buf[j] == CCKD_COMPRESS_ZLIB
&& fetch_hw(buf + j + 5) % 31 != 0)
continue;
/* check bzip2 compressed header */
else if (buf[j] == CCKD_COMPRESS_BZIP2
&& (buf[j+5] != 'B' || buf[j+6] != 'Z'))
continue;
/* check to possible trkhdr */
l = j - i;
if (cdsk_valid_trk (blkgrp, buf+i, heads, l))
{
#if 0
while (cdsk_valid_trk (blkgrp, buf+i, heads, --l));
l++;
#endif
goto cdsk_fba_recover;
}
} /* scan for next trkhdr */
/* Check `length' */
l = len - i;
if (flen == (U32)len && l <= (int)blkgrpsz)
{
if (cdsk_valid_trk (blkgrp, buf+i, heads, l))
{
while (cdsk_valid_trk (blkgrp, buf+i, heads, --l));
l++;
goto cdsk_fba_recover;
}
}
/* Scan all lengths */
for (l = CKDDASD_TRKHDR_SIZE+8; i + l <= len; l++)
{
if (l > (int)blkgrpsz)
break;
if (cdsk_valid_trk (blkgrp, buf+i, heads, l))
goto cdsk_fba_recover;
} /* for all lengths */
continue;
cdsk_fba_recover:
if(dev->batch)
fprintf(stdout, MSG(HHC00372, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], blkgrp, off + i, l));
else
WRMSG(HHC00372, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
spaces[trktyp], blkgrp, off + i, l);
n--;
rcvtab[blkgrp] = 2;
/* Enable recovery of comp 0 blkgrps for pass 0 */
if (fpos + i < lopos)
lopos = fpos + i;
/* add recovered block group to the space table */
spctab[s].typ = trktyp;
spctab[s].val = blkgrp;
spctab[s].pos = fpos + i;
spctab[s].len =
spctab[s].siz = l;
s++;
/*
* adjust `i' knowing it will be incremented
* in the `for' loop above.
*/
i += l - 1;
} /* for each byte in the free space */
/* Adjust the free space for what we processed */
spctab[f].pos += i;
spctab[f].len -= i;
spctab[f].siz -= i;
} /* for each free space */
} /* if fbadasd */
for (i = n = 0; i < trks; i++)
if (rcvtab[i] == 2)
n++;
if(dev->batch)
fprintf(stdout, MSG(HHC00373, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
n, spaces[trktyp]));
else
WRMSG(HHC00373, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
n, spaces[trktyp]);
/*-----------------------------------------------------------
* Phase 2 -- rebuild affected l2 tables
*-----------------------------------------------------------*/
/*
* Make sure there's at least one non-zero `rcvtab' entry
* for l2 tables in `l2errs'. Space validation may have
* turned off all `rcvtab' entries for an l2.
*/
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l2errs[i])
rcvtab[i*256] = 1;
/* Get storage for the l2 table array */
n = cdevhdr.numl1tab;
len = sizeof(void *);
if ((l2 = calloc (n, len)) == NULL)
goto cdsk_calloc_error;
/* Get storage for the rebuilt l2 tables */
len = CCKD_L2TAB_SIZE;
for (i = 0; i < trks; i++)
{
l1x = i / 256;
if (rcvtab[i] != 0 && l2[l1x] == NULL)
{
if ((l2[l1x] = malloc (len)) == NULL)
goto cdsk_malloc_error;
l1[l1x] = shadow ? 0xffffffff : 0;
memcpy (l2[l1x], &empty_l2, len);
}
}
/* Rebuild the l2 tables */
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
if (spctab[i].typ == SPCTAB_L2 && l2[spctab[i].val])
spctab[i].typ = SPCTAB_NONE;
else if (spctab[i].typ == trktyp && l2[spctab[i].val/256])
{
l1x = spctab[i].val / 256;
l2x = spctab[i].val % 256;
l2[l1x][l2x].pos = spctab[i].pos;
l2[l1x][l2x].len = spctab[i].len;
l2[l1x][l2x].size = spctab[i].siz;
}
} /* for each space */
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
/* Look for empty l2 tables */
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l2[i] != NULL
&& memcmp (l2[i], &empty_l2, CCKD_L2TAB_SIZE) == 0)
{
free (l2[i]);
l2[i] = NULL;
}
/*
* `s-1' indexes the SPCTAB_EOF space table entry.
* Set its `pos' to the maximum allowed value to ensure
* there will be free space for the rebuilt l2 tables.
*/
spctab[s-1].pos = (U32)maxsize;
/* Build the free space */
s = cdsk_build_free_space (spctab, s);
/* Find space for the rebuilt l2 tables */
for (i = j = 0; i < cdevhdr.numl1tab; i++)
{
if (l2[i] == NULL) continue;
/* find a free space */
for ( ; spctab[j].typ != SPCTAB_EOF; j++)
if (spctab[j].typ == SPCTAB_FREE
&& spctab[j].siz >= CCKD_L2TAB_SIZE)
break;
/* weird error if no space */
if (spctab[j].typ == SPCTAB_EOF)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00374, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00374, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
goto cdsk_error;
}
/* add l2 space */
l1[i] = spctab[j].pos;
spctab[s].typ = SPCTAB_L2;
spctab[s].val = i;
spctab[s].pos = spctab[j].pos;
spctab[s].len =
spctab[s].siz = CCKD_L2TAB_SIZE;
s++;
/* adjust the free space */
spctab[j].pos += CCKD_L2TAB_SIZE;
spctab[j].len -= CCKD_L2TAB_SIZE;
spctab[j].siz -= CCKD_L2TAB_SIZE;
} /* for each l2 table */
/*-----------------------------------------------------------
* Phase 3 -- write l1 and l2 tables
*-----------------------------------------------------------*/
if (ro)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00375, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"file opened read-only"));
else
WRMSG(HHC00375, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"file opened read-only");
goto cdsk_error;
}
if (comperrs)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00375, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"missing compression"));
else
WRMSG(HHC00375, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"missing compression");
goto cdsk_error;
}
/* Write the l1 table */
off = CCKD_L1TAB_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = l1size;
if ((rc = write (fd, l1, len)) != len)
goto cdsk_write_error;
/* Write l2 tables */
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
{
l1x = spctab[i].val;
if (spctab[i].typ != SPCTAB_L2 || l2[l1x] == NULL)
continue;
off = (off_t)l1[l1x];
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_L2TAB_SIZE;
if ((rc = write (fd, l2[l1x], len)) != len)
goto cdsk_write_error;
free (l2[l1x]);
l2[l1x] = NULL;
} /* for each space */
/* Free recovery related storage */
if (l2)
{
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l2[i])
free (l2[i]);
free (l2); l2 = NULL;
}
free (l2errs); l2errs = NULL;
free (rcvtab); rcvtab = NULL;
/* Ensure we do free space recovery */
fsperr = 1;
} /* if (recovery || level >= 4) */
/*---------------------------------------------------------------
* Rebuild free space
*---------------------------------------------------------------*/
if (fsperr && ro)
{
if(dev->batch)
fprintf(stdout, MSG(HHC00376, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00376, "W", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
}
else if (fsperr)
{
/*-----------------------------------------------------------
* Phase 1 -- build the free space
* make sure the last space isn't free space and
* that each free space is long enough (8 bytes).
*-----------------------------------------------------------*/
cdsk_fsperr_retry:
s = cdsk_build_free_space (spctab, s);
/*
* spctab[s-1] is the SPCTAB_EOF entry.
* if spctab[s-2] is SPCTAB_FREE then discard it
*/
if (spctab[s-2].typ == SPCTAB_FREE)
{
spctab[s-1].typ = SPCTAB_NONE;
spctab[s-2].typ = SPCTAB_EOF;
spctab[s-2].val = -1;
spctab[s-2].len =
spctab[s-2].siz = 0;
s--;
}
/*
* Check for short free spaces.
* If found, shift left until the next free space or eof.
*/
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_FREE
&& spctab[i].siz < CCKD_FREEBLK_SIZE)
break;
if (spctab[i].typ != SPCTAB_EOF)
{
/* Shift following space left */
l = spctab[i++].siz;
while (spctab[i].typ != SPCTAB_FREE && spctab[i].typ != SPCTAB_EOF)
{
/* Read the space and write shifted to the left */
off = (off_t)spctab[i].pos;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = spctab[i].siz;
if ((rc = read (fd, buf, len)) != len)
goto cdsk_read_error;
off -= l;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, buf, len)) != len)
goto cdsk_write_error;
spctab[i].pos -= l;
/* Update the l2 or l1 table entry */
if (spctab[i].typ == trktyp)
{
l1x = spctab[i].val/256;
l2x = spctab[i].val%256;
off = (off_t)l1[l1x] + l2x * CCKD_L2ENT_SIZE;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_L2ENT_SIZE;
if ((rc = read (fd, &l2ent, len)) != len)
goto cdsk_read_error;
l2ent.pos -= l;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, &l2ent, len)) != len)
goto cdsk_write_error;
} /* trk/blkgrp relocated */
else if (spctab[i].typ == SPCTAB_L2)
l1[spctab[i].val] -= l;
i++;
} /* while not FREE space or EOF */
goto cdsk_fsperr_retry;
} /* if short free space found */
/*-----------------------------------------------------------
* Phase 2 -- rebuild free space statistics
*-----------------------------------------------------------*/
cdevhdr.vrm[0] = CCKD_VERSION;
cdevhdr.vrm[1] = CCKD_RELEASE;
cdevhdr.vrm[2] = CCKD_MODLVL;
cdevhdr.size = cdevhdr.used = cdevhdr.free =
cdevhdr.free_total = cdevhdr.free_largest =
cdevhdr.free_number = cdevhdr.free_imbed = 0;
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_FREE)
{
cdevhdr.size += spctab[i].siz;
if (spctab[i].siz > cdevhdr.free_largest)
cdevhdr.free_largest = spctab[i].siz;
cdevhdr.free_total += spctab[i].siz;
cdevhdr.free_number++;
}
else
{
cdevhdr.size += spctab[i].siz;
cdevhdr.used += spctab[i].len;
cdevhdr.free_total += spctab[i].siz - spctab[i].len;
cdevhdr.free_imbed += spctab[i].siz - spctab[i].len;
}
/*-----------------------------------------------------------
* Phase 3 -- write the free space
*-----------------------------------------------------------*/
if (cdevhdr.free_number)
{
/* size needed for new format free space */
len = (cdevhdr.free_number+1) * CCKD_FREEBLK_SIZE;
/* look for existing free space to fit new format free space */
for (i = off = 0; !off && spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_FREE && len <= (int)spctab[i].siz)
off = (off_t)spctab[i].pos;
/* if no applicable space see if we can append to the file */
if (!off && maxsize - cdevhdr.size >= len)
off = (off_t)cdevhdr.size;
/* get free space buffer */
if (off && (fsp = malloc (len)) == NULL)
off = 0;
if (off)
{
/* new format free space */
memcpy (fsp, "FREE_BLK", 8);
for (i = 0, j = 1; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_FREE)
{
fsp[j].pos = spctab[i].pos;
fsp[j++].len = spctab[i].siz;
}
/* Write the free space */
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if ((rc = write (fd, fsp, len)) != len)
goto cdsk_write_error;
cdevhdr.free = (U32)off;
free (fsp);
fsp = NULL;
} /* new format free space */
else
{
/* old format free space */
len = CCKD_FREEBLK_SIZE;
for (i = 0; spctab[i].typ != SPCTAB_FREE; i++);
cdevhdr.free = spctab[i].pos;
off = (off_t)spctab[i].pos;
freeblk.pos = 0;
freeblk.len = spctab[i].siz;
for (i = i + 1; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].typ == SPCTAB_FREE)
{
freeblk.pos = spctab[i].pos;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if (write (fd, &freeblk, len) != len)
goto cdsk_write_error;
off = (off_t)spctab[i].pos;
freeblk.pos = 0;
freeblk.len = spctab[i].len;
}
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
if (write (fd, &freeblk, len) != len)
goto cdsk_write_error;
} /* old format free space */
} /* if (cdevhdr.free_number) */
/* Write cdevhdr and l1 table */
off = CCKD_DEVHDR_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = CCKD_DEVHDR_SIZE;
if (write (fd, &cdevhdr, len) != len)
goto cdsk_write_error;
off = CCKD_L1TAB_POS;
if (lseek (fd, off, SEEK_SET) < 0)
goto cdsk_lseek_error;
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
len = l1size;
if (write (fd, l1, len) != len)
goto cdsk_write_error;
/* Truncate the file */
off = (off_t)cdevhdr.size;
if (cdevhdr.free == cdevhdr.size)
off += (cdevhdr.free_number+1) * CCKD_FREEBLK_SIZE;
rc = ftruncate (fd, off);
if(dev->batch)
fprintf(stdout, MSG(HHC00377, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename));
else
WRMSG(HHC00377, "I", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename);
} /* if (fsperr) */
/*---------------------------------------------------------------
* Return
*---------------------------------------------------------------*/
cdsk_return_ok:
rc = recovery ? 2 : fsperr ? 1 : 0;
if (!ro && (cdevhdr.options & (CCKD_ORDWR|CCKD_OPENED|CCKD_SPERRS)))
{
/*
* Leave the ORDWR bit on for now. This will prevent
* old-format free space releases from doing a -1 check
* on a file that has new-format free space
*/
#if 0
cdevhdr.options &= ~(CCKD_ORDWR|CCKD_OPENED|CCKD_SPERRS);
#else
cdevhdr.options &= ~(CCKD_OPENED|CCKD_SPERRS);
#endif
/* Set version.release.modlvl */
cdevhdr.vrm[0] = CCKD_VERSION;
cdevhdr.vrm[1] = CCKD_RELEASE;
cdevhdr.vrm[2] = CCKD_MODLVL;
off = CCKD_DEVHDR_POS;
if (lseek (fd, CCKD_DEVHDR_POS, SEEK_SET) >= 0)
write (fd, &cdevhdr, CCKD_DEVHDR_SIZE);
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
}
cdsk_return:
gui_fprintf (stderr, "POS=%"I64_FMT"u\n", (U64) lseek( fd, 0, SEEK_CUR ));
/* free all space */
if (l1) free (l1);
if (spctab) free (spctab);
if (l2errs) free (l2errs);
if (rcvtab) free (rcvtab);
if (fsp) free (fsp);
if (l2)
{
for (i = 0; i < cdevhdr.numl1tab; i++)
if (l2[i]) free (l2[i]);
free (l2);
}
return rc;
/*---------------------------------------------------------------
* Error exits
*---------------------------------------------------------------*/
cdsk_fstat_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"fstat()", strerror(errno));
goto cdsk_error;
cdsk_lseek_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno)));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"lseek()", off, strerror(errno));
goto cdsk_error;
cdsk_read_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"read()", off, rc < 0 ? strerror(errno) : "incomplete");
goto cdsk_error;
cdsk_write_error:
if(dev->batch)
fprintf(stdout, MSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete"));
else
WRMSG(HHC00355, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
"write()", off, rc < 0 ? strerror(errno) : "incomplete");
goto cdsk_error;
cdsk_malloc_error:
{
char buf[64];
MSGBUF( buf, "malloc(%d)", len);
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno));
}
goto cdsk_error;
cdsk_calloc_error:
{
char buf[64];
MSGBUF( buf, "calloc(%d)", n * len);
if(dev->batch)
fprintf(stdout, MSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno)));
else
WRMSG(HHC00354, "E", SSID_TO_LCSS(dev->ssid), dev->devnum, dev->filename,
buf, strerror(errno));
}
goto cdsk_error;
cdsk_error:
rc = -1;
goto cdsk_return;
} /* end function cckd_chkdsk */
/*-------------------------------------------------------------------
* cckd_chkdsk() space table sort
*-------------------------------------------------------------------*/
static int cdsk_spctab_sort(const void *a, const void *b)
{
const SPCTAB *x = a, *y = b;
if (x->typ == SPCTAB_NONE) return 1;
else if (y->typ == SPCTAB_NONE) return -1;
else if (x->typ == SPCTAB_EOF) return 1;
else if (y->typ == SPCTAB_EOF) return -1;
else if (x->pos < y->pos) return -1;
else return 1;
} /* end function cdsk_spctab_sort */
/*-------------------------------------------------------------------*/
/* Build free space in the space table */
/*-------------------------------------------------------------------*/
static int cdsk_build_free_space(SPCTAB *spctab, int s)
{
int i;
for (i = 0; i < s; i++)
if (spctab[i].typ == SPCTAB_FREE)
spctab[i].typ = SPCTAB_NONE;
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
while (spctab[s-1].typ == SPCTAB_NONE) s--;
for (i = 0; spctab[i].typ != SPCTAB_EOF; i++)
if (spctab[i].pos + spctab[i].siz < spctab[i+1].pos)
{
spctab[s].typ = SPCTAB_FREE;
spctab[s].val = -1;
spctab[s].pos = spctab[i].pos + spctab[i].siz;
spctab[s].len =
spctab[s].siz = spctab[i+1].pos - spctab[s].pos;
s++;
}
qsort (spctab, s, sizeof(SPCTAB), cdsk_spctab_sort);
return s;
}
/*-------------------------------------------------------------------*/
/* Validate a track image */
/* */
/* If `len' is negative and compression is CCKD_COMPRESS_NONE then */
/* `len' indicates a buffer size containing the track image and the */
/* value returned is the actual track image length */
/*-------------------------------------------------------------------*/
static int cdsk_valid_trk (int trk, BYTE *buf, int heads, int len)
{
int i; /* Index */
int len2; /* Positive `len' */
int kl, dl; /* Key/Data lengths */
BYTE *bufp; /* Buffer pointer */
int bufl; /* Buffer length */
#ifdef HAVE_LIBZ
uLongf zlen;
#endif
#ifdef CCKD_BZIP2
unsigned int bz2len;
#endif
#if defined(HAVE_LIBZ) || defined(CCKD_BZIP2)
int rc; /* Return code */
BYTE buf2[65536]; /* Uncompressed buffer */
#endif
/* Negative len only allowed for comp none */
len2 = len > 0 ? len : -len;
if (len2 < CKDDASD_TRKHDR_SIZE + 8)
return 0;
/* Uncompress the track/block image */
switch (buf[0]) {
case CCKD_COMPRESS_NONE:
bufp = buf;
bufl = len2;
break;
#ifdef HAVE_LIBZ
case CCKD_COMPRESS_ZLIB:
if (len < 0) return 0;
bufp = (BYTE *)buf2;
memcpy (buf2, buf, CKDDASD_TRKHDR_SIZE);
zlen = sizeof(buf2) - CKDDASD_TRKHDR_SIZE;
rc = uncompress (buf2 + CKDDASD_TRKHDR_SIZE, &zlen,
buf + CKDDASD_TRKHDR_SIZE, len - CKDDASD_TRKHDR_SIZE);
if (rc != Z_OK)
return 0;
bufl = (int)zlen + CKDDASD_TRKHDR_SIZE;
break;
#endif
#ifdef CCKD_BZIP2
case CCKD_COMPRESS_BZIP2:
if (len < 0) return 0;
bufp = (BYTE *)buf2;
memcpy (buf2, buf, CKDDASD_TRKHDR_SIZE);
bz2len = sizeof(buf2) - CKDDASD_TRKHDR_SIZE;
rc = BZ2_bzBuffToBuffDecompress ( (char *)&buf2[CKDDASD_TRKHDR_SIZE], &bz2len,
(char *)&buf[CKDDASD_TRKHDR_SIZE], len - CKDDASD_TRKHDR_SIZE, 0, 0);
if (rc != BZ_OK)
return 0;
bufl = (int)bz2len + CKDDASD_TRKHDR_SIZE;
break;
#endif
default:
return 0;
} /* switch (buf[0]) */
/* fba check */
if (heads == 65536)
{
if (bufl != CFBA_BLOCK_SIZE + CKDDASD_TRKHDR_SIZE)
return 0;
else
return len > 0 ? len : bufl;
}
/* Check length */
if (bufl <= 5 + 8 + 8 + 8 + 8) return 0;
/* Check ha */
if (fetch_hw(bufp + 1) != trk / heads
|| fetch_hw(bufp + 3) != trk % heads)
return 0;
/* Check r0 */
if (fetch_hw(bufp + 1) != fetch_hw(bufp + 5)
|| fetch_hw(bufp + 3) != fetch_hw(bufp + 7)
|| bufp[9] != 0 || bufp[10] != 0
|| fetch_hw(bufp +11) != 8)
return 0;
/* Check user records */
for (i = 21; i < bufl - 8; i += 8 + kl + dl)
{
if (fetch_hw(bufp + i + 2) >= heads || bufp[i + 4] == 0)
break;
kl = bufp[i + 5];
dl = fetch_hw(bufp + i + 6);
}
if (len < 0) bufl = i + 8;
if (i != bufl - 8 || memcmp(bufp + i, eighthexFF, 8))
return 0;
return len > 0 ? len : bufl;
} /* end function cdsk_valid_trk */
|
/**
* @author Hao Ren
* 10 September, 2021
*
* Definition for singly-linked list.
* struct ListNode {
* int val;
* struct ListNode *next;
* };
*/
int getDecimalValue(struct ListNode *head) {
int sum = 0;
for (struct ListNode *curr = head; curr != NULL; curr = curr->next) {
sum = sum << 1 | curr->val;
}
return sum;
}
|
import application.tests
application.run
|
// @flow
import path from 'path'
import util from 'util'
import spawn from 'cross-spawn'
import fs from 'fs-extra'
import ora from 'ora'
import resolve from 'resolve'
import runSeries from 'run-series'
import merge from 'webpack-merge'
import debug from './debug'
import type {ErrBack} from './types'
/**
* Check if the given directories exist and filter out any which don't.
*/
function checkDirectories(
dirs: string[],
cb: (?Error, existingDirs?: string[]) => void,
) {
runSeries(
dirs.map(dir => cb => fs.stat(dir, (err, stats) => {
if (err) return cb(err.code === 'ENOENT' ? null : err)
cb(null, stats.isDirectory() ? dir : null)
})),
(err, dirs) => {
if (err) return cb(err)
cb(null, dirs.filter(dir => dir != null))
}
)
}
/**
* If any of the given directories exist, display a spinner and delete them.
*/
export function clean(
// A description of what's being cleaned, e.g. 'app'
desc: string,
// Paths to delete
dirs: string[],
cb: ErrBack,
) {
checkDirectories(dirs, (err, dirs) => {
if (err != null) return cb(err)
if (dirs == null || dirs.length === 0) return cb()
let spinner = ora(`Cleaning ${desc}`).start()
runSeries(
dirs.map(dir => cb => fs.remove(dir, cb)),
(err) => {
if (err) {
spinner.fail()
return cb(err)
}
spinner.succeed()
cb()
}
)
})
}
/**
* Clear console scrollback.
*/
export function clearConsole() {
// Hack for testing
if (process.env.NWB_TEST) return
// This will completely wipe scrollback in cmd.exe on Windows - use cmd.exe's
// `start` command to launch nwb's dev server in a new prompt if you don't
// want to lose it.
process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H')
}
/**
* Log objects in their entirety so we can see everything in debug output.
*/
export function deepToString(object: Object): string {
return util.inspect(object, {colors: true, depth: null})
}
/**
* Check if a directory exists.
*/
export function directoryExists(dir: string): boolean {
try {
return fs.statSync(dir).isDirectory()
}
catch (e) {
return false
}
}
/**
* Get a list of nwb plugin names passed as arguments.
*/
export function getArgsPlugins(
args: {
// comma-separated list of nwb plugin names
plugins?: string,
// Comma-separated list of nwb plugin names (allowing for typos)
plugin?: string,
}
): string[] {
let plugins = args.plugins || args.plugin
if (!plugins) return []
return plugins.split(',').map(name => name.replace(/^(nwb-)?/, 'nwb-'))
}
type InstallOptions = {
// Parsed arguments
args?: Object,
// Check if packages are resolvable from the cwd and skip installation if
// already installed.
check?: boolean,
// Working directory to install in
cwd?: string,
// Save dependencies to devDependencies
dev?: boolean,
// Save dependencies to package.json
save?: boolean,
};
/**
* Install packages from npm.
*/
export function install(
// npm package names, which may be in package@version format
packages: string[],
options: InstallOptions,
cb: ErrBack,
) {
let {
args = null,
check = false,
cwd = process.cwd(),
dev = false,
save = false,
} = options
// If the command being run allows users to specify an nwb plugins option by
// providing the args object here, make sure they're installed.
if (args) {
packages = packages.concat(getArgsPlugins(args))
}
if (check) {
packages = packages.filter(pkg => {
// Assumption: we're not dealing with scoped packages, which start with @
let name = pkg.split('@')[0]
try {
resolve.sync(name, {basedir: cwd})
return false
}
catch (e) {
return true
}
})
}
if (packages.length === 0) {
return process.nextTick(cb)
}
let npmArgs = ['install', '--silent', '--no-progress', '--no-package-lock']
if (save) {
npmArgs.push(`--save${dev ? '-dev' : ''}`)
}
npmArgs = npmArgs.concat(packages)
debug(`${cwd} $ npm ${npmArgs.join(' ')}`)
let spinner = ora(`Installing ${joinAnd(packages)}`).start()
let npm = spawn('npm', npmArgs, {cwd, stdio: ['ignore', 'pipe', 'inherit']})
npm.on('close', (code) => {
if (code !== 0) {
spinner.fail()
return cb(new Error('npm install failed'))
}
spinner.succeed()
cb()
})
}
/**
* Join multiple items with a penultimate "and".
*/
export function joinAnd(array: any[], lastClause: string = 'and') {
if (array.length === 0) return ''
if (array.length === 1) return String(array[0])
return `${array.slice(0, -1).join(', ')} ${lastClause} ${array[array.length - 1]}`
}
/**
* Get the path to an npm module.
*/
export function modulePath(module: string, basedir: string = process.cwd()): string {
return path.dirname(resolve.sync(`${module}/package.json`, {basedir}))
}
export function padLines(message: string, padding: string = ' '): string {
return message.split('\n').map(line => `${padding}${line}`).join('\n')
}
export function pluralise(count: number, suffixes : string = ',s'): string {
return suffixes.split(',')[count === 1 ? 0 : 1]
}
/**
* Custom merge which replaces arrays instead of concatenating them.
*/
export const replaceArrayMerge = merge({customizeArray(a, b, key) { return b }})
/**
* Hack to generate simple config file contents by stringifying to JSON, but
* without JSON formatting.
*/
export function toSource(obj: Object) {
return JSON.stringify(obj, null, 2)
.replace(/"([^"]+)":/g, '$1:')
.replace(/"/g, "'")
}
/**
* Better typeof.
*/
export function typeOf(o: any) {
if (Number.isNaN(o)) return 'nan'
return Object.prototype.toString.call(o).slice(8, -1).toLowerCase()
}
/**
* @param {Array<string>} strings
*/
export function unique(strings: string[]): string[] {
// eslint-disable-next-line
return Object.keys(strings.reduce((o, s) => (o[s] = true, o), {}))
}
/**
* Removes npm package scope from package name
*/
export function formatPackageName(name: string) {
const scopedPackageRegex = new RegExp(`^@[a-z0-9][\\w-.]+/[a-z0-9][\\w-.]*`, 'i')
if (scopedPackageRegex.test(name)) {
return name.split('/')[1]
}
return name
}
|
/**
* Created by liekkas.zeng on 2015/1/7.
*/
angular.module('ng-echarts',[])
.directive('ngEcharts',[function(){
return {
link: function(scope,element,attrs,ctrl){
function refreshChart(){
var theme = (scope.config && scope.config.theme)
? scope.config.theme : 'default';
var chart = echarts.init(element[0],theme);
if(scope.config && scope.config.dataLoaded === false){
chart.showLoading();
}
if(scope.config && scope.config.dataLoaded){
chart.setOption(scope.option);
chart.resize();
chart.hideLoading();
}
if(scope.config && scope.config.event){
if(angular.isArray(scope.config.event)){
angular.forEach(scope.config.event,function(value,key){
for(var e in value){
chart.on(e,value[e]);
}
});
}
}
};
//自定义参数 - config
// event 定义事件
// theme 主题名称
// dataLoaded 数据是否加载
scope.$watch(
function () { return scope.config; },
function (value) {if (value) {refreshChart();}},
true
);
//图表原生option
scope.$watch(
function () { return scope.option; },
function (value) {if (value) {refreshChart();}},
true
);
},
scope:{
option:'=ecOption',
config:'=ecConfig'
},
restrict:'EA'
}
}]);
|
import { login, logout, getInfo } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import router, { resetRouter } from '@/router'
import default_avatar from '@/assets/platform/avatar.png';
const state = {
token: getToken(),
name: '',
avatar: '',
introduction: '',
roles: []
}
const mutations = {
SET_TOKEN: (state, token) => {
state.token = token
},
SET_INTRODUCTION: (state, introduction) => {
state.introduction = introduction
},
SET_NAME: (state, name) => {
state.name = name
},
SET_AVATAR: (state, avatar) => {
state.avatar = avatar
},
SET_ROLES: (state, roles) => {
state.roles = roles
}
}
const actions = {
// 用户登录
login({ commit }, userInfo) {
const { username, password } = userInfo
return new Promise((resolve, reject) => {
login({ username: username.trim(), password: password }).then(response => {
console.log('登录成功!', response);
const { data } = response
commit('SET_TOKEN', data.token)
setToken(data.token)
resolve()
}).catch(error => {
reject(error)
})
})
},
// get user info
getInfo({ commit, state }) {
return new Promise((resolve, reject) => {
getInfo(state.token).then(response => {
const { data } = response
if (!data) {
reject('Verification failed, please Login again.')
}
const { roles, name, avatar, introduction } = data
// roles must be a non-empty array
if (!roles || roles.length <= 0) {
reject('getInfo: roles must be a non-null array!')
}
commit('SET_ROLES', roles)
commit('SET_NAME', name)
commit('SET_AVATAR', avatar || default_avatar)
commit('SET_INTRODUCTION', introduction)
resolve(data)
}).catch(error => {
reject(error)
})
})
},
// user logout
logout({ commit, state, dispatch }) {
return new Promise((resolve, reject) => {
logout(state.token).then(() => {
commit('SET_TOKEN', '')
commit('SET_ROLES', [])
removeToken()
resetRouter()
// reset visited views and cached views
// to fixed https://github.com/PanJiaChen/vue-element-admin/issues/2485
dispatch('tagsView/delAllViews', null, { root: true })
resolve()
}).catch(error => {
reject(error)
})
})
},
// remove token
resetToken({ commit }) {
return new Promise(resolve => {
commit('SET_TOKEN', '')
commit('SET_ROLES', [])
removeToken()
resolve()
})
},
// dynamically modify permissions
async changeRoles({ commit, dispatch }, role) {
const token = role + '-token'
commit('SET_TOKEN', token)
setToken(token)
const { roles } = await dispatch('getInfo')
resetRouter()
// generate accessible routes map based on roles
const accessRoutes = await dispatch('permission/generateRoutes', roles, { root: true })
// dynamically add accessible routes
router.addRoutes(accessRoutes)
// reset visited views and cached views
dispatch('tagsView/delAllViews', null, { root: true })
}
}
export default {
namespaced: true,
state,
mutations,
actions
}
|
/*
* WPA Supplicant / Configuration parser and common functions
* Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "wpa_common.h"
#include "utils/uuid.h"
#include "utils/ip_addr.h"
#include "fst/fst.h"
#include "config.h"
#include "str_pub.h"
#include "eap_peer/eap.h"
#if !defined(CONFIG_CTRL_IFACE) && defined(CONFIG_NO_CONFIG_WRITE)
#define NO_CONFIG_WRITE
#endif
/*
* Structure for network configuration parsing. This data is used to implement
* a generic parser for each network block variable. The table of configuration
* variables is defined below in this file (ssid_fields[]).
*/
struct parse_data {
/* Configuration variable name */
char *name;
/* Parser function for this variable */
int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
int line, const char *value);
#ifndef NO_CONFIG_WRITE
/* Writer function (i.e., to get the variable in text format from
* internal presentation). */
char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
#endif /* NO_CONFIG_WRITE */
/* Variable specific parameters for the parser. */
void *param1, *param2, *param3, *param4;
/* 0 = this variable can be included in debug output and ctrl_iface
* 1 = this variable contains key/private data and it must not be
* included in debug output unless explicitly requested. In
* addition, this variable will not be readable through the
* ctrl_iface.
*/
int key_data;
};
static int wpa_config_parse_str(const struct parse_data *data,
struct wpa_ssid *ssid,
int line, const char *value)
{
size_t res_len, *dst_len;
char **dst, *tmp;
if (os_strcmp(value, "NULL") == 0) {
wpa_printf(MSG_DEBUG, "Unset configuration string '%s'",
data->name);
tmp = NULL;
res_len = 0;
goto set;
}
tmp = wpa_config_parse_string(value, &res_len);
if (tmp == NULL) {
wpa_printf(MSG_ERROR, "Line %d: failed to parse %s '%s'.",
line, data->name,
data->key_data ? "[KEY DATA REMOVED]" : value);
return -1;
}
if (data->key_data) {
wpa_hexdump_ascii_key(MSG_MSGDUMP, data->name,
(u8 *) tmp, res_len);
} else {
wpa_hexdump_ascii(MSG_MSGDUMP, data->name,
(u8 *) tmp, res_len);
}
if (data->param3 && res_len < (size_t) data->param3) {
wpa_printf(MSG_ERROR, "Line %d: too short %s (len=%lu "
"min_len=%ld)", line, data->name,
(unsigned long) res_len, (long) data->param3);
os_free(tmp);
return -1;
}
if (data->param4 && res_len > (size_t) data->param4) {
wpa_printf(MSG_ERROR, "Line %d: too long %s (len=%lu "
"max_len=%ld)", line, data->name,
(unsigned long) res_len, (long) data->param4);
os_free(tmp);
return -1;
}
set:
dst = (char **) (((u8 *) ssid) + (long) data->param1);
dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2);
os_free(*dst);
*dst = tmp;
if (data->param2)
*dst_len = res_len;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_string_ascii(const u8 *value, size_t len)
{
char *buf;
buf = os_malloc(len + 3);
if (buf == NULL)
return NULL;
buf[0] = '"';
os_memcpy(buf + 1, value, len);
buf[len + 1] = '"';
buf[len + 2] = '\0';
return buf;
}
static char * wpa_config_write_string_hex(const u8 *value, size_t len)
{
char *buf;
buf = os_zalloc(2 * len + 1);
if (buf == NULL)
return NULL;
wpa_snprintf_hex(buf, 2 * len + 1, value, len);
return buf;
}
static char * wpa_config_write_string(const u8 *value, size_t len)
{
if (value == NULL)
return NULL;
if (is_hex(value, len))
return wpa_config_write_string_hex(value, len);
else
return wpa_config_write_string_ascii(value, len);
}
static char * wpa_config_write_str(const struct parse_data *data,
struct wpa_ssid *ssid)
{
size_t len;
char **src;
src = (char **) (((u8 *) ssid) + (long) data->param1);
if (*src == NULL)
return NULL;
if (data->param2)
len = *((size_t *) (((u8 *) ssid) + (long) data->param2));
else
len = os_strlen(*src);
return wpa_config_write_string((const u8 *) *src, len);
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_int(const struct parse_data *data,
struct wpa_ssid *ssid,
int line, const char *value)
{
int val, *dst;
char *end;
dst = (int *) (((u8 *) ssid) + (long) data->param1);
val = strtol(value, &end, 0);
if (*end) {
wpa_printf(MSG_ERROR, "Line %d: invalid number \"%s\"",
line, value);
return -1;
}
*dst = val;
wpa_printf(MSG_MSGDUMP, "%s=%d (0x%x)", data->name, *dst, *dst);
if (data->param3 && *dst < (long) data->param3) {
wpa_printf(MSG_ERROR, "Line %d: too small %s (value=%d "
"min_value=%ld)", line, data->name, *dst,
(long) data->param3);
*dst = (long) data->param3;
return -1;
}
if (data->param4 && *dst > (long) data->param4) {
wpa_printf(MSG_ERROR, "Line %d: too large %s (value=%d "
"max_value=%ld)", line, data->name, *dst,
(long) data->param4);
*dst = (long) data->param4;
return -1;
}
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_int(const struct parse_data *data,
struct wpa_ssid *ssid)
{
int *src, res;
char *value;
src = (int *) (((u8 *) ssid) + (long) data->param1);
value = os_malloc(20);
if (value == NULL)
return NULL;
res = os_snprintf(value, 20, "%d", *src);
if (os_snprintf_error(20, res)) {
os_free(value);
return NULL;
}
value[20 - 1] = '\0';
return value;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_addr_list(const struct parse_data *data,
int line, const char *value,
u8 **list, size_t *num, char *name,
u8 abort_on_error, u8 masked)
{
const char *pos;
u8 *buf, *n, addr[2 * ETH_ALEN];
size_t count;
buf = NULL;
count = 0;
pos = value;
while (pos && *pos) {
while (*pos == ' ')
pos++;
if (hwaddr_masked_aton(pos, addr, &addr[ETH_ALEN], masked)) {
if (abort_on_error || count == 0) {
wpa_printf(MSG_ERROR,
"Line %d: Invalid %s address '%s'",
line, name, value);
os_free(buf);
return -1;
}
/* continue anyway since this could have been from a
* truncated configuration file line */
wpa_printf(MSG_INFO,
"Line %d: Ignore likely truncated %s address '%s'",
line, name, pos);
} else {
n = os_realloc_array(buf, count + 1, 2 * ETH_ALEN);
if (n == NULL) {
os_free(buf);
return -1;
}
buf = n;
os_memmove(buf + 2 * ETH_ALEN, buf,
count * 2 * ETH_ALEN);
os_memcpy(buf, addr, 2 * ETH_ALEN);
count++;
wpa_printf(MSG_MSGDUMP,
"%s: addr=" MACSTR " mask=" MACSTR,
name, MAC2STR(addr),
MAC2STR(&addr[ETH_ALEN]));
}
pos = os_strchr(pos, ' ');
}
os_free(*list);
*list = buf;
*num = count;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_addr_list(const struct parse_data *data,
const u8 *list, size_t num, char *name)
{
char *value, *end, *pos;
int res;
size_t i;
if (list == NULL || num == 0)
return NULL;
value = os_malloc(2 * 20 * num);
if (value == NULL)
return NULL;
pos = value;
end = value + 2 * 20 * num;
for (i = num; i > 0; i--) {
const u8 *a = list + (i - 1) * 2 * ETH_ALEN;
const u8 *m = a + ETH_ALEN;
if (i < num)
*pos++ = ' ';
res = hwaddr_mask_txt(pos, end - pos, a, m);
if (res < 0) {
os_free(value);
return NULL;
}
pos += res;
}
return value;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_bssid(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
if (value[0] == '\0' || os_strcmp(value, "\"\"") == 0 ||
os_strcmp(value, "any") == 0) {
ssid->bssid_set = 0;
wpa_printf(MSG_MSGDUMP, "BSSID any");
return 0;
}
if (hwaddr_aton(value, ssid->bssid)) {
wpa_printf(MSG_ERROR, "Line %d: Invalid BSSID '%s'.",
line, value);
return -1;
}
ssid->bssid_set = 1;
wpa_hexdump(MSG_MSGDUMP, "BSSID", ssid->bssid, ETH_ALEN);
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_bssid(const struct parse_data *data,
struct wpa_ssid *ssid)
{
char *value;
int res;
if (!ssid->bssid_set)
return NULL;
value = os_malloc(20);
if (value == NULL)
return NULL;
res = os_snprintf(value, 20, MACSTR, MAC2STR(ssid->bssid));
if (os_snprintf_error(20, res)) {
os_free(value);
return NULL;
}
value[20 - 1] = '\0';
return value;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_bssid_blacklist(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_addr_list(data, line, value,
&ssid->bssid_blacklist,
&ssid->num_bssid_blacklist,
"bssid_blacklist", 1, 1);
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_bssid_blacklist(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_addr_list(data, ssid->bssid_blacklist,
ssid->num_bssid_blacklist,
"bssid_blacklist");
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_bssid_whitelist(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_addr_list(data, line, value,
&ssid->bssid_whitelist,
&ssid->num_bssid_whitelist,
"bssid_whitelist", 1, 1);
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_bssid_whitelist(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_addr_list(data, ssid->bssid_whitelist,
ssid->num_bssid_whitelist,
"bssid_whitelist");
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_psk(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
#ifdef CONFIG_EXT_PASSWORD
if (os_strncmp(value, "ext:", 4) == 0) {
str_clear_free(ssid->passphrase);
ssid->passphrase = NULL;
ssid->psk_set = 0;
os_free(ssid->ext_psk);
ssid->ext_psk = os_strdup(value + 4);
if (ssid->ext_psk == NULL)
return -1;
wpa_printf(MSG_DEBUG, "PSK: External password '%s'",
ssid->ext_psk);
return 0;
}
#endif /* CONFIG_EXT_PASSWORD */
if (*value == '"') {
#ifndef CONFIG_NO_PBKDF2
const char *pos;
size_t len;
value++;
pos = os_strrchr(value, '"');
if (pos)
len = pos - value;
else
len = os_strlen(value);
if (len < 8 || len > 63) {
wpa_printf(MSG_ERROR, "Line %d: Invalid passphrase "
"length %lu (expected: 8..63) '%s'.",
line, (unsigned long) len, value);
return -1;
}
wpa_hexdump_ascii_key(MSG_MSGDUMP, "PSK (ASCII passphrase)",
(u8 *) value, len);
if (ssid->passphrase && os_strlen(ssid->passphrase) == len &&
os_memcmp(ssid->passphrase, value, len) == 0)
return 0;
ssid->psk_set = 0;
str_clear_free(ssid->passphrase);
ssid->passphrase = dup_binstr(value, len);
if (ssid->passphrase == NULL)
return -1;
return 0;
#else /* CONFIG_NO_PBKDF2 */
wpa_printf(MSG_ERROR, "Line %d: ASCII passphrase not "
"supported.", line);
return -1;
#endif /* CONFIG_NO_PBKDF2 */
}
if (hexstr2bin(value, ssid->psk, PMK_LEN) ||
value[PMK_LEN * 2] != '\0') {
wpa_printf(MSG_ERROR, "Line %d: Invalid PSK '%s'.",
line, value);
return -1;
}
str_clear_free(ssid->passphrase);
ssid->passphrase = NULL;
ssid->psk_set = 1;
wpa_hexdump_key(MSG_MSGDUMP, "PSK", ssid->psk, PMK_LEN);
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_psk(const struct parse_data *data,
struct wpa_ssid *ssid)
{
#ifdef CONFIG_EXT_PASSWORD
if (ssid->ext_psk) {
size_t len = 4 + os_strlen(ssid->ext_psk) + 1;
char *buf = os_malloc(len);
int res;
if (buf == NULL)
return NULL;
res = os_snprintf(buf, len, "ext:%s", ssid->ext_psk);
if (os_snprintf_error(len, res)) {
os_free(buf);
buf = NULL;
}
return buf;
}
#endif /* CONFIG_EXT_PASSWORD */
if (ssid->passphrase)
return wpa_config_write_string_ascii(
(const u8 *) ssid->passphrase,
os_strlen(ssid->passphrase));
if (ssid->psk_set)
return wpa_config_write_string_hex(ssid->psk, PMK_LEN);
return NULL;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_proto(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int val = 0, last, errors = 0;
char *start, *end, *buf;
buf = os_strdup(value);
if (buf == NULL)
return -1;
start = buf;
while (*start != '\0') {
while (*start == ' ' || *start == '\t')
start++;
if (*start == '\0')
break;
end = start;
while (*end != ' ' && *end != '\t' && *end != '\0')
end++;
last = *end == '\0';
*end = '\0';
if (os_strcmp(start, "WPA") == 0)
val |= WPA_PROTO_WPA;
else if (os_strcmp(start, "RSN") == 0 ||
os_strcmp(start, "WPA2") == 0)
val |= WPA_PROTO_RSN;
else if (os_strcmp(start, "OSEN") == 0)
val |= WPA_PROTO_OSEN;
else {
wpa_printf(MSG_ERROR, "Line %d: invalid proto '%s'",
line, start);
errors++;
}
if (last)
break;
start = end + 1;
}
os_free(buf);
if (val == 0) {
wpa_printf(MSG_ERROR,
"Line %d: no proto values configured.", line);
errors++;
}
wpa_printf(MSG_MSGDUMP, "proto: 0x%x", val);
ssid->proto = val;
return errors ? -1 : 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_proto(const struct parse_data *data,
struct wpa_ssid *ssid)
{
int ret;
char *buf, *pos, *end;
pos = buf = os_zalloc(20);
if (buf == NULL)
return NULL;
end = buf + 20;
if (ssid->proto & WPA_PROTO_WPA) {
ret = os_snprintf(pos, end - pos, "%sWPA",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
if (ssid->proto & WPA_PROTO_RSN) {
ret = os_snprintf(pos, end - pos, "%sRSN",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
if (ssid->proto & WPA_PROTO_OSEN) {
ret = os_snprintf(pos, end - pos, "%sOSEN",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
if (pos == buf) {
os_free(buf);
buf = NULL;
}
return buf;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_key_mgmt(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int val = 0, last, errors = 0;
char *start, *end, *buf;
buf = os_strdup(value);
if (buf == NULL)
return -1;
start = buf;
while (*start != '\0') {
while (*start == ' ' || *start == '\t')
start++;
if (*start == '\0')
break;
end = start;
while (*end != ' ' && *end != '\t' && *end != '\0')
end++;
last = *end == '\0';
*end = '\0';
if (os_strcmp(start, "WPA-PSK") == 0)
val |= WPA_KEY_MGMT_PSK;
else if (os_strcmp(start, "WPA-EAP") == 0)
val |= WPA_KEY_MGMT_IEEE8021X;
else if (os_strcmp(start, "IEEE8021X") == 0)
val |= WPA_KEY_MGMT_IEEE8021X_NO_WPA;
else if (os_strcmp(start, "NONE") == 0)
val |= WPA_KEY_MGMT_NONE;
else if (os_strcmp(start, "WPA-NONE") == 0)
val |= WPA_KEY_MGMT_WPA_NONE;
#ifdef CONFIG_IEEE80211R
else if (os_strcmp(start, "FT-PSK") == 0)
val |= WPA_KEY_MGMT_FT_PSK;
else if (os_strcmp(start, "FT-EAP") == 0)
val |= WPA_KEY_MGMT_FT_IEEE8021X;
#endif /* CONFIG_IEEE80211R */
#ifdef CONFIG_IEEE80211W
else if (os_strcmp(start, "WPA-PSK-SHA256") == 0)
val |= WPA_KEY_MGMT_PSK_SHA256;
else if (os_strcmp(start, "WPA-EAP-SHA256") == 0)
val |= WPA_KEY_MGMT_IEEE8021X_SHA256;
#endif /* CONFIG_IEEE80211W */
#ifdef CONFIG_WPS
else if (os_strcmp(start, "WPS") == 0)
val |= WPA_KEY_MGMT_WPS;
#endif /* CONFIG_WPS */
#ifdef CONFIG_SAE
else if (os_strcmp(start, "SAE") == 0)
val |= WPA_KEY_MGMT_SAE;
else if (os_strcmp(start, "FT-SAE") == 0)
val |= WPA_KEY_MGMT_FT_SAE;
#endif /* CONFIG_SAE */
#ifdef CONFIG_HS20
else if (os_strcmp(start, "OSEN") == 0)
val |= WPA_KEY_MGMT_OSEN;
#endif /* CONFIG_HS20 */
#ifdef CONFIG_SUITEB
else if (os_strcmp(start, "WPA-EAP-SUITE-B") == 0)
val |= WPA_KEY_MGMT_IEEE8021X_SUITE_B;
#endif /* CONFIG_SUITEB */
#ifdef CONFIG_SUITEB192
else if (os_strcmp(start, "WPA-EAP-SUITE-B-192") == 0)
val |= WPA_KEY_MGMT_IEEE8021X_SUITE_B_192;
#endif /* CONFIG_SUITEB192 */
else {
wpa_printf(MSG_ERROR, "Line %d: invalid key_mgmt '%s'",
line, start);
errors++;
}
if (last)
break;
start = end + 1;
}
os_free(buf);
if (val == 0) {
wpa_printf(MSG_ERROR,
"Line %d: no key_mgmt values configured.", line);
errors++;
}
wpa_printf(MSG_MSGDUMP, "key_mgmt: 0x%x", val);
ssid->key_mgmt = val;
return errors ? -1 : 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_key_mgmt(const struct parse_data *data,
struct wpa_ssid *ssid)
{
char *buf, *pos, *end;
int ret;
pos = buf = os_zalloc(100);
if (buf == NULL)
return NULL;
end = buf + 100;
if (ssid->key_mgmt & WPA_KEY_MGMT_PSK) {
ret = os_snprintf(pos, end - pos, "%sWPA-PSK",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X) {
ret = os_snprintf(pos, end - pos, "%sWPA-EAP",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) {
ret = os_snprintf(pos, end - pos, "%sIEEE8021X",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_NONE) {
ret = os_snprintf(pos, end - pos, "%sNONE",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_WPA_NONE) {
ret = os_snprintf(pos, end - pos, "%sWPA-NONE",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#ifdef CONFIG_IEEE80211R
if (ssid->key_mgmt & WPA_KEY_MGMT_FT_PSK) {
ret = os_snprintf(pos, end - pos, "%sFT-PSK",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X) {
ret = os_snprintf(pos, end - pos, "%sFT-EAP",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_IEEE80211R */
#ifdef CONFIG_IEEE80211W
if (ssid->key_mgmt & WPA_KEY_MGMT_PSK_SHA256) {
ret = os_snprintf(pos, end - pos, "%sWPA-PSK-SHA256",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_SHA256) {
ret = os_snprintf(pos, end - pos, "%sWPA-EAP-SHA256",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_IEEE80211W */
#ifdef CONFIG_WPS
if (ssid->key_mgmt & WPA_KEY_MGMT_WPS) {
ret = os_snprintf(pos, end - pos, "%sWPS",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_WPS */
#ifdef CONFIG_SAE
if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) {
ret = os_snprintf(pos, end - pos, "%sSAE",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->key_mgmt & WPA_KEY_MGMT_FT_SAE) {
ret = os_snprintf(pos, end - pos, "%sFT-SAE",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_SAE */
#ifdef CONFIG_HS20
if (ssid->key_mgmt & WPA_KEY_MGMT_OSEN) {
ret = os_snprintf(pos, end - pos, "%sOSEN",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_HS20 */
#ifdef CONFIG_SUITEB
if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B) {
ret = os_snprintf(pos, end - pos, "%sWPA-EAP-SUITE-B",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_SUITEB */
#ifdef CONFIG_SUITEB192
if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B_192) {
ret = os_snprintf(pos, end - pos, "%sWPA-EAP-SUITE-B-192",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
#endif /* CONFIG_SUITEB192 */
if (pos == buf) {
os_free(buf);
buf = NULL;
}
return buf;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_cipher(int line, const char *value)
{
int val = wpa_parse_cipher(value);
if (val < 0) {
wpa_printf(MSG_ERROR, "Line %d: invalid cipher '%s'.",
line, value);
return -1;
}
if (val == 0) {
wpa_printf(MSG_ERROR, "Line %d: no cipher values configured.",
line);
return -1;
}
return val;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_cipher(int cipher)
{
char *buf = os_zalloc(50);
if (buf == NULL)
return NULL;
if (wpa_write_ciphers(buf, buf + 50, cipher, " ") < 0) {
os_free(buf);
return NULL;
}
return buf;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_pairwise(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int val;
val = wpa_config_parse_cipher(line, value);
if (val == -1)
return -1;
if (val & ~WPA_ALLOWED_PAIRWISE_CIPHERS) {
wpa_printf(MSG_ERROR, "Line %d: not allowed pairwise cipher "
"(0x%x).", line, val);
return -1;
}
wpa_printf(MSG_MSGDUMP, "pairwise: 0x%x", val);
ssid->pairwise_cipher = val;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_pairwise(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_cipher(ssid->pairwise_cipher);
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_group(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int val;
val = wpa_config_parse_cipher(line, value);
if (val == -1)
return -1;
/*
* Backwards compatibility - filter out WEP ciphers that were previously
* allowed.
*/
val &= ~(WPA_CIPHER_WEP104 | WPA_CIPHER_WEP40);
if (val & ~WPA_ALLOWED_GROUP_CIPHERS) {
wpa_printf(MSG_ERROR, "Line %d: not allowed group cipher "
"(0x%x).", line, val);
return -1;
}
wpa_printf(MSG_MSGDUMP, "group: 0x%x", val);
ssid->group_cipher = val;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_group(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_cipher(ssid->group_cipher);
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_auth_alg(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int val = 0, last, errors = 0;
char *start, *end, *buf;
buf = os_strdup(value);
if (buf == NULL)
return -1;
start = buf;
while (*start != '\0') {
while (*start == ' ' || *start == '\t')
start++;
if (*start == '\0')
break;
end = start;
while (*end != ' ' && *end != '\t' && *end != '\0')
end++;
last = *end == '\0';
*end = '\0';
if (os_strcmp(start, "OPEN") == 0)
val |= WPA_AUTH_ALG_OPEN;
else if (os_strcmp(start, "SHARED") == 0)
val |= WPA_AUTH_ALG_SHARED;
else if (os_strcmp(start, "LEAP") == 0)
val |= WPA_AUTH_ALG_LEAP;
else {
wpa_printf(MSG_ERROR, "Line %d: invalid auth_alg '%s'",
line, start);
errors++;
}
if (last)
break;
start = end + 1;
}
os_free(buf);
if (val == 0) {
wpa_printf(MSG_ERROR,
"Line %d: no auth_alg values configured.", line);
errors++;
}
wpa_printf(MSG_MSGDUMP, "auth_alg: 0x%x", val);
ssid->auth_alg = val;
return errors ? -1 : 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_auth_alg(const struct parse_data *data,
struct wpa_ssid *ssid)
{
char *buf, *pos, *end;
int ret;
pos = buf = os_zalloc(30);
if (buf == NULL)
return NULL;
end = buf + 30;
if (ssid->auth_alg & WPA_AUTH_ALG_OPEN) {
ret = os_snprintf(pos, end - pos, "%sOPEN",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->auth_alg & WPA_AUTH_ALG_SHARED) {
ret = os_snprintf(pos, end - pos, "%sSHARED",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (ssid->auth_alg & WPA_AUTH_ALG_LEAP) {
ret = os_snprintf(pos, end - pos, "%sLEAP",
pos == buf ? "" : " ");
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
if (pos == buf) {
os_free(buf);
buf = NULL;
}
return buf;
}
#endif /* NO_CONFIG_WRITE */
static int * wpa_config_parse_int_array(const char *value)
{
int *freqs;
size_t used, len;
const char *pos;
used = 0;
len = 10;
freqs = os_calloc(len + 1, sizeof(int));
if (freqs == NULL)
return NULL;
pos = value;
while (pos) {
while (*pos == ' ')
pos++;
if (used == len) {
int *n;
size_t i;
n = os_realloc_array(freqs, len * 2 + 1, sizeof(int));
if (n == NULL) {
os_free(freqs);
return NULL;
}
for (i = len; i <= len * 2; i++)
n[i] = 0;
freqs = n;
len *= 2;
}
freqs[used] = atoi(pos);
if (freqs[used] == 0)
break;
used++;
pos = os_strchr(pos + 1, ' ');
}
return freqs;
}
static int wpa_config_parse_scan_freq(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int *freqs;
freqs = wpa_config_parse_int_array(value);
if (freqs == NULL)
return -1;
if (freqs[0] == 0) {
os_free(freqs);
freqs = NULL;
}
os_free(ssid->scan_freq);
ssid->scan_freq = freqs;
return 0;
}
static int wpa_config_parse_freq_list(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int *freqs;
freqs = wpa_config_parse_int_array(value);
if (freqs == NULL)
return -1;
if (freqs[0] == 0) {
os_free(freqs);
freqs = NULL;
}
os_free(ssid->freq_list);
ssid->freq_list = freqs;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_freqs(const struct parse_data *data,
const int *freqs)
{
char *buf, *pos, *end;
int i, ret;
size_t count;
if (freqs == NULL)
return NULL;
count = 0;
for (i = 0; freqs[i]; i++)
count++;
pos = buf = os_zalloc(10 * count + 1);
if (buf == NULL)
return NULL;
end = buf + 10 * count + 1;
for (i = 0; freqs[i]; i++) {
ret = os_snprintf(pos, end - pos, "%s%u",
i == 0 ? "" : " ", freqs[i]);
if (os_snprintf_error(end - pos, ret)) {
end[-1] = '\0';
return buf;
}
pos += ret;
}
return buf;
}
static char * wpa_config_write_scan_freq(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_freqs(data, ssid->scan_freq);
}
static char * wpa_config_write_freq_list(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_freqs(data, ssid->freq_list);
}
#endif /* NO_CONFIG_WRITE */
#ifdef IEEE8021X_EAPOL
static int wpa_config_parse_eap(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int last, errors = 0;
char *start, *end, *buf;
struct eap_method_type *methods = NULL, *tmp;
size_t num_methods = 0;
buf = os_strdup(value);
if (buf == NULL)
return -1;
start = buf;
while (*start != '\0') {
while (*start == ' ' || *start == '\t')
start++;
if (*start == '\0')
break;
end = start;
while (*end != ' ' && *end != '\t' && *end != '\0')
end++;
last = *end == '\0';
*end = '\0';
tmp = methods;
methods = os_realloc_array(methods, num_methods + 1,
sizeof(*methods));
if (methods == NULL) {
os_free(tmp);
os_free(buf);
return -1;
}
methods[num_methods].method = eap_peer_get_type(
start, &methods[num_methods].vendor);
if (methods[num_methods].vendor == EAP_VENDOR_IETF &&
methods[num_methods].method == EAP_TYPE_NONE) {
wpa_printf(MSG_ERROR, "Line %d: unknown EAP method "
"'%s'", line, start);
wpa_printf(MSG_ERROR, "You may need to add support for"
" this EAP method during wpa_supplicant\n"
"build time configuration.\n"
"See README for more information.");
errors++;
} else if (methods[num_methods].vendor == EAP_VENDOR_IETF &&
methods[num_methods].method == EAP_TYPE_LEAP)
ssid->leap++;
else
ssid->non_leap++;
num_methods++;
if (last)
break;
start = end + 1;
}
os_free(buf);
tmp = methods;
methods = os_realloc_array(methods, num_methods + 1, sizeof(*methods));
if (methods == NULL) {
os_free(tmp);
return -1;
}
methods[num_methods].vendor = EAP_VENDOR_IETF;
methods[num_methods].method = EAP_TYPE_NONE;
num_methods++;
wpa_hexdump(MSG_MSGDUMP, "eap methods",
(u8 *) methods, num_methods * sizeof(*methods));
os_free(ssid->eap.eap_methods);
ssid->eap.eap_methods = methods;
return errors ? -1 : 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_eap(const struct parse_data *data,
struct wpa_ssid *ssid)
{
int i, ret;
char *buf, *pos, *end;
const struct eap_method_type *eap_methods = ssid->eap.eap_methods;
const char *name;
if (eap_methods == NULL)
return NULL;
pos = buf = os_zalloc(100);
if (buf == NULL)
return NULL;
end = buf + 100;
for (i = 0; eap_methods[i].vendor != EAP_VENDOR_IETF ||
eap_methods[i].method != EAP_TYPE_NONE; i++) {
name = eap_get_name(eap_methods[i].vendor,
eap_methods[i].method);
if (name) {
ret = os_snprintf(pos, end - pos, "%s%s",
pos == buf ? "" : " ", name);
if (os_snprintf_error(end - pos, ret))
break;
pos += ret;
}
}
end[-1] = '\0';
return buf;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_password(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
u8 *hash;
if (os_strcmp(value, "NULL") == 0) {
wpa_printf(MSG_DEBUG, "Unset configuration string 'password'");
bin_clear_free(ssid->eap.password, ssid->eap.password_len);
ssid->eap.password = NULL;
ssid->eap.password_len = 0;
return 0;
}
#ifdef CONFIG_EXT_PASSWORD
if (os_strncmp(value, "ext:", 4) == 0) {
char *name = os_strdup(value + 4);
if (name == NULL)
return -1;
bin_clear_free(ssid->eap.password, ssid->eap.password_len);
ssid->eap.password = (u8 *) name;
ssid->eap.password_len = os_strlen(name);
ssid->eap.flags &= ~EAP_CONFIG_FLAGS_PASSWORD_NTHASH;
ssid->eap.flags |= EAP_CONFIG_FLAGS_EXT_PASSWORD;
return 0;
}
#endif /* CONFIG_EXT_PASSWORD */
if (os_strncmp(value, "hash:", 5) != 0) {
char *tmp;
size_t res_len;
tmp = wpa_config_parse_string(value, &res_len);
if (tmp == NULL) {
wpa_printf(MSG_ERROR, "Line %d: failed to parse "
"password.", line);
return -1;
}
wpa_hexdump_ascii_key(MSG_MSGDUMP, data->name,
(u8 *) tmp, res_len);
bin_clear_free(ssid->eap.password, ssid->eap.password_len);
ssid->eap.password = (u8 *) tmp;
ssid->eap.password_len = res_len;
ssid->eap.flags &= ~EAP_CONFIG_FLAGS_PASSWORD_NTHASH;
ssid->eap.flags &= ~EAP_CONFIG_FLAGS_EXT_PASSWORD;
return 0;
}
/* NtPasswordHash: hash:<32 hex digits> */
if (os_strlen(value + 5) != 2 * 16) {
wpa_printf(MSG_ERROR, "Line %d: Invalid password hash length "
"(expected 32 hex digits)", line);
return -1;
}
hash = os_malloc(16);
if (hash == NULL)
return -1;
if (hexstr2bin(value + 5, hash, 16)) {
os_free(hash);
wpa_printf(MSG_ERROR, "Line %d: Invalid password hash", line);
return -1;
}
wpa_hexdump_key(MSG_MSGDUMP, data->name, hash, 16);
bin_clear_free(ssid->eap.password, ssid->eap.password_len);
ssid->eap.password = hash;
ssid->eap.password_len = 16;
ssid->eap.flags |= EAP_CONFIG_FLAGS_PASSWORD_NTHASH;
ssid->eap.flags &= ~EAP_CONFIG_FLAGS_EXT_PASSWORD;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_password(const struct parse_data *data,
struct wpa_ssid *ssid)
{
char *buf;
if (ssid->eap.password == NULL)
return NULL;
#ifdef CONFIG_EXT_PASSWORD
if (ssid->eap.flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
buf = os_zalloc(4 + ssid->eap.password_len + 1);
if (buf == NULL)
return NULL;
os_memcpy(buf, "ext:", 4);
os_memcpy(buf + 4, ssid->eap.password, ssid->eap.password_len);
return buf;
}
#endif /* CONFIG_EXT_PASSWORD */
if (!(ssid->eap.flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH)) {
return wpa_config_write_string(
ssid->eap.password, ssid->eap.password_len);
}
buf = os_malloc(5 + 32 + 1);
if (buf == NULL)
return NULL;
os_memcpy(buf, "hash:", 5);
wpa_snprintf_hex(buf + 5, 32 + 1, ssid->eap.password, 16);
return buf;
}
#endif /* NO_CONFIG_WRITE */
#endif /* IEEE8021X_EAPOL */
static int wpa_config_parse_wep_key(u8 *key, size_t *len, int line,
const char *value, int idx)
{
char *buf, title[20];
int res;
buf = wpa_config_parse_string(value, len);
if (buf == NULL) {
wpa_printf(MSG_ERROR, "Line %d: Invalid WEP key %d '%s'.",
line, idx, value);
return -1;
}
if (*len > MAX_WEP_KEY_LEN) {
wpa_printf(MSG_ERROR, "Line %d: Too long WEP key %d '%s'.",
line, idx, value);
os_free(buf);
return -1;
}
if (*len && *len != 5 && *len != 13 && *len != 16) {
wpa_printf(MSG_ERROR, "Line %d: Invalid WEP key length %u - "
"this network block will be ignored",
line, (unsigned int) *len);
}
os_memcpy(key, buf, *len);
str_clear_free(buf);
res = os_snprintf(title, sizeof(title), "wep_key%d", idx);
if (!os_snprintf_error(sizeof(title), res))
wpa_hexdump_key(MSG_MSGDUMP, title, key, *len);
return 0;
}
static int wpa_config_parse_wep_key0(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_wep_key(ssid->wep_key[0],
&ssid->wep_key_len[0], line,
value, 0);
}
static int wpa_config_parse_wep_key1(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_wep_key(ssid->wep_key[1],
&ssid->wep_key_len[1], line,
value, 1);
}
static int wpa_config_parse_wep_key2(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_wep_key(ssid->wep_key[2],
&ssid->wep_key_len[2], line,
value, 2);
}
static int wpa_config_parse_wep_key3(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_wep_key(ssid->wep_key[3],
&ssid->wep_key_len[3], line,
value, 3);
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_wep_key(struct wpa_ssid *ssid, int idx)
{
if (ssid->wep_key_len[idx] == 0)
return NULL;
return wpa_config_write_string(ssid->wep_key[idx],
ssid->wep_key_len[idx]);
}
static char * wpa_config_write_wep_key0(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_wep_key(ssid, 0);
}
static char * wpa_config_write_wep_key1(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_wep_key(ssid, 1);
}
static char * wpa_config_write_wep_key2(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_wep_key(ssid, 2);
}
static char * wpa_config_write_wep_key3(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_wep_key(ssid, 3);
}
#endif /* NO_CONFIG_WRITE */
#ifdef CONFIG_P2P
static int wpa_config_parse_go_p2p_dev_addr(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
if (value[0] == '\0' || os_strcmp(value, "\"\"") == 0 ||
os_strcmp(value, "any") == 0) {
os_memset(ssid->go_p2p_dev_addr, 0, ETH_ALEN);
wpa_printf(MSG_MSGDUMP, "GO P2P Device Address any");
return 0;
}
if (hwaddr_aton(value, ssid->go_p2p_dev_addr)) {
wpa_printf(MSG_ERROR, "Line %d: Invalid GO P2P Device Address '%s'.",
line, value);
return -1;
}
ssid->bssid_set = 1;
wpa_printf(MSG_MSGDUMP, "GO P2P Device Address " MACSTR,
MAC2STR(ssid->go_p2p_dev_addr));
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_go_p2p_dev_addr(const struct parse_data *data,
struct wpa_ssid *ssid)
{
char *value;
int res;
if (is_zero_ether_addr(ssid->go_p2p_dev_addr))
return NULL;
value = os_malloc(20);
if (value == NULL)
return NULL;
res = os_snprintf(value, 20, MACSTR, MAC2STR(ssid->go_p2p_dev_addr));
if (os_snprintf_error(20, res)) {
os_free(value);
return NULL;
}
value[20 - 1] = '\0';
return value;
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_p2p_client_list(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
return wpa_config_parse_addr_list(data, line, value,
&ssid->p2p_client_list,
&ssid->num_p2p_clients,
"p2p_client_list", 0, 0);
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_p2p_client_list(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_addr_list(data, ssid->p2p_client_list,
ssid->num_p2p_clients,
"p2p_client_list");
}
#endif /* NO_CONFIG_WRITE */
static int wpa_config_parse_psk_list(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
struct psk_list_entry *p;
const char *pos;
p = os_zalloc(sizeof(*p));
if (p == NULL)
return -1;
pos = value;
if (os_strncmp(pos, "P2P-", 4) == 0) {
p->p2p = 1;
pos += 4;
}
if (hwaddr_aton(pos, p->addr)) {
wpa_printf(MSG_ERROR, "Line %d: Invalid psk_list address '%s'",
line, pos);
os_free(p);
return -1;
}
pos += 17;
if (*pos != '-') {
wpa_printf(MSG_ERROR, "Line %d: Invalid psk_list '%s'",
line, pos);
os_free(p);
return -1;
}
pos++;
if (hexstr2bin(pos, p->psk, PMK_LEN) || pos[PMK_LEN * 2] != '\0') {
wpa_printf(MSG_ERROR, "Line %d: Invalid psk_list PSK '%s'",
line, pos);
os_free(p);
return -1;
}
dl_list_add(&ssid->psk_list, &p->list);
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_psk_list(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return NULL;
}
#endif /* NO_CONFIG_WRITE */
#endif /* CONFIG_P2P */
#ifdef CONFIG_MESH
static int wpa_config_parse_mesh_basic_rates(const struct parse_data *data,
struct wpa_ssid *ssid, int line,
const char *value)
{
int *rates = wpa_config_parse_int_array(value);
if (rates == NULL) {
wpa_printf(MSG_ERROR, "Line %d: Invalid mesh_basic_rates '%s'",
line, value);
return -1;
}
if (rates[0] == 0) {
os_free(rates);
rates = NULL;
}
os_free(ssid->mesh_basic_rates);
ssid->mesh_basic_rates = rates;
return 0;
}
#ifndef NO_CONFIG_WRITE
static char * wpa_config_write_mesh_basic_rates(const struct parse_data *data,
struct wpa_ssid *ssid)
{
return wpa_config_write_freqs(data, ssid->mesh_basic_rates);
}
#endif /* NO_CONFIG_WRITE */
#endif /* CONFIG_MESH */
/* Helper macros for network block parser */
#ifdef OFFSET
#undef OFFSET
#endif /* OFFSET */
/* OFFSET: Get offset of a variable within the wpa_ssid structure */
#define OFFSET(v) ((void *) &((struct wpa_ssid *) 0)->v)
/* STR: Define a string variable for an ASCII string; f = field name */
#ifdef NO_CONFIG_WRITE
#define _STR(f) #f, wpa_config_parse_str, OFFSET(f)
#define _STRe(f) #f, wpa_config_parse_str, OFFSET(eap.f)
#else /* NO_CONFIG_WRITE */
#define _STR(f) #f, wpa_config_parse_str, wpa_config_write_str, OFFSET(f)
#define _STRe(f) #f, wpa_config_parse_str, wpa_config_write_str, OFFSET(eap.f)
#endif /* NO_CONFIG_WRITE */
#define STR(f) _STR(f), NULL, NULL, NULL, 0
#define STRe(f) _STRe(f), NULL, NULL, NULL, 0
#define STR_KEY(f) _STR(f), NULL, NULL, NULL, 1
#define STR_KEYe(f) _STRe(f), NULL, NULL, NULL, 1
/* STR_LEN: Define a string variable with a separate variable for storing the
* data length. Unlike STR(), this can be used to store arbitrary binary data
* (i.e., even nul termination character). */
#define _STR_LEN(f) _STR(f), OFFSET(f ## _len)
#define _STR_LENe(f) _STRe(f), OFFSET(eap.f ## _len)
#define STR_LEN(f) _STR_LEN(f), NULL, NULL, 0
#define STR_LENe(f) _STR_LENe(f), NULL, NULL, 0
#define STR_LEN_KEY(f) _STR_LEN(f), NULL, NULL, 1
/* STR_RANGE: Like STR_LEN(), but with minimum and maximum allowed length
* explicitly specified. */
#define _STR_RANGE(f, min, max) _STR_LEN(f), (void *) (min), (void *) (max)
#define STR_RANGE(f, min, max) _STR_RANGE(f, min, max), 0
#define STR_RANGE_KEY(f, min, max) _STR_RANGE(f, min, max), 1
#ifdef NO_CONFIG_WRITE
#define _INT(f) #f, wpa_config_parse_int, OFFSET(f), (void *) 0
#define _INTe(f) #f, wpa_config_parse_int, OFFSET(eap.f), (void *) 0
#else /* NO_CONFIG_WRITE */
#define _INT(f) #f, wpa_config_parse_int, wpa_config_write_int, \
OFFSET(f), (void *) 0
#define _INTe(f) #f, wpa_config_parse_int, wpa_config_write_int, \
OFFSET(eap.f), (void *) 0
#endif /* NO_CONFIG_WRITE */
/* INT: Define an integer variable */
#define INT(f) _INT(f), NULL, NULL, 0
#define INTe(f) _INTe(f), NULL, NULL, 0
/* INT_RANGE: Define an integer variable with allowed value range */
#define INT_RANGE(f, min, max) _INT(f), (void *) (min), (void *) (max), 0
/* FUNC: Define a configuration variable that uses a custom function for
* parsing and writing the value. */
#ifdef NO_CONFIG_WRITE
#define _FUNC(f) #f, wpa_config_parse_ ## f, NULL, NULL, NULL, NULL
#else /* NO_CONFIG_WRITE */
#define _FUNC(f) #f, wpa_config_parse_ ## f, wpa_config_write_ ## f, \
NULL, NULL, NULL, NULL
#endif /* NO_CONFIG_WRITE */
#define FUNC(f) _FUNC(f), 0
#define FUNC_KEY(f) _FUNC(f), 1
/*
* Table of network configuration variables. This table is used to parse each
* network configuration variable, e.g., each line in wpa_supplicant.conf file
* that is inside a network block.
*
* This table is generated using the helper macros defined above and with
* generous help from the C pre-processor. The field name is stored as a string
* into .name and for STR and INT types, the offset of the target buffer within
* struct wpa_ssid is stored in .param1. .param2 (if not NULL) is similar
* offset to the field containing the length of the configuration variable.
* .param3 and .param4 can be used to mark the allowed range (length for STR
* and value for INT).
*
* For each configuration line in wpa_supplicant.conf, the parser goes through
* this table and select the entry that matches with the field name. The parser
* function (.parser) is then called to parse the actual value of the field.
*
* This kind of mechanism makes it easy to add new configuration parameters,
* since only one line needs to be added into this table and into the
* struct wpa_ssid definition if the new variable is either a string or
* integer. More complex types will need to use their own parser and writer
* functions.
*/
static const struct parse_data ssid_fields[] = {
{ STR_RANGE(ssid, 0, SSID_MAX_LEN) },
{ INT_RANGE(scan_ssid, 0, 1) },
{ FUNC(bssid) },
{ FUNC(bssid_blacklist) },
{ FUNC(bssid_whitelist) },
{ FUNC_KEY(psk) },
{ INT(mem_only_psk) },
{ FUNC(proto) },
{ FUNC(key_mgmt) },
{ INT(bg_scan_period) },
{ FUNC(pairwise) },
{ FUNC(group) },
{ FUNC(auth_alg) },
{ FUNC(scan_freq) },
{ FUNC(freq_list) },
#ifdef IEEE8021X_EAPOL
{ FUNC(eap) },
{ STR_LENe(identity) },
{ STR_LENe(anonymous_identity) },
{ FUNC_KEY(password) },
{ STRe(ca_cert) },
{ STRe(ca_path) },
{ STRe(client_cert) },
{ STRe(private_key) },
{ STR_KEYe(private_key_passwd) },
{ STRe(dh_file) },
{ STRe(subject_match) },
{ STRe(altsubject_match) },
{ STRe(domain_suffix_match) },
{ STRe(domain_match) },
{ STRe(ca_cert2) },
{ STRe(ca_path2) },
{ STRe(client_cert2) },
{ STRe(private_key2) },
{ STR_KEYe(private_key2_passwd) },
{ STRe(dh_file2) },
{ STRe(subject_match2) },
{ STRe(altsubject_match2) },
{ STRe(domain_suffix_match2) },
{ STRe(domain_match2) },
{ STRe(phase1) },
{ STRe(phase2) },
{ STRe(pcsc) },
{ STR_KEYe(pin) },
{ STRe(engine_id) },
{ STRe(key_id) },
{ STRe(cert_id) },
{ STRe(ca_cert_id) },
{ STR_KEYe(pin2) },
{ STRe(engine2_id) },
{ STRe(key2_id) },
{ STRe(cert2_id) },
{ STRe(ca_cert2_id) },
{ INTe(engine) },
{ INTe(engine2) },
{ INT(eapol_flags) },
{ INTe(sim_num) },
{ STRe(openssl_ciphers) },
{ INTe(erp) },
#endif /* IEEE8021X_EAPOL */
{ FUNC_KEY(wep_key0) },
{ FUNC_KEY(wep_key1) },
{ FUNC_KEY(wep_key2) },
{ FUNC_KEY(wep_key3) },
{ INT(wep_tx_keyidx) },
{ INT(priority) },
#ifdef IEEE8021X_EAPOL
{ INT(eap_workaround) },
{ STRe(pac_file) },
{ INTe(fragment_size) },
{ INTe(ocsp) },
#endif /* IEEE8021X_EAPOL */
#ifdef CONFIG_MESH
{ INT_RANGE(mode, 0, 5) },
{ INT_RANGE(no_auto_peer, 0, 1) },
#else /* CONFIG_MESH */
{ INT_RANGE(mode, 0, 4) },
#endif /* CONFIG_MESH */
{ INT_RANGE(proactive_key_caching, 0, 1) },
{ INT_RANGE(disabled, 0, 2) },
{ STR(id_str) },
#ifdef CONFIG_IEEE80211W
{ INT_RANGE(ieee80211w, 0, 2) },
#endif /* CONFIG_IEEE80211W */
{ INT_RANGE(peerkey, 0, 1) },
{ INT_RANGE(mixed_cell, 0, 1) },
{ INT_RANGE(frequency, 0, 65000) },
{ INT_RANGE(fixed_freq, 0, 1) },
#ifdef CONFIG_MESH
{ FUNC(mesh_basic_rates) },
{ INT(dot11MeshMaxRetries) },
{ INT(dot11MeshRetryTimeout) },
{ INT(dot11MeshConfirmTimeout) },
{ INT(dot11MeshHoldingTimeout) },
#endif /* CONFIG_MESH */
{ INT(wpa_ptk_rekey) },
{ STR(bgscan) },
{ INT_RANGE(ignore_broadcast_ssid, 0, 2) },
#ifdef CONFIG_P2P
{ FUNC(go_p2p_dev_addr) },
{ FUNC(p2p_client_list) },
{ FUNC(psk_list) },
#endif /* CONFIG_P2P */
#ifdef CONFIG_HT_OVERRIDES
{ INT_RANGE(disable_ht, 0, 1) },
{ INT_RANGE(disable_ht40, -1, 1) },
{ INT_RANGE(disable_sgi, 0, 1) },
{ INT_RANGE(disable_ldpc, 0, 1) },
{ INT_RANGE(ht40_intolerant, 0, 1) },
{ INT_RANGE(disable_max_amsdu, -1, 1) },
{ INT_RANGE(ampdu_factor, -1, 3) },
{ INT_RANGE(ampdu_density, -1, 7) },
{ STR(ht_mcs) },
#endif /* CONFIG_HT_OVERRIDES */
#ifdef CONFIG_VHT_OVERRIDES
{ INT_RANGE(disable_vht, 0, 1) },
{ INT(vht_capa) },
{ INT(vht_capa_mask) },
{ INT_RANGE(vht_rx_mcs_nss_1, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_2, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_3, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_4, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_5, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_6, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_7, -1, 3) },
{ INT_RANGE(vht_rx_mcs_nss_8, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_1, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_2, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_3, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_4, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_5, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_6, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_7, -1, 3) },
{ INT_RANGE(vht_tx_mcs_nss_8, -1, 3) },
#endif /* CONFIG_VHT_OVERRIDES */
{ INT(ap_max_inactivity) },
{ INT(dtim_period) },
{ INT(beacon_int) },
#ifdef CONFIG_MACSEC
{ INT_RANGE(macsec_policy, 0, 1) },
#endif /* CONFIG_MACSEC */
#ifdef CONFIG_HS20
{ INT(update_identifier) },
#endif /* CONFIG_HS20 */
{ INT_RANGE(mac_addr, 0, 2) },
};
#undef OFFSET
#undef _STR
#undef STR
#undef STR_KEY
#undef _STR_LEN
#undef STR_LEN
#undef STR_LEN_KEY
#undef _STR_RANGE
#undef STR_RANGE
#undef STR_RANGE_KEY
#undef _INT
#undef INT
#undef INT_RANGE
#undef _FUNC
#undef FUNC
#undef FUNC_KEY
#define NUM_SSID_FIELDS ARRAY_SIZE(ssid_fields)
/**
* wpa_config_add_prio_network - Add a network to priority lists
* @config: Configuration data from wpa_config_read()
* @ssid: Pointer to the network configuration to be added to the list
* Returns: 0 on success, -1 on failure
*
* This function is used to add a network block to the priority list of
* networks. This must be called for each network when reading in the full
* configuration. In addition, this can be used indirectly when updating
* priorities by calling wpa_config_update_prio_list().
*/
int wpa_config_add_prio_network(struct wpa_config *config,
struct wpa_ssid *ssid)
{
int prio;
struct wpa_ssid *prev, **nlist;
/*
* Add to an existing priority list if one is available for the
* configured priority level for this network.
*/
for (prio = 0; prio < config->num_prio; prio++) {
prev = config->pssid[prio];
if (prev->priority == ssid->priority) {
while (prev->pnext)
prev = prev->pnext;
prev->pnext = ssid;
return 0;
}
}
/* First network for this priority - add a new priority list */
nlist = os_realloc_array(config->pssid, config->num_prio + 1,
sizeof(struct wpa_ssid *));
if (nlist == NULL)
return -1;
for (prio = 0; prio < config->num_prio; prio++) {
if (nlist[prio]->priority < ssid->priority) {
os_memmove(&nlist[prio + 1], &nlist[prio],
(config->num_prio - prio) *
sizeof(struct wpa_ssid *));
break;
}
}
nlist[prio] = ssid;
config->num_prio++;
config->pssid = nlist;
return 0;
}
/**
* wpa_config_update_prio_list - Update network priority list
* @config: Configuration data from wpa_config_read()
* Returns: 0 on success, -1 on failure
*
* This function is called to update the priority list of networks in the
* configuration when a network is being added or removed. This is also called
* if a priority for a network is changed.
*/
int wpa_config_update_prio_list(struct wpa_config *config)
{
struct wpa_ssid *ssid;
int ret = 0;
os_free(config->pssid);
config->pssid = NULL;
config->num_prio = 0;
ssid = config->ssid;
while (ssid) {
ssid->pnext = NULL;
if (wpa_config_add_prio_network(config, ssid) < 0)
ret = -1;
ssid = ssid->next;
}
return ret;
}
#ifdef IEEE8021X_EAPOL
static void eap_peer_config_free(struct eap_peer_config *eap)
{
os_free(eap->eap_methods);
bin_clear_free(eap->identity, eap->identity_len);
os_free(eap->anonymous_identity);
bin_clear_free(eap->password, eap->password_len);
os_free(eap->ca_cert);
os_free(eap->ca_path);
os_free(eap->client_cert);
os_free(eap->private_key);
str_clear_free(eap->private_key_passwd);
os_free(eap->dh_file);
os_free(eap->subject_match);
os_free(eap->altsubject_match);
os_free(eap->domain_suffix_match);
os_free(eap->domain_match);
os_free(eap->ca_cert2);
os_free(eap->ca_path2);
os_free(eap->client_cert2);
os_free(eap->private_key2);
str_clear_free(eap->private_key2_passwd);
os_free(eap->dh_file2);
os_free(eap->subject_match2);
os_free(eap->altsubject_match2);
os_free(eap->domain_suffix_match2);
os_free(eap->domain_match2);
os_free(eap->phase1);
os_free(eap->phase2);
os_free(eap->pcsc);
str_clear_free(eap->pin);
os_free(eap->engine_id);
os_free(eap->key_id);
os_free(eap->cert_id);
os_free(eap->ca_cert_id);
os_free(eap->key2_id);
os_free(eap->cert2_id);
os_free(eap->ca_cert2_id);
str_clear_free(eap->pin2);
os_free(eap->engine2_id);
os_free(eap->otp);
os_free(eap->pending_req_otp);
os_free(eap->pac_file);
bin_clear_free(eap->new_password, eap->new_password_len);
str_clear_free(eap->external_sim_resp);
os_free(eap->openssl_ciphers);
}
#endif /* IEEE8021X_EAPOL */
/**
* wpa_config_free_ssid - Free network/ssid configuration data
* @ssid: Configuration data for the network
*
* This function frees all resources allocated for the network configuration
* data.
*/
void wpa_config_free_ssid(struct wpa_ssid *ssid)
{
struct psk_list_entry *psk;
os_free(ssid->ssid);
str_clear_free(ssid->passphrase);
os_free(ssid->ext_psk);
#ifdef IEEE8021X_EAPOL
eap_peer_config_free(&ssid->eap);
#endif /* IEEE8021X_EAPOL */
os_free(ssid->id_str);
os_free(ssid->scan_freq);
os_free(ssid->freq_list);
os_free(ssid->bgscan);
os_free(ssid->p2p_client_list);
os_free(ssid->bssid_blacklist);
os_free(ssid->bssid_whitelist);
#ifdef CONFIG_HT_OVERRIDES
os_free(ssid->ht_mcs);
#endif /* CONFIG_HT_OVERRIDES */
#ifdef CONFIG_MESH
os_free(ssid->mesh_basic_rates);
#endif /* CONFIG_MESH */
while (NULL != (psk = dl_list_first(&ssid->psk_list, struct psk_list_entry,
list))) {
dl_list_del(&psk->list);
bin_clear_free(psk, sizeof(*psk));
}
bin_clear_free(ssid, sizeof(*ssid));
}
void wpa_config_free_cred(struct wpa_cred *cred)
{
size_t i;
os_free(cred->realm);
str_clear_free(cred->username);
str_clear_free(cred->password);
os_free(cred->ca_cert);
os_free(cred->client_cert);
os_free(cred->private_key);
str_clear_free(cred->private_key_passwd);
os_free(cred->imsi);
str_clear_free(cred->milenage);
for (i = 0; i < cred->num_domain; i++)
os_free(cred->domain[i]);
os_free(cred->domain);
os_free(cred->domain_suffix_match);
os_free(cred->eap_method);
os_free(cred->phase1);
os_free(cred->phase2);
os_free(cred->excluded_ssid);
os_free(cred->roaming_partner);
os_free(cred->provisioning_sp);
for (i = 0; i < cred->num_req_conn_capab; i++)
os_free(cred->req_conn_capab_port[i]);
os_free(cred->req_conn_capab_port);
os_free(cred->req_conn_capab_proto);
os_free(cred);
}
void wpa_config_flush_blobs(struct wpa_config *config)
{
#ifndef CONFIG_NO_CONFIG_BLOBS
struct wpa_config_blob *blob, *prev;
blob = config->blobs;
config->blobs = NULL;
while (blob) {
prev = blob;
blob = blob->next;
wpa_config_free_blob(prev);
}
#endif /* CONFIG_NO_CONFIG_BLOBS */
}
/**
* wpa_config_free - Free configuration data
* @config: Configuration data from wpa_config_read()
*
* This function frees all resources allocated for the configuration data by
* wpa_config_read().
*/
void wpa_config_free(struct wpa_config *config)
{
struct wpa_ssid *ssid, *prev = NULL;
struct wpa_cred *cred, *cprev;
int i;
ssid = config->ssid;
while (ssid) {
prev = ssid;
ssid = ssid->next;
wpa_config_free_ssid(prev);
}
cred = config->cred;
while (cred) {
cprev = cred;
cred = cred->next;
wpa_config_free_cred(cprev);
}
wpa_config_flush_blobs(config);
wpabuf_free(config->wps_vendor_ext_m1);
for (i = 0; i < MAX_WPS_VENDOR_EXT; i++)
wpabuf_free(config->wps_vendor_ext[i]);
os_free(config->ctrl_interface);
os_free(config->ctrl_interface_group);
os_free(config->opensc_engine_path);
os_free(config->pkcs11_engine_path);
os_free(config->pkcs11_module_path);
os_free(config->openssl_ciphers);
os_free(config->pcsc_reader);
str_clear_free(config->pcsc_pin);
os_free(config->driver_param);
os_free(config->device_name);
os_free(config->manufacturer);
os_free(config->model_name);
os_free(config->model_number);
os_free(config->serial_number);
os_free(config->config_methods);
os_free(config->p2p_ssid_postfix);
os_free(config->pssid);
os_free(config->p2p_pref_chan);
os_free(config->p2p_no_go_freq.range);
os_free(config->autoscan);
os_free(config->freq_list);
wpabuf_free(config->wps_nfc_dh_pubkey);
wpabuf_free(config->wps_nfc_dh_privkey);
wpabuf_free(config->wps_nfc_dev_pw);
os_free(config->ext_password_backend);
os_free(config->sae_groups);
wpabuf_free(config->ap_vendor_elements);
os_free(config->osu_dir);
os_free(config->bgscan);
os_free(config->wowlan_triggers);
os_free(config->fst_group_id);
os_free(config);
}
/**
* wpa_config_foreach_network - Iterate over each configured network
* @config: Configuration data from wpa_config_read()
* @func: Callback function to process each network
* @arg: Opaque argument to pass to callback function
*
* Iterate over the set of configured networks calling the specified
* function for each item. We guard against callbacks removing the
* supplied network.
*/
void wpa_config_foreach_network(struct wpa_config *config,
void (*func)(void *, struct wpa_ssid *),
void *arg)
{
struct wpa_ssid *ssid, *next;
ssid = config->ssid;
while (ssid) {
next = ssid->next;
func(arg, ssid);
ssid = next;
}
}
/**
* wpa_config_get_network - Get configured network based on id
* @config: Configuration data from wpa_config_read()
* @id: Unique network id to search for
* Returns: Network configuration or %NULL if not found
*/
struct wpa_ssid * wpa_config_get_network(struct wpa_config *config, int id)
{
struct wpa_ssid *ssid;
ssid = config->ssid;
while (ssid) {
if (id == ssid->id)
break;
ssid = ssid->next;
}
return ssid;
}
/**
* wpa_config_add_network - Add a new network with empty configuration
* @config: Configuration data from wpa_config_read()
* Returns: The new network configuration or %NULL if operation failed
*/
struct wpa_ssid * wpa_config_add_network(struct wpa_config *config)
{
int id;
struct wpa_ssid *ssid, *last = NULL;
id = -1;
ssid = config->ssid;
while (ssid) {
if (ssid->id > id)
id = ssid->id;
last = ssid;
ssid = ssid->next;
}
id++;
ssid = os_zalloc(sizeof(*ssid));
if (ssid == NULL)
return NULL;
ssid->id = id;
dl_list_init(&ssid->psk_list);
if (last)
last->next = ssid;
else
config->ssid = ssid;
wpa_config_update_prio_list(config);
return ssid;
}
/**
* wpa_config_remove_network - Remove a configured network based on id
* @config: Configuration data from wpa_config_read()
* @id: Unique network id to search for
* Returns: 0 on success, or -1 if the network was not found
*/
int wpa_config_remove_network(struct wpa_config *config, int id)
{
struct wpa_ssid *ssid, *prev = NULL;
ssid = config->ssid;
while (ssid) {
if (id == ssid->id)
break;
prev = ssid;
ssid = ssid->next;
}
if (ssid == NULL)
return -1;
if (prev)
prev->next = ssid->next;
else
config->ssid = ssid->next;
wpa_config_update_prio_list(config);
wpa_config_free_ssid(ssid);
return 0;
}
/**
* wpa_config_set_network_defaults - Set network default values
* @ssid: Pointer to network configuration data
*/
void wpa_config_set_network_defaults(struct wpa_ssid *ssid)
{
ssid->proto = DEFAULT_PROTO;
ssid->pairwise_cipher = DEFAULT_PAIRWISE;
ssid->group_cipher = DEFAULT_GROUP;
ssid->key_mgmt = DEFAULT_KEY_MGMT;
ssid->bg_scan_period = DEFAULT_BG_SCAN_PERIOD;
#ifdef IEEE8021X_EAPOL
ssid->eapol_flags = DEFAULT_EAPOL_FLAGS;
ssid->eap_workaround = DEFAULT_EAP_WORKAROUND;
ssid->eap.fragment_size = DEFAULT_FRAGMENT_SIZE;
ssid->eap.sim_num = DEFAULT_USER_SELECTED_SIM;
#endif /* IEEE8021X_EAPOL */
#ifdef CONFIG_MESH
ssid->dot11MeshMaxRetries = DEFAULT_MESH_MAX_RETRIES;
ssid->dot11MeshRetryTimeout = DEFAULT_MESH_RETRY_TIMEOUT;
ssid->dot11MeshConfirmTimeout = DEFAULT_MESH_CONFIRM_TIMEOUT;
ssid->dot11MeshHoldingTimeout = DEFAULT_MESH_HOLDING_TIMEOUT;
#endif /* CONFIG_MESH */
#ifdef CONFIG_HT_OVERRIDES
ssid->disable_ht = DEFAULT_DISABLE_HT;
ssid->disable_ht40 = DEFAULT_DISABLE_HT40;
ssid->disable_sgi = DEFAULT_DISABLE_SGI;
ssid->disable_ldpc = DEFAULT_DISABLE_LDPC;
ssid->disable_max_amsdu = DEFAULT_DISABLE_MAX_AMSDU;
ssid->ampdu_factor = DEFAULT_AMPDU_FACTOR;
ssid->ampdu_density = DEFAULT_AMPDU_DENSITY;
#endif /* CONFIG_HT_OVERRIDES */
#ifdef CONFIG_VHT_OVERRIDES
ssid->vht_rx_mcs_nss_1 = -1;
ssid->vht_rx_mcs_nss_2 = -1;
ssid->vht_rx_mcs_nss_3 = -1;
ssid->vht_rx_mcs_nss_4 = -1;
ssid->vht_rx_mcs_nss_5 = -1;
ssid->vht_rx_mcs_nss_6 = -1;
ssid->vht_rx_mcs_nss_7 = -1;
ssid->vht_rx_mcs_nss_8 = -1;
ssid->vht_tx_mcs_nss_1 = -1;
ssid->vht_tx_mcs_nss_2 = -1;
ssid->vht_tx_mcs_nss_3 = -1;
ssid->vht_tx_mcs_nss_4 = -1;
ssid->vht_tx_mcs_nss_5 = -1;
ssid->vht_tx_mcs_nss_6 = -1;
ssid->vht_tx_mcs_nss_7 = -1;
ssid->vht_tx_mcs_nss_8 = -1;
#endif /* CONFIG_VHT_OVERRIDES */
ssid->proactive_key_caching = -1;
#ifdef CONFIG_IEEE80211W
ssid->ieee80211w = MGMT_FRAME_PROTECTION_DEFAULT;
#endif /* CONFIG_IEEE80211W */
ssid->mac_addr = -1;
}
/**
* wpa_config_set - Set a variable in network configuration
* @ssid: Pointer to network configuration data
* @var: Variable name, e.g., "ssid"
* @value: Variable value
* @line: Line number in configuration file or 0 if not used
* Returns: 0 on success, -1 on failure
*
* This function can be used to set network configuration variables based on
* both the configuration file and management interface input. The value
* parameter must be in the same format as the text-based configuration file is
* using. For example, strings are using double quotation marks.
*/
int wpa_config_set(struct wpa_ssid *ssid, const char *var, const char *value,
int line)
{
size_t i;
int ret = 0;
if (ssid == NULL || var == NULL || value == NULL)
return -1;
for (i = 0; i < NUM_SSID_FIELDS; i++) {
const struct parse_data *field = &ssid_fields[i];
if (os_strcmp(var, field->name) != 0)
continue;
if (field->parser(field, ssid, line, value)) {
if (line) {
wpa_printf(MSG_ERROR, "Line %d: failed to "
"parse %s '%s'.", line, var, value);
}
ret = -1;
}
break;
}
if (i == NUM_SSID_FIELDS) {
if (line) {
wpa_printf(MSG_ERROR, "Line %d: unknown network field "
"'%s'.", line, var);
}
ret = -1;
}
return ret;
}
int wpa_config_set_quoted(struct wpa_ssid *ssid, const char *var,
const char *value)
{
size_t len;
char *buf;
int ret;
len = os_strlen(value);
buf = os_malloc(len + 3);
if (buf == NULL)
return -1;
buf[0] = '"';
os_memcpy(buf + 1, value, len);
buf[len + 1] = '"';
buf[len + 2] = '\0';
ret = wpa_config_set(ssid, var, buf, 0);
os_free(buf);
return ret;
}
/**
* wpa_config_get_all - Get all options from network configuration
* @ssid: Pointer to network configuration data
* @get_keys: Determines if keys/passwords will be included in returned list
* (if they may be exported)
* Returns: %NULL terminated list of all set keys and their values in the form
* of [key1, val1, key2, val2, ... , NULL]
*
* This function can be used to get list of all configured network properties.
* The caller is responsible for freeing the returned list and all its
* elements.
*/
char ** wpa_config_get_all(struct wpa_ssid *ssid, int get_keys)
{
#ifdef NO_CONFIG_WRITE
return NULL;
#else /* NO_CONFIG_WRITE */
const struct parse_data *field;
char *key, *value;
size_t i;
char **props;
int fields_num;
get_keys = get_keys && ssid->export_keys;
props = os_calloc(2 * NUM_SSID_FIELDS + 1, sizeof(char *));
if (!props)
return NULL;
fields_num = 0;
for (i = 0; i < NUM_SSID_FIELDS; i++) {
field = &ssid_fields[i];
if (field->key_data && !get_keys)
continue;
value = field->writer(field, ssid);
if (value == NULL)
continue;
if (os_strlen(value) == 0) {
os_free(value);
continue;
}
key = os_strdup(field->name);
if (key == NULL) {
os_free(value);
goto err;
}
props[fields_num * 2] = key;
props[fields_num * 2 + 1] = value;
fields_num++;
}
return props;
err:
value = *props;
while (value)
os_free(value++);
os_free(props);
return NULL;
#endif /* NO_CONFIG_WRITE */
}
#ifndef NO_CONFIG_WRITE
/**
* wpa_config_get - Get a variable in network configuration
* @ssid: Pointer to network configuration data
* @var: Variable name, e.g., "ssid"
* Returns: Value of the variable or %NULL on failure
*
* This function can be used to get network configuration variables. The
* returned value is a copy of the configuration variable in text format, i.e,.
* the same format that the text-based configuration file and wpa_config_set()
* are using for the value. The caller is responsible for freeing the returned
* value.
*/
char * wpa_config_get(struct wpa_ssid *ssid, const char *var)
{
size_t i;
if (ssid == NULL || var == NULL)
return NULL;
for (i = 0; i < NUM_SSID_FIELDS; i++) {
const struct parse_data *field = &ssid_fields[i];
if (os_strcmp(var, field->name) == 0)
return field->writer(field, ssid);
}
return NULL;
}
/**
* wpa_config_get_no_key - Get a variable in network configuration (no keys)
* @ssid: Pointer to network configuration data
* @var: Variable name, e.g., "ssid"
* Returns: Value of the variable or %NULL on failure
*
* This function can be used to get network configuration variable like
* wpa_config_get(). The only difference is that this functions does not expose
* key/password material from the configuration. In case a key/password field
* is requested, the returned value is an empty string or %NULL if the variable
* is not set or "*" if the variable is set (regardless of its value). The
* returned value is a copy of the configuration variable in text format, i.e,.
* the same format that the text-based configuration file and wpa_config_set()
* are using for the value. The caller is responsible for freeing the returned
* value.
*/
char * wpa_config_get_no_key(struct wpa_ssid *ssid, const char *var)
{
size_t i;
if (ssid == NULL || var == NULL)
return NULL;
for (i = 0; i < NUM_SSID_FIELDS; i++) {
const struct parse_data *field = &ssid_fields[i];
if (os_strcmp(var, field->name) == 0) {
char *res = field->writer(field, ssid);
if (field->key_data) {
if (res && res[0]) {
wpa_printf(MSG_DEBUG, "Do not allow "
"key_data field to be "
"exposed");
str_clear_free(res);
return os_strdup("*");
}
os_free(res);
return NULL;
}
return res;
}
}
return NULL;
}
#endif /* NO_CONFIG_WRITE */
/**
* wpa_config_update_psk - Update WPA PSK based on passphrase and SSID
* @ssid: Pointer to network configuration data
*
* This function must be called to update WPA PSK when either SSID or the
* passphrase has changed for the network configuration.
*/
void wpa_config_update_psk(struct wpa_ssid *ssid)
{
#ifndef CONFIG_NO_PBKDF2
pbkdf2_sha1(ssid->passphrase, ssid->ssid, ssid->ssid_len, 4096,
ssid->psk, PMK_LEN);
wpa_hexdump_key(MSG_MSGDUMP, "PSK (from passphrase)",
ssid->psk, PMK_LEN);
ssid->psk_set = 1;
#endif /* CONFIG_NO_PBKDF2 */
}
static int wpa_config_set_cred_req_conn_capab(struct wpa_cred *cred,
const char *value)
{
u8 *proto;
int **port;
int *ports, *nports;
const char *pos;
unsigned int num_ports;
proto = os_realloc_array(cred->req_conn_capab_proto,
cred->num_req_conn_capab + 1, sizeof(u8));
if (proto == NULL)
return -1;
cred->req_conn_capab_proto = proto;
port = os_realloc_array(cred->req_conn_capab_port,
cred->num_req_conn_capab + 1, sizeof(int *));
if (port == NULL)
return -1;
cred->req_conn_capab_port = port;
proto[cred->num_req_conn_capab] = atoi(value);
pos = os_strchr(value, ':');
if (pos == NULL) {
port[cred->num_req_conn_capab] = NULL;
cred->num_req_conn_capab++;
return 0;
}
pos++;
ports = NULL;
num_ports = 0;
while (*pos) {
nports = os_realloc_array(ports, num_ports + 1, sizeof(int));
if (nports == NULL) {
os_free(ports);
return -1;
}
ports = nports;
ports[num_ports++] = atoi(pos);
pos = os_strchr(pos, ',');
if (pos == NULL)
break;
pos++;
}
nports = os_realloc_array(ports, num_ports + 1, sizeof(int));
if (nports == NULL) {
os_free(ports);
return -1;
}
ports = nports;
ports[num_ports] = -1;
port[cred->num_req_conn_capab] = ports;
cred->num_req_conn_capab++;
return 0;
}
int wpa_config_set_cred(struct wpa_cred *cred, const char *var,
const char *value, int line)
{
char *val;
size_t len;
if (os_strcmp(var, "temporary") == 0) {
cred->temporary = atoi(value);
return 0;
}
if (os_strcmp(var, "priority") == 0) {
cred->priority = atoi(value);
return 0;
}
if (os_strcmp(var, "sp_priority") == 0) {
int prio = atoi(value);
if (prio < 0 || prio > 255)
return -1;
cred->sp_priority = prio;
return 0;
}
if (os_strcmp(var, "pcsc") == 0) {
cred->pcsc = atoi(value);
return 0;
}
if (os_strcmp(var, "eap") == 0) {
struct eap_method_type method;
method.method = eap_peer_get_type(value, &method.vendor);
if (method.vendor == EAP_VENDOR_IETF &&
method.method == EAP_TYPE_NONE) {
wpa_printf(MSG_ERROR, "Line %d: unknown EAP type '%s' "
"for a credential", line, value);
return -1;
}
os_free(cred->eap_method);
cred->eap_method = os_malloc(sizeof(*cred->eap_method));
if (cred->eap_method == NULL)
return -1;
os_memcpy(cred->eap_method, &method, sizeof(method));
return 0;
}
if (os_strcmp(var, "password") == 0 &&
os_strncmp(value, "ext:", 4) == 0) {
str_clear_free(cred->password);
cred->password = os_strdup(value);
cred->ext_password = 1;
return 0;
}
if (os_strcmp(var, "update_identifier") == 0) {
cred->update_identifier = atoi(value);
return 0;
}
if (os_strcmp(var, "min_dl_bandwidth_home") == 0) {
cred->min_dl_bandwidth_home = atoi(value);
return 0;
}
if (os_strcmp(var, "min_ul_bandwidth_home") == 0) {
cred->min_ul_bandwidth_home = atoi(value);
return 0;
}
if (os_strcmp(var, "min_dl_bandwidth_roaming") == 0) {
cred->min_dl_bandwidth_roaming = atoi(value);
return 0;
}
if (os_strcmp(var, "min_ul_bandwidth_roaming") == 0) {
cred->min_ul_bandwidth_roaming = atoi(value);
return 0;
}
if (os_strcmp(var, "max_bss_load") == 0) {
cred->max_bss_load = atoi(value);
return 0;
}
if (os_strcmp(var, "req_conn_capab") == 0)
return wpa_config_set_cred_req_conn_capab(cred, value);
if (os_strcmp(var, "ocsp") == 0) {
cred->ocsp = atoi(value);
return 0;
}
if (os_strcmp(var, "sim_num") == 0) {
cred->sim_num = atoi(value);
return 0;
}
val = wpa_config_parse_string(value, &len);
if (val == NULL) {
wpa_printf(MSG_ERROR, "Line %d: invalid field '%s' string "
"value '%s'.", line, var, value);
return -1;
}
if (os_strcmp(var, "realm") == 0) {
os_free(cred->realm);
cred->realm = val;
return 0;
}
if (os_strcmp(var, "username") == 0) {
str_clear_free(cred->username);
cred->username = val;
return 0;
}
if (os_strcmp(var, "password") == 0) {
str_clear_free(cred->password);
cred->password = val;
cred->ext_password = 0;
return 0;
}
if (os_strcmp(var, "ca_cert") == 0) {
os_free(cred->ca_cert);
cred->ca_cert = val;
return 0;
}
if (os_strcmp(var, "client_cert") == 0) {
os_free(cred->client_cert);
cred->client_cert = val;
return 0;
}
if (os_strcmp(var, "private_key") == 0) {
os_free(cred->private_key);
cred->private_key = val;
return 0;
}
if (os_strcmp(var, "private_key_passwd") == 0) {
str_clear_free(cred->private_key_passwd);
cred->private_key_passwd = val;
return 0;
}
if (os_strcmp(var, "imsi") == 0) {
os_free(cred->imsi);
cred->imsi = val;
return 0;
}
if (os_strcmp(var, "milenage") == 0) {
str_clear_free(cred->milenage);
cred->milenage = val;
return 0;
}
if (os_strcmp(var, "domain_suffix_match") == 0) {
os_free(cred->domain_suffix_match);
cred->domain_suffix_match = val;
return 0;
}
if (os_strcmp(var, "domain") == 0) {
char **new_domain;
new_domain = os_realloc_array(cred->domain,
cred->num_domain + 1,
sizeof(char *));
if (new_domain == NULL) {
os_free(val);
return -1;
}
new_domain[cred->num_domain++] = val;
cred->domain = new_domain;
return 0;
}
if (os_strcmp(var, "phase1") == 0) {
os_free(cred->phase1);
cred->phase1 = val;
return 0;
}
if (os_strcmp(var, "phase2") == 0) {
os_free(cred->phase2);
cred->phase2 = val;
return 0;
}
if (os_strcmp(var, "roaming_consortium") == 0) {
if (len < 3 || len > sizeof(cred->roaming_consortium)) {
wpa_printf(MSG_ERROR, "Line %d: invalid "
"roaming_consortium length %d (3..15 "
"expected)", line, (int) len);
os_free(val);
return -1;
}
os_memcpy(cred->roaming_consortium, val, len);
cred->roaming_consortium_len = len;
os_free(val);
return 0;
}
if (os_strcmp(var, "required_roaming_consortium") == 0) {
if (len < 3 || len > sizeof(cred->required_roaming_consortium))
{
wpa_printf(MSG_ERROR, "Line %d: invalid "
"required_roaming_consortium length %d "
"(3..15 expected)", line, (int) len);
os_free(val);
return -1;
}
os_memcpy(cred->required_roaming_consortium, val, len);
cred->required_roaming_consortium_len = len;
os_free(val);
return 0;
}
if (os_strcmp(var, "excluded_ssid") == 0) {
struct excluded_ssid *e;
if (len > SSID_MAX_LEN) {
wpa_printf(MSG_ERROR, "Line %d: invalid "
"excluded_ssid length %d", line, (int) len);
os_free(val);
return -1;
}
e = os_realloc_array(cred->excluded_ssid,
cred->num_excluded_ssid + 1,
sizeof(struct excluded_ssid));
if (e == NULL) {
os_free(val);
return -1;
}
cred->excluded_ssid = e;
e = &cred->excluded_ssid[cred->num_excluded_ssid++];
os_memcpy(e->ssid, val, len);
e->ssid_len = len;
os_free(val);
return 0;
}
if (os_strcmp(var, "roaming_partner") == 0) {
struct roaming_partner *p;
char *pos;
p = os_realloc_array(cred->roaming_partner,
cred->num_roaming_partner + 1,
sizeof(struct roaming_partner));
if (p == NULL) {
os_free(val);
return -1;
}
cred->roaming_partner = p;
p = &cred->roaming_partner[cred->num_roaming_partner];
pos = os_strchr(val, ',');
if (pos == NULL) {
os_free(val);
return -1;
}
*pos++ = '\0';
if (pos - val - 1 >= (int) sizeof(p->fqdn)) {
os_free(val);
return -1;
}
os_memcpy(p->fqdn, val, pos - val);
p->exact_match = atoi(pos);
pos = os_strchr(pos, ',');
if (pos == NULL) {
os_free(val);
return -1;
}
*pos++ = '\0';
p->priority = atoi(pos);
pos = os_strchr(pos, ',');
if (pos == NULL) {
os_free(val);
return -1;
}
*pos++ = '\0';
if (os_strlen(pos) >= sizeof(p->country)) {
os_free(val);
return -1;
}
os_memcpy(p->country, pos, os_strlen(pos) + 1);
cred->num_roaming_partner++;
os_free(val);
return 0;
}
if (os_strcmp(var, "provisioning_sp") == 0) {
os_free(cred->provisioning_sp);
cred->provisioning_sp = val;
return 0;
}
if (line) {
wpa_printf(MSG_ERROR, "Line %d: unknown cred field '%s'.",
line, var);
}
os_free(val);
return -1;
}
static char * alloc_int_str(int val)
{
const unsigned int bufsize = 20;
char *buf;
int res;
buf = os_malloc(bufsize);
if (buf == NULL)
return NULL;
res = os_snprintf(buf, bufsize, "%d", val);
if (os_snprintf_error(bufsize, res)) {
os_free(buf);
buf = NULL;
}
return buf;
}
static char * alloc_strdup(const char *str)
{
if (str == NULL)
return NULL;
return os_strdup(str);
}
char * wpa_config_get_cred_no_key(struct wpa_cred *cred, const char *var)
{
if (os_strcmp(var, "temporary") == 0)
return alloc_int_str(cred->temporary);
if (os_strcmp(var, "priority") == 0)
return alloc_int_str(cred->priority);
if (os_strcmp(var, "sp_priority") == 0)
return alloc_int_str(cred->sp_priority);
if (os_strcmp(var, "pcsc") == 0)
return alloc_int_str(cred->pcsc);
if (os_strcmp(var, "eap") == 0) {
if (!cred->eap_method)
return NULL;
return alloc_strdup(eap_get_name(cred->eap_method[0].vendor,
(EapType)cred->eap_method[0].method));
}
if (os_strcmp(var, "update_identifier") == 0)
return alloc_int_str(cred->update_identifier);
if (os_strcmp(var, "min_dl_bandwidth_home") == 0)
return alloc_int_str(cred->min_dl_bandwidth_home);
if (os_strcmp(var, "min_ul_bandwidth_home") == 0)
return alloc_int_str(cred->min_ul_bandwidth_home);
if (os_strcmp(var, "min_dl_bandwidth_roaming") == 0)
return alloc_int_str(cred->min_dl_bandwidth_roaming);
if (os_strcmp(var, "min_ul_bandwidth_roaming") == 0)
return alloc_int_str(cred->min_ul_bandwidth_roaming);
if (os_strcmp(var, "max_bss_load") == 0)
return alloc_int_str(cred->max_bss_load);
if (os_strcmp(var, "req_conn_capab") == 0) {
unsigned int i;
char *buf, *end, *pos;
int ret;
if (!cred->num_req_conn_capab)
return NULL;
buf = os_malloc(4000);
if (buf == NULL)
return NULL;
pos = buf;
end = pos + 4000;
for (i = 0; i < cred->num_req_conn_capab; i++) {
int *ports;
ret = os_snprintf(pos, end - pos, "%s%u",
i > 0 ? "\n" : "",
cred->req_conn_capab_proto[i]);
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
ports = cred->req_conn_capab_port[i];
if (ports) {
int j;
for (j = 0; ports[j] != -1; j++) {
ret = os_snprintf(pos, end - pos,
"%s%d",
j > 0 ? "," : ":",
ports[j]);
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
}
}
return buf;
}
if (os_strcmp(var, "ocsp") == 0)
return alloc_int_str(cred->ocsp);
if (os_strcmp(var, "realm") == 0)
return alloc_strdup(cred->realm);
if (os_strcmp(var, "username") == 0)
return alloc_strdup(cred->username);
if (os_strcmp(var, "password") == 0) {
if (!cred->password)
return NULL;
return alloc_strdup("*");
}
if (os_strcmp(var, "ca_cert") == 0)
return alloc_strdup(cred->ca_cert);
if (os_strcmp(var, "client_cert") == 0)
return alloc_strdup(cred->client_cert);
if (os_strcmp(var, "private_key") == 0)
return alloc_strdup(cred->private_key);
if (os_strcmp(var, "private_key_passwd") == 0) {
if (!cred->private_key_passwd)
return NULL;
return alloc_strdup("*");
}
if (os_strcmp(var, "imsi") == 0)
return alloc_strdup(cred->imsi);
if (os_strcmp(var, "milenage") == 0) {
if (!(cred->milenage))
return NULL;
return alloc_strdup("*");
}
if (os_strcmp(var, "domain_suffix_match") == 0)
return alloc_strdup(cred->domain_suffix_match);
if (os_strcmp(var, "domain") == 0) {
unsigned int i;
char *buf, *end, *pos;
int ret;
if (!cred->num_domain)
return NULL;
buf = os_malloc(4000);
if (buf == NULL)
return NULL;
pos = buf;
end = pos + 4000;
for (i = 0; i < cred->num_domain; i++) {
ret = os_snprintf(pos, end - pos, "%s%s",
i > 0 ? "\n" : "", cred->domain[i]);
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
return buf;
}
if (os_strcmp(var, "phase1") == 0)
return alloc_strdup(cred->phase1);
if (os_strcmp(var, "phase2") == 0)
return alloc_strdup(cred->phase2);
if (os_strcmp(var, "roaming_consortium") == 0) {
size_t buflen;
char *buf;
if (!cred->roaming_consortium_len)
return NULL;
buflen = cred->roaming_consortium_len * 2 + 1;
buf = os_malloc(buflen);
if (buf == NULL)
return NULL;
wpa_snprintf_hex(buf, buflen, cred->roaming_consortium,
cred->roaming_consortium_len);
return buf;
}
if (os_strcmp(var, "required_roaming_consortium") == 0) {
size_t buflen;
char *buf;
if (!cred->required_roaming_consortium_len)
return NULL;
buflen = cred->required_roaming_consortium_len * 2 + 1;
buf = os_malloc(buflen);
if (buf == NULL)
return NULL;
wpa_snprintf_hex(buf, buflen, cred->required_roaming_consortium,
cred->required_roaming_consortium_len);
return buf;
}
if (os_strcmp(var, "excluded_ssid") == 0) {
unsigned int i;
char *buf, *end, *pos;
if (!cred->num_excluded_ssid)
return NULL;
buf = os_malloc(4000);
if (buf == NULL)
return NULL;
pos = buf;
end = pos + 4000;
for (i = 0; i < cred->num_excluded_ssid; i++) {
struct excluded_ssid *e;
int ret;
e = &cred->excluded_ssid[i];
ret = os_snprintf(pos, end - pos, "%s%s",
i > 0 ? "\n" : "",
wpa_ssid_txt(e->ssid, e->ssid_len));
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
return buf;
}
if (os_strcmp(var, "roaming_partner") == 0) {
unsigned int i;
char *buf, *end, *pos;
if (!cred->num_roaming_partner)
return NULL;
buf = os_malloc(4000);
if (buf == NULL)
return NULL;
pos = buf;
end = pos + 4000;
for (i = 0; i < cred->num_roaming_partner; i++) {
struct roaming_partner *p;
int ret;
p = &cred->roaming_partner[i];
ret = os_snprintf(pos, end - pos, "%s%s,%d,%u,%s",
i > 0 ? "\n" : "",
p->fqdn, p->exact_match, p->priority,
p->country);
if (os_snprintf_error(end - pos, ret))
return buf;
pos += ret;
}
return buf;
}
if (os_strcmp(var, "provisioning_sp") == 0)
return alloc_strdup(cred->provisioning_sp);
return NULL;
}
struct wpa_cred * wpa_config_get_cred(struct wpa_config *config, int id)
{
struct wpa_cred *cred;
cred = config->cred;
while (cred) {
if (id == cred->id)
break;
cred = cred->next;
}
return cred;
}
struct wpa_cred * wpa_config_add_cred(struct wpa_config *config)
{
int id;
struct wpa_cred *cred, *last = NULL;
id = -1;
cred = config->cred;
while (cred) {
if (cred->id > id)
id = cred->id;
last = cred;
cred = cred->next;
}
id++;
cred = os_zalloc(sizeof(*cred));
if (cred == NULL)
return NULL;
cred->id = id;
cred->sim_num = DEFAULT_USER_SELECTED_SIM;
if (last)
last->next = cred;
else
config->cred = cred;
return cred;
}
int wpa_config_remove_cred(struct wpa_config *config, int id)
{
struct wpa_cred *cred, *prev = NULL;
cred = config->cred;
while (cred) {
if (id == cred->id)
break;
prev = cred;
cred = cred->next;
}
if (cred == NULL)
return -1;
if (prev)
prev->next = cred->next;
else
config->cred = cred->next;
wpa_config_free_cred(cred);
return 0;
}
#ifndef CONFIG_NO_CONFIG_BLOBS
/**
* wpa_config_get_blob - Get a named configuration blob
* @config: Configuration data from wpa_config_read()
* @name: Name of the blob
* Returns: Pointer to blob data or %NULL if not found
*/
const struct wpa_config_blob * wpa_config_get_blob(struct wpa_config *config,
const char *name)
{
struct wpa_config_blob *blob = config->blobs;
while (blob) {
if (os_strcmp(blob->name, name) == 0)
return blob;
blob = blob->next;
}
return NULL;
}
/**
* wpa_config_set_blob - Set or add a named configuration blob
* @config: Configuration data from wpa_config_read()
* @blob: New value for the blob
*
* Adds a new configuration blob or replaces the current value of an existing
* blob.
*/
void wpa_config_set_blob(struct wpa_config *config,
struct wpa_config_blob *blob)
{
wpa_config_remove_blob(config, blob->name);
blob->next = config->blobs;
config->blobs = blob;
}
/**
* wpa_config_free_blob - Free blob data
* @blob: Pointer to blob to be freed
*/
void wpa_config_free_blob(struct wpa_config_blob *blob)
{
if (blob) {
os_free(blob->name);
bin_clear_free(blob->data, blob->len);
os_free(blob);
}
}
/**
* wpa_config_remove_blob - Remove a named configuration blob
* @config: Configuration data from wpa_config_read()
* @name: Name of the blob to remove
* Returns: 0 if blob was removed or -1 if blob was not found
*/
int wpa_config_remove_blob(struct wpa_config *config, const char *name)
{
struct wpa_config_blob *pos = config->blobs, *prev = NULL;
while (pos) {
if (os_strcmp(pos->name, name) == 0) {
if (prev)
prev->next = pos->next;
else
config->blobs = pos->next;
wpa_config_free_blob(pos);
return 0;
}
prev = pos;
pos = pos->next;
}
return -1;
}
#endif /* CONFIG_NO_CONFIG_BLOBS */
/**
* wpa_config_alloc_empty - Allocate an empty configuration
* @ctrl_interface: Control interface parameters, e.g., path to UNIX domain
* socket
* @driver_param: Driver parameters
* Returns: Pointer to allocated configuration data or %NULL on failure
*/
struct wpa_config * wpa_config_alloc_empty(const char *ctrl_interface,
const char *driver_param)
{
struct wpa_config *config;
const int aCWmin = 4, aCWmax = 10;
const struct hostapd_wmm_ac_params ac_bk =
{ aCWmin, aCWmax, 7, 0, 0 }; /* background traffic */
const struct hostapd_wmm_ac_params ac_be =
{ aCWmin, aCWmax, 3, 0, 0 }; /* best effort traffic */
const struct hostapd_wmm_ac_params ac_vi = /* video traffic */
{ aCWmin - 1, aCWmin, 2, 3000 / 32, 0 };
const struct hostapd_wmm_ac_params ac_vo = /* voice traffic */
{ aCWmin - 2, aCWmin - 1, 2, 1500 / 32, 0 };
config = os_zalloc(sizeof(*config));
if (config == NULL)
return NULL;
config->eapol_version = DEFAULT_EAPOL_VERSION;
config->ap_scan = DEFAULT_AP_SCAN;
config->user_mpm = DEFAULT_USER_MPM;
config->max_peer_links = DEFAULT_MAX_PEER_LINKS;
config->mesh_max_inactivity = DEFAULT_MESH_MAX_INACTIVITY;
config->dot11RSNASAERetransPeriod =
DEFAULT_DOT11_RSNA_SAE_RETRANS_PERIOD;
config->fast_reauth = DEFAULT_FAST_REAUTH;
config->p2p_go_intent = DEFAULT_P2P_GO_INTENT;
config->p2p_intra_bss = DEFAULT_P2P_INTRA_BSS;
config->p2p_go_freq_change_policy = DEFAULT_P2P_GO_FREQ_MOVE;
config->p2p_go_max_inactivity = DEFAULT_P2P_GO_MAX_INACTIVITY;
config->p2p_optimize_listen_chan = DEFAULT_P2P_OPTIMIZE_LISTEN_CHAN;
config->p2p_go_ctwindow = DEFAULT_P2P_GO_CTWINDOW;
config->bss_max_count = DEFAULT_BSS_MAX_COUNT;
config->bss_expiration_age = DEFAULT_BSS_EXPIRATION_AGE;
config->bss_expiration_scan_count = DEFAULT_BSS_EXPIRATION_SCAN_COUNT;
config->max_num_sta = DEFAULT_MAX_NUM_STA;
config->access_network_type = DEFAULT_ACCESS_NETWORK_TYPE;
config->scan_cur_freq = DEFAULT_SCAN_CUR_FREQ;
config->wmm_ac_params[0] = ac_be;
config->wmm_ac_params[1] = ac_bk;
config->wmm_ac_params[2] = ac_vi;
config->wmm_ac_params[3] = ac_vo;
config->p2p_search_delay = DEFAULT_P2P_SEARCH_DELAY;
config->rand_addr_lifetime = DEFAULT_RAND_ADDR_LIFETIME;
config->key_mgmt_offload = DEFAULT_KEY_MGMT_OFFLOAD;
config->cert_in_cb = DEFAULT_CERT_IN_CB;
if (ctrl_interface)
config->ctrl_interface = os_strdup(ctrl_interface);
if (driver_param)
config->driver_param = os_strdup(driver_param);
return config;
}
#ifndef CONFIG_NO_STDOUT_DEBUG
/**
* wpa_config_debug_dump_networks - Debug dump of configured networks
* @config: Configuration data from wpa_config_read()
*/
void wpa_config_debug_dump_networks(struct wpa_config *config)
{
int prio;
struct wpa_ssid *ssid;
for (prio = 0; prio < config->num_prio; prio++) {
ssid = config->pssid[prio];
wpa_printf(MSG_DEBUG, "Priority group %d",
ssid->priority);
while (ssid) {
wpa_printf(MSG_DEBUG, " id=%d ssid='%s'",
ssid->id,
wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
ssid = ssid->pnext;
}
}
}
#endif /* CONFIG_NO_STDOUT_DEBUG */
struct global_parse_data {
char *name;
int (*parser)(const struct global_parse_data *data,
struct wpa_config *config, int line, const char *value);
int (*get)(const char *name, struct wpa_config *config, long offset,
char *buf, size_t buflen, int pretty_print);
void *param1, *param2, *param3;
unsigned int changed_flag;
};
static int wpa_global_config_parse_int(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
int val, *dst;
char *end;
dst = (int *) (((u8 *) config) + (long) data->param1);
val = strtol(pos, &end, 0);
if (*end) {
wpa_printf(MSG_ERROR, "Line %d: invalid number \"%s\"",
line, pos);
return -1;
}
*dst = val;
wpa_printf(MSG_DEBUG, "%s=%d", data->name, *dst);
if (data->param2 && *dst < (long) data->param2) {
wpa_printf(MSG_ERROR, "Line %d: too small %s (value=%d "
"min_value=%ld)", line, data->name, *dst,
(long) data->param2);
*dst = (long) data->param2;
return -1;
}
if (data->param3 && *dst > (long) data->param3) {
wpa_printf(MSG_ERROR, "Line %d: too large %s (value=%d "
"max_value=%ld)", line, data->name, *dst,
(long) data->param3);
*dst = (long) data->param3;
return -1;
}
return 0;
}
static int wpa_global_config_parse_str(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
size_t len;
char **dst, *tmp;
len = os_strlen(pos);
if (data->param2 && len < (size_t) data->param2) {
wpa_printf(MSG_ERROR, "Line %d: too short %s (len=%lu "
"min_len=%ld)", line, data->name,
(unsigned long) len, (long) data->param2);
return -1;
}
if (data->param3 && len > (size_t) data->param3) {
wpa_printf(MSG_ERROR, "Line %d: too long %s (len=%lu "
"max_len=%ld)", line, data->name,
(unsigned long) len, (long) data->param3);
return -1;
}
tmp = os_strdup(pos);
if (tmp == NULL)
return -1;
dst = (char **) (((u8 *) config) + (long) data->param1);
os_free(*dst);
*dst = tmp;
wpa_printf(MSG_DEBUG, "%s='%s'", data->name, *dst);
return 0;
}
static int wpa_config_process_bgscan(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
size_t len;
char *tmp;
int res;
tmp = wpa_config_parse_string(pos, &len);
if (tmp == NULL) {
wpa_printf(MSG_ERROR, "Line %d: failed to parse %s",
line, data->name);
return -1;
}
res = wpa_global_config_parse_str(data, config, line, tmp);
os_free(tmp);
return res;
}
static int wpa_global_config_parse_bin(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
size_t len;
struct wpabuf **dst, *tmp;
len = os_strlen(pos);
if (len & 0x01)
return -1;
tmp = wpabuf_alloc(len / 2);
if (tmp == NULL)
return -1;
if (hexstr2bin(pos, wpabuf_put(tmp, len / 2), len / 2)) {
wpabuf_free(tmp);
return -1;
}
dst = (struct wpabuf **) (((u8 *) config) + (long) data->param1);
wpabuf_free(*dst);
*dst = tmp;
wpa_printf(MSG_DEBUG, "%s", data->name);
return 0;
}
static int wpa_config_process_freq_list(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *value)
{
int *freqs;
freqs = wpa_config_parse_int_array(value);
if (freqs == NULL)
return -1;
if (freqs[0] == 0) {
os_free(freqs);
freqs = NULL;
}
os_free(config->freq_list);
config->freq_list = freqs;
return 0;
}
#ifdef CONFIG_P2P
static int wpa_global_config_parse_ipv4(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
u32 *dst;
struct hostapd_ip_addr addr;
if (hostapd_parse_ip_addr(pos, &addr) < 0)
return -1;
if (addr.af != AF_INET)
return -1;
dst = (u32 *) (((u8 *) config) + (long) data->param1);
os_memcpy(dst, &addr.u.v4.s_addr, 4);
wpa_printf(MSG_DEBUG, "%s = 0x%x", data->name,
WPA_GET_BE32((u8 *) dst));
return 0;
}
#endif /* CONFIG_P2P */
static int wpa_config_process_country(const struct global_parse_data *data,
struct wpa_config *config, int line,
const char *pos)
{
if (!pos[0] || !pos[1]) {
wpa_printf(MSG_DEBUG, "Invalid country set");
return -1;
}
config->country[0] = pos[0];
config->country[1] = pos[1];
wpa_printf(MSG_DEBUG, "country='%c%c'",
config->country[0], config->country[1]);
return 0;
}
static int wpa_config_process_load_dynamic_eap(
const struct global_parse_data *data, struct wpa_config *config,
int line, const char *so)
{
int ret;
wpa_printf(MSG_DEBUG, "load_dynamic_eap=%s", so);
ret = eap_peer_method_load(so);
if (ret == -2) {
wpa_printf(MSG_DEBUG, "This EAP type was already loaded - not "
"reloading.");
} else if (ret) {
wpa_printf(MSG_ERROR, "Line %d: Failed to load dynamic EAP "
"method '%s'.", line, so);
return -1;
}
return 0;
}
static int wpa_config_process_hessid(
const struct global_parse_data *data,
struct wpa_config *config, int line, const char *pos)
{
if (hwaddr_aton2(pos, config->hessid) < 0) {
wpa_printf(MSG_ERROR, "Line %d: Invalid hessid '%s'",
line, pos);
return -1;
}
return 0;
}
static int wpa_config_process_sae_groups(
const struct global_parse_data *data,
struct wpa_config *config, int line, const char *pos)
{
int *groups = wpa_config_parse_int_array(pos);
if (groups == NULL) {
wpa_printf(MSG_ERROR, "Line %d: Invalid sae_groups '%s'",
line, pos);
return -1;
}
os_free(config->sae_groups);
config->sae_groups = groups;
return 0;
}
static int wpa_config_process_ap_vendor_elements(
const struct global_parse_data *data,
struct wpa_config *config, int line, const char *pos)
{
struct wpabuf *tmp;
int len = os_strlen(pos) / 2;
u8 *p;
if (!len) {
wpa_printf(MSG_ERROR, "Line %d: invalid ap_vendor_elements",
line);
return -1;
}
tmp = wpabuf_alloc(len);
if (tmp) {
p = wpabuf_put(tmp, len);
if (hexstr2bin(pos, p, len)) {
wpa_printf(MSG_ERROR, "Line %d: invalid "
"ap_vendor_elements", line);
wpabuf_free(tmp);
return -1;
}
wpabuf_free(config->ap_vendor_elements);
config->ap_vendor_elements = tmp;
} else {
wpa_printf(MSG_ERROR, "Cannot allocate memory for "
"ap_vendor_elements");
return -1;
}
return 0;
}
#ifdef CONFIG_CTRL_IFACE
static int wpa_config_process_no_ctrl_interface(
const struct global_parse_data *data,
struct wpa_config *config, int line, const char *pos)
{
wpa_printf(MSG_DEBUG, "no_ctrl_interface -> ctrl_interface=NULL");
os_free(config->ctrl_interface);
config->ctrl_interface = NULL;
return 0;
}
#endif /* CONFIG_CTRL_IFACE */
static int wpa_config_get_int(const char *name, struct wpa_config *config,
long offset, char *buf, size_t buflen,
int pretty_print)
{
int *val = (int *) (((u8 *) config) + (long) offset);
if (pretty_print)
return os_snprintf(buf, buflen, "%s=%d\n", name, *val);
return os_snprintf(buf, buflen, "%d", *val);
}
static int wpa_config_get_str(const char *name, struct wpa_config *config,
long offset, char *buf, size_t buflen,
int pretty_print)
{
char **val = (char **) (((u8 *) config) + (long) offset);
int res;
if (pretty_print)
res = os_snprintf(buf, buflen, "%s=%s\n", name,
*val ? *val : "null");
else if (!*val)
return -1;
else
res = os_snprintf(buf, buflen, "%s", *val);
if (os_snprintf_error(buflen, res))
res = -1;
return res;
}
#ifdef CONFIG_P2P
static int wpa_config_get_ipv4(const char *name, struct wpa_config *config,
long offset, char *buf, size_t buflen,
int pretty_print)
{
void *val = ((u8 *) config) + (long) offset;
int res;
char addr[INET_ADDRSTRLEN];
if (!val || !inet_ntop(AF_INET, val, addr, sizeof(addr)))
return -1;
if (pretty_print)
res = os_snprintf(buf, buflen, "%s=%s\n", name, addr);
else
res = os_snprintf(buf, buflen, "%s", addr);
if (os_snprintf_error(buflen, res))
res = -1;
return res;
}
#endif /* CONFIG_P2P */
#ifdef OFFSET
#undef OFFSET
#endif /* OFFSET */
/* OFFSET: Get offset of a variable within the wpa_config structure */
#define OFFSET(v) ((void *) &((struct wpa_config *) 0)->v)
#define FUNC(f) #f, wpa_config_process_ ## f, NULL, OFFSET(f), NULL, NULL
#define FUNC_NO_VAR(f) #f, wpa_config_process_ ## f, NULL, NULL, NULL, NULL
#define _INT(f) #f, wpa_global_config_parse_int, wpa_config_get_int, OFFSET(f)
#define INT(f) _INT(f), NULL, NULL
#define INT_RANGE(f, min, max) _INT(f), (void *) min, (void *) max
#define _STR(f) #f, wpa_global_config_parse_str, wpa_config_get_str, OFFSET(f)
#define STR(f) _STR(f), NULL, NULL
#define STR_RANGE(f, min, max) _STR(f), (void *) min, (void *) max
#define BIN(f) #f, wpa_global_config_parse_bin, NULL, OFFSET(f), NULL, NULL
#define IPV4(f) #f, wpa_global_config_parse_ipv4, wpa_config_get_ipv4, \
OFFSET(f), NULL, NULL
static const struct global_parse_data global_fields[] = {
#ifdef CONFIG_CTRL_IFACE
{ STR(ctrl_interface), 0 },
{ FUNC_NO_VAR(no_ctrl_interface), 0 },
{ STR(ctrl_interface_group), 0 } /* deprecated */,
#endif /* CONFIG_CTRL_IFACE */
#ifdef CONFIG_MACSEC
{ INT_RANGE(eapol_version, 1, 3), 0 },
#else /* CONFIG_MACSEC */
{ INT_RANGE(eapol_version, 1, 2), 0 },
#endif /* CONFIG_MACSEC */
{ INT(ap_scan), 0 },
{ FUNC(bgscan), 0 },
#ifdef CONFIG_MESH
{ INT(user_mpm), 0 },
{ INT_RANGE(max_peer_links, 0, 255), 0 },
{ INT(mesh_max_inactivity), 0 },
{ INT(dot11RSNASAERetransPeriod), 0 },
#endif /* CONFIG_MESH */
{ INT(disable_scan_offload), 0 },
{ INT(fast_reauth), 0 },
{ STR(opensc_engine_path), 0 },
{ STR(pkcs11_engine_path), 0 },
{ STR(pkcs11_module_path), 0 },
{ STR(openssl_ciphers), 0 },
{ STR(pcsc_reader), 0 },
{ STR(pcsc_pin), 0 },
{ INT(external_sim), 0 },
{ STR(driver_param), 0 },
{ INT(dot11RSNAConfigPMKLifetime), 0 },
{ INT(dot11RSNAConfigPMKReauthThreshold), 0 },
{ INT(dot11RSNAConfigSATimeout), 0 },
#ifndef CONFIG_NO_CONFIG_WRITE
{ INT(update_config), 0 },
#endif /* CONFIG_NO_CONFIG_WRITE */
{ FUNC_NO_VAR(load_dynamic_eap), 0 },
#ifdef CONFIG_WPS
{ FUNC(uuid), CFG_CHANGED_UUID },
{ STR_RANGE(device_name, 0, WPS_DEV_NAME_MAX_LEN),
CFG_CHANGED_DEVICE_NAME },
{ STR_RANGE(manufacturer, 0, 64), CFG_CHANGED_WPS_STRING },
{ STR_RANGE(model_name, 0, 32), CFG_CHANGED_WPS_STRING },
{ STR_RANGE(model_number, 0, 32), CFG_CHANGED_WPS_STRING },
{ STR_RANGE(serial_number, 0, 32), CFG_CHANGED_WPS_STRING },
{ FUNC(device_type), CFG_CHANGED_DEVICE_TYPE },
{ FUNC(os_version), CFG_CHANGED_OS_VERSION },
{ STR(config_methods), CFG_CHANGED_CONFIG_METHODS },
{ INT_RANGE(wps_cred_processing, 0, 2), 0 },
{ FUNC(wps_vendor_ext_m1), CFG_CHANGED_VENDOR_EXTENSION },
#endif /* CONFIG_WPS */
#ifdef CONFIG_P2P
{ FUNC(sec_device_type), CFG_CHANGED_SEC_DEVICE_TYPE },
{ INT(p2p_listen_reg_class), CFG_CHANGED_P2P_LISTEN_CHANNEL },
{ INT(p2p_listen_channel), CFG_CHANGED_P2P_LISTEN_CHANNEL },
{ INT(p2p_oper_reg_class), CFG_CHANGED_P2P_OPER_CHANNEL },
{ INT(p2p_oper_channel), CFG_CHANGED_P2P_OPER_CHANNEL },
{ INT_RANGE(p2p_go_intent, 0, 15), 0 },
{ STR(p2p_ssid_postfix), CFG_CHANGED_P2P_SSID_POSTFIX },
{ INT_RANGE(persistent_reconnect, 0, 1), 0 },
{ INT_RANGE(p2p_intra_bss, 0, 1), CFG_CHANGED_P2P_INTRA_BSS },
{ INT(p2p_group_idle), 0 },
{ INT_RANGE(p2p_go_freq_change_policy, 0, P2P_GO_FREQ_MOVE_MAX), 0 },
{ INT_RANGE(p2p_passphrase_len, 8, 63),
CFG_CHANGED_P2P_PASSPHRASE_LEN },
{ FUNC(p2p_pref_chan), CFG_CHANGED_P2P_PREF_CHAN },
{ FUNC(p2p_no_go_freq), CFG_CHANGED_P2P_PREF_CHAN },
{ INT_RANGE(p2p_add_cli_chan, 0, 1), 0 },
{ INT_RANGE(p2p_optimize_listen_chan, 0, 1), 0 },
{ INT(p2p_go_ht40), 0 },
{ INT(p2p_go_vht), 0 },
{ INT(p2p_disabled), 0 },
{ INT_RANGE(p2p_go_ctwindow, 0, 127), 0 },
{ INT(p2p_no_group_iface), 0 },
{ INT_RANGE(p2p_ignore_shared_freq, 0, 1), 0 },
{ IPV4(ip_addr_go), 0 },
{ IPV4(ip_addr_mask), 0 },
{ IPV4(ip_addr_start), 0 },
{ IPV4(ip_addr_end), 0 },
{ INT_RANGE(p2p_cli_probe, 0, 1), 0 },
#endif /* CONFIG_P2P */
{ FUNC(country), CFG_CHANGED_COUNTRY },
{ INT(bss_max_count), 0 },
{ INT(bss_expiration_age), 0 },
{ INT(bss_expiration_scan_count), 0 },
{ INT_RANGE(filter_ssids, 0, 1), 0 },
{ INT_RANGE(filter_rssi, -100, 0), 0 },
{ INT(max_num_sta), 0 },
{ INT_RANGE(disassoc_low_ack, 0, 1), 0 },
#ifdef CONFIG_HS20
{ INT_RANGE(hs20, 0, 1), 0 },
#endif /* CONFIG_HS20 */
{ INT_RANGE(interworking, 0, 1), 0 },
{ FUNC(hessid), 0 },
{ INT_RANGE(access_network_type, 0, 15), 0 },
{ INT_RANGE(pbc_in_m1, 0, 1), 0 },
{ STR(autoscan), 0 },
{ INT_RANGE(wps_nfc_dev_pw_id, 0x10, 0xffff),
CFG_CHANGED_NFC_PASSWORD_TOKEN },
{ BIN(wps_nfc_dh_pubkey), CFG_CHANGED_NFC_PASSWORD_TOKEN },
{ BIN(wps_nfc_dh_privkey), CFG_CHANGED_NFC_PASSWORD_TOKEN },
{ BIN(wps_nfc_dev_pw), CFG_CHANGED_NFC_PASSWORD_TOKEN },
{ STR(ext_password_backend), CFG_CHANGED_EXT_PW_BACKEND },
{ INT(p2p_go_max_inactivity), 0 },
{ INT_RANGE(auto_interworking, 0, 1), 0 },
{ INT(okc), 0 },
{ INT(pmf), 0 },
{ FUNC(sae_groups), 0 },
{ INT(dtim_period), 0 },
{ INT(beacon_int), 0 },
{ FUNC(ap_vendor_elements), 0 },
{ INT_RANGE(ignore_old_scan_res, 0, 1), 0 },
{ FUNC(freq_list), 0 },
{ INT(scan_cur_freq), 0 },
{ INT(sched_scan_interval), 0 },
{ INT(tdls_external_control), 0},
{ STR(osu_dir), 0 },
{ STR(wowlan_triggers), 0 },
{ INT(p2p_search_delay), 0},
{ INT(mac_addr), 0 },
{ INT(rand_addr_lifetime), 0 },
{ INT(preassoc_mac_addr), 0 },
{ INT(key_mgmt_offload), 0},
{ INT(passive_scan), 0 },
{ INT(reassoc_same_bss_optim), 0 },
{ INT(wps_priority), 0},
#ifdef CONFIG_FST
{ STR_RANGE(fst_group_id, 1, FST_MAX_GROUP_ID_LEN), 0 },
{ INT_RANGE(fst_priority, 1, FST_MAX_PRIO_VALUE), 0 },
{ INT_RANGE(fst_llt, 1, FST_MAX_LLT_MS), 0 },
#endif /* CONFIG_FST */
};
#undef FUNC
#undef _INT
#undef INT
#undef INT_RANGE
#undef _STR
#undef STR
#undef STR_RANGE
#undef BIN
#undef IPV4
#define NUM_GLOBAL_FIELDS ARRAY_SIZE(global_fields)
int wpa_config_dump_values(struct wpa_config *config, char *buf, size_t buflen)
{
int result = 0;
size_t i;
for (i = 0; i < NUM_GLOBAL_FIELDS; i++) {
const struct global_parse_data *field = &global_fields[i];
int tmp;
if (!field->get)
continue;
tmp = field->get(field->name, config, (long) field->param1,
buf, buflen, 1);
if (tmp < 0)
return -1;
buf += tmp;
buflen -= tmp;
result += tmp;
}
return result;
}
int wpa_config_get_value(const char *name, struct wpa_config *config,
char *buf, size_t buflen)
{
size_t i;
for (i = 0; i < NUM_GLOBAL_FIELDS; i++) {
const struct global_parse_data *field = &global_fields[i];
if (os_strcmp(name, field->name) != 0)
continue;
if (!field->get)
break;
return field->get(name, config, (long) field->param1,
buf, buflen, 0);
}
return -1;
}
int wpa_config_process_global(struct wpa_config *config, char *pos, int line)
{
size_t i;
int ret = 0;
for (i = 0; i < NUM_GLOBAL_FIELDS; i++) {
const struct global_parse_data *field = &global_fields[i];
size_t flen = os_strlen(field->name);
if (os_strncmp(pos, field->name, flen) != 0 ||
pos[flen] != '=')
continue;
if (field->parser(field, config, line, pos + flen + 1)) {
wpa_printf(MSG_ERROR, "Line %d: failed to "
"parse '%s'.", line, pos);
ret = -1;
}
if (field->changed_flag == CFG_CHANGED_NFC_PASSWORD_TOKEN)
config->wps_nfc_pw_from_config = 1;
config->changed_parameters |= field->changed_flag;
break;
}
if (i == NUM_GLOBAL_FIELDS) {
#ifdef CONFIG_AP
if (os_strncmp(pos, "wmm_ac_", 7) == 0) {
char *tmp = os_strchr(pos, '=');
if (tmp == NULL) {
if (line < 0)
return -1;
wpa_printf(MSG_ERROR, "Line %d: invalid line "
"'%s'", line, pos);
return -1;
}
*tmp++ = '\0';
if (hostapd_config_wmm_ac(config->wmm_ac_params, pos,
tmp)) {
wpa_printf(MSG_ERROR, "Line %d: invalid WMM "
"AC item", line);
return -1;
}
}
#endif /* CONFIG_AP */
if (line < 0)
return -1;
wpa_printf(MSG_ERROR, "Line %d: unknown global field '%s'.",
line, pos);
ret = -1;
}
return ret;
}
|
"""The module describes the ``gitlab`` error plugin plugin."""
import logging
import os
import sys
import requests
if sys.version_info[0] < 3:
import urllib as urllib
import urlparse as urlparse
else:
import urllib.parse as urllib
urlparse = urllib
try:
import gitlab
except ImportError:
gitlab = None
from galaxy.util import string_as_bool
from .base_git import BaseGitPlugin
log = logging.getLogger(__name__)
class GitLabPlugin(BaseGitPlugin):
"""Send error report to GitLab.
"""
plugin_type = "gitlab"
def __init__(self, **kwargs):
self.app = kwargs['app']
self.redact_user_details_in_bugreport = self.app.config.redact_user_details_in_bugreport
self.verbose = string_as_bool(kwargs.get('verbose', False))
self.user_submission = string_as_bool(kwargs.get('user_submission', False))
# GitLab settings
self.gitlab_base_url = kwargs.get('gitlab_base_url', 'https://gitlab.com')
self.gitlab_private_token = kwargs.get('gitlab_private_token', "")
self.git_default_repo_owner = kwargs.get('gitlab_default_repo_owner', False)
self.git_default_repo_name = kwargs.get('gitlab_default_repo_name', False)
self.git_default_repo_only = string_as_bool(kwargs.get('gitlab_default_repo_only', True))
self.gitlab_use_proxy = string_as_bool(kwargs.get('gitlab_allow_proxy', True))
self.gitlab_new_issue_on_closed = string_as_bool(kwargs.get("gitlab_new_issue_on_closed", False))
self.gitlab_labels = kwargs.get("gitlab_labels", [])
try:
if gitlab is None:
raise Exception("GitLab error reporting plugin is configured, but gitlab is not installed. Please install python-gitlab.")
self.gitlab = self.gitlab_connect()
self.gitlab.auth()
except gitlab.GitlabAuthenticationError:
log.error("GitLab error reporting - Could not authenticate with GitLab.", exc_info=True)
self.gitlab = None
except gitlab.GitlabParsingError:
log.error("GitLab error reporting - Could not parse GitLab message.", exc_info=True)
self.gitlab = None
except (gitlab.GitlabConnectionError, gitlab.GitlabHttpError):
log.error("GitLab error reporting - Could not connect to GitLab.", exc_info=True)
self.gitlab = None
except gitlab.GitlabError:
log.error("GitLab error reporting - General error communicating with GitLab.", exc_info=True)
self.gitlab = None
def gitlab_connect(self):
import gitlab
session = requests.Session()
if self.gitlab_use_proxy:
session.proxies = {
'https': os.environ.get('https_proxy'),
'http': os.environ.get('http_proxy'),
}
return gitlab.Gitlab(
# Allow running against GL enterprise deployments
self.gitlab_base_url,
private_token=self.gitlab_private_token,
session=session
)
def submit_report(self, dataset, job, tool, **kwargs):
"""Submit the error report to GitLab
"""
log.info(self.gitlab)
# Try to connect beforehand, as we might lose connection
if not self.gitlab:
self.gitlab = self.gitlab_connect()
self.gitlab.auth()
# Ensure we are connected to Gitlab
if self.gitlab:
# Import GitLab here for the error handling
import gitlab
try:
log.info(f"GitLab error reporting - submit report - job tool id: {job.tool_id} - job tool version: {job.tool_version} - tool tool_shed: {tool.tool_shed}")
# Determine the ToolShed url, initially we connect with HTTP and if redirect to HTTPS is set up,
# this will be detected by requests and used further down the line. Also cache this so everything is
# as fast as possible
ts_url = self._determine_ts_url(tool)
log.info("GitLab error reporting - Determined ToolShed is %s", ts_url)
# Find the repo inside the ToolShed
ts_repourl = self._get_gitrepo_from_ts(job, ts_url)
# Remove .git from the repository URL if this was specified
if ts_repourl is not None and ts_repourl.endswith(".git"):
ts_repourl = ts_repourl[:-4]
log.info("GitLab error reporting - Determine ToolShed Repository URL: %s", ts_repourl)
# Determine the GitLab project URL and the issue cache key
gitlab_projecturl = urlparse.urlparse(ts_repourl).path[1:] if (ts_repourl and not self.git_default_repo_only)\
else "/".join((self.git_default_repo_owner, self.git_default_repo_name))
issue_cache_key = self._get_issue_cache_key(job, ts_repourl)
gitlab_urlencodedpath = urllib.quote_plus(gitlab_projecturl)
# Make sure we are always logged in, then retrieve the GitLab project if it isn't cached.
self.gitlab.auth()
try:
if gitlab_projecturl not in self.git_project_cache:
self.git_project_cache[gitlab_projecturl] = self.gitlab.projects.get(gitlab_urlencodedpath)
except gitlab.GitlabGetError:
# Handle scenario where the repository doesn't exist so we can still continue
log.warn("GitLab error reporting - Repository '%s' doesn't exist, using default repository." % gitlab_urlencodedpath)
# Redo some of the previous steps to recover from such an issue but continue issue creation
gitlab_projecturl = "/".join((self.git_default_repo_owner, self.git_default_repo_name))
gitlab_urlencodedpath = urllib.quote_plus(gitlab_projecturl)
if gitlab_projecturl not in self.git_project_cache:
self.git_project_cache[gitlab_projecturl] = self.gitlab.projects.get(gitlab_urlencodedpath)
gl_project = self.git_project_cache[gitlab_projecturl]
# Make sure we keep a cache of the issues, per tool in this case
if issue_cache_key not in self.issue_cache:
self._fill_issue_cache(gl_project, issue_cache_key)
# Generate information for the tool
error_title = self._generate_error_title(job)
# Generate the error message
error_message = self._generate_error_message(dataset, job, kwargs)
# Determine the user to assign to the issue
gl_userid = None
if len(gl_project.commits.list()) > 0:
gl_username = gl_project.commits.list()[0].attributes['author_name']
if not self.redact_user_details_in_bugreport:
log.debug("GitLab error reporting - Last commiter username: %s" % gl_username)
if gl_username not in self.git_username_id_cache:
gl_userquery = self.gitlab.users.list(username=gl_username)
log.debug("GitLab error reporting - User list: %s" % gl_userquery)
if len(gl_userquery) > 0:
log.debug("GitLab error reporting - Last Committer user ID: %d" %
gl_userquery[0].get_id())
self.git_username_id_cache[gl_username] = gl_userquery[0].get_id()
gl_userid = self.git_username_id_cache.get(gl_username, None)
log.info(error_title in self.issue_cache[issue_cache_key])
if error_title not in self.issue_cache[issue_cache_key]:
self._open_issue(error_message, error_title, gitlab_projecturl, gl_project, gl_userid,
issue_cache_key)
else:
if not self.gitlab_new_issue_on_closed:
# Check if issue is closed, otherwise reopen it
issue_id = self.issue_cache[issue_cache_key][error_title]
issue = gl_project.issues.get(issue_id)
log.info("GitLab error reporting - Issue state is %s" % issue.state)
if issue.state == 'closed':
# Reopen issue
issue.state_event = 'reopen'
issue.save()
log.info("GitLab error reporting - Reopened issue %s" % issue_id)
# Add a comment to an issue...
self._append_issue(issue_cache_key, error_title, error_message,
gitlab_urlencodedpath=gitlab_urlencodedpath)
else:
self._open_issue(error_message, error_title, gitlab_projecturl, gl_project, gl_userid,
issue_cache_key)
return ('Submitted error report to GitLab. Your issue number is <a href="%s/%s/issues/%s" '
'target="_blank">#%s</a>.' % (self.gitlab_base_url, gitlab_projecturl,
self.issue_cache[issue_cache_key][error_title],
self.issue_cache[issue_cache_key][error_title]), 'success')
except gitlab.GitlabCreateError:
log.error("GitLab error reporting - Could not create the issue on GitLab.", exc_info=True)
return ('Internal Error.', 'danger')
except gitlab.GitlabOwnershipError:
log.error("GitLab error reporting - Could not create the issue on GitLab due to ownership issues.", exc_info=True)
return ('Internal Error.', 'danger')
except gitlab.GitlabSearchError:
log.error("GitLab error reporting - Could not find repository on GitLab.", exc_info=True)
return ('Internal Error.', 'danger')
except gitlab.GitlabAuthenticationError:
log.error("GitLab error reporting - Could not authenticate with GitLab.", exc_info=True)
return ('Internal Error.', 'danger')
except gitlab.GitlabParsingError:
log.error("GitLab error reporting - Could not parse GitLab message.", exc_info=True)
return ('Internal Error.', 'danger')
except (gitlab.GitlabConnectionError, gitlab.GitlabHttpError):
log.error("GitLab error reporting - Could not connect to GitLab.", exc_info=True)
return ('Internal Error.', 'danger')
except gitlab.GitlabError:
log.error("GitLab error reporting - General error communicating with GitLab.", exc_info=True)
return ('Internal Error.', 'danger')
except Exception:
log.error("GitLab error reporting - Error reporting to GitLab had an exception that could not be "
"determined.", exc_info=True)
return ('Internal Error.', 'danger')
else:
log.error("GitLab error reporting - No connection to GitLab. Cannot report error to GitLab.")
return ('Internal Error.', 'danger')
def _open_issue(self, error_message, error_title, gitlab_projecturl, gl_project, gl_userid, issue_cache_key):
""" Open an issue """
try:
# Create a new issue.
self._create_issue(issue_cache_key, error_title, error_message, gl_project, gl_userid=gl_userid)
except (gitlab.GitlabOwnershipError, gitlab.GitlabGetError):
# Create an issue in the default location
gitlab_projecturl = "/".join((self.git_default_repo_owner, self.git_default_repo_name))
gitlab_urlencodedpath = urllib.quote_plus(gitlab_projecturl)
# Make sure we are always logged in, then retrieve the GitLab project if it isn't cached.
self.gitlab = self.gitlab_connect()
if gitlab_projecturl not in self.git_project_cache:
self.git_project_cache[gitlab_projecturl] = self.gitlab.projects.get(gitlab_urlencodedpath)
gl_project = self.git_project_cache[gitlab_projecturl]
# Submit issue to default project
self._create_issue(issue_cache_key, error_title, error_message, gl_project, gl_userid=gl_userid)
return gitlab_projecturl
def _create_issue(self, issue_cache_key, error_title, error_message, project, **kwargs):
# Set payload for the issue
issue_data = {
'title': error_title,
'description': error_message
}
# Assign the user to the issue
gl_userid = kwargs.get("gl_userid", None)
if gl_userid is not None:
issue_data['assignee_ids'] = [gl_userid]
# Create the issue on GitLab
issue = project.issues.create(issue_data)
# Set labels
issue.labels = self.gitlab_labels
issue.save()
# Store in cache
self.issue_cache[issue_cache_key][error_title] = issue.iid
def _append_issue(self, issue_cache_key, error_title, error_message, **kwargs):
# Add a comment to an existing issue
gl_url = "/".join((
self.gitlab_base_url,
"api",
"v4",
"projects",
kwargs.get('gitlab_urlencodedpath'),
"issues",
str(self.issue_cache[issue_cache_key][error_title]),
"notes"
))
self.gitlab.http_post(gl_url, post_data={'body': error_message})
def _fill_issue_cache(self, git_project, issue_cache_key):
self.issue_cache[issue_cache_key] = {}
# Loop over all open issues and add the issue iid to the cache
for issue in git_project.issues.list():
if issue.state != 'closed':
log.info("GitLab error reporting - Repo issue: %s", str(issue.iid))
self.issue_cache[issue_cache_key][issue.title] = issue.iid
__all__ = ('GitLabPlugin', )
|
import React from 'react';
import { cx, css } from '@emotion/css';
import Menu from './Menu';
export const Toolbar = React.forwardRef(
(
{ className, ...props },
ref
) => (
<Menu
{...props}
ref={ref}
className={cx(
className,
css`
position: fixed;
width: 69.7%;
top: 75px;
background: #38A3A5;
color: #fff;
left: 116px;
z-index: 8;
overflow: hidden;
justify-content: center;
`
)}
/>
)
)
|
import { expect } from 'chai';
import { addWidget, removeWidget } from '../../lib/util';
function setup() {
return {
rows: [{
columns: [{
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [{key: 'HelloWorld'}],
}, {
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [],
}],
}],
};
}
describe('Util.addWidget()', () => {
it('Should add a new widget to the specified location', () => {
const layout = setup();
expect({
rows: [{
columns: [{
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [{key: 'HelloWorld'}, {key: 'NewWidget'}],
}, {
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [],
}],
}],
}).to.eql(addWidget(layout, 0, 0, 'NewWidget'));
});
});
describe('Util.removeWidget()', () => {
it('Should remove a widget from the specified location', () => {
const layout = setup();
expect({
rows: [{
columns: [{
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [],
}, {
className: 'col-md-4 col-sm-6 col-xs-6',
widgets: [],
}],
}],
}).to.eql(removeWidget(layout, 0, 0, 0));
});
});
|
import click
from parsec.commands.visual.get_visualizations import cli as get_visualizations
from parsec.commands.visual.show_visualization import cli as show_visualization
@click.group()
def cli():
pass
cli.add_command(get_visualizations)
cli.add_command(show_visualization)
|
// Copyright (c) 2012, Compiler Explorer Authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var ga = require('../analytics').ga;
var colour = require('../colour');
var Toggles = require('../toggles').Toggles;
var FontScale = require('../fontscale').FontScale;
var Promise = require('es6-promise').Promise;
var Components = require('../components');
var LruCache = require('lru-cache');
var options = require('../options').options;
var monaco = require('monaco-editor');
var Alert = require('../alert').Alert;
var bigInt = require('big-integer');
var Libraries = require('../libs-widget-ext');
var codeLensHandler = require('../codelens-handler');
var monacoConfig = require('../monaco-config');
var TimingWidget = require('../timing-info-widget');
var CompilerPicker = require('../compiler-picker').CompilerPicker;
var Settings = require('../settings');
var utils = require('../utils');
var LibUtils = require('../lib-utils').LibUtils;
require('../modes/asm-mode');
require('../modes/asmruby-mode');
require('../modes/ptx-mode');
var OpcodeCache = new LruCache({
max: 64 * 1024,
length: function (n) {
return JSON.stringify(n).length;
},
});
function patchOldFilters(filters) {
if (filters === undefined) return undefined;
// Filters are of the form {filter: true|false¸ ...}. In older versions, we used
// to suppress the {filter:false} form. This means we can't distinguish between
// "filter not on" and "filter not present". In the latter case we want to default
// the filter. In the former case we want the filter off. Filters now don't suppress
// but there are plenty of permalinks out there with no filters set at all. Here
// we manually set any missing filters to 'false' to recover the old behaviour of
// "if it's not here, it's off".
_.each(['binary', 'labels', 'directives', 'commentOnly', 'trim', 'intel'], function (oldFilter) {
if (filters[oldFilter] === undefined) filters[oldFilter] = false;
});
return filters;
}
var languages = options.languages;
// Disable max line count only for the constructor. Turns out, it needs to do quite a lot of things
// eslint-disable-next-line max-statements
function Compiler(hub, container, state) {
this.container = container;
this.hub = hub;
this.eventHub = hub.createEventHub();
this.compilerService = hub.compilerService;
this.domRoot = container.getElement();
this.domRoot.html($('#compiler').html());
this.id = state.id || hub.nextCompilerId();
this.sourceTreeId = state.tree ? state.tree : false;
if (this.sourceTreeId) {
this.sourceEditorId = false;
} else {
this.sourceEditorId = state.source || 1;
}
this.settings = Settings.getStoredSettings();
this.originalCompilerId = state.compiler;
this.initLangAndCompiler(state);
this.infoByLang = {};
this.deferCompiles = hub.deferred;
this.needsCompile = false;
this.deviceViewOpen = false;
this.options = state.options || options.compileOptions[this.currentLangId];
this.source = '';
this.assembly = [];
this.colours = [];
this.lastResult = {};
this.lastTimeTaken = 0;
this.pendingRequestSentAt = 0;
this.pendingCMakeRequestSentAt = 0;
this.nextRequest = null;
this.nextCMakeRequest = null;
this.optViewOpen = false;
this.flagsViewOpen = state.flagsViewOpen || false;
this.cfgViewOpen = false;
this.wantOptInfo = state.wantOptInfo;
this.decorations = {};
this.prevDecorations = [];
this.labelDefinitions = {};
this.alertSystem = new Alert();
this.alertSystem.prefixMessage = 'Compiler #' + this.id + ': ';
this.awaitingInitialResults = false;
this.selection = state.selection;
this.linkedFadeTimeoutId = -1;
this.toolsMenu = null;
this.revealJumpStack = [];
this.initButtons(state);
var monacoDisassembly = 'asm';
if (languages[this.currentLangId] && languages[this.currentLangId].monacoDisassembly) {
// TODO: If languages[this.currentLangId] is not valid, something went wrong. Find out what
monacoDisassembly = languages[this.currentLangId].monacoDisassembly;
}
this.outputEditor = monaco.editor.create(this.monacoPlaceholder[0], monacoConfig.extendConfig({
readOnly: true,
language: monacoDisassembly,
glyphMargin: !options.embedded,
renderIndentGuides: false,
vimInUse: false,
}, this.settings));
this.fontScale = new FontScale(this.domRoot, state, this.outputEditor);
this.compilerPicker = new CompilerPicker(
this.domRoot,
this.hub,
this.currentLangId,
this.compiler ? this.compiler.id : null,
_.bind(this.onCompilerChange, this)
);
this.initLibraries(state);
this.initEditorActions();
this.initEditorCommands();
this.initCallbacks();
// Handle initial settings
this.onSettingsChange(this.settings);
this.sendCompiler();
this.updateCompilerInfo();
this.updateButtons();
this.saveState();
ga.proxy('send', {
hitType: 'event',
eventCategory: 'OpenViewPane',
eventAction: 'Compiler',
});
if (this.sourceTreeId) {
this.compile();
}
}
Compiler.prototype.getEditorIdBySourcefile = function (sourcefile) {
if (this.sourceTreeId) {
var tree = this.hub.getTreeById(this.sourceTreeId);
if (tree) {
return tree.multifileService.getEditorIdByFilename(sourcefile.file);
}
} else {
if (sourcefile !== null && (sourcefile.file === null || sourcefile.mainsource)) {
return this.sourceEditorId;
}
}
return false;
};
Compiler.prototype.initLangAndCompiler = function (state) {
var langId = state.lang;
var compilerId = state.compiler;
var result = this.compilerService.processFromLangAndCompiler(langId, compilerId);
this.compiler = result.compiler;
this.currentLangId = result.langId;
this.updateLibraries();
};
Compiler.prototype.close = function () {
codeLensHandler.unregister(this.id);
this.eventHub.unsubscribe();
this.eventHub.emit('compilerClose', this.id);
this.outputEditor.dispose();
};
Compiler.prototype.initPanerButtons = function () {
var outputConfig = _.bind(function () {
return Components.getOutput(this.id, this.sourceEditorId, this.sourceTreeId);
}, this);
this.container.layoutManager.createDragSource(this.outputBtn, outputConfig);
this.outputBtn.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(outputConfig);
}, this));
var cloneComponent = _.bind(function () {
var currentState = this.currentState();
// Delete the saved id to force a new one
delete currentState.id;
return {
type: 'component',
componentName: 'compiler',
componentState: currentState,
};
}, this);
var createOptView = _.bind(function () {
return Components.getOptViewWith(this.id, this.source, this.lastResult.optOutput, this.getCompilerName(),
this.sourceEditorId);
}, this);
var createFlagsView = _.bind(function () {
return Components.getFlagsViewWith(this.id, this.getCompilerName(), this.optionsField.val());
}, this);
if (this.flagsViewOpen) {
createFlagsView();
}
var createAstView = _.bind(function () {
return Components.getAstViewWith(this.id, this.source, this.lastResult.astOutput, this.getCompilerName(),
this.sourceEditorId);
}, this);
var createIrView = _.bind(function () {
return Components.getIrViewWith(this.id, this.source, this.lastResult.irOutput, this.getCompilerName(),
this.sourceEditorId);
}, this);
var createDeviceView = _.bind(function () {
return Components.getDeviceViewWith(this.id, this.source, this.lastResult.devices, this.getCompilerName(),
this.sourceEditorId);
}, this);
var createRustMirView = _.bind(function () {
return Components.getRustMirViewWith(this.id, this.source, this.lastResult.rustMirOutput,
this.getCompilerName(), this.sourceEditorId);
}, this);
var createRustMacroExpView = _.bind(function () {
return Components.getRustMacroExpViewWith(this.id, this.source, this.lastResult.rustMacroExpOutput,
this.getCompilerName(), this.sourceEditorId);
}, this);
var createGccDumpView = _.bind(function () {
return Components.getGccDumpViewWith(this.id, this.getCompilerName(), this.sourceEditorId,
this.lastResult.gccDumpOutput);
}, this);
var createGnatDebugView = _.bind(function () {
return Components.getGnatDebugViewWith(this.id, this.source, this.lastResult.gnatDebugOutput,
this.getCompilerName(), this.sourceEditorId);
}, this);
var createCfgView = _.bind(function () {
return Components.getCfgViewWith(this.id, this.sourceEditorId);
}, this);
var createExecutor = _.bind(function () {
var currentState = this.currentState();
var editorId = currentState.source;
var treeId = currentState.tree;
var langId = currentState.lang;
var compilerId = currentState.compiler;
var libs = [];
_.each(this.libsWidget.getLibsInUse(), function (item) {
libs.push({
name: item.libId,
ver: item.versionId,
});
});
return Components.getExecutorWith(editorId, langId, compilerId, libs, currentState.options, treeId);
}, this);
var panerDropdown = this.domRoot.find('.pane-dropdown');
var togglePannerAdder = function () {
panerDropdown.dropdown('toggle');
};
this.container.layoutManager
.createDragSource(this.domRoot.find('.btn.add-compiler'), cloneComponent)
._dragListener.on('dragStart', togglePannerAdder);
this.domRoot.find('.btn.add-compiler').click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(cloneComponent);
}, this));
this.container.layoutManager
.createDragSource(this.optButton, createOptView)
._dragListener.on('dragStart', togglePannerAdder);
this.optButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createOptView);
}, this));
var popularArgumentsMenu = this.domRoot.find('div.populararguments div.dropdown-menu');
this.container.layoutManager
.createDragSource(this.flagsButton, createFlagsView)
._dragListener.on('dragStart', togglePannerAdder);
this.flagsButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createFlagsView);
}, this));
popularArgumentsMenu.append(this.flagsButton);
this.container.layoutManager
.createDragSource(this.astButton, createAstView)
._dragListener.on('dragStart', togglePannerAdder);
this.astButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createAstView);
}, this));
this.container.layoutManager
.createDragSource(this.irButton, createIrView)
._dragListener.on('dragStart', togglePannerAdder);
this.irButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createIrView);
}, this));
this.container.layoutManager
.createDragSource(this.deviceButton, createDeviceView)
._dragListener.on('dragStart', togglePannerAdder);
this.deviceButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createDeviceView);
}, this));
this.container.layoutManager
.createDragSource(this.rustMirButton, createRustMirView)
._dragListener.on('dragStart', togglePannerAdder);
this.rustMirButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createRustMirView);
}, this));
this.container.layoutManager
.createDragSource(this.rustMacroExpButton, createRustMacroExpView)
._dragListener.on('dragStart', togglePannerAdder);
this.rustMacroExpButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createRustMacroExpView);
}, this));
this.container.layoutManager
.createDragSource(this.gccDumpButton, createGccDumpView)
._dragListener.on('dragStart', togglePannerAdder);
this.gccDumpButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createGccDumpView);
}, this));
this.container.layoutManager
.createDragSource(this.gnatDebugButton, createGnatDebugView)
._dragListener.on('dragStart', togglePannerAdder);
this.gnatDebugButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createGnatDebugView);
}, this));
this.container.layoutManager
.createDragSource(this.cfgButton, createCfgView)
._dragListener.on('dragStart', togglePannerAdder);
this.cfgButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createCfgView);
}, this));
this.container.layoutManager
.createDragSource(this.executorButton, createExecutor)
._dragListener.on('dragStart', togglePannerAdder);
this.executorButton.click(_.bind(function () {
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createExecutor);
}, this));
this.initToolButtons(togglePannerAdder);
};
Compiler.prototype.undefer = function () {
this.deferCompiles = false;
if (this.needsCompile) {
this.compile();
}
};
Compiler.prototype.resize = function () {
var topBarHeight = utils.updateAndCalcTopBarHeight(this.domRoot, this.topBar, this.hideable);
var bottomBarHeight = this.bottomBar.outerHeight(true);
this.outputEditor.layout({
width: this.domRoot.width(),
height: this.domRoot.height() - topBarHeight - bottomBarHeight,
});
};
// Returns a label name if it can be found in the given position, otherwise
// returns null.
Compiler.prototype.getLabelAtPosition = function (position) {
var asmLine = this.assembly[position.lineNumber - 1];
// Outdated position.lineNumber can happen (Between compilations?) - Check for those and skip
if (asmLine) {
var column = position.column;
var labels = asmLine.labels || [];
for (var i = 0; i < labels.length; ++i) {
if (column >= labels[i].range.startCol &&
column < labels[i].range.endCol
) {
return labels[i];
}
}
}
return null;
};
// Jumps to a label definition related to a label which was found in the
// given position and highlights the given range. If no label can be found in
// the given positon it do nothing.
Compiler.prototype.jumpToLabel = function (position) {
var label = this.getLabelAtPosition(position);
if (!label) {
return;
}
var labelDefLineNum = this.labelDefinitions[label.name];
if (!labelDefLineNum) {
return;
}
// Highlight the new range.
var endLineContent = this.outputEditor.getModel().getLineContent(labelDefLineNum);
this.pushRevealJump();
this.outputEditor.setSelection(new monaco.Selection(
labelDefLineNum, 0,
labelDefLineNum, endLineContent.length + 1));
// Jump to the given line.
this.outputEditor.revealLineInCenter(labelDefLineNum);
};
Compiler.prototype.pushRevealJump = function () {
this.revealJumpStack.push(this.outputEditor.saveViewState());
this.revealJumpStackHasElementsCtxKey.set(true);
};
Compiler.prototype.popAndRevealJump = function () {
if (this.revealJumpStack.length > 0) {
this.outputEditor.restoreViewState(this.revealJumpStack.pop());
this.revealJumpStackHasElementsCtxKey.set(this.revealJumpStack.length > 0);
}
};
Compiler.prototype.initEditorActions = function () {
this.isLabelCtxKey = this.outputEditor.createContextKey('isLabel', true);
this.revealJumpStackHasElementsCtxKey = this.outputEditor.createContextKey('hasRevealJumpStackElements', false);
this.isAsmKeywordCtxKey = this.outputEditor.createContextKey('isAsmKeyword', true);
this.outputEditor.addAction({
id: 'jumptolabel',
label: 'Jump to label',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
precondition: 'isLabel',
contextMenuGroupId: 'navigation',
contextMenuOrder: 1.5,
run: _.bind(function (ed) {
this.jumpToLabel(ed.getPosition());
}, this),
});
// Hiding the 'Jump to label' context menu option if no label can be found
// in the clicked position.
var contextmenu = this.outputEditor.getContribution('editor.contrib.contextmenu');
var realMethod = contextmenu._onContextMenu;
contextmenu._onContextMenu = _.bind(function (e) {
if (e && e.target && e.target.position) {
if (this.isLabelCtxKey) {
var label = this.getLabelAtPosition(e.target.position);
this.isLabelCtxKey.set(label !== null);
}
if (this.isAsmKeywordCtxKey) {
var currentWord = this.outputEditor.getModel().getWordAtPosition(e.target.position);
if (currentWord) {
currentWord.range = new monaco.Range(e.target.position.lineNumber,
Math.max(currentWord.startColumn, 1),
e.target.position.lineNumber, currentWord.endColumn);
if (currentWord.word) {
this.isAsmKeywordCtxKey.set(this.isWordAsmKeyword(currentWord));
}
}
}
}
realMethod.apply(contextmenu, arguments);
}, this);
this.outputEditor.addAction({
id: 'returnfromreveal',
label: 'Return from reveal jump',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Enter],
contextMenuGroupId: 'navigation',
contextMenuOrder: 1.4,
precondition: 'hasRevealJumpStackElements',
run: _.bind(function () {
this.popAndRevealJump();
}, this),
});
this.outputEditor.addAction({
id: 'viewsource',
label: 'Scroll to source',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
keybindingContext: null,
contextMenuGroupId: 'navigation',
contextMenuOrder: 1.5,
run: _.bind(function (ed) {
var desiredLine = ed.getPosition().lineNumber - 1;
var source = this.assembly[desiredLine].source;
if (source && source.line > 0) {
var editorId = this.getEditorIdBySourcefile(source);
if (editorId) {
// a null file means it was the user's source
this.eventHub.emit('editorLinkLine', editorId, source.line, -1, -1, true);
}
}
}, this),
});
this.outputEditor.addAction({
id: 'viewasmdoc',
label: 'View assembly documentation',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F8],
keybindingContext: null,
precondition: 'isAsmKeyword',
contextMenuGroupId: 'help',
contextMenuOrder: 1.5,
run: _.bind(this.onAsmToolTip, this),
});
this.outputEditor.addAction({
id: 'toggleColourisation',
label: 'Toggle colourisation',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.F1],
keybindingContext: null,
run: _.bind(function () {
this.eventHub.emit('modifySettings', {
colouriseAsm: !this.settings.colouriseAsm,
});
}, this),
});
};
Compiler.prototype.initEditorCommands = function () {
this.outputEditor.addAction({
id: 'dumpAsm',
label: 'Developer: Dump asm',
run: _.bind(function () {
// eslint-disable-next-line no-console
console.log(this.assembly);
}, this),
});
};
// Gets the filters that will actually be used (accounting for issues with binary
// mode etc).
Compiler.prototype.getEffectiveFilters = function () {
if (!this.compiler) return {};
var filters = this.filters.get();
if (filters.binary && !this.compiler.supportsBinary) {
delete filters.binary;
}
if (filters.execute && !this.compiler.supportsExecute) {
delete filters.execute;
}
if (filters.libraryCode && !this.compiler.supportsLibraryCodeFilter) {
delete filters.libraryCode;
}
_.each(this.compiler.disabledFilters, function (filter) {
if (filters[filter]) {
delete filters[filter];
}
});
return filters;
};
Compiler.prototype.findTools = function (content, tools) {
if (content.componentName === 'tool') {
if (content.componentState.compiler === this.id) {
tools.push({
id: content.componentState.toolId,
args: content.componentState.args,
stdin: content.componentState.stdin,
});
}
} else if (content.content) {
_.each(content.content, function (subcontent) {
tools = this.findTools(subcontent, tools);
}, this);
}
return tools;
};
Compiler.prototype.getActiveTools = function (newToolSettings) {
if (!this.compiler) return {};
var tools = [];
if (newToolSettings) {
tools.push({
id: newToolSettings.toolId,
args: newToolSettings.args,
stdin: newToolSettings.stdin,
});
}
if (this.container.layoutManager.isInitialised) {
var config = this.container.layoutManager.toConfig();
return this.findTools(config, tools);
} else {
return tools;
}
};
Compiler.prototype.isToolActive = function (activetools, toolId) {
return _.find(activetools, function (tool) {
return tool.id === toolId;
});
};
Compiler.prototype.compile = function (bypassCache, newTools) {
if (this.deferCompiles) {
this.needsCompile = true;
return;
}
this.needsCompile = false;
this.compileInfoLabel.text(' - Compiling...');
var options = {
userArguments: this.options,
compilerOptions: {
produceAst: this.astViewOpen,
produceGccDump: {
opened: this.gccDumpViewOpen,
pass: this.gccDumpPassSelected,
treeDump: this.treeDumpEnabled,
rtlDump: this.rtlDumpEnabled,
ipaDump: this.ipaDumpEnabled,
dumpFlags: this.dumpFlags,
},
produceOptInfo: this.wantOptInfo,
produceCfg: this.cfgViewOpen,
produceGnatDebug: this.gnatDebugViewOpen,
produceIr: this.irViewOpen,
produceDevice: this.deviceViewOpen,
produceRustMir: this.rustMirViewOpen,
produceRustMacroExp: this.rustMacroExpViewOpen,
},
filters: this.getEffectiveFilters(),
tools: this.getActiveTools(newTools),
libraries: [],
};
_.each(this.libsWidget.getLibsInUse(), function (item) {
options.libraries.push({
id: item.libId,
version: item.versionId,
});
});
if (this.sourceTreeId) {
this.compileFromTree(options, bypassCache);
} else {
this.compileFromEditorSource(options, bypassCache);
}
};
Compiler.prototype.compileFromTree = function (options, bypassCache) {
var tree = this.hub.getTreeById(this.sourceTreeId);
if (!tree) {
this.sourceTreeId = false;
this.compileFromEditorSource(options, bypassCache);
return;
}
var mainsource = tree.multifileService.getMainSource();
var request = {
source: mainsource,
compiler: this.compiler ? this.compiler.id : '',
options: options,
lang: this.currentLangId,
files: tree.multifileService.getFiles(),
};
var treeState = tree.currentState();
var cmakeProject = tree.multifileService.isACMakeProject();
if (bypassCache) request.bypassCache = true;
if (!this.compiler) {
this.onCompileResponse(request, errorResult('<Please select a compiler>'), false);
} else if (cmakeProject && request.source === '') {
this.onCompileResponse(request, errorResult('<Please supply a CMakeLists.txt>'), false);
} else {
if (cmakeProject) {
request.options.compilerOptions.cmakeArgs = treeState.cmakeArgs;
request.options.compilerOptions.customOutputFilename = treeState.customOutputFilename;
this.sendCMakeCompile(request);
} else {
this.sendCompile(request);
}
}
};
Compiler.prototype.compileFromEditorSource = function (options, bypassCache) {
this.compilerService.expand(this.source).then(_.bind(function (expanded) {
var request = {
source: expanded || '',
compiler: this.compiler ? this.compiler.id : '',
options: options,
lang: this.currentLangId,
files: [],
};
if (bypassCache) request.bypassCache = true;
if (!this.compiler) {
this.onCompileResponse(request, errorResult('<Please select a compiler>'), false);
} else {
this.sendCompile(request);
}
}, this));
};
Compiler.prototype.sendCMakeCompile = function (request) {
var onCompilerResponse = _.bind(this.onCMakeResponse, this);
if (this.pendingCMakeRequestSentAt) {
// If we have a request pending, then just store this request to do once the
// previous request completes.
this.nextCMakeRequest = request;
return;
}
this.eventHub.emit('compiling', this.id, this.compiler);
// Display the spinner
this.handleCompilationStatus({code: 4});
this.pendingCMakeRequestSentAt = Date.now();
// After a short delay, give the user some indication that we're working on their
// compilation.
var progress = setTimeout(_.bind(function () {
this.setAssembly({asm: fakeAsm('<Compiling...>')}, 0);
}, this), 500);
this.compilerService.submitCMake(request)
.then(function (x) {
clearTimeout(progress);
onCompilerResponse(request, x.result, x.localCacheHit);
})
.catch(function (x) {
clearTimeout(progress);
var message = 'Unknown error';
if (_.isString(x)) {
message = x;
} else if (x) {
message = x.error || x.code || message;
}
onCompilerResponse(request,
errorResult('<Compilation failed: ' + message + '>'), false);
});
};
Compiler.prototype.sendCompile = function (request) {
var onCompilerResponse = _.bind(this.onCompileResponse, this);
if (this.pendingRequestSentAt) {
// If we have a request pending, then just store this request to do once the
// previous request completes.
this.nextRequest = request;
return;
}
this.eventHub.emit('compiling', this.id, this.compiler);
// Display the spinner
this.handleCompilationStatus({code: 4});
this.pendingRequestSentAt = Date.now();
// After a short delay, give the user some indication that we're working on their
// compilation.
var progress = setTimeout(_.bind(function () {
this.setAssembly({asm: fakeAsm('<Compiling...>')}, 0);
}, this), 500);
this.compilerService.submit(request)
.then(function (x) {
clearTimeout(progress);
onCompilerResponse(request, x.result, x.localCacheHit);
})
.catch(function (e) {
clearTimeout(progress);
var message = 'Unknown error';
if (_.isString(e)) {
message = e;
} else if (e) {
message = e.error || e.code || e.message;
if (e.stack) console.log(e);
}
onCompilerResponse(request, errorResult('<Compilation failed: ' + message + '>'), false);
});
};
Compiler.prototype.setNormalMargin = function () {
this.outputEditor.updateOptions({
lineNumbers: true,
lineNumbersMinChars: 1,
});
};
Compiler.prototype.setBinaryMargin = function () {
this.outputEditor.updateOptions({
lineNumbersMinChars: 6,
lineNumbers: _.bind(this.getBinaryForLine, this),
});
};
Compiler.prototype.getBinaryForLine = function (line) {
var obj = this.assembly[line - 1];
if (obj) {
return obj.address ? obj.address.toString(16) : '';
} else {
return '???';
}
};
Compiler.prototype.setAssembly = function (result, filteredCount) {
var asm = result.asm || fakeAsm('<No output>');
this.assembly = asm;
if (!this.outputEditor || !this.outputEditor.getModel()) return;
var editorModel = this.outputEditor.getModel();
var msg = '<No assembly generated>';
if (asm.length) {
msg = _.pluck(asm, 'text').join('\n');
} else if (filteredCount > 0) {
msg = '<No assembly to display (~' + filteredCount + (filteredCount === 1 ? ' line' : ' lines') + ' filtered)>';
}
if (asm.length === 1 && result.code !== 0 && (result.stderr || result.stdout)) {
msg += '\n\n# For more information see the output window';
if (!this.isOutputOpened) {
msg += '\n# To open the output window, click or drag the "Output" icon at the bottom of this window';
}
}
editorModel.setValue(msg);
if (!this.awaitingInitialResults) {
if (this.selection) {
this.outputEditor.setSelection(this.selection);
this.outputEditor.revealLinesInCenter(
this.selection.startLineNumber, this.selection.endLineNumber);
}
this.awaitingInitialResults = true;
} else {
var visibleRanges = this.outputEditor.getVisibleRanges();
var currentTopLine =
visibleRanges.length > 0 ? visibleRanges[0].startLineNumber : 1;
this.outputEditor.revealLine(currentTopLine);
}
this.decorations.labelUsages = [];
_.each(this.assembly, _.bind(function (obj, line) {
if (!obj.labels || !obj.labels.length) return;
obj.labels.forEach(function (label) {
this.decorations.labelUsages.push({
range: new monaco.Range(line + 1, label.range.startCol,
line + 1, label.range.endCol),
options: {
inlineClassName: 'asm-label-link',
hoverMessage: [{
value: 'Ctrl + Left click to follow the label',
}],
},
});
}, this);
}, this));
this.updateDecorations();
var codeLenses = [];
if (this.getEffectiveFilters().binary) {
this.setBinaryMargin();
_.each(this.assembly, _.bind(function (obj, line) {
if (obj.opcodes) {
var address = obj.address ? obj.address.toString(16) : '';
codeLenses.push({
range: {
startLineNumber: line + 1,
startColumn: 1,
endLineNumber: line + 2,
endColumn: 1,
},
id: address,
command: {
title: obj.opcodes.join(' '),
},
});
}
}, this));
} else {
this.setNormalMargin();
}
codeLensHandler.registerLensesForCompiler(this.id, editorModel, codeLenses);
var currentAsmLang = editorModel.getModeId();
codeLensHandler.registerProviderForLanguage(currentAsmLang);
};
function errorResult(text) {
return {asm: fakeAsm(text), code: -1, stdout: '', stderr: ''};
}
function fakeAsm(text) {
return [{text: text, source: null, fake: true}];
}
Compiler.prototype.doNextCompileRequest = function () {
if (this.nextRequest) {
var next = this.nextRequest;
this.nextRequest = null;
this.sendCompile(next);
}
};
Compiler.prototype.doNextCMakeRequest = function () {
if (this.nextCMakeRequest) {
var next = this.nextCMakeRequest;
this.nextCMakeRequest = null;
this.sendCMakeCompile(next);
}
};
Compiler.prototype.onCMakeResponse = function (request, result, cached) {
result.source = this.source;
this.lastResult = result;
var timeTaken = Math.max(0, Date.now() - this.pendingCMakeRequestSentAt);
this.lastTimeTaken = timeTaken;
var wasRealReply = this.pendingCMakeRequestSentAt > 0;
this.pendingCMakeRequestSentAt = 0;
this.handleCompileRequestAndResult(request, result, cached, wasRealReply, timeTaken);
this.doNextCMakeRequest();
};
Compiler.prototype.handleCompileRequestAndResult = function (request, result, cached, wasRealReply, timeTaken) {
ga.proxy('send', {
hitType: 'event',
eventCategory: 'Compile',
eventAction: request.compiler,
eventLabel: request.options.userArguments,
eventValue: cached ? 1 : 0,
});
ga.proxy('send', {
hitType: 'timing',
timingCategory: 'Compile',
timingVar: request.compiler,
timingValue: timeTaken,
});
// Delete trailing empty lines
if ($.isArray(result.asm)) {
var indexToDiscard = _.findLastIndex(result.asm, function (line) {
return !_.isEmpty(line.text);
});
result.asm.splice(indexToDiscard + 1, result.asm.length - indexToDiscard);
}
this.labelDefinitions = result.labelDefinitions || {};
if (result.asm) {
this.setAssembly(result, result.filteredCount || 0);
} else if (result.result && result.result.asm) {
this.setAssembly(result.result, result.result.filteredCount || 0);
}
var stdout = result.stdout || [];
var stderr = result.stderr || [];
var failed = result.code ? result.code !== 0 : false;
if (result.buildsteps) {
_.each(result.buildsteps, function (step) {
stdout = stdout.concat(step.stdout || []);
stderr = stderr.concat(step.stderr || []);
failed = failed | (step.code !== 0);
});
}
this.handleCompilationStatus(this.compilerService.calculateStatusIcon(result));
this.outputTextCount.text(stdout.length);
this.outputErrorCount.text(stderr.length);
if (this.isOutputOpened || (stdout.length === 0 && stderr.length === 0)) {
this.outputBtn.prop('title', '');
} else {
this.compilerService.handleOutputButtonTitle(this.outputBtn, result);
}
var infoLabelText = '';
if (cached) {
infoLabelText = ' - cached';
} else if (wasRealReply) {
infoLabelText = ' - ' + timeTaken + 'ms';
}
if (result.asmSize !== undefined) {
infoLabelText += ' (' + result.asmSize + 'B)';
}
if (result.filteredCount && result.filteredCount > 0) {
infoLabelText += ' ~' + result.filteredCount + (result.filteredCount === 1 ? ' line' : ' lines') + ' filtered';
}
this.compileInfoLabel.text(infoLabelText);
if (result.result) {
this.postCompilationResult(request, result.result);
} else {
this.postCompilationResult(request, result);
}
this.eventHub.emit('compileResult', this.id, this.compiler, result, languages[this.currentLangId]);
};
Compiler.prototype.onCompileResponse = function (request, result, cached) {
// Save which source produced this change. It should probably be saved earlier though
result.source = this.source;
this.lastResult = result;
var timeTaken = Math.max(0, Date.now() - this.pendingRequestSentAt);
this.lastTimeTaken = timeTaken;
var wasRealReply = this.pendingRequestSentAt > 0;
this.pendingRequestSentAt = 0;
this.handleCompileRequestAndResult(request, result, cached, wasRealReply, timeTaken);
this.doNextCompileRequest();
};
Compiler.prototype.postCompilationResult = function (request, result) {
if (result.popularArguments) {
this.handlePopularArgumentsResult(result.popularArguments);
} else {
this.compilerService.requestPopularArguments(this.compiler.id, request.options.userArguments).then(
_.bind(function (result) {
if (result && result.result) {
this.handlePopularArgumentsResult(result.result);
}
}, this)
);
}
this.updateButtons();
this.checkForUnwiseArguments(result.compilationOptions);
this.setCompilationOptionsPopover(result.compilationOptions ? result.compilationOptions.join(' ') : '');
};
Compiler.prototype.onEditorChange = function (editor, source, langId, compilerId) {
if (this.sourceTreeId) {
var tree = this.hub.getTreeById(this.sourceTreeId);
if (tree) {
if (tree.multifileService.isEditorPartOfProject(editor)) {
if (this.settings.compileOnChange) {
this.compile();
return;
}
}
}
}
if (editor === this.sourceEditorId && langId === this.currentLangId &&
(compilerId === undefined || compilerId === this.id)) {
this.source = source;
if (this.settings.compileOnChange) {
this.compile();
}
}
};
Compiler.prototype.onCompilerFlagsChange = function (compilerId, compilerFlags) {
if (compilerId === this.id) {
this.onOptionsChange(compilerFlags);
}
};
Compiler.prototype.onToolOpened = function (compilerId, toolSettings) {
if (this.id === compilerId) {
var toolId = toolSettings.toolId;
var buttons = this.toolsMenu.find('button');
$(buttons).each(_.bind(function (idx, button) {
var toolButton = $(button);
var toolName = toolButton.data('toolname');
if (toolId === toolName) {
toolButton.prop('disabled', true);
}
}, this));
this.compile(false, toolSettings);
}
};
Compiler.prototype.onToolClosed = function (compilerId, toolSettings) {
if (this.id === compilerId) {
var toolId = toolSettings.toolId;
var buttons = this.toolsMenu.find('button');
$(buttons).each(_.bind(function (idx, button) {
var toolButton = $(button);
var toolName = toolButton.data('toolname');
if (toolId === toolName) {
toolButton.prop('disabled', !this.supportsTool(toolId));
}
}, this));
}
};
Compiler.prototype.onOutputOpened = function (compilerId) {
if (this.id === compilerId) {
this.isOutputOpened = true;
this.outputBtn.prop('disabled', true);
this.resendResult();
}
};
Compiler.prototype.onOutputClosed = function (compilerId) {
if (this.id === compilerId) {
this.isOutputOpened = false;
this.outputBtn.prop('disabled', false);
}
};
Compiler.prototype.onOptViewClosed = function (id) {
if (this.id === id) {
this.wantOptInfo = false;
this.optViewOpen = false;
this.optButton.prop('disabled', this.optViewOpen);
}
};
Compiler.prototype.onFlagsViewClosed = function (id, compilerFlags) {
if (this.id === id) {
this.flagsViewOpen = false;
this.optionsField.val(compilerFlags);
this.optionsField.prop('disabled', this.flagsViewOpen);
this.optionsField.prop('placeholder', this.initialOptionsFieldPlacehoder);
this.flagsButton.prop('disabled', this.flagsViewOpen);
this.compilerService.requestPopularArguments(this.compiler.id, compilerFlags).then(
_.bind(function (result) {
if (result && result.result) {
this.handlePopularArgumentsResult(result.result);
}
}, this)
);
this.saveState();
}
};
Compiler.prototype.onAstViewOpened = function (id) {
if (this.id === id) {
this.astButton.prop('disabled', true);
this.astViewOpen = true;
this.compile();
}
};
Compiler.prototype.onToolSettingsChange = function (id) {
if (this.id === id) {
this.compile();
}
};
Compiler.prototype.onAstViewClosed = function (id) {
if (this.id === id) {
this.astButton.prop('disabled', false);
this.astViewOpen = false;
}
};
Compiler.prototype.onIrViewOpened = function (id) {
if (this.id === id) {
this.irButton.prop('disabled', true);
this.irViewOpen = true;
this.compile();
}
};
Compiler.prototype.onIrViewClosed = function (id) {
if (this.id === id) {
this.irButton.prop('disabled', false);
this.irViewOpen = false;
}
};
Compiler.prototype.onDeviceViewOpened = function (id) {
if (this.id === id) {
this.deviceButton.prop('disabled', true);
this.deviceViewOpen = true;
this.compile();
}
};
Compiler.prototype.onDeviceViewClosed = function (id) {
if (this.id === id) {
this.deviceButton.prop('disabled', false);
this.deviceViewOpen = false;
}
};
Compiler.prototype.onRustMirViewOpened = function (id) {
if (this.id === id) {
this.rustMirButton.prop('disabled', true);
this.rustMirViewOpen = true;
this.compile();
}
};
Compiler.prototype.onRustMirViewClosed = function (id) {
if (this.id === id) {
this.rustMirButton.prop('disabled', false);
this.rustMirViewOpen = false;
}
};
Compiler.prototype.onGnatDebugViewOpened = function (id) {
if (this.id === id) {
this.gnatDebugButton.prop('disabled', true);
this.gnatDebugViewOpen = true;
this.compile();
}
};
Compiler.prototype.onGnatDebugViewClosed = function (id) {
if (this.id === id) {
this.gnatDebugButton.prop('disabled', false);
this.gnatDebugViewOpen = false;
}
};
Compiler.prototype.onRustMacroExpViewOpened = function (id) {
if (this.id === id) {
this.rustMacroExpButton.prop('disabled', true);
this.rustMacroExpViewOpen = true;
this.compile();
}
};
Compiler.prototype.onRustMacroExpViewClosed = function (id) {
if (this.id === id) {
this.rustMacroExpButton.prop('disabled', false);
this.rustMacroExpViewOpen = false;
}
};
Compiler.prototype.onGccDumpUIInit = function (id) {
if (this.id === id) {
this.compile();
}
};
Compiler.prototype.onGccDumpFiltersChanged = function (id, filters, reqCompile) {
if (this.id === id) {
this.treeDumpEnabled = (filters.treeDump !== false);
this.rtlDumpEnabled = (filters.rtlDump !== false);
this.ipaDumpEnabled = (filters.ipaDump !== false);
this.dumpFlags = {
address: filters.addressOption !== false,
slim: filters.slimOption !== false,
raw: filters.rawOption !== false,
details: filters.detailsOption !== false,
stats: filters.statsOption !== false,
blocks: filters.blocksOption !== false,
vops: filters.vopsOption !== false,
lineno: filters.linenoOption !== false,
uid: filters.uidOption !== false,
all: filters.allOption !== false,
};
if (reqCompile) {
this.compile();
}
}
};
Compiler.prototype.onGccDumpPassSelected = function (id, passId, reqCompile) {
if (this.id === id) {
this.gccDumpPassSelected = passId;
if (reqCompile && passId !== '') {
this.compile();
}
}
};
Compiler.prototype.onGccDumpViewOpened = function (id) {
if (this.id === id) {
this.gccDumpButton.prop('disabled', true);
this.gccDumpViewOpen = true;
}
};
Compiler.prototype.onGccDumpViewClosed = function (id) {
if (this.id === id) {
this.gccDumpButton.prop('disabled', !this.compiler.supportsGccDump);
this.gccDumpViewOpen = false;
delete this.gccDumpPassSelected;
delete this.treeDumpEnabled;
delete this.rtlDumpEnabled;
delete this.ipaDumpEnabled;
delete this.dumpFlags;
}
};
Compiler.prototype.onOptViewOpened = function (id) {
if (this.id === id) {
this.optViewOpen = true;
this.wantOptInfo = true;
this.optButton.prop('disabled', this.optViewOpen);
this.compile();
}
};
Compiler.prototype.onFlagsViewOpened = function (id) {
if (this.id === id) {
this.flagsViewOpen = true;
this.handlePopularArgumentsResult(false);
this.optionsField.prop('disabled', this.flagsViewOpen);
this.optionsField.val('');
this.optionsField.prop('placeholder', 'see detailed flags window');
this.flagsButton.prop('disabled', this.flagsViewOpen);
this.compile();
this.saveState();
}
};
Compiler.prototype.onCfgViewOpened = function (id) {
if (this.id === id) {
this.cfgButton.prop('disabled', true);
this.cfgViewOpen = true;
this.compile();
}
};
Compiler.prototype.onCfgViewClosed = function (id) {
if (this.id === id) {
this.cfgViewOpen = false;
this.cfgButton.prop('disabled', this.getEffectiveFilters().binary);
}
};
Compiler.prototype.initFilterButtons = function () {
this.filterBinaryButton = this.domRoot.find('[data-bind=\'binary\']');
this.filterBinaryTitle = this.filterBinaryButton.prop('title');
this.filterExecuteButton = this.domRoot.find('[data-bind=\'execute\']');
this.filterExecuteTitle = this.filterExecuteButton.prop('title');
this.filterLabelsButton = this.domRoot.find('[data-bind=\'labels\']');
this.filterLabelsTitle = this.filterLabelsButton.prop('title');
this.filterDirectivesButton = this.domRoot.find('[data-bind=\'directives\']');
this.filterDirectivesTitle = this.filterDirectivesButton.prop('title');
this.filterLibraryCodeButton = this.domRoot.find('[data-bind=\'libraryCode\']');
this.filterLibraryCodeTitle = this.filterLibraryCodeButton.prop('title');
this.filterCommentsButton = this.domRoot.find('[data-bind=\'commentOnly\']');
this.filterCommentsTitle = this.filterCommentsButton.prop('title');
this.filterTrimButton = this.domRoot.find('[data-bind=\'trim\']');
this.filterTrimTitle = this.filterTrimButton.prop('title');
this.filterIntelButton = this.domRoot.find('[data-bind=\'intel\']');
this.filterIntelTitle = this.filterIntelButton.prop('title');
this.filterDemangleButton = this.domRoot.find('[data-bind=\'demangle\']');
this.filterDemangleTitle = this.filterDemangleButton.prop('title');
this.noBinaryFiltersButtons = this.domRoot.find('.nonbinary');
};
Compiler.prototype.initButtons = function (state) {
this.filters = new Toggles(this.domRoot.find('.filters'), patchOldFilters(state.filters));
this.optButton = this.domRoot.find('.btn.view-optimization');
this.flagsButton = this.domRoot.find('div.populararguments div.dropdown-menu button');
this.astButton = this.domRoot.find('.btn.view-ast');
this.irButton = this.domRoot.find('.btn.view-ir');
this.deviceButton = this.domRoot.find('.btn.view-device');
this.gnatDebugButton = this.domRoot.find('.btn.view-gnatdebug');
this.rustMirButton = this.domRoot.find('.btn.view-rustmir');
this.rustMacroExpButton = this.domRoot.find('.btn.view-rustmacroexp');
this.gccDumpButton = this.domRoot.find('.btn.view-gccdump');
this.gnatDebugButton = this.domRoot.find('.btn.view-gnatdebug');
this.cfgButton = this.domRoot.find('.btn.view-cfg');
this.executorButton = this.domRoot.find('.create-executor');
this.libsButton = this.domRoot.find('.btn.show-libs');
this.compileInfoLabel = this.domRoot.find('.compile-info');
this.compileClearCache = this.domRoot.find('.clear-cache');
this.outputBtn = this.domRoot.find('.output-btn');
this.outputTextCount = this.domRoot.find('span.text-count');
this.outputErrorCount = this.domRoot.find('span.err-count');
this.optionsField = this.domRoot.find('.options');
this.initialOptionsFieldPlacehoder = this.optionsField.prop('placeholder');
this.prependOptions = this.domRoot.find('.prepend-options');
this.fullCompilerName = this.domRoot.find('.full-compiler-name');
this.fullTimingInfo = this.domRoot.find('.full-timing-info');
this.setCompilationOptionsPopover(this.compiler ? this.compiler.options : null);
// Dismiss on any click that isn't either in the opening element, inside
// the popover or on any alert
$(document).on('mouseup', _.bind(function (e) {
var target = $(e.target);
if (!target.is(this.prependOptions) && this.prependOptions.has(target).length === 0 &&
target.closest('.popover').length === 0)
this.prependOptions.popover('hide');
if (!target.is(this.fullCompilerName) && this.fullCompilerName.has(target).length === 0 &&
target.closest('.popover').length === 0)
this.fullCompilerName.popover('hide');
}, this));
this.initFilterButtons(state);
this.filterExecuteButton.toggle(options.supportsExecute);
this.filterLibraryCodeButton.toggle(options.supportsLibraryCodeFilter);
this.optionsField.val(this.options);
this.shortCompilerName = this.domRoot.find('.short-compiler-name');
this.compilerPicker = this.domRoot.find('.compiler-picker');
this.setCompilerVersionPopover({version: '', fullVersion: ''}, '');
this.topBar = this.domRoot.find('.top-bar');
this.bottomBar = this.domRoot.find('.bottom-bar');
this.statusLabel = this.domRoot.find('.status-text');
this.hideable = this.domRoot.find('.hideable');
this.statusIcon = this.domRoot.find('.status-icon');
this.monacoPlaceholder = this.domRoot.find('.monaco-placeholder');
this.initPanerButtons();
};
Compiler.prototype.onLibsChanged = function () {
this.saveState();
this.compile();
};
Compiler.prototype.initLibraries = function (state) {
var libUtils = new LibUtils();
this.libsWidget = new Libraries.Widget(this.currentLangId, this.compiler, this.libsButton,
state, _.bind(this.onLibsChanged, this),
libUtils.getSupportedLibraries(this.compiler ? this.compiler.libsArr: [], this.currentLangId));
};
Compiler.prototype.updateLibraries = function () {
if (this.libsWidget) {
var libUtils = new LibUtils();
var filteredLibraries = {};
if (this.compiler) {
filteredLibraries = libUtils.getSupportedLibraries(this.compiler.libsArr, this.currentLangId);
}
this.libsWidget.setNewLangId(this.currentLangId,
this.compiler ? this.compiler.id : false,
filteredLibraries);
}
};
Compiler.prototype.isSupportedTool = function (tool) {
if (this.sourceTreeId) {
return tool.tool.type === 'postcompilation';
} else {
return true;
}
};
Compiler.prototype.supportsTool = function (toolId) {
if (!this.compiler) return;
return _.find(this.compiler.tools, _.bind(function (tool) {
return (tool.tool.id === toolId && this.isSupportedTool(tool));
}, this));
};
Compiler.prototype.initToolButton = function (togglePannerAdder, button, toolId) {
var createToolView = _.bind(function () {
var args = '';
var monacoStdin = false;
var langTools = options.tools[this.currentLangId];
if (langTools && langTools[toolId] && langTools[toolId].tool) {
if (langTools[toolId].tool.args !== undefined) {
args = langTools[toolId].tool.args;
}
if (langTools[toolId].tool.monacoStdin !== undefined) {
monacoStdin = langTools[toolId].tool.monacoStdin;
}
}
return Components.getToolViewWith(this.id, this.sourceEditorId, toolId, args, monacoStdin, this.sourceTreeId);
}, this);
this.container.layoutManager
.createDragSource(button, createToolView)
._dragListener.on('dragStart', togglePannerAdder);
button.click(_.bind(function () {
button.prop('disabled', true);
var insertPoint = this.hub.findParentRowOrColumn(this.container) ||
this.container.layoutManager.root.contentItems[0];
insertPoint.addChild(createToolView);
}, this));
};
Compiler.prototype.initToolButtons = function (togglePannerAdder) {
this.toolsMenu = this.domRoot.find('.toolsmenu');
this.toolsMenu.empty();
if (!this.compiler) return;
var addTool = _.bind(function (toolName, title) {
var btn = $('<button class=\'dropdown-item btn btn-light btn-sm\'>');
btn.addClass('view-' + toolName);
btn.data('toolname', toolName);
btn.append('<span class=\'dropdown-icon fas fa-cog\'></span>' + title);
this.toolsMenu.append(btn);
if (toolName !== 'none') {
this.initToolButton(togglePannerAdder, btn, toolName);
}
}, this);
if (_.isEmpty(this.compiler.tools)) {
addTool('none', 'No tools available');
} else {
_.each(this.compiler.tools, _.bind(function (tool) {
if (this.isSupportedTool(tool)) {
addTool(tool.tool.id, tool.tool.name);
}
}, this));
}
};
Compiler.prototype.enableToolButtons = function () {
var activeTools = this.getActiveTools();
var buttons = this.toolsMenu.find('button');
$(buttons).each(_.bind(function (idx, button) {
var toolButton = $(button);
var toolName = toolButton.data('toolname');
toolButton.prop('disabled',
!(this.supportsTool(toolName)
&& !this.isToolActive(activeTools, toolName)));
}, this));
};
Compiler.prototype.updateButtons = function () {
if (!this.compiler) return;
var filters = this.getEffectiveFilters();
// We can support intel output if the compiler supports it, or if we're compiling
// to binary (as we can disassemble it however we like).
var formatFilterTitle = function (button, title) {
button.prop('title', '[' + (button.hasClass('active') ? 'ON' : 'OFF') + '] ' + title +
(button.prop('disabled') ? ' [LOCKED]' : ''));
};
var isIntelFilterDisabled = !this.compiler.supportsIntel && !filters.binary;
this.filterIntelButton.prop('disabled', isIntelFilterDisabled);
formatFilterTitle(this.filterIntelButton, this.filterIntelTitle);
// Disable binary support on compilers that don't work with it.
this.filterBinaryButton.prop('disabled', !this.compiler.supportsBinary);
formatFilterTitle(this.filterBinaryButton, this.filterBinaryTitle);
this.filterExecuteButton.prop('disabled', !this.compiler.supportsExecute);
formatFilterTitle(this.filterExecuteButton, this.filterExecuteTitle);
// Disable demangle for compilers where we can't access it
this.filterDemangleButton.prop('disabled', !this.compiler.supportsDemangle);
formatFilterTitle(this.filterDemangleButton, this.filterDemangleTitle);
// Disable any of the options which don't make sense in binary mode.
var noBinaryFiltersDisabled = !!filters.binary && !this.compiler.supportsFiltersInBinary;
this.noBinaryFiltersButtons.prop('disabled', noBinaryFiltersDisabled);
this.filterLibraryCodeButton.prop('disabled', !this.compiler.supportsLibraryCodeFilter);
formatFilterTitle(this.filterLibraryCodeButton, this.filterLibraryCodeTitle);
this.filterLabelsButton.prop('disabled', this.compiler.disabledFilters.indexOf('labels') !== -1);
formatFilterTitle(this.filterLabelsButton, this.filterLabelsTitle);
this.filterDirectivesButton.prop('disabled', this.compiler.disabledFilters.indexOf('directives') !== -1);
formatFilterTitle(this.filterDirectivesButton, this.filterDirectivesTitle);
this.filterCommentsButton.prop('disabled', this.compiler.disabledFilters.indexOf('commentOnly') !== -1);
formatFilterTitle(this.filterCommentsButton, this.filterCommentsTitle);
this.filterTrimButton.prop('disabled', this.compiler.disabledFilters.indexOf('trim') !== -1);
formatFilterTitle(this.filterTrimButton, this.filterTrimTitle);
if (this.flagsButton) {
this.flagsButton.prop('disabled', this.flagsViewOpen);
}
this.optButton.prop('disabled', this.optViewOpen);
this.astButton.prop('disabled', this.astViewOpen);
this.irButton.prop('disabled', this.irViewOpen);
this.deviceButton.prop('disabled', this.deviceViewOpen);
this.rustMirButton.prop('disabled', this.rustMirViewOpen);
this.rustMacroExpButton.prop('disabled', this.rustMacroExpViewOpen);
this.cfgButton.prop('disabled', this.cfgViewOpen);
this.gccDumpButton.prop('disabled', this.gccDumpViewOpen);
this.gnatDebugButton.prop('disabled', this.gnatDebugViewOpen);
// The executorButton does not need to be changed here, because you can create however
// many executors as you want.
this.optButton.toggle(!!this.compiler.supportsOptOutput);
this.astButton.toggle(!!this.compiler.supportsAstView);
this.irButton.toggle(!!this.compiler.supportsIrView);
this.deviceButton.toggle(!!this.compiler.supportsDeviceAsmView);
this.rustMirButton.toggle(!!this.compiler.supportsRustMirView);
this.rustMacroExpButton.toggle(!!this.compiler.supportsRustMacroExpView);
this.cfgButton.toggle(!!this.compiler.supportsCfg);
this.gccDumpButton.toggle(!!this.compiler.supportsGccDump);
this.gnatDebugButton.toggle(!!this.compiler.supportsGnatDebugView);
this.executorButton.toggle(!!this.compiler.supportsExecute);
this.enableToolButtons();
};
Compiler.prototype.handlePopularArgumentsResult = function (result) {
var popularArgumentsMenu = $(this.domRoot.find('div.populararguments div.dropdown-menu'));
while (popularArgumentsMenu.children().length > 1) {
popularArgumentsMenu.children()[1].remove();
}
if (result && !this.flagsViewOpen) {
_.forEach(result, _.bind(function (arg, key) {
var argumentButton = $(document.createElement('button'));
argumentButton.addClass('dropdown-item btn btn-light btn-sm');
argumentButton.attr('title', arg.description);
argumentButton.data('arg', key);
argumentButton.html(
'<div class=\'argmenuitem\'>' +
'<span class=\'argtitle\'>' + _.escape(key) + '</span>' +
'<span class=\'argdescription\'>' + arg.description + '</span>' +
'</div>');
argumentButton.click(_.bind(function () {
var button = argumentButton;
var curOptions = this.optionsField.val();
if (curOptions.length > 0) {
this.optionsField.val(curOptions + ' ' + button.data('arg'));
} else {
this.optionsField.val(button.data('arg'));
}
this.optionsField.change();
}, this));
popularArgumentsMenu.append(argumentButton);
}, this));
}
};
Compiler.prototype.onFontScale = function () {
this.saveState();
};
// Disable only for initListeners as there are more and more callbacks.
// eslint-disable-next-line max-statements
Compiler.prototype.initListeners = function () {
this.filters.on('change', _.bind(this.onFilterChange, this));
this.fontScale.on('change', _.bind(this.onFontScale, this));
this.container.on('destroy', this.close, this);
this.container.on('resize', this.resize, this);
this.container.on('shown', this.resize, this);
this.container.on('open', function () {
this.eventHub.emit('compilerOpen', this.id, this.sourceEditorId, this.sourceTreeId);
}, this);
this.eventHub.on('editorChange', this.onEditorChange, this);
this.eventHub.on('compilerFlagsChange', this.onCompilerFlagsChange, this);
this.eventHub.on('editorClose', this.onEditorClose, this);
this.eventHub.on('treeClose', this.onTreeClose, this);
this.eventHub.on('colours', this.onColours, this);
this.eventHub.on('coloursForCompiler', this.onColoursForCompiler, this);
this.eventHub.on('resendCompilation', this.onResendCompilation, this);
this.eventHub.on('findCompilers', this.sendCompiler, this);
this.eventHub.on('compilerSetDecorations', this.onCompilerSetDecorations, this);
this.eventHub.on('panesLinkLine', this.onPanesLinkLine, this);
this.eventHub.on('settingsChange', this.onSettingsChange, this);
this.eventHub.on('requestCompilation', this.onRequestCompilation, this);
this.eventHub.on('toolSettingsChange', this.onToolSettingsChange, this);
this.eventHub.on('toolOpened', this.onToolOpened, this);
this.eventHub.on('toolClosed', this.onToolClosed, this);
this.eventHub.on('optViewOpened', this.onOptViewOpened, this);
this.eventHub.on('optViewClosed', this.onOptViewClosed, this);
this.eventHub.on('flagsViewOpened', this.onFlagsViewOpened, this);
this.eventHub.on('flagsViewClosed', this.onFlagsViewClosed, this);
this.eventHub.on('astViewOpened', this.onAstViewOpened, this);
this.eventHub.on('astViewClosed', this.onAstViewClosed, this);
this.eventHub.on('irViewOpened', this.onIrViewOpened, this);
this.eventHub.on('irViewClosed', this.onIrViewClosed, this);
this.eventHub.on('deviceViewOpened', this.onDeviceViewOpened, this);
this.eventHub.on('deviceViewClosed', this.onDeviceViewClosed, this);
this.eventHub.on('rustMirViewOpened', this.onRustMirViewOpened, this);
this.eventHub.on('rustMirViewClosed', this.onRustMirViewClosed, this);
this.eventHub.on('rustMacroExpViewOpened', this.onRustMacroExpViewOpened, this);
this.eventHub.on('rustMacroExpViewClosed', this.onRustMacroExpViewClosed, this);
this.eventHub.on('outputOpened', this.onOutputOpened, this);
this.eventHub.on('outputClosed', this.onOutputClosed, this);
this.eventHub.on('gccDumpPassSelected', this.onGccDumpPassSelected, this);
this.eventHub.on('gccDumpFiltersChanged', this.onGccDumpFiltersChanged, this);
this.eventHub.on('gccDumpViewOpened', this.onGccDumpViewOpened, this);
this.eventHub.on('gccDumpViewClosed', this.onGccDumpViewClosed, this);
this.eventHub.on('gccDumpUIInit', this.onGccDumpUIInit, this);
this.eventHub.on('gnatDebugViewOpened', this.onGnatDebugViewOpened, this);
this.eventHub.on('gnatDebugViewClosed', this.onGnatDebugViewClosed, this);
this.eventHub.on('cfgViewOpened', this.onCfgViewOpened, this);
this.eventHub.on('cfgViewClosed', this.onCfgViewClosed, this);
this.eventHub.on('resize', this.resize, this);
this.eventHub.on('requestFilters', function (id) {
if (id === this.id) {
this.eventHub.emit('filtersChange', this.id, this.getEffectiveFilters());
}
}, this);
this.eventHub.on('requestCompiler', function (id) {
if (id === this.id) {
this.sendCompiler();
}
}, this);
this.eventHub.on('languageChange', this.onLanguageChange, this);
this.fullTimingInfo
.off('click')
.click(_.bind(function () {
TimingWidget.displayCompilationTiming(this.lastResult, this.lastTimeTaken);
}, this));
};
Compiler.prototype.initCallbacks = function () {
this.initListeners();
var optionsChange = _.debounce(_.bind(function (e) {
this.onOptionsChange($(e.target).val());
}, this), 800);
this.optionsField
.on('change', optionsChange)
.on('keyup', optionsChange);
this.mouseMoveThrottledFunction = _.throttle(_.bind(this.onMouseMove, this), 50);
this.outputEditor.onMouseMove(_.bind(function (e) {
this.mouseMoveThrottledFunction(e);
}, this));
this.cursorSelectionThrottledFunction =
_.throttle(_.bind(this.onDidChangeCursorSelection, this), 500);
this.outputEditor.onDidChangeCursorSelection(_.bind(function (e) {
this.cursorSelectionThrottledFunction(e);
}, this));
this.mouseUpThrottledFunction = _.throttle(_.bind(this.onMouseUp, this), 50);
this.outputEditor.onMouseUp(_.bind(function (e) {
this.mouseUpThrottledFunction(e);
}, this));
this.compileClearCache.on('click', _.bind(function () {
this.compilerService.cache.reset();
this.compile(true);
}, this));
// Dismiss the popover on escape.
$(document).on('keyup.editable', _.bind(function (e) {
if (e.which === 27) {
this.libsButton.popover('hide');
}
}, this));
// Dismiss on any click that isn't either in the opening element, inside
// the popover or on any alert
$(document).on('click', _.bind(function (e) {
var elem = this.libsButton;
var target = $(e.target);
if (!target.is(elem) && elem.has(target).length === 0 && target.closest('.popover').length === 0) {
elem.popover('hide');
}
}, this));
this.eventHub.on('initialised', this.undefer, this);
};
Compiler.prototype.onOptionsChange = function (options) {
if (this.options !== options) {
this.options = options;
this.saveState();
this.compile();
this.updateButtons();
this.sendCompiler();
}
};
Compiler.prototype.checkForUnwiseArguments = function (optionsArray) {
// Check if any options are in the unwiseOptions array and remember them
var unwiseOptions = _.intersection(optionsArray, _.filter(this.compiler.unwiseOptions, function (opt) {
return opt !== '';
}));
var options = unwiseOptions.length === 1 ? 'Option ' : 'Options ';
var names = unwiseOptions.join(', ');
var are = unwiseOptions.length === 1 ? ' is ' : ' are ';
var msg = options + names + are + 'not recommended, as behaviour might change based on server hardware.';
if (unwiseOptions.length > 0) {
this.alertSystem.notify(msg, {group: 'unwiseOption', collapseSimilar: true});
}
};
Compiler.prototype.updateCompilerInfo = function () {
this.updateCompilerName();
if (this.compiler) {
if (this.compiler.notification) {
this.alertSystem.notify(this.compiler.notification, {
group: 'compilerwarning',
alertClass: 'notification-info',
dismissTime: 5000,
});
}
this.prependOptions.data('content', this.compiler.options);
}
};
Compiler.prototype.updateCompilerUI = function () {
var panerDropdown = this.domRoot.find('.pane-dropdown');
var togglePannerAdder = function () {
panerDropdown.dropdown('toggle');
};
this.initToolButtons(togglePannerAdder);
this.updateButtons();
this.updateCompilerInfo();
// Resize in case the new compiler name is too big
this.resize();
};
Compiler.prototype.onCompilerChange = function (value) {
this.compiler = this.compilerService.findCompiler(this.currentLangId, value);
this.deferCompiles = true;
this.needsCompile = true;
this.updateLibraries();
this.saveState();
this.updateCompilerUI();
this.undefer();
this.sendCompiler();
};
Compiler.prototype.sendCompiler = function () {
this.eventHub.emit('compiler', this.id, this.compiler, this.options, this.sourceEditorId, this.sourceTreeId);
};
Compiler.prototype.onEditorClose = function (editor) {
if (editor === this.sourceEditorId) {
// We can't immediately close as an outer loop somewhere in GoldenLayout is iterating over
// the hierarchy. We can't modify while it's being iterated over.
this.close();
_.defer(function (self) {
self.container.close();
}, this);
}
};
Compiler.prototype.onTreeClose = function (tree) {
if (tree === this.sourceTreeId) {
this.close();
_.defer(function (self) {
self.container.close();
}, this);
}
};
Compiler.prototype.onFilterChange = function () {
var filters = this.getEffectiveFilters();
this.eventHub.emit('filtersChange', this.id, filters);
this.saveState();
this.compile();
this.updateButtons();
};
Compiler.prototype.currentState = function () {
var state = {
id: this.id,
compiler: this.compiler ? this.compiler.id : '',
source: this.sourceEditorId,
tree: this.sourceTreeId,
options: this.options,
// NB must *not* be effective filters
filters: this.filters.get(),
wantOptInfo: this.wantOptInfo,
libs: this.libsWidget.get(),
lang: this.currentLangId,
selection: this.selection,
flagsViewOpen: this.flagsViewOpen,
};
this.fontScale.addState(state);
return state;
};
Compiler.prototype.saveState = function () {
this.container.setState(this.currentState());
};
Compiler.prototype.onColours = function (editor, colours, scheme) {
var asmColours = {};
_.each(this.assembly, _.bind(function (x, index) {
if (x.source && x.source.line > 0) {
var editorId = this.getEditorIdBySourcefile(x.source);
if (editorId === editor) {
if (!asmColours[editorId]) {
asmColours[editorId] = {};
}
asmColours[editorId][index] = colours[x.source.line - 1];
}
}
}, this));
_.each(asmColours, _.bind(function (col) {
this.colours = colour.applyColours(this.outputEditor, col, scheme, this.colours);
}, this));
};
Compiler.prototype.onColoursForCompiler = function (compilerId, colours, scheme) {
if (this.id === compilerId) {
this.colours = colour.applyColours(this.outputEditor, colours, scheme, this.colours);
}
};
Compiler.prototype.getCompilerName = function () {
return this.compiler ? this.compiler.name : 'No compiler set';
};
Compiler.prototype.getLanguageName = function () {
var lang = options.languages[this.currentLangId];
return lang ? lang.name : '?';
};
Compiler.prototype.getPaneName = function () {
var langName = this.getLanguageName();
var compName = this.getCompilerName();
if (this.sourceEditorId) {
return compName + ' (' + langName +', Editor #' + this.sourceEditorId + ', Compiler #' + this.id + ')';
} else if (this.sourceTreeId) {
return compName + ' (' + langName +', Tree #' + this.sourceTreeId + ', Compiler #' + this.id + ')';
} else {
return '';
}
};
Compiler.prototype.updateCompilerName = function () {
var compilerName = this.getCompilerName();
var compilerVersion = this.compiler ? this.compiler.version : '';
var compilerFullVersion = this.compiler && this.compiler.fullVersion ? this.compiler.fullVersion : compilerVersion;
var compilerNotification = this.compiler ? this.compiler.notification : '';
this.container.setTitle(this.getPaneName());
this.shortCompilerName.text(compilerName);
this.setCompilerVersionPopover({version: compilerVersion, fullVersion: compilerFullVersion}, compilerNotification);
};
Compiler.prototype.resendResult = function () {
if (!$.isEmptyObject(this.lastResult)) {
this.eventHub.emit('compileResult', this.id, this.compiler, this.lastResult);
return true;
}
return false;
};
Compiler.prototype.onResendCompilation = function (id) {
if (id === this.id) {
this.resendResult();
}
};
Compiler.prototype.updateDecorations = function () {
this.prevDecorations = this.outputEditor.deltaDecorations(
this.prevDecorations, _.flatten(_.values(this.decorations)));
};
Compiler.prototype.clearLinkedLines = function () {
this.decorations.linkedCode = [];
this.updateDecorations();
};
Compiler.prototype.onPanesLinkLine = function (compilerId, lineNumber, colBegin, colEnd, revealLine, sender, editorId) {
if (Number(compilerId) === this.id) {
var lineNums = [];
var directlyLinkedLineNums = [];
var signalFromAnotherPane = sender !== this.getPaneName();
_.each(this.assembly, _.bind(function (asmLine, i) {
if (asmLine.source && asmLine.source.line === lineNumber) {
var fileEditorId = this.getEditorIdBySourcefile(asmLine.source);
if (fileEditorId && (editorId === fileEditorId)) {
var line = i + 1;
lineNums.push(line);
var currentCol = asmLine.source.column;
if (signalFromAnotherPane && currentCol && colBegin <= currentCol && currentCol <= colEnd) {
directlyLinkedLineNums.push(line);
}
}
}
}, this));
if (revealLine && lineNums[0]) {
this.pushRevealJump();
this.outputEditor.revealLineInCenter(lineNums[0]);
}
var lineClass = sender !== this.getPaneName() ? 'linked-code-decoration-line' : '';
var linkedLinesDecoration = _.map(lineNums, function (line) {
return {
range: new monaco.Range(line, 1, line, 1),
options: {
isWholeLine: true,
linesDecorationsClassName: 'linked-code-decoration-margin',
className: lineClass,
},
};
});
var directlyLinkedLinesDecoration = _.map(directlyLinkedLineNums, function (line) {
return {
range: new monaco.Range(line, 1, line, 1),
options: {
isWholeLine: true,
inlineClassName: 'linked-code-decoration-column',
},
};
});
this.decorations.linkedCode = linkedLinesDecoration.concat(directlyLinkedLinesDecoration);
if (this.linkedFadeTimeoutId !== -1) {
clearTimeout(this.linkedFadeTimeoutId);
}
this.linkedFadeTimeoutId = setTimeout(_.bind(function () {
this.clearLinkedLines();
this.linkedFadeTimeoutId = -1;
}, this), 5000);
this.updateDecorations();
}
};
Compiler.prototype.onCompilerSetDecorations = function (id, lineNums, revealLine) {
if (Number(id) === this.id) {
if (revealLine && lineNums[0]) {
this.pushRevealJump();
this.outputEditor.revealLineInCenter(lineNums[0]);
}
this.decorations.linkedCode = _.map(lineNums, function (line) {
return {
range: new monaco.Range(line, 1, line, 1),
options: {
isWholeLine: true,
linesDecorationsClassName: 'linked-code-decoration-margin',
inlineClassName: 'linked-code-decoration-inline',
},
};
});
this.updateDecorations();
}
};
Compiler.prototype.setCompilationOptionsPopover = function (content) {
this.prependOptions.popover('dispose');
this.prependOptions.popover({
content: content || 'No options in use',
template: '<div class="popover' +
(content ? ' compiler-options-popover' : '') +
'" role="tooltip"><div class="arrow"></div>' +
'<h3 class="popover-header"></h3><div class="popover-body"></div></div>',
});
};
Compiler.prototype.setCompilerVersionPopover = function (version, notification) {
this.fullCompilerName.popover('dispose');
// `notification` contains HTML from a config file, so is 'safe'.
// `version` comes from compiler output, so isn't, and is escaped.
var bodyContent = $('<div>');
var versionContent = $('<div>')
.html(_.escape(version.version));
bodyContent.append(versionContent);
if (version.fullVersion) {
var hiddenSection = $('<div>');
var lines = _.map(version.fullVersion.split('\n'), function (line) {
return _.escape(line);
}).join('<br/>');
var hiddenVersionText = $('<div>')
.html(lines)
.hide();
var clickToExpandContent = $('<a>')
.attr('href', 'javascript:;')
.text('Toggle full version output')
.on('click', _.bind(function () {
versionContent.toggle();
hiddenVersionText.toggle();
this.fullCompilerName.popover('update');
}, this));
hiddenSection.append(hiddenVersionText).append(clickToExpandContent);
bodyContent.append(hiddenSection);
}
this.fullCompilerName.popover({
html: true,
title: notification ?
$.parseHTML('<span>Compiler Version: ' + notification + '</span>')[0] :
'Full compiler version',
content: bodyContent,
template: '<div class="popover' + (version ? ' compiler-options-popover' : '') + '" role="tooltip">' +
'<div class="arrow"></div>' +
'<h3 class="popover-header"></h3><div class="popover-body"></div>' +
'</div>',
});
};
Compiler.prototype.onRequestCompilation = function (editorId, treeId) {
if ((editorId === this.sourceEditorId) || (treeId && treeId === this.sourceTreeId)) {
this.compile();
}
};
Compiler.prototype.onSettingsChange = function (newSettings) {
var before = this.settings;
this.settings = _.clone(newSettings);
if (!before.lastHoverShowSource && this.settings.hoverShowSource) {
this.onCompilerSetDecorations(this.id, []);
}
this.outputEditor.updateOptions({
contextmenu: this.settings.useCustomContextMenu,
minimap: {
enabled: this.settings.showMinimap && !options.embedded,
},
fontFamily: this.settings.editorsFFont,
fontLigatures: this.settings.editorsFLigatures,
});
};
var hexLike = /^(#?[$]|0x)([0-9a-fA-F]+)$/;
var hexLike2 = /^(#?)([0-9a-fA-F]+)H$/;
var decimalLike = /^(#?)(-?[0-9]+)$/;
function getNumericToolTip(value) {
var match = hexLike.exec(value) || hexLike2.exec(value);
if (match) {
return value + ' = ' + bigInt(match[2], 16).toString(10);
}
match = decimalLike.exec(value);
if (match) {
var asBig = bigInt(match[2]);
if (asBig.isNegative()) {
asBig = bigInt('ffffffffffffffff', 16).and(asBig);
}
return value + ' = 0x' + asBig.toString(16).toUpperCase();
}
return null;
}
function getAsmInfo(opcode, instructionSet) {
var cacheName = 'asm/' + (instructionSet ? (instructionSet + '/') : '') + opcode;
var cached = OpcodeCache.get(cacheName);
if (cached) {
return Promise.resolve(cached.found ? cached.result : null);
}
var base = window.httpRoot;
return new Promise(function (resolve, reject) {
$.ajax({
type: 'GET',
url: window.location.origin + base + 'api/asm/' + (instructionSet ? (instructionSet + '/') : '') + opcode,
dataType: 'json', // Expected,
contentType: 'text/plain', // Sent
success: function (result) {
OpcodeCache.set(cacheName, result);
resolve(result.found ? result.result : null);
},
error: function (result) {
reject(result);
},
cache: true,
});
});
}
Compiler.prototype.onDidChangeCursorSelection = function (e) {
if (this.awaitingInitialResults) {
this.selection = e.selection;
this.saveState();
}
};
Compiler.prototype.onMouseUp = function (e) {
if (e === null || e.target === null || e.target.position === null) return;
if (e.event.ctrlKey && e.event.leftButton) {
this.jumpToLabel(e.target.position);
}
};
Compiler.prototype.onMouseMove = function (e) {
if (e === null || e.target === null || e.target.position === null) return;
var hoverShowSource = this.settings.hoverShowSource === true;
if (this.assembly) {
var hoverAsm = this.assembly[e.target.position.lineNumber - 1];
if (hoverShowSource && hoverAsm) {
this.clearLinkedLines();
// We check that we actually have something to show at this point!
var sourceLine = -1;
var sourceColBegin = -1;
var sourceColEnd = -1;
if (hoverAsm.source) {
sourceLine = hoverAsm.source.line;
if (hoverAsm.source.column) {
sourceColBegin = hoverAsm.source.column;
sourceColEnd = sourceColBegin;
}
var editorId = this.getEditorIdBySourcefile(hoverAsm.source);
if (editorId) {
this.eventHub.emit('editorLinkLine', editorId, sourceLine, sourceColBegin, sourceColEnd, false);
this.eventHub.emit('panesLinkLine', this.id,
sourceLine, sourceColBegin, sourceColEnd,
false, this.getPaneName(), editorId);
}
}
}
}
var currentWord = this.outputEditor.getModel().getWordAtPosition(e.target.position);
if (currentWord && currentWord.word) {
var word = currentWord.word;
var startColumn = currentWord.startColumn;
// Avoid throwing an exception if somehow (How?) we have a non existent lineNumber.
// c.f. https://sentry.io/matt-godbolt/compiler-explorer/issues/285270358/
if (e.target.position.lineNumber <= this.outputEditor.getModel().getLineCount()) {
// Hacky workaround to check for negative numbers.
// c.f. https://github.com/compiler-explorer/compiler-explorer/issues/434
var lineContent = this.outputEditor.getModel().getLineContent(e.target.position.lineNumber);
if (lineContent[currentWord.startColumn - 2] === '-') {
word = '-' + word;
startColumn -= 1;
}
}
currentWord.range = new monaco.Range(e.target.position.lineNumber, Math.max(startColumn, 1),
e.target.position.lineNumber, currentWord.endColumn);
var numericToolTip = getNumericToolTip(word);
if (numericToolTip) {
this.decorations.numericToolTip = {
range: currentWord.range,
options: {
isWholeLine: false, hoverMessage: [{
value: '`' + numericToolTip + '`',
}],
},
};
this.updateDecorations();
}
if (hoverShowSource && this.isWordAsmKeyword(currentWord)) {
getAsmInfo(currentWord.word, this.compiler.instructionSet).then(_.bind(function (response) {
if (!response) return;
this.decorations.asmToolTip = {
range: currentWord.range,
options: {
isWholeLine: false,
hoverMessage: [{
value: response.tooltip + '\n\nMore information available in the context menu.',
isTrusted: true,
}],
},
};
this.updateDecorations();
}, this));
}
}
};
Compiler.prototype.getLineTokens = function (line) {
var model = this.outputEditor.getModel();
if (!model || line > model.getLineCount()) return [];
var flavour = model.getModeId();
var tokens = monaco.editor.tokenize(model.getLineContent(line), flavour);
return tokens.length > 0 ? tokens[0] : [];
};
Compiler.prototype.isWordAsmKeyword = function (word) {
return _.some(this.getLineTokens(word.range.startLineNumber), function (t) {
return t.offset + 1 === word.startColumn && t.type === 'keyword.asm';
});
};
Compiler.prototype.onAsmToolTip = function (ed) {
ga.proxy('send', {
hitType: 'event',
eventCategory: 'OpenModalPane',
eventAction: 'AsmDocs',
});
if (!this.getEffectiveFilters().intel) return;
var pos = ed.getPosition();
var word = ed.getModel().getWordAtPosition(pos);
if (!word || !word.word) return;
var opcode = word.word.toUpperCase();
function newGitHubIssueUrl() {
return 'https://github.com/compiler-explorer/compiler-explorer/issues/new?title=' +
encodeURIComponent('[BUG] Problem with ' + opcode + ' opcode');
}
function appendInfo(url) {
return '<br><br>For more information, visit <a href="' + url +
'" target="_blank" rel="noopener noreferrer">the ' + opcode +
' documentation <sup><small class="fas fa-external-link-alt opens-new-window"' +
' title="Opens in a new window"></small></sup></a>.' +
'<br>If the documentation for this opcode is wrong or broken in some way, ' +
'please feel free to <a href="' + newGitHubIssueUrl() + '" target="_blank" rel="noopener noreferrer">' +
'open an issue on GitHub <sup><small class="fas fa-external-link-alt opens-new-window" ' +
'title="Opens in a new window"></small></sup></a>.';
}
getAsmInfo(word.word, this.compiler.instructionSet).then(_.bind(function (asmHelp) {
if (asmHelp) {
this.alertSystem.alert(opcode + ' help', asmHelp.html + appendInfo(asmHelp.url), function () {
ed.focus();
ed.setPosition(pos);
});
} else {
this.alertSystem.notify('This token was not found in the documentation. Sorry!', {
group: 'notokenindocs',
alertClass: 'notification-error',
dismissTime: 3000,
});
}
}, this), _.bind(function (rejection) {
this.alertSystem
.notify('There was an error fetching the documentation for this opcode (' + rejection + ').', {
group: 'notokenindocs',
alertClass: 'notification-error',
dismissTime: 3000,
});
}, this));
};
Compiler.prototype.handleCompilationStatus = function (status) {
this.compilerService.handleCompilationStatus(this.statusLabel, this.statusIcon, status);
};
Compiler.prototype.onLanguageChange = function (editorId, newLangId, treeId) {
if ((this.sourceEditorId && this.sourceEditorId === editorId) ||
(this.sourceTreeId && this.sourceTreeId === treeId)) {
var oldLangId = this.currentLangId;
this.currentLangId = newLangId;
// Store the current selected stuff to come back to it later in the same session (Not state stored!)
this.infoByLang[oldLangId] = {
compiler: this.compiler && this.compiler.id ? this.compiler.id : options.defaultCompiler[oldLangId],
options: this.options,
};
var info = this.infoByLang[this.currentLangId] || {};
this.deferCompiles = true;
this.initLangAndCompiler({lang: newLangId, compiler: info.compiler});
this.updateCompilersSelector(info);
this.saveState();
this.updateCompilerUI();
// this is a workaround to delay compilation further until the Editor sends a compile request
this.needsCompile = false;
this.undefer();
this.sendCompiler();
}
};
Compiler.prototype.getCurrentLangCompilers = function () {
return this.compilerService.getCompilersForLang(this.currentLangId);
};
Compiler.prototype.updateCompilersSelector = function (info) {
this.compilerPicker.update(this.currentLangId, this.compiler ? this.compiler.id : null);
this.options = info.options || '';
this.optionsField.val(this.options);
};
module.exports = {
Compiler: Compiler,
};
|
from setuptools import setup
setup(
name='tensorflow_hmm',
version='0.1.1',
description='Tensorflow and numpy implementations of the HMM viterbi and '
'forward/backward algorithms',
url='http://github.com/dwiel/tensorflow_hmm',
author='Zach Dwiel',
author_email='zdwiel@gmail.com',
license='Apache',
packages=['tensorflow_hmm'],
install_requires=[
'numpy',
'pytest',
],
)
|
import ErrorScreen from "ErrorScreen";
import TransactionPage from "./Page";
import { transactionPage } from "connectors";
const Transaction = ({ walletService, viewedTransaction, viewedDecodedTransaction,
decodeRawTransactions, tsDate, fetchMissingStakeTxData }) => {
if (!viewedDecodedTransaction) {
decodeRawTransactions([ viewedTransaction.rawTx ]);
}
const { txType, ticketPrice, leaveTimestamp } = viewedTransaction;
if (((txType == "Ticket") && (!ticketPrice)) || ((txType == "Vote") && (!leaveTimestamp))) {
// don't have the extended stake info for this transaction yet. Request it.
fetchMissingStakeTxData(viewedTransaction);
}
return !walletService
? <ErrorScreen />
: <TransactionPage
{...{
transactionDetails: viewedTransaction,
decodedTransaction: viewedDecodedTransaction,
tsDate: tsDate,
}}
/>;
};
export default transactionPage(Transaction);
|
#!/usr/bin/env python3
import os
class BaseConfig(object):
def __init__(self):
self.debug = True if os.environ['HASH_API_DEBUG'].lower() == 'true' else False
self.host = os.environ['HASH_API_HOST']
self.port = int(os.environ['HASH_API_PORT'])
self.application_secret = os.environ['HASH_APP_SECRET']
class Config(BaseConfig):
def __init__(self):
super().__init__()
self.log_file_abs_path = os.environ['HASH_API_LOG']
self.mongo_host = os.environ['HASH_MONGO_HOST']
self.mongo_port = int(os.environ['HASH_MONGO_PORT'])
self.mongo_user = os.environ['HASH_MONGO_USER']
self.mongo_pass = os.environ['HASH_MONGO_PASS']
self.mongo_db_name = os.environ['HASH_MONGO_DB']
self.jwt_secret = os.environ['HASH_JWT_SECRET']
|
f1 = open('_data/raw_scholarly.txt', 'r')
f2 = open('scholar_data.txt', 'w')
for line in f1:
if line[0:9] == "- title: ":
curr_tool = line[9:]
f2.write(line)
if line[2:5] == "doi":
f2.write(line)
if line[2:10] == "pub_year":
f2.write(line)
if line[2:9] == "citedby":
f2.write(" citation_count: "+line[12:].replace(',', ''))
f1.close()
f2.close()
|
from __future__ import unicode_literals
from django import forms
from django.utils.encoding import force_text
from django.utils.html import format_html
from django.utils.safestring import mark_safe
class DisableableSelectWidget(forms.SelectMultiple):
allow_multiple_selected = True
def __init__(self, *args, **kwargs):
self.disabled_choices = kwargs.pop('disabled_choices', ())
super(DisableableSelectWidget, self).__init__(*args, **kwargs)
def render_option(self, selected_choices, option_value, option_label):
if option_value is None:
option_value = ''
option_value = force_text(option_value)
if option_value in selected_choices:
selected_html = mark_safe(' selected="selected"')
if not self.allow_multiple_selected:
# Only allow for a single selection.
selected_choices.remove(option_value)
else:
selected_html = ''
if option_value in self.disabled_choices:
disabled_html = u' disabled="disabled"'
else:
disabled_html = ''
return format_html('<option value="{0}"{1}{2}>{3}</option>',
option_value,
selected_html,
disabled_html,
force_text(option_label))
# From: http://www.peterbe.com/plog/emailinput-html5-django
class EmailInput(forms.widgets.Input):
"""
Class for a login form widget that accepts only well formated
email address
"""
input_type = 'email'
def render(self, name, value, attrs=None):
if attrs is None:
attrs = {}
attrs.update(dict(autocorrect='off',
autocapitalize='off',
spellcheck='false'))
return super(EmailInput, self).render(name, value, attrs=attrs)
class PlainWidget(forms.widgets.Widget):
"""
Class to define a form widget that effectively nulls the htmls of a
widget and reduces the output to only it's value
"""
def render(self, name, value, attrs=None):
return mark_safe('%s' % value)
class TextAreaDiv(forms.widgets.Widget):
"""
Class to define a form widget that simulates the behavior of a
Textarea widget but using a div tag instead
"""
template_name = 'appearance/forms/widgets/textareadiv.html'
def __init__(self, attrs=None):
# The 'rows' and 'cols' attributes are required for HTML correctness.
default_attrs = {'class': 'text_area_div'}
if attrs:
default_attrs.update(attrs)
super(TextAreaDiv, self).__init__(default_attrs)
def two_state_template(state, ok_icon='fa fa-check', fail_icon='fa fa-times'):
if state:
return mark_safe('<i class="text-success {}"></i>'.format(ok_icon))
else:
return mark_safe('<i class="text-danger {}"></i>'.format(fail_icon))
|